identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/Musixmatchdev/quill/blob/master/build/test/unit/format.js | Github Open Source | Open Source | BSD-3-Clause | 2,014 | quill | Musixmatchdev | JavaScript | Code | 588 | 2,607 | (function() {
describe('Format', function() {
var tests;
beforeEach(function() {
return this.container = $('#editor-container').html('').get(0);
});
tests = {
tag: {
format: new Quill.Format(document, Quill.Format.FORMATS.bold),
existing: '<b>Text</b>',
missing: 'Te... | 38,920 |
https://github.com/apache/incubator-pekko/blob/master/actor/src/main/scala/org/apache/pekko/actor/TypedActor.scala | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-protobuf, LicenseRef-scancode-public-domain, BSD-2-Clause, Unlicense, CC0-1.0 | 2,023 | incubator-pekko | apache | Scala | Code | 3,312 | 8,366 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* license agreements; and to You under the Apache License, version 2.0:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* This file is part of the Apache Pekko project, which was derived from Akka.
*/
/*
* Copyright (C) 2009-2022 Light... | 19,337 |
https://github.com/tuarua/ML-ANE/blob/master/example-mobile/src/mymodels/MarsHabitatPricerInput.as | Github Open Source | Open Source | Apache-2.0 | 2,020 | ML-ANE | tuarua | null | Spoken | 46 | 148 | package mymodels {
public class MarsHabitatPricerInput {
public var solarPanels:Number;
public var greenhouses:Number;
public var size:Number;
public function MarsHabitatPricerInput(solarPanels:Number, greenhouses:Number, size:Number) {
this.solarPanels = solarPanels;
this.greenhouses =... | 43,743 |
https://github.com/Jokaero/Happetite/blob/master/application/modules/Seaocore/views/scripts/admin-geo-locations/manage.tpl | Github Open Source | Open Source | Apache-2.0 | 2,016 | Happetite | Jokaero | null | Spoken | 652 | 2,313 | <?php
/**
* SocialEngine
*
* @category Application_Extensions
* @package Seaocore
* @copyright Copyright 2013-2014 BigStep Technologies Pvt. Ltd.
* @license http://www.socialengineaddons.com/license/
* @version $Id: manage.tpl 6590 2014-06-02 00:00:00Z SocialEngineAddOns $
* @author SocialEngine... | 55,221 |
https://github.com/jenkins-x/jx-eclipse-plugin/blob/master/jx.plugin/src/io/jenkins/x/eclipse/plugin/view/ViewContentProvider.java | Github Open Source | Open Source | MIT | 2,018 | jx-eclipse-plugin | jenkins-x | Java | Code | 122 | 435 | /**
*
*/
package io.jenkins.x.eclipse.plugin.view;
import java.util.List;
import org.eclipse.jface.viewers.ITreeContentProvider;
import io.jenkins.x.client.tree.PipelineTreeModel;
import io.jenkins.x.client.tree.TreeItem;
import io.jenkins.x.eclipse.plugin.Logger;
/**
* @author suren
*/
class ViewContentProvid... | 25,304 |
https://github.com/TylerTam/GoogleCardboardSandwich/blob/master/Assets/_SandwichMaker/Prefabs/Foods/Holdable/Cooked/PFB_1_HoldableFood_Cooked_Ash.prefab | Github Open Source | Open Source | MIT | 2,020 | GoogleCardboardSandwich | TylerTam | Unity3D Asset | Code | 630 | 3,259 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &2651719592542661460
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 5972684389614379363}
m_Modifications:
- target: {fileID: -4216859302048453862, guid: a41cb877cfcb94f4cb5611a378798371,
... | 33,186 |
https://github.com/ShilpaRackron/invoices/blob/master/frontend/models/AmazonOrdersSearch.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | invoices | ShilpaRackron | PHP | Code | 1,112 | 5,224 | <?php
namespace frontend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use frontend\models\AmazonOrders;
/**
* AmazonOrdersSearch represents the model behind the search form of `frontend\models\AmazonOrders`.
*/
class AmazonOrdersSearch extends AmazonOrders
{
/**
* {@inheritdoc}
... | 30,036 |
https://github.com/eamonwoortman/django-unity3d-example/blob/master/Unity/Assets/Scripts/TowerExample/Data.meta | Github Open Source | Open Source | MIT | 2,023 | django-unity3d-example | eamonwoortman | Unity3D Asset | Code | 8 | 42 | fileFormatVersion: 2
guid: 6968163a44530074eb736bafd6478c26
folderAsset: yes
DefaultImporter:
userData:
| 49,661 |
https://github.com/upfluence/hypertable/blob/master/addon/core/interfaces/rows-fetcher.ts | Github Open Source | Open Source | MIT | 2,023 | hypertable | upfluence | TypeScript | Code | 45 | 132 | export type Row = {
influencerId: number;
recordId: number;
holderId: number;
holderType: string;
[key: string]: any;
};
export type RowsFetcherMetadata = {
total: number;
};
export type RowsFetcherResponse = {
meta: RowsFetcherMetadata;
rows: Row[];
};
export interface RowsFetcher {
fetch(page: nu... | 49,048 |
https://github.com/nondanee/Jellow-Patcher/blob/master/smali_classes2/com/ruguoapp/jike/scan/ScanFragment.smali | Github Open Source | Open Source | MIT | 2,022 | Jellow-Patcher | nondanee | Smali | Code | 1,401 | 9,374 | .class public final Lcom/ruguoapp/jike/scan/ScanFragment;
.super Landroidx/fragment/app/Fragment;
.source "ScanFragment.kt"
# interfaces
.implements Landroid/view/TextureView$SurfaceTextureListener;
.implements Lcom/ruguoapp/jike/scan/a;
.implements Lcom/ruguoapp/jike/camera/contract/a;
.implements Lcom/ruguoapp/jike/... | 13,893 |
https://github.com/malakeel/jetspeed-portal/blob/master/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/impl/SecurityAttributeTypesImpl.java | Github Open Source | Open Source | CC-BY-SA-2.5, AFL-2.1, LicenseRef-scancode-unknown-license-reference, MIT, BSD-3-Clause, Apache-2.0, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-proprietary-license | 2,020 | jetspeed-portal | malakeel | Java | Code | 302 | 912 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the... | 23,446 |
https://github.com/andrewballantyne/hac-core-frontend/blob/master/src/poc-code/console-mount/src/components/foundation/MainAppContent.tsx | Github Open Source | Open Source | Apache-2.0 | null | hac-core-frontend | andrewballantyne | TypeScript | Code | 101 | 323 | import * as React from 'react';
import { ContextProvider, isContextProvider, useResolvedExtensions } from '@console/dynamic-plugin-sdk';
import useReduxReducerExtensions from '../../redux/useReduxReducerExtensions';
import { PageLoader } from '../loading';
import { DetectPerspective } from '../perspectives';
import App... | 27,463 |
https://github.com/Kotori316/cats/blob/master/tests/shared/src/test/scala-2/cats/tests/FunctionKLiftSuite.scala | Github Open Source | Open Source | Apache-2.0 | null | cats | Kotori316 | Scala | Code | 375 | 1,035 | /*
* Copyright (c) 2015 Typelevel
*
* 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, ... | 41,859 |
https://github.com/williamlfish/vrSoundGarden/blob/master/src/js/app.js | Github Open Source | Open Source | MIT | 2,018 | vrSoundGarden | williamlfish | JavaScript | Code | 487 | 2,023 | import 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import 'aframe-physics-components'
import React from 'react';
import ReactDOM from 'react-dom';
import Ball from './components/Ball';
import Camera from './component... | 5,289 |
https://github.com/domagojlatecki/fnc-lab/blob/master/src/main/scala/at/doml/fnc/lab2/genalg/Chromosome.scala | Github Open Source | Open Source | MIT | null | fnc-lab | domagojlatecki | Scala | Code | 20 | 76 | package at.doml.fnc.lab2.genalg
class Chromosome[T](val fitness: Double, val underlying: T) extends Ordered[Chromosome[_]] {
override def compare(that: Chromosome[_]): Int = this.fitness.compareTo(that.fitness)
}
| 21,375 |
https://github.com/webos21/xbionic/blob/master/buildx/make/ndk/setup-toolchain.mk | Github Open Source | Open Source | Apache-2.0 | 2,019 | xbionic | webos21 | Makefile | Code | 836 | 2,336 | # Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 28,949 |
https://github.com/NikitaNikson/xray-2_0/blob/master/SDK/include/WildMagic4/LibRenderers/OpenGLRenderer/Wm4WglRenderer.cpp | Github Open Source | Open Source | BSL-1.0 | 2,020 | xray-2_0 | NikitaNikson | C++ | Code | 593 | 2,435 | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4OpenGLRendererPCH.h"
#include "Wm4WglRenderer.h"
u... | 49,620 |
https://github.com/thiraj/Sales/blob/master/app/Http/Controllers/PerformanceController.php | Github Open Source | Open Source | MIT | null | Sales | thiraj | PHP | Code | 329 | 1,637 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use App\Http\Requests;
use App\models\Performance;
use App\models\Agent;
use App\models\Profile;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
class PerformanceController ex... | 26,519 |
https://github.com/dotnet/pinvoke/blob/master/src/AdvApi32/AdvApi32+CryptAcquireContextFlags.cs | Github Open Source | Open Source | MIT | 2,023 | pinvoke | dotnet | C# | Code | 490 | 878 | // Copyright © .NET Foundation and Contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace PInvoke
{
using System;
/// <content>
/// Contains the <see cref="CryptAcquireContextFlags"/> nested type.
/// </conten... | 47,430 |
https://github.com/devallever/AndroidBaseLibs/blob/master/network/src/main/java/app/allever/android/lib/network/cache/CacheListener.java | Github Open Source | Open Source | Apache-2.0 | null | AndroidBaseLibs | devallever | Java | Code | 20 | 59 | //package app.allever.android.lib.network.cache;
//
//public interface CacheListener<T> {
//
// void onSuccess(T response);
//
// void onFailed(int code, String msg);
//}
| 30,673 |
https://github.com/mindstorm38/rutabagarre/blob/master/src/view/kind/how_to_play.py | Github Open Source | Open Source | MIT | 2,021 | rutabagarre | mindstorm38 | Python | Code | 661 | 3,126 | from typing import Optional
from view.button import ViewButton
from view import View
from pygame import Surface
import pygame
class ViewLightButton(ViewButton):
def _get_color(self):
return self._view.BACKGROUND_COLOR
class HowToPlayView(View):
def __init__(self):
super().__init__()
... | 3,417 |
https://github.com/wildpeaks/vscode-theme/blob/master/test/fixtures/JavaScript React/example.jsx | Github Open Source | Open Source | MIT | 2,020 | vscode-theme | wildpeaks | null | Spoken | 203 | 616 | "use string";
const MyComponent = (props) => <div>{props.children}</div>;
const component1 = (
<MyComponent>
<div>Hello World</div>
{"This is just a JS expression..." + 1000}
</MyComponent>
);
const component2 = <MyComponent hello="world" />;
const component3 = <MyComponent hello={myvar} />;
const component4 = <... | 44,540 |
https://github.com/efilrups/AcidRain-mirror/blob/master/server/routes.js | Github Open Source | Open Source | MIT | 2,021 | AcidRain-mirror | efilrups | JavaScript | Code | 31 | 186 | var controller = require("./controllers");
var router = require("express").Router();
router.post("/signup", controller.signup.post)
router.post("/mypage", controller.mypage.post)
router.get("/selectstage", controller.selectstage.get)
router.post("/playstage", controller.playstage.post)
router.get("/rank", controll... | 50,007 |
https://github.com/slsonnier/MochaTes/blob/master/documentation/themes/daux_singlepage/less/_print.less | Github Open Source | Open Source | MIT | 2,019 | MochaTes | slsonnier | Less | Code | 10 | 39 |
@import "../../common/less/_print.less";
a[href]::after {
content: " (" attr(href) ")";
}
| 13,557 |
https://github.com/pacoscan/odh-mentor-otp/blob/master/otp-app/app/otp-react-redux/build/util/messages.js | Github Open Source | Open Source | MIT | 2,020 | odh-mentor-otp | pacoscan | JavaScript | Code | 217 | 601 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.mergeMessages = mergeMessages;
require("core-js/modules/es7.object.get-own-property-descriptors");
require("core-js/modules/es6.symbol");
require("core-js/modules/web.dom.iterable");
require("core-js/modules/es6.array.iterator")... | 10,560 |
https://github.com/tattimus/Lukuvinkkikirjasto-OHTU/blob/master/Lukuvinkkikirjasto/src/main/java/ohtu/lukuvinkkikirjasto/actions/ShowHint.java | Github Open Source | Open Source | MIT | null | Lukuvinkkikirjasto-OHTU | tattimus | Java | Code | 250 | 941 | /*
* 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 ohtu.lukuvinkkikirjasto.actions;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.Date;
import java.util.... | 25,382 |
https://github.com/ufukhurriyetoglu/AaltoASR/blob/master/decoder/lna_rec.pl | Github Open Source | Open Source | BSD-3-Clause | 2,017 | AaltoASR | ufukhurriyetoglu | Perl | Code | 411 | 1,456 | #!/usr/bin/perl
#
# Generates LNA files with possible Gaussian clustering, recognizes
# the utterances and deletes the LNAs in the end. Enables parallel
# operation for both LNA generation and recognition.
#
use lib '/share/puhe/x86_64/lib'; # For GridManager (or use aku/scripts dir)
use locale;
use strict;
use GridM... | 14,682 |
https://github.com/CMPUT301W20T07/arrival/blob/master/code/app/src/main/java/com/example/android/arrival/Activities/RiderMapActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | arrival | CMPUT301W20T07 | Java | Code | 2,699 | 10,531 | package com.example.android.arrival.Activities;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.location.Address;
import android.location.Geocoder;
imp... | 25,675 |
https://github.com/anchorimageanalysis/anchor/blob/master/anchor-image-voxel/src/main/java/org/anchoranalysis/image/voxel/statistics/HistogramFactory.java | Github Open Source | Open Source | MIT | null | anchor | anchorimageanalysis | Java | Code | 527 | 1,255 | /*-
* #%L
* anchor-image
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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... | 7,462 |
https://github.com/georgyfarniev/manggis/blob/master/jest.config.js | Github Open Source | Open Source | MIT | 2,021 | manggis | georgyfarniev | JavaScript | Code | 29 | 127 | module.exports = {
// "transform": {
// "^.+\\.spec\\.ts$": "ts-jest"
// },
// "moduleFileExtensions": ["ts", "js"],
// "preset": "ts-jest/presets/js-with-ts",
"testEnvironment": "node",
"testMatch": [
"**/tests/**/*.spec.ts"
],
transformIgnorePatterns: ['^.+\\.js$'],
silent: true
}
| 19,767 |
https://github.com/navikt/helse-sykepenger-sakskompleks/blob/master/sykepenger-model/src/test/kotlin/no/nav/helse/hendelser/InntektsmeldingTest.kt | Github Open Source | Open Source | MIT | null | helse-sykepenger-sakskompleks | navikt | Kotlin | Code | 1,800 | 10,522 | package no.nav.helse.hendelser
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.desember
import no.nav.helse.februar
import no.nav.helse.hendelser.Inntektsmelding.Companion.WARN_UENIGHET_ARBEIDSGIVERPERIODE
import no.nav.helse.hendelser.Inntektsmelding.Refusjon.Endrin... | 42,924 |
https://github.com/CornerstoneAuto/OpenTrack.NET/blob/master/OpenTrack.Lib/ManualSoap/Responses/ServicePricingLookupResultSuccess.cs | Github Open Source | Open Source | MIT | 2,017 | OpenTrack.NET | CornerstoneAuto | C# | Code | 38 | 111 | using System;
using System.Xml.Serialization;
namespace OpenTrack.ManualSoap.Responses
{
[Serializable]
public class ServicePricingLookupResultSuccess
{
[XmlElement]
public string LaborOpCode { get; set; }
[XmlElement]
public decimal LaborAmount { get; set; }
[XmlE... | 51,110 |
https://github.com/iceroad/node-benchoid/blob/master/lib/commands/run/walkthrough.js | Github Open Source | Open Source | MIT | 2,020 | node-benchoid | iceroad | JavaScript | Code | 112 | 307 | const inquirer = require('inquirer');
function walkthrough(args) {
const d = new Date();
const questions = [
{
type: 'input',
name: 'runName',
message: 'Name for this run',
default: args.runName || d.toISOString().replace(/\..*$/, ''),
},
{
type: 'input',
name: 'run... | 23,167 |
https://github.com/vasi1796/eurobotics_demo/blob/master/rtsp_server/H264LiveStreamer.cpp | Github Open Source | Open Source | MIT | 2,020 | eurobotics_demo | vasi1796 | C++ | Code | 247 | 755 | // H264LiveStreamer.cpp : Defines the entry point for the console application.
//
/*===============================================================================
Project: H264LiveStreamer
Module: main.cxx
Copyright (c) 2014-2015, Rafael Palomar <rafaelpalomaravalos@gmail.com>
Permission to use, copy, modify, and/... | 3,729 |
https://github.com/lskk/prototipe-web-vidyanusa/blob/master/application/views/dashboard/dashboard_siswa.php | Github Open Source | Open Source | Apache-2.0 | 2,016 | prototipe-web-vidyanusa | lskk | PHP | Code | 138 | 623 | <div class="grid" style="padding-top: 1em">
<div class="row">
<div class="span4">
<?php
include APPPATH . "/views/sidebar_siswa.php";
?>
</div>
<div class="span12">
<div id="konten" style="width: 100%;height: 100%;background-color:white;padding... | 14,515 |
https://github.com/optemo/firehose/blob/master/app/models/custom_rules/rule_sales_order.rb | Github Open Source | Open Source | MIT | 2,014 | firehose | optemo | Ruby | Code | 92 | 329 | class RuleSalesOrder < Customization
@feature_name = 'salesOrder'
@product_type = ['ADepartments']
@needed_features = []
@rule_type = 'Continuous'
def RuleSalesOrder.group_computation( pids )
#max_rank = ContSpec.maximum(:value, conditions: ['product_id IN (?) and name = ?', pids, 'sales_rank'])
sa... | 20,028 |
https://github.com/messersc/bioconda-recipes/blob/master/recipes/involucro/build.sh | Github Open Source | Open Source | MIT | null | bioconda-recipes | messersc | Shell | Code | 10 | 44 | #!/bin/bash
mkdir -p $PREFIX/bin
cp ./involucr* $PREFIX/bin/involucro
chmod +x $PREFIX/bin/involucro
| 22,126 |
https://github.com/yuphin/Vex/blob/master/tests/well-formed/prints.v | Github Open Source | Open Source | MIT | 2,020 | Vex | yuphin | null | Spoken | 16 | 65 | int func main(main_arg:real)
var var1 : real;
var var2 : int[4];
read var1,var2[1],var2[2];
print var1,var2[1],var2[2];
endfunc | 11,676 |
https://github.com/neontribe/ARCVService/blob/master/app/Specifications/IsVerified.php | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-public-domain | 2,023 | ARCVService | neontribe | PHP | Code | 37 | 111 | <?php
namespace App\Specifications;
use App\Child;
use Chalcedonyt\Specification\AbstractSpecification;
class IsVerified extends AbstractSpecification
{
/**
* Returns the child's verified state
*
* @param Child $candidate
* @return Boolean
*/
public function isSatisfiedBy(Child $can... | 36,905 |
https://github.com/sewerus/diethub/blob/master/app/controllers/products_controller.rb | Github Open Source | Open Source | MIT | 2,021 | diethub | sewerus | Ruby | Code | 204 | 766 | class ProductsController < ApplicationController
before_action :admin_and_dieticians_only
before_action :set_product, only: [:show, :edit, :update, :destroy]
def index
products = Product.all
filterrific_products(products)
respond_to do |format|
format.html
format.js
end
rescue Acti... | 29,190 |
https://github.com/1and1/Troilus/blob/master/troilus-core/src/test/java/net/oneandone/troilus/api/PartialReadTest.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | Troilus | 1and1 | Java | Code | 309 | 1,487 | /*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6,368 |
https://github.com/guialmorim/Musicfy/blob/master/client-app/src/components/album.jsx | Github Open Source | Open Source | Apache-2.0 | null | Musicfy | guialmorim | null | Spoken | 209 | 687 | import React, { useEffect, useState } from "react";
import styled from 'styled-components';
import Profile from "./profile";
import axios from 'axios';
import List from "./list";
const ProfileContainer = styled.div`
max-width: 1010px;
width: 100%;
margin: 20px auto;
`;
export default function Album(props) {
... | 38,637 |
https://github.com/Remco123/CactusOS/blob/master/lib/include/gui/events.h | Github Open Source | Open Source | MIT | 2,022 | CactusOS | Remco123 | C | Code | 492 | 1,531 | #ifndef __LIBCACTUSOS__GUI__EVENTS_H
#define __LIBCACTUSOS__GUI__EVENTS_H
#include <list.h>
#include <gui/widgets/control.h>
#include <shared.h>
namespace LIBCactusOS
{
// A class that defines a callback function
template<typename ArgumentType>
class IEventCallback
{
public:
virtual void ... | 54,183 |
https://github.com/natanbc/lavadsp/blob/master/src/main/java/com/github/natanbc/lavadsp/tremolo/TremoloPcmAudioFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | lavadsp | natanbc | Java | Code | 477 | 1,120 | /*
* Copyright 2018 natanbc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 56,539 |
https://github.com/abersnaze/astyanax/blob/master/astyanax-contrib/src/main/java/com/netflix/astyanax/contrib/dualwrites/FailedWritesLogger.java | Github Open Source | Open Source | Apache-2.0 | null | astyanax | abersnaze | Java | Code | 59 | 140 | package com.netflix.astyanax.contrib.dualwrites;
/**
* Interface for dealing with failed writes.
*
* @author poberai
*
*/
public interface FailedWritesLogger {
/**
* Init resources (if any required)
*/
public void init();
/**
* Log metadata for a failed write
* @param fail... | 18,608 |
https://github.com/Esophose/Krypton/blob/master/api/src/main/kotlin/org/kryptonmc/krypton/api/world/scoreboard/Team.kt | Github Open Source | Open Source | MIT | 2,021 | Krypton | Esophose | Kotlin | Code | 273 | 748 | package org.kryptonmc.krypton.api.world.scoreboard
import net.kyori.adventure.text.Component
import org.kryptonmc.krypton.api.entity.entities.Player
/**
* Represents a [Scoreboard] team.
*
* Teams are groups of entities that have a name, prefix,
* suffix, colour, and a specific set of rules they follow.
*
* @au... | 39,456 |
https://github.com/ncnnnnn/kys-cpp-prtest/blob/master/src/TextBox.h | Github Open Source | Open Source | FTL | 2,022 | kys-cpp-prtest | ncnnnnn | C | Code | 184 | 560 | #pragma once
#include "RunNode.h"
class TextBox : public RunNode
{
public:
TextBox() {}
virtual ~TextBox() {}
protected:
std::string text_ = "";
int font_size_ = 20;
int text_x_ = 0, text_y_ = 0;
BP_Color color_normal_ = { 32, 32, 32, 255 };
BP_Color color_pass_ = { 255, 255, 255, 255 };
... | 42,230 |
https://github.com/quandoan21-legion/clinic/blob/master/app/patient_model.php | Github Open Source | Open Source | MIT | null | clinic | quandoan21-legion | PHP | Code | 262 | 992 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use DB;
class patient_model extends Model
{
public function process_login_patient(){
$array = DB::select('select * from patients where email=? and password = ?',[
$this->email,
$this->password
]);
// dd... | 7,160 |
https://github.com/frags51/haskell-4/blob/master/src/Plugins/Shout.hs | Github Open Source | Open Source | BSD-3-Clause | null | haskell-4 | frags51 | Haskell | Code | 138 | 307 | {-|
- Module : Plugins.BENDER
- Description : Bender doesn't like shouting
- Copyright : (c) Mayank Hooda, 2018
- License : WTFPL
- Maintainer : gelblow@gmail.com
- Stability : experimental
- Portability : POSIX/Windows/MacOS
- Respond at topmost priority if you hear a shot
- -}
module Plugins.S... | 54,772 |
https://github.com/bobtherobot/wrist/blob/master/.npmignore | Github Open Source | Open Source | MIT | 2,017 | wrist | bobtherobot | Ignore List | Code | 7 | 33 | .DS_Store
.travis.yml
.gitignore
coverage/*
examples/*
node_modules/*
test/* | 39,980 |
https://github.com/Blasanka/indicator/blob/master/example/lib/main.dart | Github Open Source | Open Source | MIT | 2,020 | indicator | Blasanka | Dart | Code | 216 | 810 | import 'package:flutter/material.dart';
import 'package:horizontal_indicator/horizontal_indicator.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primary... | 8,674 |
https://github.com/pgrosslicht/project-euler-haskell/blob/master/src/ProjectEuler/Problem012.hs | Github Open Source | Open Source | BSD-3-Clause | null | project-euler-haskell | pgrosslicht | Haskell | Code | 155 | 309 | module ProjectEuler.Problem012 (solution012) where
import Util
import Data.List
--The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms would be:
--1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
--Let us list th... | 45,815 |
https://github.com/PrestaShop/community-theme-16/blob/master/themes/community-theme-16/modules/blocksocial/blocksocial.tpl | Github Open Source | Open Source | AFL-3.0 | 2,017 | community-theme-16 | PrestaShop | null | Spoken | 122 | 719 | <section id="blocksocial" class="col-xs-12">
<span class="h4">{l s='Follow us' mod='blocksocial'}</span>
{if !empty($facebook_url)}
<a href="{$facebook_url|escape:html:'UTF-8'}" title="{l s='Facebook' mod='blocksocial'}">
<i class="icon icon-facebook icon-2x icon-fw"></i>
</a>
{/if}
{if !empty($... | 42,140 |
https://github.com/kayleyang/jim-framework/blob/master/jim-framework-rpc/src/main/java/com/jim/framework/rpc/filter/ActiveFilter.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jim-framework | kayleyang | Java | Code | 32 | 137 | package com.jim.framework.rpc.filter;
import org.springframework.stereotype.Component;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Comp... | 27,975 |
https://github.com/asaladino/smart-form-helper/blob/master/Smart Form Helper/MainForm.Designer.cs | Github Open Source | Open Source | MIT | null | smart-form-helper | asaladino | C# | Code | 1,515 | 7,634 | namespace Smart_Form_Helper
{
partial class MainForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
//... | 55,682 |
https://github.com/gregvarghese/cipi/blob/master/resources/views/settings.blade.php | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,022 | cipi | gregvarghese | Blade | Code | 605 | 2,890 | @extends('template')
@section('title')
{{ __('cipi.titles.settings') }}
@endsection
@section('content')
<div class="row">
<div class="col-xl-6">
<div class="card mb-4">
<div class="card-header">
<i class="fas fa-user fs-fw mr-1"></i>
{{ __('cipi.change_us... | 22,416 |
https://github.com/vidijs/vidijs-ui/blob/master/src/components/storage/StorageListCard.js | Github Open Source | Open Source | MIT | 2,019 | vidijs-ui | vidijs | JavaScript | Code | 36 | 103 | import React from 'react';
import StorageListStorageCard from './StorageListStorageCard';
export default function StorageListCard({ storageListDocument }) {
const { storage: storageList = [] } = storageListDocument;
return (
storageList.map((storageDocument) => (
<StorageListStorageCard
key={sto... | 41,008 |
https://github.com/Who8MyLunch/Eat_Words/blob/master/ideas/scrabblebabel/game.py | Github Open Source | Open Source | MIT | null | Eat_Words | Who8MyLunch | Python | Code | 81 | 198 | from bag import *
from board import *
class GameError (Exception):
pass
class Game:
def __init__(self):
self.bag = Bag()
self.board = Board()
def __repr__(self):
# TODO: Output something a little more interesting.
return repr(self.board)
def draw(self, letters):
# TODO: Make this transac... | 28,469 |
https://github.com/tobocop/howhardwoulditbe/blob/master/gems/plink_admin/app/controllers/plink_admin/tango_controller.rb | Github Open Source | Open Source | MIT | null | howhardwoulditbe | tobocop | Ruby | Code | 41 | 181 | module PlinkAdmin
class TangoController < ApplicationController
def kill_switch
@tango_offline = Plink::RewardRecord.where(isTangoRedemption: true, isActive: true).
any? {|record| !record[:is_redeemable]}
end
def toggle_redeemable
method = params[:tango_redemptions] == 'activate' ? :r... | 36,101 |
https://github.com/lilmike/mumbledj/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | mumbledj | lilmike | Makefile | Code | 140 | 477 | dirs = ./interfaces/... ./commands/... ./services/... ./bot/... .
all: mumbledj
mumbledj: ## Default action. Builds MumbleDJ.
@env GO15VENDOREXPERIMENT="1" go build .
.PHONY: test
test: ## Runs unit tests for MumbleDJ.
@env GO15VENDOREXPERIMENT="1" go test $(dirs)
.PHONY: coverage
coverage: ## Runs coverage tests... | 7,438 |
https://github.com/Joshuaalbert/IonoTomo/blob/master/src/ionotomo/tests/test_gaussian_process.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | IonoTomo | Joshuaalbert | Python | Code | 180 | 953 | from ionotomo.utils.gaussian_process import *
import numpy as np
def test_level2_solve():
np.random.seed(1234)
K1 = SquaredExponential(2,l=0.29,sigma=3.7)
#K1.fixed = 'l'
#K1.fixed = 'sigma'
K2 = Diagonal(2,sigma=1e-5)
K2.fixed = 'sigma'
K3 = RationalQuadratic(2,sigma=1.)
K4 = MaternPIs... | 22,274 |
https://github.com/svn2github/htmlunit/blob/master/tags/HtmlUnit-2.0/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/XSLTProcessorTest.java | Github Open Source | Open Source | BSD-2-Clause | 2,015 | htmlunit | svn2github | Java | Code | 722 | 2,107 | /*
* Copyright (c) 2002-2008 Gargoyle Software 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this lis... | 50,569 |
https://github.com/DFE-Digital/apply-for-teacher-training/blob/master/spec/presenters/vendor_api/v1.1/interview_presenter_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | apply-for-teacher-training | DFE-Digital | Ruby | Code | 76 | 351 | require 'rails_helper'
RSpec.describe VendorAPI::InterviewPresenter do
subject(:interview_json) { described_class.new(version, interview).as_json }
let(:version) { '1.1' }
let(:expected_json) do
{
id: interview.id.to_s,
provider_code: Provider.find(interview.provider_id).code,
date_and_ti... | 308 |
https://github.com/justinbarry/augur-copy/blob/master/test/assertions/pagination.js | Github Open Source | Open Source | BSD-3-Clause, AAL | 2,018 | augur-copy | justinbarry | JavaScript | Code | 120 | 638 | import { assert } from 'chai'
export default function (pagination) {
assert.isDefined(pagination, `pagination isn't defined`)
assert.isObject(pagination, `pagination isn't an object`)
assert.isDefined(pagination.numPerPage, `pagination.numPerPage isn't defined`)
assert.isNumber(pagination.numPerPage, `paginat... | 51,432 |
https://github.com/h-hys/new_rk2108/blob/master/test4_serial.si4project/Backup/userial_rk(738).c | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,021 | new_rk2108 | h-hys | C | Code | 3,774 | 12,873 | /*
* $ Copyright Broadcom Corporation $
*/
/*******************************************************************************
** Name: userial_bby.c
**
** Description:
**
** This file contains the universal driver wrapper for the BTE-QC serial
** drivers
**
** Copyright (c) 2001-2004, WIDCOMM Inc., A... | 47,950 |
https://github.com/riskiawp/SI4206-Kelompok8-Investila/blob/master/resources/views/admin/input-lot.blade.php | Github Open Source | Open Source | MIT | null | SI4206-Kelompok8-Investila | riskiawp | PHP | Code | 95 | 492 | @extends('layouts.ad-template')
@section('content')
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>Input Lot</h1>
</div>
<div class="section-body">
<h2 class="section-title">Input Lot</h2>
... | 15,899 |
https://github.com/cmkilger/sequelpro/blob/master/Scripts/build-version.pl | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | sequelpro | cmkilger | Perl | Code | 480 | 1,241 | #! /usr/bin/perl
#
# build-version.pl
# sequel-pro
#
# Created by Stuart Connolly (stuconnolly.com)
# Copyright (c) 2009 Stuart Connolly. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software")... | 49,499 |
https://github.com/Almazatun/tt-Sportrecs-client/blob/master/src/api/api.ts | Github Open Source | Open Source | MIT | null | tt-Sportrecs-client | Almazatun | TypeScript | Code | 115 | 328 | import {gql} from 'apollo-boost';
export const GET_USERS = gql`
query users(
$limit: Int! = 10
$skip: Int! = 0
) {
users (limit: $limit, skip: $skip) {
_id
email
name
}
}
`
export const GET_USER = gql`
query user(
$id: ID!
... | 54,218 |
https://github.com/nunonelas/AmBinaryEditor/blob/master/ameditor/AmBinaryEditor.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | AmBinaryEditor | nunonelas | C | Code | 73 | 276 | #ifndef INCLUDE_AMBINARYEDITOR_H
#define INCLUDE_AMBINARYEDITOR_H
#include "AxmlParser.h"
#include "options.h"
#include <stdlib.h>
#endif
enum {
ATTR_NULL = 0,
ATTR_REFERENCE = 1,
ATTR_ATTRIBUTE = 2,
ATTR_STRING = 3,
ATTR_FLOAT = 4,
ATTR_DIMENSION = 5,
ATTR_FRACTION = 6,
ATTR_FIRSTI... | 7,230 |
https://github.com/besport/aws/blob/master/src/creds.ml | Github Open Source | Open Source | MIT, BSD-2-Clause | 2,016 | aws | besport | OCaml | Code | 13 | 34 | type t = {
aws_access_key_id : string ;
aws_secret_access_key : string ;
}
| 30,144 |
https://github.com/mrbertadams/church/blob/master/src/Corncakes/MemberBundle/Entity/ChurchPerson.php | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,016 | church | mrbertadams | PHP | Code | 198 | 718 | <?php
namespace Corncakes\MemberBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ChurchPerson
*
* @ORM\Table(name="church_persons")
* @ORM\Entity(repositoryClass="Corncakes\MemberBundle\Repository\ChurchPersonRepository")
*/
class ChurchPerson
{
/**
* @var int
*
* @ORM\Column(name="id", ... | 5,032 |
https://github.com/aparo/opendistro-client-generator/blob/master/specification/specs/behaviors.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | opendistro-client-generator | aparo | TypeScript | Code | 526 | 765 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 47,287 |
https://github.com/Groostav/CMPT880-term-project/blob/master/intruder/test/tests/test5/Library.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | CMPT880-term-project | Groostav | Java | Code | 36 | 84 | package test5;
public class Library {
MyField f;
public Library() {
f = new MyField();
}
public void foo(){
f.bar();
}
}
class MyField {
int field = 10;
public synchronized void bar(){
field++;
}
}
| 8,732 |
https://github.com/maxeler/slicplusplus/blob/master/include/slic++/Engine.hpp | Github Open Source | Open Source | BSD-2-Clause | 2,015 | slicplusplus | maxeler | C++ | Code | 311 | 1,320 | #ifndef SLICPLUSPLUS_ENGINE_HPP_
#define SLICPLUSPLUS_ENGINE_HPP_
#include "Actions.hpp"
#include "FramedStream.hpp"
#include "LLStream.hpp"
#include "NetConnection.hpp"
#include "Run.hpp"
#include "TcpSocket.hpp"
#include "UdpSocket.hpp"
SLIC_BEGIN_NAMESPACE
class Engine {
const MaxFile& mf;
std::unique_ptr<max_e... | 28,670 |
https://github.com/keera-studios/hsQt/blob/master/Qtc/include/gui/qtc_hs_QPixmap_h.h | Github Open Source | Open Source | BSD-2-Clause | 2,021 | hsQt | keera-studios | C | Code | 51 | 209 | /////////////////////////////////////////////////////////////////////////////
//
// File : qtc_hs_QPixmap_h.h
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:02:41
//
// Warning : this file is machine genera... | 27,450 |
https://github.com/ProteoWizard/pwiz/blob/master/pwiz_tools/Skyline/Executables/BuildMethod/BuildAnalystFullScanMethod/Test/BuildTargetedMSMSMethodTest.cs | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0 | 2,023 | pwiz | ProteoWizard | C# | Code | 575 | 2,227 | /*
* Original author: Vagisha Sharma <vsharma .at. u.washington.edu>,
* MacCoss Lab, Department of Genome Sciences, UW
*
* Copyright 2011 University of Washington - Seattle, WA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... | 36,872 |
https://github.com/miklosgergely/cloudbreak/blob/master/cloud-aws/src/main/java/com/sequenceiq/cloudbreak/cloud/aws/AwsClient.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | miklosgergely | Java | Code | 491 | 2,419 | package com.sequenceiq.cloudbreak.cloud.aws;
import static org.apache.commons.lang3.StringUtils.isEmpty;
import static org.apache.commons.lang3.StringUtils.isNotEmpty;
import java.io.IOException;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereoty... | 24,352 |
https://github.com/masaccio/wiser-schedule-importer/blob/master/scheduler.py | Github Open Source | Open Source | MIT | null | wiser-schedule-importer | masaccio | Python | Code | 205 | 878 | from wiserHeatingAPI import wiserHub
import logging
import time
import configparser
import argparse
import yaml
def write_yaml(schedules, yaml_filename):
with open(yaml_filename, 'w') as f:
yaml.dump(schedules, f, default_flow_style=False)
def read_yaml(yaml_filename):
with open(yaml_filename, 'r') as... | 46,712 |
https://github.com/FrauBSD/condy/blob/master/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,020 | condy | FrauBSD | Makefile | Code | 52 | 160 | ############################################################ IDENT(1)
#
# $Title: Makefile for installing nsadmin on non-GNU systems $
# $Copyright: 2019 Devin Teske. All rights reserved. $
# $FrauBSD: condy/Makefile 2020-01-25 20:48:56 -0800 freebsdfrau $
#
############################################################ ... | 36,024 |
https://github.com/sackrin/schemaly/blob/master/packages/async/src/Model/Types/ModelArgs.ts | Github Open Source | Open Source | MIT | 2,018 | schemaly | sackrin | TypeScript | Code | 38 | 102 | import { Blueprints } from "../../Blueprint/Types/Blueprints";
import { RolesType, ScopesType } from "../../Policy/Types";
import { Options } from '../../Common';
interface ModelArgs {
machine: string;
label?: string;
blueprints: Blueprints;
roles: RolesType;
scope: ScopesType;
options?: Options;
}
export... | 7,959 |
https://github.com/sebastian-palma/rubocop/blob/master/spec/rubocop/cop/metrics/utils/abc_size_calculator_spec.rb | Github Open Source | Open Source | MIT | 2,020 | rubocop | sebastian-palma | Ruby | Code | 355 | 799 | # frozen_string_literal: true
RSpec.describe RuboCop::Cop::Metrics::Utils::AbcSizeCalculator do
describe '#calculate' do
subject(:vector) { described_class.calculate(node).last }
let(:node) { parse_source(source).ast }
context 'multiple calls with return' do
let(:source) { <<~RUBY }
def m... | 14,146 |
https://github.com/ele7enxxh/apk-medit/blob/master/pkg/converter/converter.go | Github Open Source | Open Source | MIT | 2,021 | apk-medit | ele7enxxh | Go | Code | 130 | 395 | package converter
import (
"encoding/binary"
"strconv"
)
// UTF8 string
func StringToBytes(arg string) ([]byte, error) {
rs := []rune(arg)
return []byte(string(rs)), nil
}
func WordToBytes(arg string) ([]byte, error) {
searchBytes := make([]byte, 2)
targetVal, err := strconv.ParseUint(arg, 10, 16)
if err != n... | 34,234 |
https://github.com/tehme/outlaw162/blob/master/src/gui/luaimage.cpp | Github Open Source | Open Source | MIT | 2,021 | outlaw162 | tehme | C++ | Code | 654 | 2,396 | #include "luaimage.hpp"
namespace gui {
namespace luaimage {
SDL_Renderer *g_renderer; // global renderer to use
// Utility functions
SDL_Texture* CheckImage(lua_State* _state, int _index)
{
return static_cast<Image*>(luaL_checkudata(_state, _index, IMAGE_METATABLE_NAME))->m_pData;
}
FontData CheckRenderFontDa... | 45,616 |
https://github.com/alphagov/content-tagger/blob/master/spec/services/taxonomy/bulk_publish_taxon_spec.rb | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,023 | content-tagger | alphagov | Ruby | Code | 53 | 260 | RSpec.describe Taxonomy::BulkPublishTaxon do
let(:root_taxon_id) { 123 }
before do
item = Taxonomy::LinkedContentItem.new(title: "item1", base_path: "/item1", content_id: "id1")
item << Taxonomy::LinkedContentItem.new(title: "item2", base_path: "/item2", content_id: "id2")
allow(Taxonomy::LinkedConten... | 9,398 |
https://github.com/mcodegeeks/OpenKODE-Framework/blob/master/01_Develop/libXMFFmpeg/Source/libavcodec/smacker_c.cpp | Github Open Source | Open Source | MIT | 2,018 | OpenKODE-Framework | mcodegeeks | C++ | Code | 2,546 | 9,117 | /*
* Smacker decoder
* Copyright (c) 2006 Konstantin Shishkov
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or... | 44,414 |
https://github.com/jscparker/math_packages/blob/master/arbitrary/e_deriv_tst_1.adb | Github Open Source | Open Source | ISC, MIT | 2,022 | math_packages | jscparker | Ada | Code | 2,348 | 6,529 |
with e_Derivs;
with Ada.Numerics.Generic_Elementary_Functions;
with Extended_Real;
with Extended_Real.Elementary_Functions;
with Extended_Real.IO;
with Text_IO; use Text_IO;
procedure e_deriv_tst_1 is
type Real_8 is digits 15;
package mth is new Ada.Numerics.Generic_Elementary_Functions (Real_8);
use mth;... | 5,572 |
https://github.com/LBHackney-IT/document-evidence-store-frontend/blob/master/src/components/ConfirmRequestDialog.tsx | Github Open Source | Open Source | MIT | 2,020 | document-evidence-store-frontend | LBHackney-IT | TypeScript | Code | 209 | 744 | import React, { FunctionComponent, useState } from 'react';
import Dialog from './Dialog';
import styles from '../styles/Dialog.module.scss';
import { EvidenceRequestRequest } from 'src/gateways/internal-api';
import { DocumentType } from 'src/domain/document-type';
const humanisedMethods: Record<string, string> = {
... | 11,049 |
https://github.com/vicmakau/WaterBilling/blob/master/h2obilling.sql | Github Open Source | Open Source | MIT | 2,019 | WaterBilling | vicmakau | SQL | Code | 983 | 3,983 | -- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 21, 2019 at 10:16 AM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | 15,672 |
https://github.com/yigitkurtcu/QHERE-frontend/blob/master/qhere-frontend/src/reducers/student.js | Github Open Source | Open Source | MIT | 2,019 | QHERE-frontend | yigitkurtcu | JavaScript | Code | 138 | 861 | import {
CLASSES_STUDENT_PENDING,
CLASSES_STUDENT_FULFILLED,
JOIN_CLASS_PENDING,
JOIN_CLASS_FULFILLED,
GET_STUDENT_CLASSES_PENDING,
GET_STUDENT_CLASSES_FULFILLED,
GET_REQUEST_CLASSES_PENDING,
GET_REQUEST_CLASSES_FULFILLED,
GET_DISCONTINUITY_PENDING,
GET_DISCONTINUITY_FULFILLED,
... | 1,828 |
https://github.com/bmish/vets-website/blob/master/src/platform/site-wide/announcements/containers/Announcement.jsx | Github Open Source | Open Source | CC0-1.0 | 2,022 | vets-website | bmish | null | Spoken | 208 | 794 | // Node modules.
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
// Relative imports.
import {
isAuthenticatedWithSSOe,
ssoeEbenefitsLinks,
} from 'platform/user/authentication/selectors';
import { isLoggedIn, selectProfile } from '../../../user/s... | 15,840 |
https://github.com/k4rtik/Campus-Radio/blob/master/code/cr/functions.php | Github Open Source | Open Source | MIT | null | Campus-Radio | k4rtik | PHP | Code | 15 | 102 | <?php
include_once('cr.php');
add_to_include_path(
'/cr/functions'
, '/cr/functions/basic'
, '/cr/functions/html'
, '/cr/functions/forms'
);
require_once('cr/functions/basic.php');
require_once('cr/functions/html.php');
require_once('cr/functions/forms.php');
?>
| 49,718 |
https://github.com/OlivierAlbertini/workit/blob/master/packages/workit-types/src/camundaBpm/processDefinition.ts | Github Open Source | Open Source | MIT | 2,022 | workit | OlivierAlbertini | TypeScript | Code | 61 | 136 | /*
* Copyright (c) 2021 Ville de Montreal. All rights reserved.
* Licensed under the MIT license.
* See LICENSE file in the project root for full license information.
*/
export interface IProcessDefinition {
id: string;
key: string;
category: string;
description?: string;
name: string;
version: number;... | 36,073 |
https://github.com/kristiankeep/decibel-framework/blob/master/_test/model/index/DPrimaryIndexTest.php | Github Open Source | Open Source | MIT | 2,016 | decibel-framework | kristiankeep | PHP | Code | 111 | 492 | <?php
namespace tests\app\decibel\model\index;
use app\decibel\model\field\DTextField;
use app\decibel\model\index\DPrimaryIndex;
use app\decibel\test\DTestCase;
/**
* Test class for DPrimaryIndex.
* Generated by Decibel on 2012-04-12 at 09:08:49.
*/
class DPrimaryIndexTest extends DTestCase
{
/**
* @cove... | 15,833 |
https://github.com/n0tic/SatsumaMaster/blob/master/SatsumaMaster/SixGears.cs | Github Open Source | Open Source | MIT | 2,021 | SatsumaMaster | n0tic | C# | Code | 112 | 321 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using MSCLoader;
namespace SatsumaMaster
{
public class SixGears
{
SatsumaMaster modParent;
//Six Gears
public Drivetrain.Transmissions lastDrivetype;
public int driveType ... | 44,089 |
https://github.com/hajimeni/play2-stub/blob/master/src/test/resources/views/template-only.hbs | Github Open Source | Open Source | Apache-2.0 | 2,015 | play2-stub | hajimeni | null | Spoken | 2 | 9 | Hello {{title}}{{who}}! | 40,234 |
https://github.com/ProcJimi/curriculum/blob/master/Week12/SAS_Codes/Ex4_Matrix_Elwise_Multi.sas | Github Open Source | Open Source | MIT | null | curriculum | ProcJimi | null | Spoken | 50 | 131 | *Ex4_Matrix_Elwise_Multi.sas;
options nocenter nodate nonumber;
proc iml;
M1 = {1 2 3,4 5 6, 7 8 9} ; *3 X 3 matrix;
M2 = {7 8 9, 4 5 6, 1 2 3} ; *3 X 3 matrix ;
M1_M2_E_Times= M1#M2; *Elemetwise multplication;
print M1 M2 ;
print M1_M2_E_Times;
quit;
| 10,867 |
https://github.com/open-goal/jak-project/blob/master/goal_src/jak2/dgos/und.gd | Github Open Source | Open Source | ISC | 2,023 | jak-project | open-goal | GDScript | Code | 23 | 278 | ("UND.DGO"
("tpage-3045.go"
"tpage-3048.go"
"tpage-3049.go"
"tpage-3047.go"
"tpage-3276.go"
"daxter-highres-ag.go"
"jak-highres-ag.go"
"sig-highres-ag.go"
"centipede-fma-ag.go"
"under-break-bridge-b-ag.go"
"under-break-bridge-ag.go"
"com-airlock-inner-ag.go"
"under-break-door-ag.go"
"grunt-fm... | 15,727 |
https://github.com/vgauri1797/Eclipse/blob/master/WebAppBuilderForArcGIS/client/stemapp3d/themes/TabTheme/widgets/Footer/nls/fi/strings.js | Github Open Source | Open Source | Apache-2.0 | null | Eclipse | vgauri1797 | JavaScript | Code | 8 | 28 | define({
"appCopyright": "All rights reserved",
"_widgetLabel": "Alatunniste"
}); | 31,533 |
https://github.com/tidemmo/clist/blob/master/test/benchmark-clist.cc | Github Open Source | Open Source | MIT | 2,019 | clist | tidemmo | C++ | Code | 808 | 2,989 | // #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <vector>
#include "benchmark/benchmark.h"
#define _CLIST_BLOCK_SIZE 512
#define CLIST_BLOCK_SIZE _CLIST_BLOCK_SIZE
#include "clist.h"
#define CLIST_BLOCK_SIZE _CLIST_BLOCK_SIZE
#define BM(name, body) static void BM_##name(benchmark::State& state) { ... | 56,353 |
https://github.com/tmollov/SoftUni-Software-Engineering/blob/master/Programmin Fundamentals/Homeworks and Labs/Strings-Exercises/05.MagicExchangeableWords/MagicExchangeableWords.cs | Github Open Source | Open Source | MIT | 2,019 | SoftUni-Software-Engineering | tmollov | C# | Code | 142 | 461 | using System;
using System.Collections.Generic;
using System.Linq;
public class MagicExchangeableWords
{
public static void Main()
{
var inputLine = Console.ReadLine().Split().ToArray();
var firstStr = inputLine[0];
var secondStr = inputLine[1];
var letters = new Dictionary<ch... | 35,084 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.