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/HarrisonKeeling/amazon-kinesis-video-streams-webrtc-sdk-js-with-amazon-cognito/blob/master/node_modules/@jest/reporters/build/ts3.4/default_reporter.d.ts | Github Open Source | Open Source | MIT-0 | 2,022 | amazon-kinesis-video-streams-webrtc-sdk-js-with-amazon-cognito | HarrisonKeeling | TypeScript | Code | 133 | 388 | /**
* 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 { Config } from '@jest/types';
import { AggregatedResult, TestResult } from '@jest/test-result';
import... | 4,279 |
https://github.com/aamshukov/miscellaneous/blob/master/c++/Ail/Timer.cpp | Github Open Source | Open Source | MIT | null | miscellaneous | aamshukov | C++ | Code | 220 | 656 | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 24,410 |
https://github.com/macaroons-io/macaroons-io.github.io/blob/master/jmacaroons2js/src/main/resources/com/googlecode/cryptogwt/provider/BlockCipher.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | macaroons-io.github.io | macaroons-io | Java | Code | 755 | 2,098 | package com.googlecode.cryptogwt.provider;
import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.A... | 46,070 |
https://github.com/corex/lmodel/blob/master/tests/Helpers/Status.php | Github Open Source | Open Source | MIT | 2,021 | lmodel | corex | PHP | Code | 104 | 265 | <?php
namespace App\Models\Test;
use CoRex\Laravel\Model\Model;
/**
* @property integer $id [TYPE=INTEGER, NULLABLE=0, DEFAULT=""]
* @property string $name [TYPE=STRING, NULLABLE=0, DEFAULT=""]
* @property string $value [TYPE=STRING, NULLABLE=0, DEFAULT=""]
*/
class Status extends Model
{
// Constants.
c... | 27,123 |
https://github.com/jwne/Command/blob/master/src/main/java/de/cubeisland/engine/command/CommandManager.java | Github Open Source | Open Source | MIT | 2,014 | Command | jwne | Java | Code | 328 | 702 | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 Anselm Brehme, Phillip Schichtel
*
* 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 ... | 14,075 |
https://github.com/ninjacoder88/software-fundamentals/blob/master/07-AbstractExtensionEvents/02-ExtensionMethods/ExtensionMethods/Program.cs | Github Open Source | Open Source | MIT | 2,021 | software-fundamentals | ninjacoder88 | C# | Code | 52 | 195 | using System;
using System.Collections.Generic;
using System.Linq;
namespace ExtensionMethods
{
public class Program
{
public static void Main(string[] args)
{
// Repository r = new Repository();
// var entity = r.Load();
// MfgItemModel mfgItemModel = enti... | 53,215 |
https://github.com/phlummox/fifteen-puzzle/blob/master/astar.h | Github Open Source | Open Source | Unlicense | null | fifteen-puzzle | phlummox | C | Code | 1,492 | 3,292 |
#ifndef ASTAR_H
#define ASTAR_H
// a-star implemenation
// based on tute at http://web.mit.edu/eranki/www/tutorials/search/
#include <queue>
#include <functional>
#include <stdexcept>
#include <set>
#include <cassert>
#include <unordered_set>
#ifdef DEBUG
#include <iostream>
#endif
namespace astar {
template<t... | 35,682 |
https://github.com/BTLzdravtech/active_admin_paranoia/blob/master/lib/active_admin_paranoia/authorization.rb | Github Open Source | Open Source | MIT | 2,023 | active_admin_paranoia | BTLzdravtech | Ruby | Code | 24 | 68 | module ActiveAdminParanoia
# Default Authorization permission for ActiveAdminParanoia
module Authorization
ARCHIVE = :do_archive
RESTORE = :restore
PERMANENT_DELETE = :permanent_delete
end
Auth = Authorization
end
| 16,233 |
https://github.com/pioneers/topgear/blob/master/python/forseti2/piemos_cmd.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | topgear | pioneers | Java | Code | 234 | 897 | /* LCM type definition class file
* This file was automatically generated by lcm-gen
* DO NOT MODIFY BY HAND!!!!
*/
package forseti2;
import java.io.*;
import java.util.*;
import lcm.lcm.*;
public final class piemos_cmd implements lcm.lcm.LCMEncodable
{
public forseti2.header header;
public boolean auto... | 31,487 |
https://github.com/jeneser/jianshu/blob/master/src/app/theme/scss/layout/_index.scss | Github Open Source | Open Source | MIT | 2,021 | jianshu | jeneser | SCSS | Code | 8 | 28 | // Layout Rules
// @source http://smacss.com/book/type-layout
// --------------------------------------------------
| 43,989 |
https://github.com/dhaase/jsdsi/blob/master/src/main/java/jsdsi/sexp/SexpException.java | Github Open Source | Open Source | LicenseRef-scancode-other-permissive | 2,012 | jsdsi | dhaase | Java | Code | 193 | 328 | /*
* Copyright 2002 Massachusetts Institute of Technology
*
* Permission to use, copy, modify, and distribute this program for any
* purpose and without fee is hereby granted, provided that this
* copyright and permission notice appear on all copies and supporting
* documentation, the name of M.I.T. not be use... | 23,925 |
https://github.com/NightWing1998/eui/blob/master/src/components/list_group/pinnable_list_group/index.ts | Github Open Source | Open Source | Apache-2.0 | null | eui | NightWing1998 | TypeScript | Code | 8 | 49 | export {
EuiPinnableListGroup,
EuiPinnableListGroupProps,
EuiPinnableListGroupItemProps,
} from './pinnable_list_group';
| 3,968 |
https://github.com/VirgilSecurity/virgil-crypto-c/blob/master/tests/foundation/test_simple_swu.c | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, LicenseRef-scancode-warranty-disclaimer, BSD-2-Clause | 2,023 | virgil-crypto-c | VirgilSecurity | C | Code | 578 | 3,072 | // Copyright (C) 2015-2022 Virgil Security, 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
// ... | 26,226 |
https://github.com/guessty/firepress/blob/master/packages/ui/src/components/Form/Field/Field.scss | Github Open Source | Open Source | MIT | 2,021 | firepress | guessty | SCSS | Code | 391 | 1,644 | $module: 'FormField';
$transition: all 150ms ease-out;
.#{$module} {
display: flex;
flex-direction: column;
flex-wrap: wrap;
margin: -0.25rem;
z-index: 1;
flex-grow: 1;
&__container {
padding: 0.25rem;
}
&__label {
display: block;
cursor: pointer;
}
&__input {
position: relativ... | 11,210 |
https://github.com/rorydpayne/angular-cinema/blob/master/app/js/app.js | Github Open Source | Open Source | MIT | 2,014 | angular-cinema | rorydpayne | JavaScript | Code | 36 | 161 | 'use strict';
// Declare app level module which depends on filters, and services
angular.module('myApp', [
'ngRoute',
'myAppFilters',
'myAppControllers'
])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/films', {templateUrl: 'partials/film-list.html', controller: 'FilmListCtrl'});
$rou... | 45,662 |
https://github.com/romi2002/nix-ros-overlay/blob/master/distros/noetic/hector-gazebo-worlds/default.nix | Github Open Source | Open Source | Apache-2.0 | 2,022 | nix-ros-overlay | romi2002 | null | Spoken | 83 | 319 |
# Copyright 2021 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
{ lib, buildRosPackage, fetchurl, catkin, gazebo-ros, hector-gazebo-plugins }:
buildRosPackage {
pname = "ros-noetic-hector-gazebo-worlds";
version = "0.5.4-r1";
src = fetchurl {
url = "https://github.com/tu-d... | 6,980 |
https://github.com/cs-fullstack-2019-spring/sql-aggregates-cw-cgarciapieto/blob/master/Ex5.sql | Github Open Source | Open Source | Apache-2.0 | null | sql-aggregates-cw-cgarciapieto | cs-fullstack-2019-spring | SQL | Code | 5 | 11 | select code avg(value) from warehouses; | 50,897 |
https://github.com/LaurDaniel/crm/blob/master/database/seeders/UsersTableSeeder.php | Github Open Source | Open Source | MIT | null | crm | LaurDaniel | PHP | Code | 137 | 612 | <?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
... | 45,394 |
https://github.com/dyzmapl/BumpTop/blob/master/trunk/win/Source/Includes/QtIncludes/src/3rdparty/webkit/WebCore/loader/CachedImage.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | BumpTop | dyzmapl | C | Code | 411 | 975 | /*
Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
This library is free software; you can redistribute it and/or
mod... | 49,516 |
https://github.com/kkorsakov/EDDI/blob/master/configurationrepository-definition/src/main/java/ai/labs/resources/rest/config/http/IHttpCallsStore.java | Github Open Source | Open Source | Apache-2.0 | null | EDDI | kkorsakov | Java | Code | 22 | 93 | package ai.labs.resources.rest.config.http;
import ai.labs.persistence.IResourceStore;
import ai.labs.resources.rest.config.http.model.HttpCallsConfiguration;
/**
* @author ginccc
*/
public interface IHttpCallsStore extends IResourceStore<HttpCallsConfiguration> {
//class for reflection purposes
}
| 43,812 |
https://github.com/vitek-karas/WarPlusPlus/blob/master/src/GameServer/Skills/AttackDefenseSkills/BulletDefenseSkill/SBulletDefenseSkillType.cpp | Github Open Source | Open Source | MIT | 2,021 | WarPlusPlus | vitek-karas | C++ | Code | 972 | 3,600 | /***********************************************************
*
* Projekt: Strategicka hra
* Cast: Server hry - skilly
* Autor: Tomas Karban
*
* Popis: Bullet Defense skilla -- implementace typu skilly
*
***********************************************************/
#include "StdAfx.h"
#include "SBulle... | 32,985 |
https://github.com/Kasual/GIMPS/blob/master/macosx/Prime95/ManualCommunicationController.h | Github Open Source | Open Source | Intel | null | GIMPS | Kasual | C | Code | 42 | 131 | //
// ManualCommunicationController.h
// Prime95
//
// Created by George Woltman on 4/25/09.
// Copyright 2009 Mersenne Research, Inc. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface ManualCommunicationController : NSWindowController {
int manualContact;
}
@property(readwrite, assign) int manualConta... | 30,478 |
https://github.com/yahoo/NetCHASM/blob/master/tests/externalIO/TestHMControlLinuxSocket2.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | NetCHASM | yahoo | C++ | Code | 642 | 3,951 | // Copyright 2019, Oath Inc.
// Licensed under the terms of the Apache 2.0 license. See LICENSE file in the root of the distribution for licensing details.
#include "TestHMControlLinuxSocket2.h"
#include <sys/stat.h>
#include <fstream>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/un.h>
#include <unistd... | 10,610 |
https://github.com/Alvinosaur/wmrde/blob/master/MATLAB/dynamics/ForwardDynOutput.m | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, BSD-2-Clause | 2,020 | wmrde | Alvinosaur | MATLAB | Code | 84 | 173 |
classdef ForwardDynOutput < handle %handle class to avoid unnecessary copying in function calls
%use copy() if necessary
properties (GetAccess = 'public', SetAccess = 'public')
vc0 %3 x np, velocity of contact points wrt ground at time i
vc %at time i+1
... | 15,986 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/kotlin/idea/tests/testData/inspectionsLocal/replaceAssertBooleanWithAssertEquality/assertTrueEQEQ.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | intellij-community | JetBrains | Kotlin | Code | 19 | 57 | // RUNTIME_WITH_KOTLIN_TEST
import kotlin.test.*
fun foo() {
val a = "a"
val b = "a"
assertTrue<caret>(a == b)
} | 3,172 |
https://github.com/alekseymolodchenko/alekseymolodchenko_microservices/blob/master/monitoring/telegraf/Dockerfile | Github Open Source | Open Source | MIT | 2,019 | alekseymolodchenko_microservices | alekseymolodchenko | Dockerfile | Code | 5 | 26 | FROM telegraf:1.10-alpine
COPY telegraf.conf /etc/telegraf/
| 21,598 |
https://github.com/ozum/devkeeper/blob/master/src/index.ts | Github Open Source | Open Source | MIT | null | devkeeper | ozum | TypeScript | Code | 20 | 43 | export { default as Devkeeper } from "./devkeeper";
export * from "./utils/types";
export { default as PluginTestHelper } from "./utils/plugin-test-helper";
| 10,917 |
https://github.com/mchlrhw/iron-llvm/blob/master/src/bitcode/mod.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | iron-llvm | mchlrhw | Rust | Code | 113 | 358 | // Copyright 2016 Jauhien Piatlicki.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except accord... | 11,317 |
https://github.com/aldotestino/arduino-temp-hu-system/blob/master/server/src/User.ts | Github Open Source | Open Source | MIT | null | arduino-temp-hu-system | aldotestino | TypeScript | Code | 14 | 32 | export default interface User {
name?: string,
surname?: string,
username: string,
password: string
}; | 5,601 |
https://github.com/veeloo/tweet-jobs-api/blob/master/app/Http/Controllers/UserController.php | Github Open Source | Open Source | MIT | 2,021 | tweet-jobs-api | veeloo | PHP | Code | 367 | 1,245 | <?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//... | 19,753 |
https://github.com/RefugesInfo/www.refuges.info/blob/master/forum/language/it/acp/common.php | Github Open Source | Open Source | WTFPL | 2,022 | www.refuges.info | RefugesInfo | PHP | Code | 5,204 | 20,586 | <?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @copyright (c) 2010 phpBB.it
* @copyright (c) 2014 phpBBItalia.net <https://www.phpbbitalia.net>
* @copyright (c) 2020 phpBB-Store.it <https://www.phpbb-store.it>
* @license GNU General Public... | 32,119 |
https://github.com/Pearl-Project/Pearl/blob/master/patches/api/0006-Allow-inventory-resizing.patch | Github Open Source | Open Source | MIT | 2,022 | Pearl | Pearl-Project | null | Spoken | 128 | 444 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <blake.galbreath@gmail.com>
Date: Tue, 23 Jul 2019 06:50:55 -0500
Subject: [PATCH] Allow inventory resizing
Original code by PurpurMC, licensed under MIT License
You can find the original code on https://github.com/Pur... | 12,823 |
https://github.com/USB-EC3882-III-2019/EC3882-G03/blob/master/software/Processing/Processing_GuitarraAire.pde | Github Open Source | Open Source | MIT | 2,019 | EC3882-G03 | USB-EC3882-III-2019 | null | Spoken | 518 | 1,452 | import processing.serial.*;
import processing.sound.*;
SoundFile svab1;
SoundFile svab2;
SoundFile svab3;
SoundFile svab4;
SoundFile svab5;
SoundFile svag1;
SoundFile svag2;
SoundFile svag3;
SoundFile svag4;
SoundFile svag5;
byte leer[] = new byte [5];
int canal[] = new int [5];
int ACEL = 0; // Canal del acel... | 46,969 |
https://github.com/tmc1245/ghidra/blob/master/Ghidra/Debug/Debugger/src/main/java/ghidra/app/plugin/core/debug/gui/thread/ThreadTableColumns.java | Github Open Source | Open Source | GPL-1.0-or-later, GPL-3.0-only, Apache-2.0, LicenseRef-scancode-public-domain, LGPL-2.1-only, LicenseRef-scancode-unknown-license-reference | 2,021 | ghidra | tmc1245 | Java | Code | 236 | 682 | /* ###
* IP: GHIDRA
*
* 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 writin... | 48,317 |
https://github.com/npruehs/hostile-worlds/blob/master/src/Hostile Worlds/Development/Src/UnrealEd/Classes/SoundNodeHelper.uc | Github Open Source | Open Source | Unlicense | 2,022 | hostile-worlds | npruehs | null | Spoken | 16 | 34 | /**
* Copyright 1998-2010 Epic Games, Inc. All Rights Reserved.
*/
class SoundNodeHelper extends Object
native;
| 50,934 |
https://github.com/usf-cs272-spring2022/lectures/blob/master/ProjectEuler/src/main/java/edu/usfca/cs272/Problem1c.java | Github Open Source | Open Source | Unlicense | 2,022 | lectures | usf-cs272-spring2022 | Java | Code | 365 | 726 | package edu.usfca.cs272;
import java.util.Scanner;
/**
* Project Euler Problem 1 is stated as follows:
*
* <blockquote> If we list all the natural numbers below 10 that are multiples
* of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the
* sum of all the multiples of 3 or 5 below 1000. </b... | 50,185 |
https://github.com/ef-ctx/cxTags/blob/master/src/highlight.js | Github Open Source | Open Source | MIT | 2,014 | cxTags | ef-ctx | JavaScript | Code | 61 | 187 | /*globals console: true*/
'use strict';
/**
* Provides highlight for matched text inside tag attributes
*/
cxTags.directive('ngTagHighlight', [
function() {
return {
require: '^tagsInput',
scope: {
ngTagHighlight: '@',
tagAttribute: '@'
... | 8,826 |
https://github.com/differui/openapi-typegen/blob/master/src/core/OasFragment.ts | Github Open Source | Open Source | MIT | 2,019 | openapi-typegen | differui | TypeScript | Code | 88 | 283 | import OasDocument from '@/core/libs/OasDocument';
import * as identifier from '@/identifier';
import container from '@/inversify.config';
import { injectable } from 'inversify';
import { Oas20Operation, Oas20SchemaDefinition } from 'oai-ts-core';
import { OpenAPIV2 } from 'openapi-types';
export enum FragmentType {
... | 20,751 |
https://github.com/jrbenriquez/gatsby-starter/blob/master/src/components/layout.js | Github Open Source | Open Source | MIT | null | gatsby-starter | jrbenriquez | JavaScript | Code | 98 | 337 | import React, { useState } from "react"
import Footer from "../components/footer"
import Header from "../components/header"
import { Waypoint } from 'react-waypoint'
import '../styles/index.scss'
import LayoutStyles from './layout.module.scss'
import { Helmet } from "react-helmet"
import {useSpring, animated, config} f... | 3,856 |
https://github.com/robgil/pulsar/blob/master/tests/stores/data/__init__.py | Github Open Source | Open Source | BSD-3-Clause | 2,015 | pulsar | robgil | Python | Code | 7 | 14 | __test__ = False
from .basicwords import *
| 27,946 |
https://github.com/shekohex/rustystream/blob/master/native/rustystream-ffi/binding.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | rustystream | shekohex | C | Code | 15 | 73 | #include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
int32_t stream_subscribe(int64_t port, uint64_t n);
int32_t stream_unsubscribe(void);
| 3,437 |
https://github.com/MaxWellS-D/2010/blob/master/php/users_menu.php | Github Open Source | Open Source | MIT | null | 2010 | MaxWellS-D | PHP | Code | 155 | 620 | <?php
require_once '../config.php';
$servername = DB_HOST;
$username = DB_USERNAME;
$password = DB_PASSWORD;
$dbname = DB_NAME;
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
} ... | 22,012 |
https://github.com/philokev/monkey-cpp/blob/master/examples/closure.monkey | Github Open Source | Open Source | MIT | 2,021 | monkey-cpp | philokev | null | Spoken | 46 | 90 | // `newAdder` returns a closure that makes use of the free variables `a` and `b`:
let newAdder = fn(a, b) {
fn(c) { a + b + c };
};
// This constructs a new `adder` function:
let adder = newAdder(1, 2);
puts(adder(8)); // => 11
| 3,511 |
https://github.com/PDi-Communication-Systems-Inc/lollipop_external_chromium_org/blob/master/chrome/browser/resources/cryptotoken/usbgnubbyfactory.js | Github Open Source | Open Source | BSD-3-Clause | 2,016 | lollipop_external_chromium_org | PDi-Communication-Systems-Inc | JavaScript | Code | 172 | 464 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Contains a simple factory for creating and opening usbGnubby
* instances.
*/
'use strict';
/**
* @param {Gnubbies} gnubbies Gnubb... | 34,948 |
https://github.com/UniversityofGhana-Sakai/Sakai-19.3/blob/master/evaluation/sakai-evaluation-tool/src/java/org/sakaiproject/evaluation/tool/producers/AdministrateReportingProducer.java | Github Open Source | Open Source | ECL-2.0, LicenseRef-scancode-warranty-disclaimer, GPL-1.0-or-later, LicenseRef-scancode-generic-cla, LicenseRef-scancode-free-unknown | 2,021 | Sakai-19.3 | UniversityofGhana-Sakai | Java | Code | 285 | 1,221 | /**
* Copyright 2005 Sakai Foundation Licensed under the
* Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law or a... | 49,729 |
https://github.com/mauriruizd/pousada-original/blob/master/4-Implementacao/4.1-Codigo_Fonte/app/Repositories/DoctrineClientesRepository.php | Github Open Source | Open Source | MIT | 2,017 | pousada-original | mauriruizd | PHP | Code | 15 | 60 | <?php
namespace App\Repositories;
use LaravelDoctrine\ORM\Pagination\PaginatesFromRequest;
class DoctrineClientesRepository extends DoctrineBaseRepository implements ClientesRepository {
use PaginatesFromRequest;
} | 31,813 |
https://github.com/BuloZB/torflow/blob/master/public/templates/share.hbs | Github Open Source | Open Source | Apache-2.0 | 2,022 | torflow | BuloZB | null | Spoken | 13 | 63 |
<div class="share-container">
<div class="large-button share-close-button">
<i class="fa fa-times"></i>
</div>
<div class="share-content">
</div>
</div>
| 32,509 |
https://github.com/JoHyukJun/algorithm-analysis/blob/master/source/cpp/InversedNumber.cpp | Github Open Source | Open Source | Apache-2.0 | null | algorithm-analysis | JoHyukJun | C++ | Code | 103 | 264 | //
// main.cpp
// InversedNumber
//
// Created by Jo Hyuk Jun on 2019/09/21.
// Copyright © 2019 Jo Hyuk Jun. All rights reserved.
//
#include <iostream>
#include <string>
#include <vector>
using namespace std;
vector<int> solution(long long n);
int main()
{
int a = 12345;
vector<int> res;
res = solution(a)... | 7,192 |
https://github.com/agz1990/GitPython/blob/master/modules/xlwt3-0.1.2/examples/parse-fmla.py | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,015 | GitPython | agz1990 | Python | Code | 38 | 122 | from xlwt3 import formula
f = formula.Formula(
""" -((1.80 + 2.898 * 1)/(1.80 + 2.898))*
AVERAGE((1.80 + 2.898 * 1)/(1.80 + 2.898);
(1.80 + 2.898 * 1)/(1.80 + 2.898);
(1.80 + 2.898 * 1)/(1.80 + 2.898)) +
SIN(PI()/4)""")
| 18,223 |
https://github.com/cschen1205/myob-accounting-plugin/blob/master/Accounting.Bll/BOList.cs | Github Open Source | Open Source | MIT | null | myob-accounting-plugin | cschen1205 | C# | Code | 40 | 125 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Accounting.Bll
{
using System.ComponentModel;
public abstract class BOList<BO> : BusinessObject
where BO : BusinessObject
{
public BOList(Accountant accountant)
: base(accountant, BO... | 14,025 |
https://github.com/rvdlee/zf-image-optimizer/blob/master/src/Factory/Controller/ConsoleControllerFactory.php | Github Open Source | Open Source | MIT | null | zf-image-optimizer | rvdlee | PHP | Code | 61 | 248 | <?php
namespace Rvdlee\ZfImageOptimiser\Factory\Controller;
use Interop\Container\ContainerInterface;
use Rvdlee\ZfImageOptimiser\Controller\ConsoleController;
use Rvdlee\ZfImageOptimiser\Service\ImageOptimiserService;
use Zend\Log\Logger;
use Zend\Log\Writer\Stream;
use Zend\ServiceManager\Factory\FactoryInterface;
... | 38,448 |
https://github.com/WORD955/XNavigation/blob/master/Sources/XNavigation/SwiftUI/WindowReader.swift | Github Open Source | Open Source | Apache-2.0 | null | XNavigation | WORD955 | Swift | Code | 90 | 213 | //
// WindowReader.swift
// XNavigation
//
// Created by David Chavez on 24.12.21.
// Copyright © 2021 Double Symmetry UG. All rights reserved.
//
import SwiftUI
@frozen public struct WindowReader<Content>: View where Content: View {
private var content: (UIWindow?) -> Content
private var window: UIW... | 27,449 |
https://github.com/pplagro5c/TM/blob/master/application/models/TournamentsModel.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | TM | pplagro5c | PHP | Code | 58 | 244 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class TournamentsModel extends CI_Model
{
public function create_tournament($data)
{
return $this->db->insert('users',$data);
}
public function show_all_tournament()
{
return $this->db->get('tournaments');
}
... | 14,755 |
https://github.com/raphael-abrantes/exercises-python/blob/master/ex009.py | Github Open Source | Open Source | MIT | null | exercises-python | raphael-abrantes | Python | Code | 21 | 67 | print ('TABUADA')
print ('='*20)
x = int(input('Insira um valor: '))
print ('='*20)
for i in range(0,10):
print(f'{x} x {i} = {x*i}')
| 8,876 |
https://github.com/clayfreeman/irc-parser/blob/master/src/LexemeStream.php | Github Open Source | Open Source | MIT | null | irc-parser | clayfreeman | PHP | Code | 172 | 430 | <?php
declare(strict_types = 1);
namespace ClayFreeman\IRCParser;
/**
* Provides a wrapper used to treat a lexeme sequence as a stream.
*/
class LexemeStream {
/**
* The lexeme sequence to represent as a stream.
*
* @var \ClayFreeman\IRCParser\Lexeme[]
*/
protected array $lexemes = [];
/**
*... | 34,187 |
https://github.com/danadel/sakai/blob/master/kernel/kernel-impl/src/test/java/org/sakaiproject/conditions/impl/MyConditionTemplateSet.java | Github Open Source | Open Source | ECL-2.0 | 2,021 | sakai | danadel | Java | Code | 54 | 222 | package org.sakaiproject.conditions.impl;
import java.util.HashSet;
import java.util.Set;
import org.sakaiproject.conditions.api.ConditionTemplate;
import org.sakaiproject.conditions.api.ConditionTemplateSet;
public class MyConditionTemplateSet implements ConditionTemplateSet {
private Set<ConditionTemplate> myCond... | 22,774 |
https://github.com/ChrisMuller80/dans-scala-lib/blob/master/src/main/scala/nl/knaw/dans/lib/taskqueue/InboxWatcher.scala | Github Open Source | Open Source | Apache-2.0 | null | dans-scala-lib | ChrisMuller80 | Scala | Code | 302 | 626 | /**
* Copyright (C) 2016 DANS - Data Archiving and Networked Services (info@dans.knaw.nl)
*
* 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... | 39,318 |
https://github.com/petrabarus/aws-samples-cloudfront-s3-oai-cdk/blob/master/cdk/lib/cdk-stack.ts | Github Open Source | Open Source | Apache-2.0 | null | aws-samples-cloudfront-s3-oai-cdk | petrabarus | TypeScript | Code | 122 | 469 | import * as cdk from '@aws-cdk/core';
import * as s3 from '@aws-cdk/aws-s3';
import * as s3deploy from '@aws-cdk/aws-s3-deployment';
import * as cloudfront from '@aws-cdk/aws-cloudfront';
export class CdkStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope... | 31,484 |
https://github.com/thelonious/kld-nbt/blob/master/lib/tags/CompoundTag.js | Github Open Source | Open Source | BSD-3-Clause | null | kld-nbt | thelonious | JavaScript | Code | 75 | 226 | let Tag = require('./Tag');
module.exports = class CompoundTag extends Tag {
constructor(name) {
super(Tag.COMPOUND_TAG, name);
this.elements = [];
}
loadFromBuffer(buffer) {
while (buffer.peekUInt8() !== 0) {
let element = Tag.readFromBuffer(buffer);
eleme... | 44,031 |
https://github.com/campaul/vermilion/blob/master/kernel/_entry.asm | Github Open Source | Open Source | MIT | null | vermilion | campaul | Assembly | Code | 145 | 485 | [bits 32]
MULTIBOOT_MAGIC equ 0x1BADB002
MULTIBOOT_FLAGS equ 1<<0 | 1<<1
MULTIBOOT_CHECKSUM equ -(MULTIBOOT_MAGIC + MULTIBOOT_FLAGS)
MULTIBOOT_VIDEO_MODE equ 0
MULTIBOOT_VIDEO_WIDTH equ 640
MULTIBOOT_VIDEO_HEIGHT equ 480
MULTIBOOT_VIDEO_DEPTH equ 8
align 4
dd MULTIBOOT_MAGIC
dd MULTIBOOT_FLAGS
dd MULTIBOOT_CHECKSUM... | 35,258 |
https://github.com/zenstruck/console-extra/blob/master/tests/Fixture/Command/AutoNameNoPrefixCommand.php | Github Open Source | Open Source | MIT | 2,022 | console-extra | zenstruck | PHP | Code | 32 | 107 | <?php
namespace Zenstruck\Console\Tests\Fixture\Command;
use Symfony\Component\Console\Command\Command;
use Zenstruck\Console\AutoName;
/**
* @author Kevin Bond <kevinbond@gmail.com>
*/
final class AutoNameNoPrefixCommand extends Command
{
use AutoName;
protected static function autoNamePrefix(): string
... | 2,580 |
https://github.com/aleroot/scrapy-proxies/blob/master/scrapy_proxies/__init__.py | Github Open Source | Open Source | MIT | 2,018 | scrapy-proxies | aleroot | Python | Code | 4 | 9 | from .randomproxy import RandomProxy
| 35,319 |
https://github.com/andyadc/codeblocks/blob/master/codeblocks-kit/src/test/java/com/andyadc/codeblocks/test/StringUtilTests.java | Github Open Source | Open Source | MIT | null | codeblocks | andyadc | Java | Code | 43 | 235 | package com.andyadc.codeblocks.test;
import com.andyadc.codeblocks.kit.text.StringUtil;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.Test;
public class StringUtilTests {
@Test
public void testStrCut() {
String str = "132h34nsdir";
// System.out.println(str.substring(0, 300));
// Sy... | 16,541 |
https://github.com/bradybyrd/hr_demo/blob/master/devops/test/delphix_rest.groovy | Github Open Source | Open Source | MIT | null | hr_demo | bradybyrd | Groovy | Code | 411 | 1,422 | import groovy.json.JsonSlurper
def delphix_url = "172.31.79.14"
urlString = "http://${delphix_url}/resources/json/delphix"
cookies = []
build_session()
// List Databases
def answer = rest_get("database")
print_result(answer)
def build_session(){
def result = [:]
def login_params = "{\"type\":\"LoginRequest\",\n"
... | 39,767 |
https://github.com/keypusher/STF_Crew_Planner/blob/master/STF_Crew_Planner/STF_Crew_Planner/CrewInput.cs | Github Open Source | Open Source | MIT | 2,020 | STF_Crew_Planner | keypusher | C# | Code | 845 | 2,914 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace STF_CharacterPlanner
{
public partial class CrewInput : UserControl
{
public L... | 30,235 |
https://github.com/circuits/circuits/blob/master/examples/web/forms.py | Github Open Source | Open Source | MIT | 2,023 | circuits | circuits | Python | Code | 185 | 512 | #!/usr/bin/env python
"""
Forms
A simple example showing how to deal with data forms.
"""
from circuits.web import Controller, Server
FORM = """
<html>
<head>
<title>Basic Form Handling</title>
</head>
<body>
<h1>Basic Form Handling</h1>
<p>
Example of using
<a href="http://circuitsframework.com/">cir... | 43,292 |
https://github.com/gnomeria/generator-typescript-microservice/blob/master/generators/app/templates/scripts/index.ts | Github Open Source | Open Source | MIT | 2,019 | generator-typescript-microservice | gnomeria | TypeScript | Code | 20 | 136 | export const SLS_CONFIG_DIRECTORY = `${process.env.PWD}/serverless-config`;
export const STATIC_DEPENDENCIES_FILE = `${SLS_CONFIG_DIRECTORY}/static-dependencies.yml`;
export const SERVERLESS_EXCLUDE_INCLUDE_FILE = `${SLS_CONFIG_DIRECTORY}/.dep-config/serverless-exclusions-and-inclusions.json`;
export const DEP_ANALYSIS... | 6,161 |
https://github.com/cckmit/rogerthat-android-client/blob/master/rogerthat/src/androidTest/java/com/mobicage/rogerthat/test/screenshots/TestTakeHomescreenScreenshot.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | rogerthat-android-client | cckmit | Java | Code | 146 | 388 | /*
* Copyright 2016 Mobicage NV
*
* 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... | 865 |
https://github.com/jplacsinto/microblog-vue/blob/master/app/Repositories/Eloquent/BaseEloquentRepository.php | Github Open Source | Open Source | MIT | null | microblog-vue | jplacsinto | PHP | Code | 868 | 2,622 | <?php
namespace App\Repositories\Eloquent;
use App\Repositories\EloquentRepositoryInterface;
use Illuminate\Database\Eloquent\Collection;
/**
* Abstract class for the base eloquent repository
* @author JP <jose03@simplexi.com.ph>
* @version 1.0
* @since 2021. 06. 04
*/
abstract class BaseEloquentRepository i... | 4,500 |
https://github.com/kevinvoduy/discor/blob/master/posts-server/src/config/schemas/inbox.js | Github Open Source | Open Source | MIT | null | discor | kevinvoduy | JavaScript | Code | 47 | 140 | import mongoose from 'mongoose';
const InboxSchema = new mongoose.Schema({
owner: {
type: String,
required : [true, 'this inbox requires an owner'],
},
threads: [
{
type: mongoose.Schema.Types.ObjectId,
ref: 'thread'
},
],
createdAt: {
type: Date,
default: Date.now,
}
})... | 35,306 |
https://github.com/ksdperera/developer-studio/blob/master/app-server/org.wso2.wsf.ide.consumption.core/src/org/wso2/wsf/ide/consumption/core/utils/WSDLPropertyReader.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | developer-studio | ksdperera | Java | Code | 848 | 2,787 | /*
* Copyright 2005,2006 WSO2, Inc. http://www.wso2.org
*
* 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 applicab... | 44,064 |
https://github.com/iridium-browser/iridium-browser/blob/master/chrome/browser/ui/views/crostini/crostini_app_restart_dialog.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | iridium-browser | iridium-browser | C++ | Code | 159 | 936 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/crostini/crostini_app_restart_dialog.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/view... | 8,475 |
https://github.com/best08618/asylo/blob/master/gcc-gcc-7_3_0-release/libgomp/testsuite/libgomp.oacc-fortran/pr70643.f90 | Github Open Source | Open Source | Apache-2.0 | 2,021 | asylo | best08618 | null | Spoken | 98 | 415 | MODULE reduction_test
CONTAINS
SUBROUTINE reduction_kernel(x_min,x_max,y_min,y_max,arr,sum)
IMPLICIT NONE
INTEGER :: x_min,x_max,y_min,y_max
REAL(KIND=8), DIMENSION(x_min-2:x_max+2,y_min-2:y_max+2) :: arr
REAL(KIND=8) :: sum
INTEGER :: j,k
!$ACC DATA PRESENT(arr) COPY(sum)
!$ACC PARALLEL LOOP ... | 9,507 |
https://github.com/atiqbutt/IMSEDU/blob/master/edusol/application/views/user/manage_role.php | Github Open Source | Open Source | MIT | null | IMSEDU | atiqbutt | PHP | Code | 546 | 2,472 |
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Manage User</h3>
</div>
</div>
<div class="clearfix"></div>
<div ... | 36,250 |
https://github.com/dntandan/Microsoft-Student-Partners/blob/master/microsoft_student_partners/static/hackcovid19/scss/_bradcam.scss | Github Open Source | Open Source | MIT | 2,021 | Microsoft-Student-Partners | dntandan | SCSS | Code | 41 | 185 | .bradcam_bg{
background-image: url(../img/banner/breadcam_bg.png);
}
.breadcam_area{
padding: 170px 0;
text-align: center;
background-repeat: no-repeat;
background-size: cover;
.bradcam_text{
h3{
font-size: 60px;
color: #fff;
font-weight: 700;
... | 2,877 |
https://github.com/tabledigital/tabithasattic/blob/master/src/scss/components/_hero.scss | Github Open Source | Open Source | MIT | null | tabithasattic | tabledigital | SCSS | Code | 5 | 24 | .hero {
background-image: url(/assets/images/hero.jpeg);
}
| 23,244 |
https://github.com/frontandrew/star-db/blob/master/src/components/pages/index.js | Github Open Source | Open Source | MIT | null | star-db | frontandrew | JavaScript | Code | 28 | 89 | import PeoplePage from './people-page'
import PlanetsPage from './planets-page'
import StarshipsPage from './starships-page'
import LoginPage from './login-page'
import SecretPage from './secret-page'
export {
PeoplePage,
PlanetsPage,
StarshipsPage,
SecretPage,
LoginPage,
} | 41,109 |
https://github.com/nipeharefa/action-s3-cache/blob/master/types.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | action-s3-cache | nipeharefa | Go | Code | 62 | 139 | package main
const (
// PutAction - Put artifacts
PutAction = "put"
// DeleteAction - Delete artifacts
DeleteAction = "delete"
// GetAction - Get artifacts
GetAction = "get"
// ErrCodeNotFound - s3 Not found error code
ErrCodeNotFound = "NotFound"
)
type (
// Action - Input params
Action struct {
Actio... | 1,267 |
https://github.com/Pablobb97VN/spring-data-examples/blob/master/jdbc/basics/src/main/java/example/springdata/jdbc/basics/aggregate/LegoSetRepository.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | spring-data-examples | Pablobb97VN | Java | Code | 222 | 588 | /*
* Copyright 2017-2018 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31,653 |
https://github.com/plasticfiresam/builds/blob/master/dist/builds/dto/create-build-dto.d.ts | Github Open Source | Open Source | MIT | null | builds | plasticfiresam | TypeScript | Code | 5 | 10 | export interface CreateBuildDto {
}
| 10,933 |
https://github.com/bertrandmartel/javacard-gradle-plugin/blob/master/gradle-javacard/src/test/groovy/fr/bmartel/javacard/JavaCardKeyTest.groovy | Github Open Source | Open Source | MIT | 2,021 | javacard-gradle-plugin | bertrandmartel | Groovy | Code | 64 | 347 | package fr.bmartel.javacard
import fr.bmartel.javacard.common.CommonTest
import org.gradle.api.tasks.JavaExec
import org.junit.Test
import static org.junit.Assert.assertEquals
import static org.junit.Assert.assertTrue
class JavaCardKeyTest extends CommonTest {
@Test
void buildInstallMixedKey() {
run... | 3,757 |
https://github.com/cds-snc/elenchos/blob/master/src/__tests__/kubectl.test.js | Github Open Source | Open Source | MIT | 2,019 | elenchos | cds-snc | JavaScript | Code | 154 | 498 | import { applyConfig, execAsync } from "../lib/deploy/kubectl";
import { writeFile } from "fs";
const { spawnSync } = require("child_process");
require("util");
jest.mock("child_process", () => {
const actualLib = require.requireActual("child_process");
return {
...actualLib,
spawnSync: jest.fn()
};
});
... | 28,337 |
https://github.com/Sandhya028/file-upload/blob/master/src/containers/DefaultLayout/DefaultHeader.js | Github Open Source | Open Source | Net-SNMP, Xnet, RSA-MD | null | file-upload | Sandhya028 | JavaScript | Code | 141 | 482 | import React, { Component } from "react"
import { Button, Nav } from "react-bootstrap"
import Navbar from "react-bootstrap/Navbar"
import PropTypes from "prop-types"
import { withRouter } from "react-router-dom"
import { clearStore } from "../../store"
const propTypes = {
children: PropTypes.node
}
const defaultPr... | 9,812 |
https://github.com/jameslamb/datahub/blob/master/datahub-frontend/app/graphql/NumericDataPoint.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | datahub | jameslamb | Java | Code | 128 | 369 | package graphql;
@javax.annotation.Generated(
value = "com.kobylynskyi.graphql.codegen.GraphQLCodegen",
date = "2021-05-03T10:56:06-0700"
)
public class NumericDataPoint implements java.io.Serializable {
private String x;
private int y;
public NumericDataPoint() {
}
public NumericDataPo... | 44,789 |
https://github.com/ericdallo/Dotfiles/blob/master/nix/home-manager/programs/emacs.nix | Github Open Source | Open Source | Unlicense | null | Dotfiles | ericdallo | null | Spoken | 43 | 130 | { config, lib, pkgs, ... }:
let
emacsPackage = (pkgs.emacsPackagesFor pkgs.emacsNativeComp).emacsWithPackages
(epkgs: [ epkgs.vterm ]);
in {
programs.emacs = {
enable = true;
package = emacsPackage;
};
services.emacs = with pkgs; {
enable = true;
package = emacsPackage;
client.enable =... | 2,112 |
https://github.com/Libranner/SmartDresser/blob/master/DressAsistant/Views/Layouts/ItemsCollectionLayout.swift | Github Open Source | Open Source | MIT | null | SmartDresser | Libranner | Swift | Code | 94 | 285 | //
// ItemsCollectionLayout.swift
// DressAsistant
//
// Created by Libranner Leonel Santos Espinal on 24/07/2019.
// Copyright © 2019 Libranner Leonel Santos Espinal. All rights reserved.
//
import UIKit
class ItemsCollectionLayout: UICollectionViewFlowLayout {
convenience init(direction: UICollectionView.Scro... | 49,816 |
https://github.com/krzych0/creator-wifire-mobile-app/blob/master/app/src/main/java/com/imgtec/creator/iup/retrofit/pojos/softap/DeviceServer.java | Github Open Source | Open Source | BSD-3-Clause | 2,017 | creator-wifire-mobile-app | krzych0 | Java | Code | 444 | 972 | /*
* Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies
* and/or licensors
*
* 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... | 25,979 |
https://github.com/jessexm/micronix/blob/master/v6/root/usr/sys/tty.h | Github Open Source | Open Source | Apache-2.0 | 2,018 | micronix | jessexm | C | Code | 408 | 847 | /*
* A clist structure is the head
* of a linked list queue of characters.
* The characters are stored in 4-word
* blocks containing a link and 6 characters.
* The routines getc and putc (m45.s or m40.s)
* manipulate these structures.
*/
struct clist
{
int c_cc; /* character count */
int c_cf; /* pointer to ... | 34,658 |
https://github.com/LeedsJS/website/blob/master/data/comms/data/2019-12-04.js | Github Open Source | Open Source | MIT | 2,023 | website | LeedsJS | JavaScript | Code | 168 | 440 | module.exports = () => {
return {
id: "2019-12-04",
title: "Conferences, conferences, conferences!",
tweet: "Our friends at @FrontEndSheff are organising @frontendnorth, and we're partnering with the @thejsnation and @ReactAmsterdam conferences!",
body: `Hi folks!
Just a qui... | 31,271 |
https://github.com/ngdzu/CPP-Reactive-Programming/blob/master/Chapter06/source_code/streamulus-master/src/graph.h | Github Open Source | Open Source | MIT | 2,022 | CPP-Reactive-Programming | ngdzu | C | Code | 216 | 504 | //
// graph.h
//
// Streamulus Copyright (c) 2012 Irit Katriel. All rights reserved.
//
// This file is part of Streamulus.
//
// Streamulus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3... | 14,127 |
https://github.com/pramodthangali/incubator-slider/blob/master/slider-core/src/test/groovy/org/apache/slider/server/appmaster/model/appstate/TestMockAppStateDynamicRoles.groovy | Github Open Source | Open Source | Apache-2.0 | 2,019 | incubator-slider | pramodthangali | Groovy | Code | 279 | 835 | /*
* 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
* "License"); you ... | 23,675 |
https://github.com/maple1994/MPCamera/blob/master/MPCamera/MPCamera/MPAssetHelper.m | Github Open Source | Open Source | MIT | 2,019 | MPCamera | maple1994 | Objective-C | Code | 375 | 1,543 | //
// MPAssetHelper.m
// MPCamera
//
// Created by Maple on 2019/10/16.
// Copyright © 2019 Beauty-ruanjian. All rights reserved.
//
#import "MPAssetHelper.h"
#import <AVFoundation/AVFoundation.h>
@implementation MPAssetHelper
/// 获取视频的第一帧
+ (UIImage *)videoPreviewImageWithUrl: (NSURL *)url
{
AVURLAsset *ass... | 994 |
https://github.com/uc-cdis/cdis-jenkins-lib/blob/master/vars/microservicePipelineK8s.groovy | Github Open Source | Open Source | Apache-2.0 | 2,020 | cdis-jenkins-lib | uc-cdis | Groovy | Code | 1,348 | 4,922 | #!groovy
import org.jenkinsci.plugins.pipeline.modeldefinition.Utils
/**
* Pipline for building and testing microservices
*
* @param config - pipeline configuration
*/
def call(Map config) {
List<String> namespaces = []
List<String> selectedTests = []
doNotRunTests = false
runParallelTests = false
... | 28,720 |
https://github.com/doriangrelu/framework-psr/blob/master/src/Framework/Middleware/DispatcherMiddleware.php | Github Open Source | Open Source | MIT | null | framework-psr | doriangrelu | PHP | Code | 234 | 861 | <?php
namespace Framework\Middleware;
use App\Framework\Controller;
use App\Framework\Exception\Http\ForbiddenHttpException;
use App\Framework\Exception\Router\MissingRouteException;
use Framework\Router;
use GuzzleHttp\Psr7\Response;
use Psr\Container\ContainerInterface;
use Psr\Http\Message\ResponseInterface;
use P... | 37,805 |
https://github.com/Wolnosciowiec-Archive/banner-rotator/blob/master/src/Domain/ActionHandler/BrowseAction.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,019 | banner-rotator | Wolnosciowiec-Archive | PHP | Code | 115 | 377 | <?php declare(strict_types=1);
namespace App\Domain\ActionHandler;
use App\Domain\Exception\EntityNotFoundException;
use App\Domain\Repository\BannerRepository;
use App\Domain\Repository\GroupRepository;
class BrowseAction
{
/**
* @var GroupRepository
*/
private $groupRepository;
/**
* @v... | 12,428 |
https://github.com/JackCorbett93/PasswordManager/blob/master/resources/views/posts/index.blade.php | Github Open Source | Open Source | MIT | null | PasswordManager | JackCorbett93 | PHP | Code | 186 | 741 | @extends('layouts.app')
@section('content')
<div class="row">
<div class="col-lg-12">
<h2> Viewing Passwords </h2>
<button type="button" class="btn btn-success btn-s"><a href="/save">save table</a></button>
<button type="button" class="btn btn-warning btn-s"><a href="/posts/create">Create Po... | 25,665 |
https://github.com/lutonda/nova_liceu_web_app/blob/master/src/app/Entity/health.ts | Github Open Source | Open Source | MIT | null | nova_liceu_web_app | lutonda | TypeScript | Code | 19 | 46 | export class Health {
public id: string;
public bloodGroup: BloodGroup;
public specialCare: string;
public allergies: string;
constructor() {}
}
| 8,898 |
https://github.com/staale/mats/blob/master/mats-spring-test/src/test/java/com/stolsvik/mats/spring/test/apptest_two_mf/Runner.java | Github Open Source | Open Source | Apache-2.0 | null | mats | staale | Java | Code | 135 | 623 | package com.stolsvik.mats.spring.test.apptest_two_mf;
import java.util.concurrent.atomic.AtomicInteger;
import javax.inject.Inject;
import org.junit.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.stolsvik.mats.MatsFactory;
import com.stol... | 21,003 |
https://github.com/johang88/StrideTerrain/blob/master/StrideTerrain.Game/Splines/SplineProcessor.cs | Github Open Source | Open Source | MIT | 2,022 | StrideTerrain | johang88 | C# | Code | 454 | 1,514 | using Stride.Core.Annotations;
using Stride.Engine;
using Stride.Games;
using Stride.Graphics;
using Stride.Rendering;
using StrideTerrain.TerrainSystem;
using System;
using System.Collections.Generic;
using System.Text;
using Stride.Core.Mathematics;
using Stride.Core.Collections;
using Stride.Core.Threading;
namesp... | 14,629 |
https://github.com/manoj-kumara/wso2-wss4j/blob/master/modules/wss4j/test/wssec/TestWSSecurityNew6.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | wso2-wss4j | manoj-kumara | Java | Code | 1,007 | 3,611 | /**
* 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
* "License"); you m... | 11,033 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.