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/pratom/master/blob/master/pratom.atom.psm1 | Github Open Source | Open Source | MIT | 2,013 | master | pratom | PowerShell | Code | 22 | 182 | $error.clear();
Set-StrictMode -Version:Latest
$GLOBAL:ErrorActionPreference = "Stop"
# . "$PSCommandPath.vars.ps1"
."$PSCommandPath.vars.ps1"
."$($SCRIPT:DIRECTORY_PATH_OF_pratom_ATOM)\intro_screen.ps1"
import-module -force -DisableNameChecking "$SCRIPT:DIRECTORY_PATH_OF_pratom_ATOM_NUCLEUS\nucleus.psm1... | 8,889 |
https://github.com/eslint/eslint/blob/master/tests/lib/linter/safe-emitter.js | Github Open Source | Open Source | MIT | 2,023 | eslint | eslint | JavaScript | Code | 126 | 382 | /**
* @fileoverview Tests for safe-emitter
* @author Teddy Katz
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const createEmitter = require("../../../lib/linter/safe... | 39,405 |
https://github.com/kuraakhilesh8230/aries-cloudagent-python/blob/master/aries_cloudagent/protocols/endorse_transaction/v1_0/messages/messages_attach.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | aries-cloudagent-python | kuraakhilesh8230 | Python | Code | 276 | 935 | """Represents the attached message to be included in the transaction record."""
from marshmallow import EXCLUDE, fields
from .....messaging.agent_message import AgentMessage, AgentMessageSchema
from ..message_types import ATTACHED_MESSAGE
SCHEMA_TYPE = "101"
PROTOCOL_VERSION = "2"
class MessagesAttach(AgentMessa... | 27,690 |
https://github.com/DeniseMak/USCitizenQuiz/blob/master/script.js | Github Open Source | Open Source | MIT | 2,016 | USCitizenQuiz | DeniseMak | JavaScript | Code | 661 | 1,799 | (function () {
"use strict";
var list = [];
var num_question;
var correct_num = 0;
var incorrect_num = 0;
var total = 0; // this is the total question answered
window.onload = function () {
// show the first question
// because I use hide all the question at first
// ... | 43,461 |
https://github.com/dotvhs/CovertInfiltration/blob/master/CovertInfiltration/Src/CovertInfiltration/Classes/SeqAct_SetInteractiveObjectHacked.uc | Github Open Source | Open Source | MIT | 2,022 | CovertInfiltration | dotvhs | null | Spoken | 77 | 391 | //---------------------------------------------------------------------------------------
// FILE: SeqAct_SetInteractiveObjectHacked.uc
// AUTHOR: tracktwo / LWS
// PURPOSE: Set an interactive object as being hacked.
//---------------------------------------------------------------------------------------
class... | 27,092 |
https://github.com/arjix/nixpkgs/blob/master/pkgs/development/python-modules/sphinx-serve/default.nix | Github Open Source | Open Source | MIT | 2,022 | nixpkgs | arjix | null | Spoken | 70 | 225 | { lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "sphinx-serve";
version = "1.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "8d90f6595114108500b1f935d3f4d07bf5192783c67ce83f944ef289099669c9";
};
doCheck = false; # No tests
pythonImportsCheck = [ "sphinx_serve"... | 9,957 |
https://github.com/paullewallencom/redux-978-1-7896-1008-6/blob/master/_/Chapter07/app/containers/User/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | redux-978-1-7896-1008-6 | paullewallencom | JavaScript | Code | 90 | 231 | import React from 'react';
import { compose } from 'redux';
import { Switch, Route } from 'react-router-dom';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import saga from './saga';
import reducer from './reducer';
import All from './All';
import AddUser from './Add';
impo... | 14,296 |
https://github.com/limitofzero/taiga-ui/blob/master/projects/kit/components/radio-labeled/radio-labeled.module.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | taiga-ui | limitofzero | TypeScript | Code | 49 | 228 | import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {
TuiFocusableModule,
TuiFocusedModule,
TuiHoveredModule,
TuiPressedModule,
} from '@taiga-ui/cdk';
import {TuiRadioModule} from '@taiga-ui/kit/components/radio';
imp... | 2,071 |
https://github.com/xoascf/MicaForEveryone/blob/master/MicaForEveryone.UI/Models/PaneItemType.cs | Github Open Source | Open Source | MIT | 2,022 | MicaForEveryone | xoascf | C# | Code | 13 | 47 | namespace MicaForEveryone.UI.Models
{
public enum PaneItemType
{
General,
Global,
Process,
Class,
}
}
| 45,584 |
https://github.com/JulieMarie/Brainstorm/blob/master/client/react/Comment.js | Github Open Source | Open Source | MIT | 2,014 | Brainstorm | JulieMarie | JavaScript | Code | 113 | 416 | app.Comment = React.createClass({
getInitialState: function() {
// set initial editing state to false
return {
editing: false,
currentUser: app.UserStore.get()
};
},
componentWillReceiveProps: function() {
// remove the editing parameter when the view updates
this.setState({editin... | 33,433 |
https://github.com/mgslack/Cards-Library-Java/blob/master/src/com/slackandassociates/cards/milestonecards/MilestoneCardDeck.java | Github Open Source | Open Source | BSD-3-Clause | null | Cards-Library-Java | mgslack | Java | Code | 313 | 1,474 | package com.slackandassociates.cards.milestonecards;
import java.io.*;
import java.util.*;
import com.slackandassociates.cards.CardEnum;
/**
* Class used to create array of playing card enumerations that will be used to
* initialize the CardDeck instance with. Contains a set of milestone cards
* with 106 cards in... | 11,914 |
https://github.com/MonirHossen/larab4-blog/blob/master/app/Http/Controllers/AboutController.php | Github Open Source | Open Source | MIT | 2,019 | larab4-blog | MonirHossen | PHP | Code | 290 | 1,029 | <?php
namespace App\Http\Controllers;
use App\About;
use App\Category;
use Illuminate\Http\Request;
class AboutController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$data['abouts'] = About::a... | 5,721 |
https://github.com/shauns2007/portfolio/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | portfolio | shauns2007 | PHP | Code | 81 | 563 | <?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... | 23,295 |
https://github.com/SVEChina/SVEngine/blob/master/SVEngine/src/app/SVInst.cpp | Github Open Source | Open Source | MIT | 2,022 | SVEngine | SVEChina | C++ | Code | 334 | 1,933 | //
// SVInst.cpp
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVInst.h"
#include "SVGlobalMgr.h"
#include "SVGlobalParam.h"
#include "../work/SVTdCore.h"
#include "../work/SVThreadPool.h"
#include "../file/SVFileMgr.h"
#include "../rendercore/SVRenderMg... | 19,847 |
https://github.com/cfogelklou/Monocypher/blob/master/tests/externals/c25519/c25519.c | Github Open Source | Open Source | CC0-1.0 | 2,022 | Monocypher | cfogelklou | C | Code | 435 | 1,566 | /* Curve25519 (Montgomery form)
* Daniel Beer <dlbeer@gmail.com>, 18 Apr 2014
*
* This file is in the public domain.
*/
#include "c25519.h"
const uint8_t c25519_base_x[F25519_SIZE] = {9};
/* Double an X-coordinate */
static void xc_double(uint8_t *x3, uint8_t *z3,
const uint8_t *x1, const uint8_t *z1)
{
... | 18,676 |
https://github.com/Task-Force-Dagger/Dagger/blob/master/addons/common/functions/fnc_needRestartLocal.sqf | Github Open Source | Open Source | MIT | null | Dagger | Task-Force-Dagger | SQF | Code | 154 | 523 | /*
* ARMA EXTENDED ENVIRONMENT
* \TFD_common\functions\settings\fn_needRestartLocal.sqf
* by Ojemineh
*
* settings restart notification
*
* Arguments:
* 0: setting - <STRING>
* 1: restartID - <NUMBER>
*
* Return:
* nothing
*
* Example:
* ["TFD_debug_enabled", 2] call TFD_common_fnc_needRestartLocal;... | 5,431 |
https://github.com/richenlin/recatch-service/blob/master/src/utils/index.ts | Github Open Source | Open Source | MIT | 2,018 | recatch-service | richenlin | TypeScript | Code | 74 | 231 | //生成随机字符串salt
export function genSalt(len: number=6): string{
let saltStrList = '0123456789abcdefghijklmnopqrstuvwxy';
let saltStrLen = saltStrList.length;
let salt = '';
for(let i=0; i<len; i++) {
salt += saltStrList[Math.floor(Math.random()*saltStrLen)];
}
salt += new Date().getTime();... | 10,530 |
https://github.com/MikenzieAlasca/F21-1010/blob/master/class/lect/Lect-14/open.1 | Github Open Source | Open Source | MIT | 2,021 | F21-1010 | MikenzieAlasca | null | Spoken | 1 | 48 | file:///Users/philip/go/src/github.com/Univ-Wyo-Education/F21-1010/class/lect/Lect-14/Lect-14.html
| 31,710 |
https://github.com/fikdik/app.saluconfeitariaartesanal.com.br/blob/master/src/cms/collections/favicon/files/favicon.ts | Github Open Source | Open Source | 0BSD | 2,021 | app.saluconfeitariaartesanal.com.br | fikdik | TypeScript | Code | 47 | 141 | import { CmsCollectionFile } from "netlify-cms-core"
const collectionFile: CmsCollectionFile = {
file: "content/favicon/favicon.json",
label: "Site Favicon",
name: "siteFavicon",
fields: [
{
label: "Favicon",
name: "favicon",
widget: "image",
hint:
'the filename must be "fav... | 36,888 |
https://github.com/Sage-Pierce/rhapsody/blob/master/rabbitmq/src/main/java/com/expediagroup/rhapsody/rabbitmq/message/RabbitMessageSendInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | rhapsody | Sage-Pierce | Java | Code | 149 | 439 | /**
* Copyright 2019 Expedia, Inc.
*
* 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 ... | 28,498 |
https://github.com/nguyer/aws-sdk-js-v3/blob/master/clients/browser/client-comprehend-browser/commands/BatchDetectKeyPhrasesCommand.ts | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | aws-sdk-js-v3 | nguyer | TypeScript | Code | 137 | 593 | import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import { BatchDetectKeyPhrases } from "../model/operations/BatchDetectKeyPhrases";
import { InputTypesUnion } from "../types/InputTypesUnion";
import { OutputTypesUnion } from "../types/OutputType... | 43,322 |
https://github.com/biddisco/VTK/blob/master/Common/Core/Testing/Cxx/TestUnicodeStringArrayAPI.cxx | Github Open Source | Open Source | BSD-3-Clause | 2,021 | VTK | biddisco | C++ | Code | 245 | 1,010 | /*=========================================================================
Program: Visualization Toolkit
Module: TestUnicodeStringArrayAPI.cxx
-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with ... | 21,465 |
https://github.com/skywalker-nick/homework/blob/master/python/test-eventlet-1.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | homework | skywalker-nick | Python | Code | 28 | 95 | import time
import eventlet
eventlet.monkey_patch()
def func(n):
print 'xxx', n
#for i in range(1000):
# if i == 500:
# eventlet.sleep(0.01)
# pass
eventlet.spawn(func, 'abc')
# return
time.sleep(0)
| 19,668 |
https://github.com/fossabot/nyse-holidays/blob/master/src/index.test.ts | Github Open Source | Open Source | MIT | null | nyse-holidays | fossabot | TypeScript | Code | 585 | 1,293 | import tap from "tap";
import { getNthDay, getLastDay } from "./common/util";
import { isHoliday, getHolidays } from "./index";
tap.test("nyse-holidays/common/util", async (tests) => {
tests.test("getNthDay", async (test) => {
[
{ n: 1, year: 2020, month: 1, day: 1, expected: "Mon Jan 06 2020" },
{ ... | 17,481 |
https://github.com/rido-min/azure-iot-sdk-node/blob/master/service/src/pl/operations/bulkRegistry.ts | Github Open Source | Open Source | MIT | 2,021 | azure-iot-sdk-node | rido-min | TypeScript | Code | 340 | 934 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
i... | 18,595 |
https://github.com/zpyoung/pythark/blob/master/tests/test_transaction.py | Github Open Source | Open Source | MIT | 2,018 | pythark | zpyoung | Python | Code | 68 | 326 | import unittest
from pythark import Transaction
class TestTransaction(unittest.TestCase):
def test_get_transaction(self):
transaction = Transaction()
resp = transaction.get_transaction("a38dc6b9e6679be706d5b39eef7dd0a7a10011e63da7623082106d90834e23e1")
self.assertEqual(resp["success"], Tru... | 14,335 |
https://github.com/gfan8w/substrate-node-template-3.0.0-monthly-2021-08/blob/master/js-component/node_modules/@polkadot/util/bn/max.js | Github Open Source | Open Source | Unlicense | 2,021 | substrate-node-template-3.0.0-monthly-2021-08 | gfan8w | JavaScript | Code | 74 | 169 | // Copyright 2017-2021 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { checkMaxMin } from "./util.js";
/**
* @name bnMax
* @summary Finds and returns the highest value in an array of BNs.
* @example
* <BR>
*
* ```javascript
* import BN from 'bn.js';
* import { bnMax } from ... | 40,599 |
https://github.com/AdrianOchala/PracaInzynierska/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | 2,020 | PracaInzynierska | AdrianOchala | PHP | Code | 52 | 258 | <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<script>window.Laravel = { csrfToken: '{{ csrf_token() }}'}</script>
... | 23,198 |
https://github.com/BeautyFastCode/patterns/blob/master/PHP/Structural/Flyweight/TreeFactory.php | Github Open Source | Open Source | MIT | null | patterns | BeautyFastCode | PHP | Code | 216 | 531 | <?php
declare(strict_types=1);
/*
* (c) BeautyFastCode.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHP\Structural\Flyweight;
/**
* TreeFactory.
*
* @author Bogumił Brzeziński <beautyfastcode@gmail.com>
* ... | 42,091 |
https://github.com/QinZhen001/animation-demo/blob/master/src/pages/demo/index.less | Github Open Source | Open Source | MIT | 2,020 | animation-demo | QinZhen001 | Less | Code | 252 | 875 | body {
background: #F5F6FA;
}
pre {
text-align: left;
font-size: 18px;
}
.part {
padding: 10px;
border-bottom: 1px solid #8a6d3b;
}
.part {
.circle-wrapper {
position: relative;
display: inline-block;
text-align: center;
.circle {
display: inline-block;
width: 100px;
hei... | 50,615 |
https://github.com/chenyan2002/iML/blob/master/elab/PP_TYPE-sig.sml | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, ICU | 2,012 | iML | chenyan2002 | null | Spoken | 43 | 97 | (*
* (c) Andreas Rossberg 1999-2007
*
* Standard ML pretty printing of types and type schemes
*)
signature PP_TYPE =
sig
type Type = StaticObjectsCore.Type
type TypeScheme = StaticObjectsCore.TypeScheme
val ppType : Type -> PrettyPrint.doc
val ppTypeScheme : TypeScheme -> PrettyPrint.doc
end... | 35,382 |
https://github.com/KristofferC/FEM.jl/blob/master/src/elements/lin_trig.jl | Github Open Source | Open Source | MIT | 2,015 | FEM.jl | KristofferC | Raw token data | Code | 243 | 1,071 | # Load the Interpolator in the FEM module
FEM.lintriginterpmod()
using FEM.LinTrigInterpMod
module LinTrigMod
using FEM.LinTrigInterpMod
import FEM: createinterp, creategps, createstorage, get_field,
Bmatrix, doftypes, get_ndofs, get_geotype, get_ref_area, dNdxmatrix
import FEM: AbstractMaterialStatus, ... | 19,448 |
https://github.com/geigerj/artman/blob/master/pipeline/pipelines/gapic_generation_pipeline.py | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,016 | artman | geigerj | Python | Code | 305 | 1,452 | # Copyright 2016 Google Inc. All Rights Reserved.
#
# 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 agree... | 28,479 |
https://github.com/aws/aws-sdk-ruby/blob/master/gems/aws-eventstream/lib/aws-eventstream.rb | Github Open Source | Open Source | Apache-2.0 | 2,023 | aws-sdk-ruby | aws | Ruby | Code | 15 | 88 | # frozen_string_literal: true
require_relative 'aws-eventstream/decoder'
require_relative 'aws-eventstream/encoder'
require_relative 'aws-eventstream/message'
require_relative 'aws-eventstream/header_value'
require_relative 'aws-eventstream/types'
require_relative 'aws-eventstream/errors'
| 29,222 |
https://github.com/sujabshrestha/mis/blob/master/database/seeds/RoleSeeder.php | Github Open Source | Open Source | MIT | null | mis | sujabshrestha | PHP | Code | 62 | 217 | <?php
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Traits\HasRoles;
class RoleSeeder extends Seeder
{
use HasRoles;
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
... | 17,483 |
https://github.com/xpwu95/SPBL_Pytorch/blob/master/spbl/examples/imblean/base.py | Github Open Source | Open Source | MIT | 2,022 | SPBL_Pytorch | xpwu95 | Python | Code | 853 | 2,480 | """Base class for sampling"""
# Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com>
# Christos Aridas
# License: MIT
from __future__ import division
import logging
from abc import ABCMeta, abstractmethod
from sklearn.base import BaseEstimator
from sklearn.externals import six
from sklearn.utils import ch... | 8,015 |
https://github.com/pragmatico/spring-boot-samples/blob/master/jasypt/src/test/java/com/example/DemoApplicationTests.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-boot-samples | pragmatico | Java | Code | 58 | 232 | package com.example;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework... | 26,097 |
https://github.com/bamroberts/Evography/blob/master/application/views/themes/default/album-head.php | Github Open Source | Open Source | BSD-3-Clause | 2,012 | Evography | bamroberts | PHP | Code | 73 | 329 | <div class="header">
<h3><?php echo $album->name; ?><span><?php echo $album->desc; ?></span></h3>
<?php if(!Arr::get($_REQUEST['current'],'multi',false) && $images->count()) : ?>
<img src="/images/dynamic/<?php echo $images[0]->filehash;?>/900x300xcrop.jpg" alt="image <?php echo $images[0]->name; ?>" />
<?php... | 12,256 |
https://github.com/VancySavoki/Moss/blob/master/moss-service/src/main/java/org/xujin/moss/model/trace/ApplicationsData.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Moss | VancySavoki | Java | Code | 32 | 102 | package org.xujin.moss.model.trace;
import java.io.Serializable;
import java.util.List;
public class ApplicationsData implements Serializable {
private List<Application> applications;
public List<Application> getApplications() {
return applications;
}
public void setApplications(List<Applica... | 31,610 |
https://github.com/ywtnhm/joffice/blob/master/src/main/webapp/js/hrm/SalaryPayoffForm.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | joffice | ywtnhm | JavaScript | Code | 1,076 | 4,578 | SalaryPayoffForm = Ext
.extend(
Ext.Panel,
{
formPanel : null,
constructor : function(a) {
if (a == null) {
a = {};
}
Ext.apply(this, a);
this.initComponents();
SalaryPayoffForm.superclass.constructor.call(this, {
id : "SalaryPayoffForm",
layout : "... | 14,730 |
https://github.com/amuelle/bdeploy/blob/master/ui/webapp/cypress/support/bdeploy.instances.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | bdeploy | amuelle | TypeScript | Code | 156 | 313 | declare namespace Cypress {
interface Chainable<Subject> {
/**
* @param groupName the name of the instance group to create the instance in.
* @param instanceName the name of the instance.
* @param prodName the product to use
* @param prodVersion the product version to use.
* @param mode t... | 33,349 |
https://github.com/omarcostahamido/amen-js/blob/master/.eslintignore | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,017 | amen-js | omarcostahamido | Ignore List | Code | 3 | 19 | examples/*.*
examples/infinitejuke/*.*
*.test.js
| 16,552 |
https://github.com/redding/romo/blob/master/assets/css/romo/buttons.scss | Github Open Source | Open Source | MIT | null | romo | redding | SCSS | Code | 792 | 5,691 | @import 'css/romo/vars';
@import 'css/romo/mixins';
.romo {
a.romo-btn,
button.romo-btn,
.romo-btn {
display: inline-block;
@include rm-push;
@include align-center;
@include align-middle;
@include button-bg($btnBg, $btnBgHover, $btnColor);
@include border1;
border-color: $btnBorder;... | 24,636 |
https://github.com/guimmamanna/Attendance/blob/master/application/models/Room_Model.php | Github Open Source | Open Source | MIT | null | Attendance | guimmamanna | PHP | Code | 55 | 230 | <?php
class Room_Model extends CI_Model
{
function roomcapacity($room_id)
{
$query=$this->db->query("select room.BuildingName, room.RoomNumber, room.Room_Capacity, count(attendance.Student_Id) * room.Room_Capacity / 100 AS RoomUsage, modules.name, class.Date
from room, attendance, class, modules
where room.Room... | 17,184 |
https://github.com/anandsivaji2learn/java-docker-k8s-hands-on/blob/master/03-todo-web-application-mysql/src/main/java/com/asivaji2learn/springboot/web/controller/WelcomeController.java | Github Open Source | Open Source | MIT | null | java-docker-k8s-hands-on | anandsivaji2learn | Java | Code | 57 | 253 | package com.asivaji2learn.springboot.web.controller;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.an... | 22,692 |
https://github.com/radical-experiments/iceberg_escience/blob/master/Penguins/Scipts/Design2/secondnode.sh | Github Open Source | Open Source | MIT | 2,020 | iceberg_escience | radical-experiments | Shell | Code | 48 | 216 | #!/bin/sh
#module load psc_path/1.1
#module load slurm/default
#module load intel/18.4
source /pylon5/mc3bggp/aymen/penguins_pkg/bin/activate
export PYTHONPATH=/pylon5/mc3bggp/aymen/penguins_pkg/lib/python2.7/site-packages:$PYTHONPATH
python q1.py --queue predict > predict_queue.log &
sleep 1
sleep 1
CUDA_VISIBLE_DE... | 28,999 |
https://github.com/MikeHitrov/SoftUni/blob/master/C# Advanced/04. Functional Programming Exercises/04. Functional Programming Exercises.sln | Github Open Source | Open Source | MIT | 2,020 | SoftUni | MikeHitrov | null | Spoken | 493 | 3,503 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2006
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "01. Action Point", "01. Action Point\01. Action Point.csproj", "{BCEE8707-39E2-42C3-9539-9DD2E741A87F}"
En... | 7,592 |
https://github.com/EuKaique/Projeto-Diagnostico-Medico/blob/master/build/classes/visao/jasperreports-6.15.0/demo/samples/htmlcomponent/src/net/sf/jasperreports/engine/util/HtmlPrintElementUtils.rs | Github Open Source | Open Source | MIT | null | Projeto-Diagnostico-Medico | EuKaique | Rust | Code | 1 | 18 | net.sf.jasperreports.engine.util.HtmlPrintElementUtils
| 20,722 |
https://github.com/otaviojava/payara-fastlane-demos/blob/master/jwt/service-a/src/main/java/my/compary/jwt/secure/TestSecureController.java | Github Open Source | Open Source | Apache-2.0 | null | payara-fastlane-demos | otaviojava | Java | Code | 98 | 453 | package my.compary.jwt.secure;
import io.vertx.ext.auth.JWTOptions;
import io.vertx.ext.auth.PubSecKeyOptions;
import io.vertx.ext.auth.jwt.JWTAuth;
import io.vertx.ext.auth.jwt.JWTAuthOptions;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import... | 44,822 |
https://github.com/xindong/docker-images/blob/master/library/machine-learning/gpu/Dockerfile | Github Open Source | Open Source | BSD-2-Clause | 2,019 | docker-images | xindong | Dockerfile | Code | 50 | 132 | FROM xindong/anaconda3-cuda:2019.03-10.0
RUN set -ex \
&& apt-get install -y graphviz \
&& pip install -U tensorflow-gpu==2.0.0-alpha0 \
&& conda install -y h5py \
&& pip install -U pydot keras \
&& conda install -y pytorch torchvision cudatoolkit=10.0 -c pytorch \
&& conda install -y fastai -c... | 29,224 |
https://github.com/crdroidandroid/android_frameworks_base/blob/master/packages/SystemUI/src/com/android/systemui/pulse/PulseControllerImpl.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unicode | 2,023 | android_frameworks_base | crdroidandroid | Java | Code | 1,590 | 5,431 | /**
* Copyright (C) 2014 The TeamEos Project
* Copyright (C) 2016-2022 crDroid Android Project
*
* @author: Randall Rushing <randall.rushing@gmail.com>
*
* 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 o... | 4,077 |
https://github.com/blacklabelops-legacy/centos/blob/master/scripts/installKVM.sh | Github Open Source | Open Source | MIT | 2,019 | centos | blacklabelops-legacy | Shell | Code | 12 | 51 | #!/bin/bash
sudo yum -y install @virt* dejavu-lgc-* xorg-x11-xauth tigervnc libguestfs-tools policycoreutils-python bridge-utils
| 45,473 |
https://github.com/gitKrystan/js-set/blob/master/spec/specs.js | Github Open Source | Open Source | MIT | null | js-set | gitKrystan | JavaScript | Code | 394 | 1,078 | describe('InternSet', function() {
it('will create a set consisting of an empty array', function() {
var testSet = new InternSet();
expect(testSet.getMembers()).to.eql([]);
});
it('will create a set of given members organized into arrays', function() {
var testSet = new InternSet([1, 2]);
expect(... | 27,768 |
https://github.com/XWxiaowei/JavaCode/blob/master/java-source/src/main/javax/lang/model/element/AnnotationMirror.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | JavaCode | XWxiaowei | Java | Code | 270 | 504 | /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.lang.model.element;
import java.util.Map;
import javax.lang.model.type.DeclaredType;
/*... | 4,828 |
https://github.com/daidai21/workflows/blob/master/src/workflow/parallel_workflow.hpp | Github Open Source | Open Source | MIT | 2,021 | workflows | daidai21 | C++ | Code | 49 | 163 | /* ****************************************************************************
* File Name : parallel_workflow.hpp
* Author : DaiDai
* Mail : daidai4269@aliyun.com
* Created Time: 二 2/ 9 22:27:14 2021
*************************************************************************** */
#ifndef __PARALLEL... | 47,584 |
https://github.com/calvinlauco/chain/blob/master/chain-core/tests/verify_config.rs | Github Open Source | Open Source | Apache-2.0 | 2,019 | chain | calvinlauco | Rust | Code | 216 | 1,073 | use chain_core::init::address::RedeemAddress;
use chain_core::init::coin::Coin;
use chain_core::init::config::{
InitConfig, InitNetworkParameters, JailingParameters, RewardsParameters, SlashRatio,
SlashingParameters,
};
use chain_core::state::account::StakedStateDestination;
use chain_core::state::tendermint::T... | 4,205 |
https://github.com/giacomoli/CRM-Surportation/blob/master/client/src/actions/openSnackbar.js | Github Open Source | Open Source | MIT | 2,022 | CRM-Surportation | giacomoli | JavaScript | Code | 33 | 85 | import {
OPEN_SNACKBAR, CLOSE_SNACKBAR
} from './types';
export function openSnackbar(message, variant = 'info') {
const request = { message, variant };
return {
type: message ? OPEN_SNACKBAR : CLOSE_SNACKBAR,
payload: request
}
}
| 17,771 |
https://github.com/ilovesusu/suim/blob/master/api/logic/service/v1/group.pb.go | Github Open Source | Open Source | MIT | 2,021 | suim | ilovesusu | Go | Code | 1,158 | 5,195 | // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: v1/group.proto
package v1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
c... | 2,718 |
https://github.com/gamiprashant/CanadaFacts/blob/master/app/src/main/java/com/ary/mobile/canadafacts/util/AryCommons.java | Github Open Source | Open Source | MIT | null | CanadaFacts | gamiprashant | Java | Code | 41 | 107 | package com.ary.mobile.canadafacts.util;
/**
* Created by gamiprashant on 11/02/2015.
*/
public class AryCommons {
//////////////////////////////////////////////////////////////////
public static String safe(String str) {
//sanitizing string for any data issues
if(str == null || str.isEmpty(... | 47,075 |
https://github.com/bombitmanbomb/SquadStatsJSPRO/blob/master/dashboard/public/bower_components/ckeditor/plugins/sourcedialog/lang/de-ch.js | Github Open Source | Open Source | MIT, LGPL-2.0-or-later, GPL-1.0-or-later, GPL-2.0-or-later, LGPL-2.1-only, OFL-1.1, LGPL-2.1-or-later, BSD-3-Clause, MPL-1.1, GPL-2.0-only | 2,021 | SquadStatsJSPRO | bombitmanbomb | JavaScript | Code | 8 | 44 | CKEDITOR.plugins.setLang("sourcedialog", "de-ch", {
toolbar: "Quellcode",
title: "Quellcode",
});
| 2,354 |
https://github.com/hcallahan-lowrisc/ibex/blob/master/dv/uvm/core_ibex/compare.py | Github Open Source | Open Source | Apache-2.0 | null | ibex | hcallahan-lowrisc | Python | Code | 1,006 | 3,088 | #!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
'''
A script to compare an ISS and RTL run to make sure nothing has diverged.
'''
import argparse
import os
import sys
from typing import Dict, Opti... | 44,162 |
https://github.com/myselfanuj/OpenDF/blob/master/sleuthkit/tools/vstools/mmcat.cpp | Github Open Source | Open Source | Apache-2.0, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-free-unknown | 2,019 | OpenDF | myselfanuj | C++ | Code | 578 | 2,026 | /*
* The Sleuth Kit
*
* Brian Carrier [carrier <at> sleuthkit [dot] org]
* Copyright (c) 2008-2011 Brian Carrier. All rights reserved
*
* Output the contents of a partition
*
* This software is distributed under the Covson Public License 1.0
*/
#include "tsk/tsk_tools_i.h"
#ifdef TSK_WIN32
#include <fcntl.h... | 33,483 |
https://github.com/tryretool/mysql/blob/master/tool/version-changes.js | Github Open Source | Open Source | MIT | 2,019 | mysql | tryretool | JavaScript | Code | 101 | 311 | #!/usr/bin/env node
var fs = require('fs');
var path = require('path');
var changesFilePath = path.join(__dirname, '..', 'Changes.md');
var changesFileContents = fs.readFileSync(changesFilePath, 'utf-8');
var changesHeadRegexp = /^## HEAD$/m;
var date = getLocaleDate();
var version =... | 9,884 |
https://github.com/nroutasuo/level13/blob/master/src/game/components/tribe/UpgradesComponent.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | level13 | nroutasuo | JavaScript | Code | 321 | 1,302 | define(['ash', 'game/constants/UpgradeConstants', 'game/vos/UpgradeVO', 'game/vos/BlueprintVO'],
function (Ash, UpgradeConstants, UpgradeVO, BlueprintVO) {
var UpgradesComponent = Ash.Class.extend({
boughtUpgrades: [],
newBlueprints: [],
availableBlueprints: [],
constructor: function () {
this.boughtUpgr... | 32,133 |
https://github.com/NoreChair/ogre/blob/master/RenderSystems/GL3Plus/src/gl3w.c | Github Open Source | Open Source | MIT | 2,019 | ogre | NoreChair | C | Code | 3,371 | 31,327 | /*
This file was generated with gl3w_gen.py, part of gl3w
(hosted at https://github.com/skaslev/gl3w)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as ... | 45,862 |
https://github.com/fsxgit/myself_summary/blob/master/自己封装效果/php/3-php练习实例/知识产权数据库/zscq/.svn/pristine/9a/9a70eeae5f61f090b3dfc3b553f054f82804b231.svn-base | Github Open Source | Open Source | Apache-2.0 | 2,021 | myself_summary | fsxgit | PHP | Code | 122 | 760 | <?php
namespace Admin\Controller;
use Common\Controller\AdminbaseController;
class MainController extends AdminbaseController {
public function index(){
//注册用户
$c1 = M("user")->count();
//已认领用户
$c2 = M("user")->where("isclaimed=1")->count();
//已下单用户
$c33 = M("zcorder_copy")
->distinct(true)-... | 4,159 |
https://github.com/yuruyigit/tenio/blob/master/framework/tenio-core/src/main/java/com/tenio/core/network/NetworkService.java | Github Open Source | Open Source | MIT | 2,021 | tenio | yuruyigit | Java | Code | 289 | 899 | /*
The MIT License
Copyright (c) 2016-2021 kong <congcoi123@gmail.com>
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, m... | 4,116 |
https://github.com/RongW99/fa21_cs225/blob/master/lab_btree/btree.cpp | Github Open Source | Open Source | MIT | null | fa21_cs225 | RongW99 | C++ | Code | 1,084 | 2,118 | /**
* @file btree.cpp
* Implementation of a B-tree class which can be used as a generic dictionary
* (insert-only). Designed to take advantage of caching to be faster than
* standard balanced binary search trees.
*/
/**
* Finds the value associated with a given key.
* @param key The key to look up.
* @return T... | 3,765 |
https://github.com/lesniakania/guard/blob/master/spec/lib/guard/commands/notification_spec.rb | Github Open Source | Open Source | MIT | 2,014 | guard | lesniakania | Ruby | Code | 17 | 63 | require "spec_helper"
describe Guard::Commands::Notification do
it "toggles the Guard notifier" do
expect(::Guard::Notifier).to receive(:toggle)
Pry.run_command "notification"
end
end
| 3,195 |
https://github.com/bellmit/Mall-3/blob/master/mall-modules/mall-coupon/src/main/java/com/ruoyi/coupon/domain/Coupon.java | Github Open Source | Open Source | MIT | 2,021 | Mall-3 | bellmit | Java | Code | 629 | 2,443 | package com.ruoyi.coupon.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDe... | 34,075 |
https://github.com/phuoctien/chatbox/blob/master/public/routes/room/filters/ChatFilter.coffee | Github Open Source | Open Source | MIT | 2,017 | chatbox | phuoctien | CoffeeScript | Code | 9 | 21 | app.filter 'chatFilter', () ->
return (message) ->
return true | 2,615 |
https://github.com/VlachosGroup/Zacros-Wrapper/blob/master/gridengine_submit/Squidward/python_parallel.qs | Github Open Source | Open Source | MIT | 2,023 | Zacros-Wrapper | VlachosGroup | Shell | Code | 40 | 148 | #!/bin/bash
#$ -cwd
#$ -j y
#$ -N mpi_test
#$ -S /bin/bash
#$ -pe openmpi-smp 16
#
# Get our environment setup:
vpkg_require "python/2.7.8"
vpkg_require "openmpi/1.6.3-gcc"
vpkg_require "python-numpy"
vpkg_require "python-scipy"
vpkg_require "python-mpi4py"
# The executable:
mpiexec -n 16 python FindSteadyState.py | 51,343 |
https://github.com/badrfordeveloper/GestionStock/blob/master/app/Produit.php | Github Open Source | Open Source | MIT | null | GestionStock | badrfordeveloper | PHP | Code | 102 | 315 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Produit extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'produits';
/**
* The database primary key value.
*
* @var string
*/
protected $primaryKey ... | 50,316 |
https://github.com/rklumanlan/laravel-hragen/blob/master/resources/views/pages/about_us.blade.php | Github Open Source | Open Source | MIT | null | laravel-hragen | rklumanlan | PHP | Code | 281 | 612 | @extends('app')
@section('title') About Us @parent @stop
@section('content')
@include('layouts.secondary_nav')
<section id="about-us" class="container">
<div class="row">
<div class="col-sm-12">
<h2 class="section-heading">About Us</h2>
<h3 class="section-subheading text-muted justif... | 16,457 |
https://github.com/tiposaurio/site-sdk/blob/master/Source/Core/Web/Routing/WebPagesRouteHandler.cs | Github Open Source | Open Source | Apache-2.0 | 2,013 | site-sdk | tiposaurio | C# | Code | 124 | 453 | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="WebPagesRouteHandler.cs" company="KriaSoft LLC">
// Copyright © 2013 Konstantin Tarkus, KriaSoft LLC. See LICENSE.txt
// </copyright>
// ----------------------------------------... | 47,621 |
https://github.com/its-sushant/coding-interview-gym/blob/master/algoexpert.io/python/Min_Max_Stack_Construction.py | Github Open Source | Open Source | MIT | 2,022 | coding-interview-gym | its-sushant | Python | Code | 125 | 418 | class MinMaxStack:
def __init__(self):
# only contains the min and max value at any given time
# min_max_stack is an array of dictionary, which is the same length of stack
self.min_max_stack = [] # an array of dictionary of min and max key
self.stack = []
# O(1) time | O(1) spac... | 13,672 |
https://github.com/catalinboja/cpp_2018/blob/master/1050/Seminar7/Seminar7/Source.cpp | Github Open Source | Open Source | Apache-2.0 | null | cpp_2018 | catalinboja | C++ | Code | 320 | 1,043 | #include <iostream>
#include <string>
using namespace std;
class DeliveryVan {
const int id;
string driver;
string* addresses;
int noDeliveries;
public:
DeliveryVan(int Id, string driver) :id(Id) {
this->driver = driver;
this->addresses = NULL;
this->noDeliveries = 0;
}
DeliveryVan(int Id, string drive... | 32,490 |
https://github.com/amazeeio/lagoobernetes/blob/master/images/oc-build-deploy-dind/scripts/exec-openshift-resources-with-images.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | lagoobernetes | amazeeio | Shell | Code | 219 | 910 | #!/bin/bash
if [ -n "$ROUTER_URL" ]; then
SERVICE_ROUTER_URL=${SERVICE_NAME}.${ROUTER_URL}
else
SERVICE_ROUTER_URL=""
fi
# Inject Pullable Images into Template
TEMPLATE_ADDITIONAL_PARAMETERS=()
# First check if we need multiple Images in this Template (check for `_SERVICE_IMAGE` - see underline)
if [[ $(oc proces... | 525 |
https://github.com/opentripplanner/otp-ui/blob/master/packages/trip-form/src/__mocks__/modes-fr.ts | Github Open Source | Open Source | MIT | 2,023 | otp-ui | opentripplanner | TypeScript | Code | 424 | 1,550 | import bikeImage from "./static/bike.svg";
import carImage from "./static/car.svg";
import scooterImage from "./static/scooter.svg";
const commonModes = {
transitModes: [
{
image: "https://trimet.org/global/img/mode-bus.png",
mode: "BUS",
label: "Bus"
},
{
image: "https://trimet.o... | 27,483 |
https://github.com/lacodda/cash-app/blob/master/cash-frontend/services/work-time-calendar/src/services/StatisticsService.ts | Github Open Source | Open Source | MIT | null | cash-app | lacodda | TypeScript | Code | 43 | 119 | import http from '@/http-client';
import { Dates } from '@/helpers';
import * as R from 'ramda';
/* eslint-disable */
class StatisticsService {
async getWorkTime(fetchParams: IFetchParams): Promise<any> {
const params = R.mapObjIndexed(Dates.formatISO, fetchParams);
return http.get(`/v1/statistics/work-ti... | 20,515 |
https://github.com/xiexiaopeng2016/lagom/blob/master/service/scaladsl/kafka/server/src/main/scala/com/lightbend/lagom/scaladsl/broker/kafka/LagomKafkaComponents.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | lagom | xiexiaopeng2016 | Scala | Code | 120 | 404 | /*
* Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package com.lightbend.lagom.scaladsl.broker.kafka
import com.lightbend.lagom.internal.scaladsl.broker.kafka.ScaladslRegisterTopicProducers
import com.lightbend.lagom.scaladsl.api.ServiceLocator
import com.lightbend.lagom.scaladsl.projection.... | 16,951 |
https://github.com/oracle/bosh-oracle-cpi-release/blob/master/src/github.com/oracle/bosh-oracle-cpi/action/create_stemcell.go | Github Open Source | Open Source | UPL-1.0, LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,019 | bosh-oracle-cpi-release | oracle | Go | Code | 137 | 407 | package action
import (
bosherr "github.com/cloudfoundry/bosh-utils/errors"
boshlog "github.com/cloudfoundry/bosh-utils/logger"
"github.com/oracle/bosh-oracle-cpi/oci/client"
)
// CreateStemcell action handles the create_stemcell method invocation
type CreateStemcell struct {
connector client.Connector
logger ... | 1,153 |
https://github.com/cemot/Attendance-via-Face-Recognition/blob/master/Server/routes/register.js | Github Open Source | Open Source | MIT | 2,022 | Attendance-via-Face-Recognition | cemot | JavaScript | Code | 61 | 181 | const express = require("express");
const router = express.Router();
const { loginRequired, ensureCorrectUser, ensureCorrectCourse, ensureFaculty } = require("../middlewares/auth");
const { registerAllStudent, deRegisterStudent } = require("../handlers/register");
/**
* Route to unregister a student from a course
*/... | 37,696 |
https://github.com/grumoon/duo-app/blob/master/duo/lib/model/callback.dart | Github Open Source | Open Source | Apache-2.0 | 2,019 | duo-app | grumoon | Dart | Code | 10 | 34 | class Callback {
int errorCode;
String msg;
Callback(this.errorCode, this.msg);
}
| 33,511 |
https://github.com/fsanti68/db-xtract/blob/master/src/test/java/com/dsf/dbxtract/cdc/ConfigTest.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | db-xtract | fsanti68 | Java | Code | 367 | 1,429 | /**
* Copyright 2016 Fabio De Santi
*
* 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 agree... | 5,526 |
https://github.com/aliasgar-m/Reinforcement-Learning/blob/master/src/Random_walk/__init__.py | Github Open Source | Open Source | MIT | null | Reinforcement-Learning | aliasgar-m | Python | Code | 12 | 27 | __all__ = ['agent', 'environment']
from Random_walk import agent
from Random_walk import environment
| 4,326 |
https://github.com/cpw/BuildingGadgets/blob/master/src/api/java/com/direwolf20/buildinggadgets/api/building/modes/IAtopPlacingGadget.java | Github Open Source | Open Source | MIT | 2,019 | BuildingGadgets | cpw | Java | Code | 12 | 60 | package com.direwolf20.buildinggadgets.api.building.modes;
import net.minecraft.item.ItemStack;
public interface IAtopPlacingGadget {
boolean placeAtop(ItemStack stack);
}
| 3,226 |
https://github.com/andysuryono/khs/blob/master/tests/traits/MakeAdminTrait.php | Github Open Source | Open Source | MIT | 2,018 | khs | andysuryono | PHP | Code | 122 | 346 | <?php
use Faker\Factory as Faker;
use App\Models\Admin;
use App\Repositories\AdminRepository;
trait MakeAdminTrait
{
/**
* Create fake instance of Admin and save it in database
*
* @param array $adminFields
* @return Admin
*/
public function makeAdmin($adminFields = [])
{
... | 840 |
https://github.com/iris-ua/iris_lama/blob/master/vendor/minisam/minisam/core/Eigen.h | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,023 | iris_lama | iris-ua | C++ | Code | 551 | 1,408 | /**
* @file Eigen.h
* @brief Manifold/Lie group traits for Eigen::Vector types
* @author Jing Dong
* @date Oct 15, 2017
*/
#pragma once
#include "Traits.h"
#include <Eigen/Core>
#include <iostream>
#include <vector>
namespace minisam {
namespace internal {
/// A helper class implement trais for any ... | 19,417 |
https://github.com/anton-potapov/openvino/blob/master/inference-engine/src/gna_plugin/gna_plugin_internal.hpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | openvino | anton-potapov | C++ | Code | 198 | 834 | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <string>
#include <map>
#include <cpp_interfaces/impl/ie_plugin_internal.hpp>
#include <cpp_interfaces/impl/ie_executable_network_internal.hpp>
#include "gna_executable_network.hpp"
#include ... | 48,156 |
https://github.com/nirekin/ALiteOrm/blob/master/app/src/main/java/gb/aliteorm/lib/core/EntityId.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ALiteOrm | nirekin | Java | Code | 814 | 1,711 | /*
* Copyright (C) 2015 Guillaume Barré
*
* 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 a... | 42,666 |
https://github.com/rdohms/fixthatcode.com/blob/master/src/FTC/Bundle/AuthBundle/Entity/User.php | Github Open Source | Open Source | MIT | 2,021 | fixthatcode.com | rdohms | PHP | Code | 149 | 485 | <?php
namespace FTC\Bundle\AuthBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use FOS\UserBundle\Entity\User as FOSUSer;
/**
* FTC\Bundle\AuthBundle\Entity\User
*
* @ORM\Table()
* @ORM\Entity(repositoryClass="FTC\Bundle\AuthBundle\Entity\UserRepository")
*/
class User extends FOSUser
{
/**
* @var integ... | 42,558 |
https://github.com/seanbashaw/frozenlight/blob/master/export/windows/obj/src/openfl/_internal/renderer/_DrawCommandReader/DrawCircleView_Impl_.cpp | Github Open Source | Open Source | MIT | null | frozenlight | seanbashaw | C++ | Code | 346 | 2,581 | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_openfl__internal_renderer_DrawCommandBuffer
#include <openfl/_internal/renderer/DrawCommandBuffer.h>
#endif
#ifndef INCLUDED_openfl__internal_renderer_DrawCommandReader
#include <openfl/_internal/renderer/DrawCommandReader.h>
#endif
#ifndef INCLUDED_openfl... | 747 |
https://github.com/dangkhanhtrung/restheart/blob/master/restdb/src/main/java/com/fds/repository/qlvtdb/CoreObjectSource.java | Github Open Source | Open Source | MIT | null | restheart | dangkhanhtrung | Java | Code | 26 | 82 | package com.fds.repository.qlvtdb;
public class CoreObjectSource {
private CoreObject _source;
public CoreObject get_source() {
return _source;
}
public void set_source(CoreObject _source) {
this._source = _source;
}
}
| 30,852 |
https://github.com/CandeeGenerations/reclaimed-app/blob/master/app/src/screens/Visitors/index.js | Github Open Source | Open Source | MIT | 2,021 | reclaimed-app | CandeeGenerations | JavaScript | Code | 172 | 648 | /** @jsx jsx */
import {jsx} from '@emotion/core'
import {useEffect} from 'react'
import {Row, Col} from 'antd'
import usePage from '@/helpers/hooks/usePage'
import useTitle from '@/helpers/hooks/useTitle'
import useAsyncLoad from '@/helpers/hooks/useAsyncLoad'
import {camperActions, groupActions, registrationActions}... | 9,283 |
https://github.com/JavaQualitasCorpus/nakedobjects-4.0.0/blob/master/plugins/sql-persistor/src/main/java/org/nakedobjects/plugins/sql/objectstore/SqlPersistorInstaller.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | nakedobjects-4.0.0 | JavaQualitasCorpus | Java | Code | 147 | 738 | package org.nakedobjects.plugins.sql.objectstore;
import org.nakedobjects.metamodel.config.NakedObjectConfiguration;
import org.nakedobjects.plugins.sql.objectstore.auto.AutoMapperFactory;
import org.nakedobjects.plugins.sql.objectstore.jdbc.JdbcConnectorFactory;
import org.nakedobjects.plugins.sql.objectstore.jdbc.Jd... | 29,905 |
https://github.com/tanishiking/dotty/blob/master/tests/pos/t7232/Foo.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Java | Code | 27 | 54 | package pack;
import java.util.List;
public class Foo {
public static java.util.List okay() { throw new Error(); }
public static List wrong() { throw new Error(); }
}
| 38,452 |
https://github.com/uinb/tungus/blob/master/src/main/resources/webapp/src/pages/extrinsic/detail/index.less | Github Open Source | Open Source | Apache-2.0 | 2,022 | tungus | uinb | Less | Code | 15 | 48 | .struct {
width: 100%;
text-indent: 10px;
.struct-item {
.first {
width: 100px;
}
}
}
| 46,937 |
https://github.com/vishnudevk/MiBandDecompiled/blob/master/Original Files/apktool/Mi/smali/com/google/gson/stream/b.smali | Github Open Source | Open Source | Apache-2.0 | 2,021 | MiBandDecompiled | vishnudevk | Smali | Code | 70 | 184 | .class final Lcom/google/gson/stream/b;
.super Ljava/lang/Object;
# static fields
.field static final a:I = 0x1
.field static final b:I = 0x2
.field static final c:I = 0x3
.field static final d:I = 0x4
.field static final e:I = 0x5
.field static final f:I = 0x6
.field static final g:I = 0x7
.field static final... | 22,766 |
https://github.com/zloop1982/TizFbExample/blob/master/tizFacebook/tizFacebook.cpp | Github Open Source | Open Source | MIT | null | TizFbExample | zloop1982 | C++ | Code | 1,063 | 4,112 | /*
* Copyright (c) 2014 Christian Schabesberger
*
* 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, p... | 10,052 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.