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/TranscendComputing/TopStackRDS/blob/master/test/java/com/msi/rdsquery/integration/DescribeDBSecurityGroupsActionTest.java | Github Open Source | Open Source | Apache-2.0 | null | TopStackRDS | TranscendComputing | Java | Code | 150 | 674 | package com.msi.rdsquery.integration;
import java.util.UUID;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.services.rds.model.CreateDBSecurityGroupRequest;
import com.amazonaws.services.rds.model.Dele... | 39,799 |
https://github.com/EtienneFR/shop-testing-v2/blob/master/src/pages/dashboard.vue | Github Open Source | Open Source | MIT | 2,022 | shop-testing-v2 | EtienneFR | Vue | Code | 312 | 1,259 | <template>
<div class="overflow-hidden bg-white shadow sm:rounded-lg">
<div class="px-4 py-5 sm:px-6">
<h3 class="text-lg font-medium leading-6 text-gray-900">
Dashboard
</h3>
<p class="max-w-2xl mt-1 text-sm text-gray-500">
Personal space of Bob D.
</p>
</div>
<div... | 22,264 |
https://github.com/carlosdmz/homelab/blob/master/.gitmodules | Github Open Source | Open Source | MIT | 2,021 | homelab | carlosdmz | Git Config | Code | 24 | 152 | [submodule "hive/docker-hive"]
path = hive/docker-hive
url = git@github.com:big-data-europe/docker-hive.git
[submodule "hadoop/docker-hadoop"]
path = hadoop/docker-hadoop
url = git@github.com:big-data-europe/docker-hadoop.git
[submodule "spark/docker-spark"]
path = spark/docker-spark
url = git@github.com:big-data... | 32,636 |
https://github.com/ReeceHoffmann/virtool/blob/master/tests/fixtures/references.py | Github Open Source | Open Source | MIT | null | virtool | ReeceHoffmann | Python | Code | 89 | 416 | import aiohttp.web
import pytest
from aiohttp.test_utils import make_mocked_coro
@pytest.fixture(params=[True, False])
def check_ref_right(mocker, request):
mock = mocker.patch(
"virtool.references.db.check_right", make_mocked_coro(request.param)
)
mock.__bool__ = lambda x: request.param
moc... | 33,514 |
https://github.com/timmahrt/praatIO/blob/master/examples/__init__.py | Github Open Source | Open Source | MIT | 2,023 | praatIO | timmahrt | Python | Code | 11 | 16 | """
Example scripts using the praatio library are stored here
"""
| 40,340 |
https://github.com/acse-cxd20/MPI-WaveSolver/blob/master/dug_results/1000x1000.o51842519.7 | Github Open Source | Open Source | MIT | null | MPI-WaveSolver | acse-cxd20 | null | Spoken | 87 | 419 | 2021-04-08T04:08:23-0500: == JOB START NAME=1000x1000 QUEUE=iclmsc HOST=hnod8-8-34 DATE=Thu Apr 8 04:08:23 CDT 2021 JOBID=51842519 ARRAY_JOBID=51842519 TASK=7 DEPENDENCIES= ==
2021-04-08T04:08:25-0500: export RJS_TASK=7 np=64
2021-04-08T04:08:25-0500: Starting MPI Analysis job
2021-04-08T04:08:26-0500: Using these no... | 24,987 |
https://github.com/JustAGuest4168/CM3D2.Toolkit/blob/master/CM3D2.Toolkit/Arc/ArcFileSystem.FileOps.cs | Github Open Source | Open Source | MIT | 2,022 | CM3D2.Toolkit | JustAGuest4168 | C# | Code | 977 | 2,897 | // --------------------------------------------------
// CM3D2.Toolkit - ArcFileSystem.FileOps.cs
// --------------------------------------------------
using System.IO;
using CM3D2.Toolkit.Guest4168Branch.Arc.Entry;
namespace CM3D2.Toolkit.Guest4168Branch.Arc
{
public partial class ArcFileSystem
{
//... | 10,351 |
https://github.com/glidelang/compiler-core/blob/master/src/main/java/net/liquidlang/compiler/err/LiquidErrorHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | compiler-core | glidelang | Java | Code | 66 | 225 | package net.liquidlang.compiler.err;
import net.liquidlang.compiler.util.CompilerLogger;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
public class LiquidErrorHandler extends BaseErrorListener {
public static final LiquidErro... | 34,199 |
https://github.com/3d-web-applications/playbot-animation/blob/master/eslint-config/simple-viewer/upload/src/utils/default-update-function.js | Github Open Source | Open Source | MIT | null | playbot-animation | 3d-web-applications | JavaScript | Code | 9 | 16 | const defaultUpdate = () => {};
export default defaultUpdate;
| 49,047 |
https://github.com/kuali/rice/blob/master/rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/validation/processor/CaseConstraintProcessor.java | Github Open Source | Open Source | Artistic-1.0, MIT, Apache-2.0, LicenseRef-scancode-public-domain, EPL-1.0, CPL-1.0, LGPL-2.1-or-later, BSD-3-Clause, LGPL-3.0-only, ECL-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-jdom, LicenseRef-scancode-freemarker, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-generic-cla | 2,017 | rice | kuali | Java | Code | 745 | 2,272 | /**
* Copyright 2005-2015 The Kuali 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 17,598 |
https://github.com/celxkodez/passivefx/blob/master/ot_temp1/scss/_custom-styles.scss | Github Open Source | Open Source | MIT | null | passivefx | celxkodez | SCSS | Code | 369 | 1,399 | // Your custom styles
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
.navbar {
padding-top: 18px;
width: 100%;
}
.nav-link {
font-family: Roboto, Helvetica Neue, sans-serif;
font-size: 14px;
font-weight: 600;
min-width: 88px;
line-height: 36px;
padding: 0 16px;
border... | 46,620 |
https://github.com/Corollarium/Formularium/blob/master/tests/FrameworkTest.php | Github Open Source | Open Source | MIT | 2,020 | Formularium | Corollarium | PHP | Code | 34 | 144 | <?php declare(strict_types=1);
namespace FormulariumTests;
use Formularium\Exception\ClassNotFoundException;
use Formularium\Factory\FrameworkFactory;
use PHPUnit\Framework\TestCase;
final class FrameworkTest extends TestCase
{
public function testFactoryFail()
{
$this->expectException(ClassNotFoundE... | 51,333 |
https://github.com/Michele61/pca9865-library-modified/blob/master/Adafruit_PWMServoDriver.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | pca9865-library-modified | Michele61 | C | Code | 574 | 1,526 | /*!
* @file Adafruit_PWMServoDriver.h
*
* This is a library for our Adafruit 16-channel PWM & Servo driver.
*
* Designed specifically to work with the Adafruit 16-channel PWM & Servo driver.
*
* Pick one up today in the adafruit shop!
* ------> https://www.adafruit.com/product/815
*
* These driver use ... | 8,599 |
https://github.com/vpro/poel/blob/master/src/main/java/nl/vpro/poel/controller/PoelControllerAdvice.java | Github Open Source | Open Source | Apache-2.0 | null | poel | vpro | Java | Code | 196 | 821 | package nl.vpro.poel.controller;
import nl.vpro.poel.UserUtil;
import nl.vpro.poel.domain.CurrentUser;
import nl.vpro.poel.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.WebDataBinder;... | 42,646 |
https://github.com/CfortWang/ffqbg/blob/master/resources/lang/zh/buyer/gift/gift-detail.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | ffqbg | CfortWang | PHP | Code | 123 | 523 | <?php
// [en] ENGLISH ENG eng 영어
// resources/lang/en/gift/detail.php
return [
'header' => [
'title' => '买家管理',
'depth1' => '主页',
'depth2' => '买家',
'depth3' => '奖品'
],
'contents' => [
'title' => '奖品列表',
'title-1' => '奖品信息',
],
'label' => [
... | 2,195 |
https://github.com/krisScript/express-social-network/blob/master/controllers/friends.js | Github Open Source | Open Source | MIT | null | express-social-network | krisScript | JavaScript | Code | 307 | 988 | const User = require('../models/user');
const errorFunc = require('../util/errorFunc');
const FriendRequest = require('../models/friendRequest');
var mongoose = require('mongoose');
const redis = require('redis');
const client = redis.createClient();
const cacheTime = 2000000
exports.getFriendsPage = async (req, res, ... | 19,914 |
https://github.com/tiobe/pmd/blob/master/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTFieldDeclaration.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | pmd | tiobe | Java | Code | 78 | 285 | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.apex.ast;
import net.sourceforge.pmd.annotation.InternalApi;
import apex.jorje.semantic.ast.statement.FieldDeclaration;
public class ASTFieldDeclaration extends AbstractApexNode<FieldDeclaration> ... | 26,898 |
https://github.com/gennadij/admin/blob/master/server/app/org/genericConfig/admin/models/logic/RidToHash.scala | Github Open Source | Open Source | Apache-2.0 | null | admin | gennadij | Scala | Code | 170 | 481 | package org.genericConfig.admin.models.logic
import play.api.Logger
import scala.collection.mutable
/**
* Copyright (C) 2016 Gennadi Heimann genaheimann@gmail.com
*
* Created by Gennadi Heimann 25.05.2018
*/
object RidToHash {
var idHash: mutable.Map[String, String] = scala.collection.mutable.Map[String... | 33,187 |
https://github.com/tacman/range-slider-demo/blob/master/Procfile | Github Open Source | Open Source | MIT | 2,019 | range-slider-demo | tacman | null | Spoken | 5 | 29 | web: vendor/bin/heroku-php-nginx -C heroku-nginx.conf public/
| 24,032 |
https://github.com/Adlibz/kigali-airport-front/blob/master/src/assets/styles/partials/_header.scss | Github Open Source | Open Source | MIT | null | kigali-airport-front | Adlibz | SCSS | Code | 109 | 396 | /**
* \--------------------------------------------------------------------\
* Header
* /--------------------------------------------------------------------/
*/
.top-bar {
padding: 0.5rem 0;
ul {
margin: 0;
li {
display: inline-block;
&:not(:last-child) {
... | 35,163 |
https://github.com/rashmi8105/Synapse/blob/master/app/SQL/RiskCalculation/RiskCalculationVersion2.0WithSoftDeletion/Functions/risk_score_aggregated_RV.sql | Github Open Source | Open Source | MIT | null | Synapse | rashmi8105 | SQL | Code | 464 | 1,860 | DELIMITER $$
DROP FUNCTION IF EXISTS `risk_score_aggregated_RV`$$
CREATE DEFINER = `synapsemaster`@`%` FUNCTION `risk_score_aggregated_RV`(the_org_id INT, the_person_id INT, the_RV_id INT, agg_type VARCHAR(32), the_start_date DATETIME, the_end_date DATETIME) RETURNS varchar(255) CHARSET utf8
READS SQL DATA
DETERMINISTI... | 30,062 |
https://github.com/vunvulear/IoTHomeProject/blob/master/nodejs-grovepi-azureiot/node_modules/azure-iothub/test/_job_client_test.js | Github Open Source | Open Source | BSD-2-Clause | 2,021 | IoTHomeProject | vunvulear | JavaScript | Code | 1,851 | 7,242 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
"use strict";
var assert = require('chai').assert;
var sinon = require('sinon');
var endpoint = require('azure-iot-common').endpoint;
var JobClient = require('../lib/... | 24,329 |
https://github.com/Sirze01/feup-aeda-HouseMaster/blob/master/AEDA2021_Turma06_G03/documentacao/html/search/classes_1.js | Github Open Source | Open Source | MIT | 2,020 | feup-aeda-HouseMaster | Sirze01 | JavaScript | Code | 6 | 62 | var searchData=
[
['client_113',['Client',['../class_client.html',1,'']]],
['collaborator_114',['Collaborator',['../class_collaborator.html',1,'']]]
];
| 21,662 |
https://github.com/fizquierdo/opencga/blob/master/opencga-app/src/main/java/org/opencb/opencga/app/cli/internal/executors/ToolsCommandExecutor.java | Github Open Source | Open Source | Apache-2.0 | null | opencga | fizquierdo | Java | Code | 94 | 421 | package org.opencb.opencga.app.cli.internal.executors;
import org.opencb.hpg.bigdata.analysis.exceptions.AnalysisToolException;
import org.opencb.opencga.analysis.ToolAnalysis;
import org.opencb.opencga.app.cli.internal.options.ToolsCommandOptions;
import org.opencb.opencga.catalog.exceptions.CatalogException;
import ... | 31,347 |
https://github.com/GukhyeonGyeong/MyBookshelf/blob/master/MyBookshelf/ViewModel/HistoryViewModel.swift | Github Open Source | Open Source | MIT | null | MyBookshelf | GukhyeonGyeong | Swift | Code | 220 | 646 | //
// HistoryViewModel.swift
// MyBookshelf
//
// Created by gukhyeon.gyeong on 2021/04/08.
//
import Foundation
class HistoryViewModel {
//
// MARK: Constants
//
private static let CACHE_DIR_NAME = "history"
private static let CACHE_FILE_NAME = "keywords"
//
// MARK: Public... | 22,035 |
https://github.com/Raniac/NEURO-LEARN/blob/master/env/lib/python3.6/site-packages/djcelery/monproj/urls.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | NEURO-LEARN | Raniac | Python | Code | 40 | 132 | from __future__ import absolute_import, unicode_literals
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
url(
r'^doc/',
inc... | 30,586 |
https://github.com/vloebel/team-manager/blob/master/src/writeFiles.js | Github Open Source | Open Source | MIT | 2,021 | team-manager | vloebel | JavaScript | Code | 100 | 262 | const fs = require('fs');
// writes the HTML markup to ./dest/index.HTML
const writeMarkup = (fileContent) => {
return new Promise((resolve, reject) => {
fs.writeFile('./dist/index.html', fileContent, err => {
if (err) {
reject(err);
return;
}
resolve({
ok: true,
... | 42,370 |
https://github.com/davesag/social-media-collector/blob/master/src/webpage/components/archive/ArchiveList.js | Github Open Source | Open Source | MIT | 2,022 | social-media-collector | davesag | JavaScript | Code | 77 | 230 | import React from 'react';
import PropTypes from 'prop-types';
import FacebookRenderer from './renderer/FacebookRenderer';
import YouTubeRenderer from './renderer/YouTubeRenderer';
import YouTubeHostVideoRenderer from './renderer/YouTubeHostVideoRenderer';
const renderItem = item => {
const Renderer =
item.plat... | 14,149 |
https://github.com/zenangst/FuzzyAutocompletePlugin/blob/master/FuzzyAutocomplete/FAItemScoringMethod.m | Github Open Source | Open Source | MIT | 2,015 | FuzzyAutocompletePlugin | zenangst | Objective-C | Code | 118 | 356 | //
// FAItemScoringMethod.m
// FuzzyAutocomplete
//
// Created by Leszek Slazynski on 13/04/2014.
// Copyright (c) 2014 United Lines of Code. All rights reserved.
//
#import "FAItemScoringMethod.h"
#import "DVTTextCompletionItem-Protocol.h"
@implementation FAItemScoringMethod
- (double) scoreItem: (id<DVTTextCom... | 24,389 |
https://github.com/dalalsunil1986/react-instagram-feed/blob/master/client/src/modules/Feed/components/CommentBox/CommentBox.js | Github Open Source | Open Source | MIT | 2,016 | react-instagram-feed | dalalsunil1986 | JavaScript | Code | 42 | 130 | import React, { PropTypes } from 'react';
import styles from './styles.styl';
export const CommentBox = ({
id
}) => (
<div className={styles.itemFooter}>
<span className={styles.likesCount}>
{id} likes
</span>
<input
type="text"
placeholder="Add a comment"
className={styles.comm... | 2,281 |
https://github.com/Marcelino15/tokoreptil/blob/master/application/modules/admin/models/M_coverage.php | Github Open Source | Open Source | MIT | 2,020 | tokoreptil | Marcelino15 | PHP | Code | 54 | 246 | <?php if (!defined('BASEPATH')) { exit('No direct script access allowed');}
class M_coverage extends CI_Model
{
public $table = 'coverage';
public $field_select = ["id_coverage", "idpropinsi_coverage", "idkecamatan_coverage", "idkota_coverage"];
public function __construct()
{
parent::__construct();
}
publi... | 16,751 |
https://github.com/ivandksun/tencentcloud-cli-intl-en/blob/master/tccli/services/sms/__init__.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | tencentcloud-cli-intl-en | ivandksun | Python | Code | 9 | 31 | # -*- coding: utf-8 -*-
from tccli.services.sms.sms_client import action_caller
| 29,229 |
https://github.com/torannn/manim/blob/master/docs/i18n/gettext/reference/manim.animation.indication.Indicate.pot | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | manim | torannn | Gettext Catalog | Code | 156 | 656 |
msgid ""
msgstr ""
"Project-Id-Version: Manim \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../../source/reference/manim.animation.indication.Indicate.rst:2
msgid "Indicate"
msgstr ""
#: ../../source/reference/manim.animation.indication.Indicate.rst:4
ms... | 51,014 |
https://github.com/isabella232/juno/blob/master/packages/juno-core/src/components/Stepper/StepLabel/styles/StepLabelStyle.tsx | Github Open Source | Open Source | MIT | 2,022 | juno | isabella232 | TypeScript | Code | 120 | 492 | import {
css,
palette2,
RcThemedStyled,
spacing,
typography,
} from '../../../../foundation';
import { StepIconStyle } from '../../StepIcon/styles';
import { RcStepIconClasses } from '../../StepIcon/utils';
import { RcStepLabelProps } from '../StepLabel';
import { RcStepLabelClasses } from '../utils';
// * f... | 46,003 |
https://github.com/kirenewardainijoas/project1/blob/master/application/models/M_pertanyaan.php | Github Open Source | Open Source | MIT | 2,021 | project1 | kirenewardainijoas | PHP | Code | 142 | 692 | <?php
class M_pertanyaan extends CI_Model
{
protected $_table = 'tb_pertanyaan';
public function lihat()
{
$dataPertanyaan = [];
$queryPertanyaan = $this->db->get('tb_pertanyaan');
if ($queryPertanyaan->num_rows() > 0) {
foreach ($queryPertanyaan->result_array() as $kolomPertanyaan) {
$where = ['id_... | 23,884 |
https://github.com/jenniferboedker/Sample_Tracking_Status_Overview/blob/master/sample-tracking-status-overview-domain/src/main/groovy/life/qbic/business/samples/download/ComposeManifest.groovy | Github Open Source | Open Source | MIT | 2,021 | Sample_Tracking_Status_Overview | jenniferboedker | Groovy | Code | 102 | 299 | package life.qbic.business.samples.download
/**
* <b>Compose a download manifest based on the output of {@link DownloadSamplesOutput}</b>
*
* <p>This class composes a download manifest based on the output of {@link DownloadSamplesOutput}.</p>
*
* @since 1.0.0
*/
class ComposeManifest implements DownloadSamplesOu... | 1,981 |
https://github.com/cm-schrader/Solar-System-Sim/blob/master/body.py | Github Open Source | Open Source | MIT | 2,021 | Solar-System-Sim | cm-schrader | Python | Code | 832 | 2,848 | import numpy as np
from numpy import longdouble as ld
from enum import Enum
import matplotlib.pyplot as plt
from scipy.optimize import fsolve
from collections import defaultdict
G = ld(6.67408e-11) # Gravitational Coefficient in Nm^2/kg^2
class BodyType(Enum):
Star = 0
Planet = 1
DwarfPlanet = 2
Moon ... | 10,333 |
https://github.com/qistout/GSLAM/blob/master/cmake/FindSystem.cmake | Github Open Source | Open Source | BSD-2-Clause | 2,022 | GSLAM | qistout | CMake | Code | 14 | 74 | set(SYSTEM_FOUND 1)
IF(WIN32)
set(SYSTEM_LIBRARIES Iphlpapi Ws2_32 Vfw32 Winmm Comctl32)
ELSE(WIN32)
set(SYSTEM_LIBRARIES pthread dl)
ENDIF(WIN32)
| 51,584 |
https://github.com/sankoudai/java-knowledge-center/blob/master/java-knowledge-api/src/main/java/com/sankoudai/java/api/container/map/TestStack.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | java-knowledge-center | sankoudai | Java | Code | 48 | 159 | package com.sankoudai.java.api.container.map;
import junit.framework.TestCase;
import java.util.Stack;
/**
* @author : sankoudai
* @version : created at 2015/8/11
*/
public class TestStack extends TestCase {
public void testStack() {
Stack<String> stack = new Stack<String>();
stack.push("a");
... | 36,242 |
https://github.com/sapics/gdrive-appdata/blob/master/src/retrieve-app-data-file-id.js | Github Open Source | Open Source | MIT | 2,016 | gdrive-appdata | sapics | JavaScript | Code | 35 | 137 | var indexTemplate = require('index-template');
var lodashGet = require('lodash/get');
var getFileId = function (response) {
return lodashGet(response, 'result.files[0].id', null);
};
module.exports = function retrieveAppDataFileId(appDataFileName) {
return gapi.client.drive.files.list({
q: indexTemplate('name... | 18,734 |
https://github.com/based-ghost/vue-seo-friendly-spa-template/blob/master/src/config/index.ts | Github Open Source | Open Source | MIT | 2,023 | vue-seo-friendly-spa-template | based-ghost | TypeScript | Code | 166 | 356 | export * from './features.config';
export * from './vue-meta.config';
export * from './vue-gtag.config';
export * from './vue-scrollto.config';
export * from './packages.config';
export const LOREM_IPSUM_TEXT = `
Lorem ipsum dolor sit amet, alia appareat usu id, has legere facilis in.
Nam inani malorum epicuri id,... | 35,515 |
https://github.com/winternet-studio/jensenfw2/blob/master/src/filesystem.php | Github Open Source | Open Source | MIT | null | jensenfw2 | winternet-studio | PHP | Code | 5,488 | 14,672 | <?php
/**
* Functions related to file system handling and manipulation
*/
namespace winternet\jensenfw2;
class filesystem {
/**
* Get a list of all folders in a given folder
*
* @param string $folder : Relative or absolute reference to folder
* @param integer $sorting_order : See PHP documentation for scan... | 28,526 |
https://github.com/aaronang/lispy/blob/master/cmake/FindEdit.cmake | Github Open Source | Open Source | MIT | null | lispy | aaronang | CMake | Code | 32 | 180 | find_path(Edit_INCLUDE_DIR
NAMES editline/readline.h
)
find_library(Edit_LIBRARY
NAMES edit
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EDIT
REQUIRED_VARS Edit_INCLUDE_DIR Edit_LIBRARY
)
if (EDIT_FOUND AND NOT TARGET Edit::Edit)
add_l... | 22,406 |
https://github.com/shreenivasan/Tutorials/blob/master/vendor/thiagoalessio/tesseract_ocr/tests/Unit/Option/TessdataDirTest.php | Github Open Source | Open Source | MIT | 2,022 | Tutorials | shreenivasan | PHP | Code | 43 | 235 | <?php namespace thiagoalessio\TesseractOCR\Tests\Unit\Option;
use thiagoalessio\TesseractOCR\Tests\Common\TestCase;
use thiagoalessio\TesseractOCR\Option\TessdataDir;
class TessdataDirTest extends TestCase
{
public function testSimplePath()
{
$expected = '--tessdata-dir "/path/to/tessdata"';
$actual = new Tessd... | 51,883 |
https://github.com/True-Mining/TrueMiningDesktop/blob/master/Janelas/Popups/ExhangeRates.xaml.cs | Github Open Source | Open Source | MIT | 2,022 | TrueMiningDesktop | True-Mining | C# | Code | 338 | 1,313 | using System;
using System.Windows;
using System.Windows.Input;
namespace TrueMiningDesktop.Janelas.Popups
{
/// <summary>
/// Lógica interna para Calculator.xaml
/// </summary>
public partial class ExchangeRates : Window
{
public ExchangeRates(decimal exchangeRatePontosToMiningCoin)
... | 18,908 |
https://github.com/google/filament/blob/master/third_party/spirv-tools/source/reduce/remove_function_reduction_opportunity.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla, CC0-1.0, LicenseRef-scancode-unknown-license-reference | 2,023 | filament | google | C++ | Code | 187 | 434 | // Copyright (c) 2019 Google LLC
//
// 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 ... | 25,398 |
https://github.com/MobileWaves/grunt-path-to-animation/blob/master/example/output.scss | Github Open Source | Open Source | MIT | 2,016 | grunt-path-to-animation | MobileWaves | SCSS | Code | 636 | 2,099 | @keyframes custom-namespace-name-item1 {
0% { transform: translate(0%, 0%); }
1% { transform: translate(0.14%, 6.47%); }
2% { transform: translate(0.55%, 12.55%); }
3% { transform: translate(1.19%, 18.53%); }
4% { transform: translate(2.03%, 24.66%); }
5% { transform: translate(3.06%, 31.16%); }
6% { transform: ... | 4,433 |
https://github.com/openjournals/buffy/blob/master/spec/responders/help_responder_spec.rb | Github Open Source | Open Source | MIT | 2,023 | buffy | openjournals | Ruby | Code | 371 | 1,615 | require_relative "../spec_helper.rb"
describe HelpResponder do
subject do
described_class
end
describe "listening" do
before { @responder = subject.new({env: { bot_github_user: "botsci" }}, {}) }
it "should listen to new comments" do
expect(@responder.event_action).to eq("issue_comment.creat... | 22,536 |
https://github.com/lowRISC/opentitan/blob/master/hw/ip/entropy_src/rtl/entropy_src_repcnt_ht.sv | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | opentitan | lowRISC | null | Spoken | 333 | 1,282 | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Description: entropy_src repetitive count health test module
//
module entropy_src_repcnt_ht #(
parameter int RegWidth = 16,
parameter int RngBusWidth = 4
) (
... | 31,578 |
https://github.com/gpu/JOCLSamples/blob/master/src/main/java/org/jocl/samples/JOCLBandwidthTest.java | Github Open Source | Open Source | MIT | 2,023 | JOCLSamples | gpu | Java | Code | 931 | 2,462 | /*
* JOCL - Java bindings for OpenCL
*
* Copyright 2009-2019 Marco Hutter - http://www.jocl.org/
*/
package org.jocl.samples;
import static org.jocl.CL.*;
import java.nio.ByteBuffer;
import java.util.Locale;
import org.jocl.*;
/**
* A test for the bandwidth of of the data transfer from the host
* to the devi... | 42,122 |
https://github.com/jbrower95/poker-site/blob/master/client/src/components/Player.tsx | Github Open Source | Open Source | MIT | 2,021 | poker-site | jbrower95 | TypeScript | Code | 83 | 293 | import React from 'react';
import { IHandStateModel, IPlayerModel, IBaseEvent } from '../shared/schema';
type TProps = {
hand: IHandStateModel,
player: IPlayerModel
}
export class Player extends React.Component<TProps> {
render(): React.ReactNode {
const player = this.props.player;
const event = playe... | 48,518 |
https://github.com/LasseWolter/clowdr/blob/master/hasura/migrations/1619817707359_alter_table_public_Invitation_alter_column_attendeeId/down.sql | Github Open Source | Open Source | BSD-3-Clause | 2,022 | clowdr | LasseWolter | SQL | Code | 8 | 26 | alter table "public"."Invitation" rename column "registrantId" to "attendeeId";
| 43,285 |
https://github.com/TwoScoopGames/ld34/blob/master/src/scripts/spawn-controls.js | Github Open Source | Open Source | MIT | 2,017 | ld34 | TwoScoopGames | JavaScript | Code | 13 | 53 | "use strict";
module.exports = function(entity, game) { // eslint-disable-line no-unused-vars
game.prefabs.instantiate(game.entities, "controls");
};
| 32,192 |
https://github.com/fnando/use-form/blob/master/es6/validators/blank.d.ts | Github Open Source | Open Source | MIT | 2,021 | use-form | fnando | TypeScript | Code | 13 | 35 | import { RuleOptions, Validator } from "..";
export declare function blank<Params>(options?: RuleOptions<Params>): Validator<Params>;
| 24,223 |
https://github.com/EOussama/steam-content-lookup/blob/master/src/app/components/search/search.component.ts | Github Open Source | Open Source | MIT | null | steam-content-lookup | EOussama | TypeScript | Code | 454 | 1,141 | import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { Router, NavigationEnd } from '@angular/router';
import { SearchService } from 'src/app/services/search/search.service';
import { TranslateHelper } from 'src/app/helpers/translate/translate.helper';
import { collapseAnimation } from 'sr... | 43,561 |
https://github.com/ricardofbarros/reactotron/blob/master/scripts/welcome.sh | Github Open Source | Open Source | MIT | 2,016 | reactotron | ricardofbarros | Shell | Code | 113 | 271 | #!/bin/bash
echo "-=-=-=-=-=-=-=-=-="
echo "Welcome Developers"
echo "-=-=-=-=-=-=-=-=-="
echo ""
echo "Let's get your build environment ready."
echo ""
echo "Standby while we install dependencies."
echo ""
echo ""
cd packages/reactotron-core-client && yarn install && cd ../..
cd packages/reactotron-core-server && yarn... | 40,775 |
https://github.com/alexr00/xterm.js/blob/master/src/BufferLine.ts | Github Open Source | Open Source | MIT | 2,018 | xterm.js | alexr00 | TypeScript | Code | 311 | 803 | /**
* Copyright (c) 2018 The xterm.js authors. All rights reserved.
* @license MIT
*/
import { CharData, IBufferLine } from './Types';
import { NULL_CELL_CODE, NULL_CELL_WIDTH, NULL_CELL_CHAR } from './Buffer';
/**
* Class representing a terminal line.
*/
export class BufferLine implements IBufferLine {
static ... | 35,538 |
https://github.com/Mss18/Grow-up/blob/master/react/routercrudreact/routercrudreact/src/components/Header.js | Github Open Source | Open Source | MIT | null | Grow-up | Mss18 | JavaScript | Code | 63 | 245 | import React from "react";
import { Link, NavLink } from "react-router-dom";
const Header = () => (
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
<div className="container">
<NavLink to="/productos" className="navbar-brand">
React CRUD & Routing
</NavLink>
<ul className=... | 29,351 |
https://github.com/pulumi/pulumi-rancher2/blob/master/sdk/java/src/main/java/com/pulumi/rancher2/inputs/ClusterTemplateTemplateRevisionClusterConfigRkeConfigMonitoringUpdateStrategyRollingUpdateArgs.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, MPL-2.0 | 2,023 | pulumi-rancher2 | pulumi | Java | Code | 188 | 754 | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.rancher2.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import jav... | 20,945 |
https://github.com/draiberg/imaging-ingestion/blob/master/dicom-dimse-proxy/src/main/java/org/alvearie/imaging/ingestion/dimse/proxy/NatsMessagePublisher.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | imaging-ingestion | draiberg | Java | Code | 232 | 788 | /*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.alvearie.imaging.ingestion.dimse.proxy;
import java.util.List;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import ... | 31,840 |
https://github.com/iamashraful/drf-role-manager/blob/master/drf_role/urls.py | Github Open Source | Open Source | MIT | 2,019 | drf-role-manager | iamashraful | Python | Code | 23 | 116 | from django.conf.urls import url
from drf_role.views import RoleView, PermissionView, AccessControlView, AllUrlList
urlpatterns = [
url(r'^roles/', RoleView.as_view()),
url(r'^permissions/', PermissionView.as_view()),
url(r'^accesses/', AccessControlView.as_view()),
url(r'^all-urls/', AllUrlList.as_vi... | 3,479 |
https://github.com/mesalock-linux/crates-io/blob/master/vendor/rocket_http/src/uri/encoding.rs | Github Open Source | Open Source | Apache-2.0, Unlicense, BSD-3-Clause, 0BSD, MIT | 2,021 | crates-io | mesalock-linux | Rust | Code | 201 | 783 | use std::marker::PhantomData;
use std::borrow::Cow;
use percent_encoding::{EncodeSet, utf8_percent_encode};
use crate::uri::{UriPart, Path, Query};
use crate::parse::uri::is_pchar;
#[derive(Clone, Copy)]
#[allow(non_camel_case_types)]
pub struct UNSAFE_ENCODE_SET<P: UriPart>(PhantomData<P>);
impl<P: UriPart> Defaul... | 41,453 |
https://github.com/pepure/TensorFlow.NET/blob/master/src/TensorFlowNET.Core/Operations/Queues/PriorityQueue.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | TensorFlow.NET | pepure | C# | Code | 249 | 775 | /*****************************************************************************
Copyright 2018 The TensorFlow.NET Authors. 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 Licen... | 37,952 |
https://github.com/paulovinicius-TI/ope-garagem-365/blob/master/app/controller/AcessoRestrito.php | Github Open Source | Open Source | Apache-2.0 | null | ope-garagem-365 | paulovinicius-TI | PHP | Code | 12 | 59 | <?php
session_start();
if (!isset($_SESSION['EmailUsuario']) AND !isset($_SESSION['SenhaUsuario'])) {
header("Location: index.php");
exit;
}
?> | 37,301 |
https://github.com/DreamerDDL/noc/blob/master/sa/profiles/DLink/DxS/ping.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,015 | noc | DreamerDDL | Python | Code | 134 | 407 | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## DLink.DxS.ping
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##------------------------------------------------------------... | 19,891 |
https://github.com/kristincenters/READMEgenerator/blob/master/buildMD.js | Github Open Source | Open Source | MIT | null | READMEgenerator | kristincenters | JavaScript | Code | 106 | 423 | function buildMD(data, response) {
return `

## My next great project
## Description
> This project will help developers save and improve workflow with this easy app to crete a README document.
## Table ... | 14,105 |
https://github.com/shidhincr/preact-material-components/blob/master/Card/index.d.ts | Github Open Source | Open Source | MIT | 2,018 | preact-material-components | shidhincr | TypeScript | Code | 109 | 278 | import Button from '../Button';
import Icon from '../Icon';
import MaterialComponent from '../MaterialComponent';
import { VNode } from 'preact';
declare interface ICardProps extends JSX.HTMLAttributes {
'stroked'?: boolean;
}
export default class Card extends MaterialComponent<ICardProps, {}> {
static Actions: ty... | 21,786 |
https://github.com/Mthandazo42/validating-binary-decompilation/blob/master/tests/single_instruction_translation_validation/mcsema/memory-variants/cmovgl_r32_m32/seed/cmovgl_r32_m32.s | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, NCSA | 2,020 | validating-binary-decompilation | Mthandazo42 | Unix Assembly | Code | 5 | 23 | .target:
cmovgl -32(%rbp), %ebx
retq
| 14,338 |
https://github.com/dahanj95/Telebot/blob/master/Plugins/AppsPlugin/DllMain.cs | Github Open Source | Open Source | MIT | null | Telebot | dahanj95 | C# | Code | 83 | 251 | using AppsPlugin.Core;
using AppsPlugin.Enums;
using BotSdk.Contracts;
using BotSdk.Models;
using System.Collections.Generic;
namespace Plugins.Apps
{
public class DllMain : IModule
{
private Dictionary<string, Session> types;
public DllMain()
{
Pattern = "/apps (fg|all)";... | 34,016 |
https://github.com/arhoy/gatsby-ventura/blob/master/src/pages/index.js | Github Open Source | Open Source | MIT | 2,019 | gatsby-ventura | arhoy | JavaScript | Code | 155 | 448 | import React from 'react';
import Layout from '../components/Layout/Layout';
import StyledHero from '../components/StyledHero';
import Banner from '../components/Banner';
import About from '../components/Home/About';
import Services from '../components/Home/Services';
import { graphql } from 'gatsby';
import AniLink fr... | 17,801 |
https://github.com/dehuo0/content/blob/master/firefox/guide/firefox/firefox_preferences-home_page/bash/firefox.sh | Github Open Source | Open Source | BSD-3-Clause | 2,019 | content | dehuo0 | Shell | Code | 13 | 72 | # platform = Mozilla Firefox
. /usr/share/scap-security-guide/remediation_functions
populate var_default_home_page
firefox_cfg_setting "stig.cfg" "browser.startup.homepage" "\"${var_default_home_page}\""
| 25,829 |
https://github.com/PacktPublishing/Create-Game-Characters-with-Blender/blob/master/Captions/6- Beginning to Sculpt.vtt | Github Open Source | Open Source | MIT | 2,022 | Create-Game-Characters-with-Blender | PacktPublishing | null | Spoken | 2,494 | 4,436 | WEBVTT
00:00.740 --> 00:04.080
Well we're finally ready to begin sculpting.
00:04.100 --> 00:09.340
It's always good to spend the time to build up a solid base mass before you begin sculpting.
00:09.340 --> 00:12.450
And I think we're there I think this is pretty good.
00:12.620 --> 00:18.330
We've got the polygons... | 25,862 |
https://github.com/benjiyamin/Bamazon/blob/master/supervisors/view.js | Github Open Source | Open Source | RSA-MD | null | Bamazon | benjiyamin | JavaScript | Code | 222 | 805 | const inquirer = require('inquirer')
const Table = require('cli-table3')
const model = require('./model')
const formatUSD = require('../formatUSD')
function initialize() {
promptMenu()
}
function promptMenu() {
const VIEW_PRODUCTS_SALES_BY_DEPARTMENT = 'View Product Sales by Department'
const CREATE_NEW_DEPA... | 6,825 |
https://github.com/nitindhar7/shrubb/blob/master/src/main/scala/com/nitindhar/shrubb/model/AbstractData.scala | Github Open Source | Open Source | MIT | 2,013 | shrubb | nitindhar7 | Scala | Code | 17 | 67 | package com.nitindhar.shrubb.model
import org.apache.commons.lang3.builder.ReflectionToStringBuilder
abstract class AbstractData {
override def toString: String = {
ReflectionToStringBuilder.toString(this)
}
} | 43,778 |
https://github.com/sunarditay/gerona/blob/master/path_planner/src/course_planner/course_planner.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | gerona | sunarditay | C++ | Code | 358 | 1,819 | /**
Copyright (C) 2015 Karsten Bohlmann E&K AUTOMATION GmbH
All rights reserved.
@year 2015
@author Karsten Bohlmann
@email bohlmann@gmail.com
@file course_planner.cpp
*/
#include <cslibs_path_planning/geometry/circle.h>
#include <cslibs_path_planning/geometry/line.h>
#include <cslibs_... | 9,390 |
https://github.com/Revxrsal/ImpurityBotX/blob/master/src/main/java/net/reflxction/impuritybot/events/commands/CommandProcessedEvent.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | ImpurityBotX | Revxrsal | Java | Code | 493 | 1,105 | /*
* * Copyright 2018 github.com/ReflxctionDev
*
* 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 la... | 42,147 |
https://github.com/skyiea/syncit-server/blob/master/test/ServerPersist/MongoDb.js | Github Open Source | Open Source | MIT | 2,014 | syncit-server | skyiea | JavaScript | Code | 658 | 3,199 | (function (root, factory) {
"use strict";
if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// like Node.
module.exports = factory(
require('expect.js'),
require('sync-it/Constant.js'),
require('../../Ser... | 27,832 |
https://github.com/wolfgangimig/byps/blob/master/java/bypstest-api/src/byps/test/api/map/MapTypes.java | Github Open Source | Open Source | MIT | 2,023 | byps | wolfgangimig | Java | Code | 84 | 273 | package byps.test.api.map;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import byps.test.api.prim.PrimitiveTypes;
public class MapTypes implements Serializable {
private static final long serialVersionUID = 4001L;
public Map<String... | 47,980 |
https://github.com/Superjaviergf/dp1-2020-g3-02/blob/master/src/main/java/org/springframework/samples/petclinic/service/EnvioEmailService.java | Github Open Source | Open Source | Apache-2.0 | null | dp1-2020-g3-02 | Superjaviergf | Java | Code | 15 | 46 | package org.springframework.samples.petclinic.service;
public interface EnvioEmailService{
public abstract void sendEmail(String to, String subject, String content);
}
| 36,946 |
https://github.com/perlpilot/rakudo-dist/blob/master/.gitignore | Github Open Source | Open Source | Artistic-2.0 | 2,012 | rakudo-dist | perlpilot | Ignore List | Code | 6 | 28 | /rakudo*
/parrot*
/nqp*
/modules
.build
.*.swp
| 122 |
https://github.com/php7bundle/storage/blob/master/src/Domain/Domain.php | Github Open Source | Open Source | MIT | null | storage | php7bundle | PHP | Code | 18 | 66 | <?php
namespace PhpBundle\Storage\Domain;
use PhpLab\Core\Domain\Interfaces\DomainInterface;
class Domain implements DomainInterface
{
public function getName()
{
return 'storage';
}
}
| 34,869 |
https://github.com/mcking49/apache-flask/blob/master/Python/Lib/site-packages/flask_socketio/test_client.py | Github Open Source | Open Source | MIT | 2,016 | apache-flask | mcking49 | Python | Code | 289 | 976 | """
This module contains a collection of auxiliary mock objects used by
unit tests.
"""
class TestServer(object):
counter = 0
def __init__(self):
self.sockets = {}
def new_socket(self):
socket = TestSocket(self, self.counter)
self.sockets[self.counter] = socket
self.count... | 14,618 |
https://github.com/alkampfergit/NStore/blob/master/src/NStore.Domain.Tests/TicketTestFactory.cs | Github Open Source | Open Source | MIT | 2,020 | NStore | alkampfergit | C# | Code | 49 | 132 | namespace NStore.Domain.Tests
{
public static class TicketTestFactory
{
public static Ticket ForTest(string id = "Ticket_1", bool init = true)
{
var ticket = new Ticket();
if (init)
ticket.Init(id);
return ticket;
}
public st... | 16,161 |
https://github.com/ConduitPlatform/Conduit-UI/blob/master/libraries/ui-components/src/components/navigation/ModuleItem.tsx | Github Open Source | Open Source | MIT | 2,022 | Conduit-UI | ConduitPlatform | TypeScript | Code | 205 | 733 | import React, { forwardRef } from "react";
import ListItemIcon from "@mui/material/ListItemIcon";
import ListItemText from "@mui/material/ListItemText";
import makeStyles from "@mui/styles/makeStyles";
import {ListItem, styled, Theme} from "@mui/material";
import clsx from "clsx";
const StyledAtag = styled("a")(() => ... | 11,823 |
https://github.com/kelu124/pyS3/blob/master/com/itextpdf/text/pdf/interfaces/IPdfStructureElement.java | Github Open Source | Open Source | MIT | 2,021 | pyS3 | kelu124 | Java | Code | 19 | 93 | package com.itextpdf.text.pdf.interfaces;
import com.itextpdf.text.pdf.PdfName;
import com.itextpdf.text.pdf.PdfObject;
public interface IPdfStructureElement {
PdfObject getAttribute(PdfName pdfName);
void setAttribute(PdfName pdfName, PdfObject pdfObject);
}
| 17,800 |
https://github.com/liujuanLT/InsightFace_TF/blob/master/test/benchmark/tensorlayer_batchsize_test.py | Github Open Source | Open Source | MIT | 2,022 | InsightFace_TF | liujuanLT | Python | Code | 387 | 1,675 | import tensorflow as tf
import tensorlayer as tl
import os
def inference(x):
w_init_method = tf.contrib.layers.xavier_initializer(uniform=True)
# define the network
network = tl.layers.InputLayer(x, name='input')
network = tl.layers.Conv2d(network, n_filter=64, filter_size=(3, 3), strides=(1, 1), padd... | 7,687 |
https://github.com/gatech/enlightened-debugging/blob/master/jpf-core/src/main/gov/nasa/jpf/vm/serialize/TopFrameSerializer.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | enlightened-debugging | gatech | Java | Code | 180 | 418 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 11,088 |
https://github.com/AdamsPL/fight-club/blob/master/engine/Player.h | Github Open Source | Open Source | MIT | null | fight-club | AdamsPL | C | Code | 81 | 218 | #ifndef _PLAYER_H
#define _PLAYER_H
#include <QObject>
#include <QString>
class GameState;
class Player : public QObject
{
Q_OBJECT
public:
Player(GameState *state);
virtual void receiveMsg(QString msg);
inline int getId() const { return id; }
inline GameState *getGameState() const { return state; }
void se... | 13,319 |
https://github.com/a7madM/lyricsify/blob/master/container.go | Github Open Source | Open Source | MIT | 2,019 | lyricsify | a7madM | Go | Code | 29 | 204 | //+build wireinject
package lyricsify
import (
"context"
"github.com/Ahmad-Magdy/lyricsify/elasticclient"
config "github.com/Ahmad-Magdy/lyricsify/internal"
scrapping "github.com/Ahmad-Magdy/lyricsify/scraping"
"github.com/Ahmad-Magdy/lyricsify/spotifyservice"
"github.com/google/wire"
)
func InitializeLyrics... | 14,259 |
https://github.com/thinceller/next.js/blob/master/packages/next/build/output/exit.ts | Github Open Source | Open Source | MIT | 2,019 | next.js | thinceller | TypeScript | Code | 117 | 321 | export function onExit(fn: Function) {
function exit(signal: string = '') {
try {
if (listeners.length) {
fn()
}
} finally {
while (listeners.length) {
const { event, handler } = listeners.shift()!
process.removeListener(event, handler)
}
if (signal) {
... | 38,116 |
https://github.com/manvalls/greens/blob/master/main.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | greens | manvalls | JavaScript | Code | 300 | 1,116 | /**/ 'use strict' /**/
var sheet = Symbol(),
parent = Symbol(),
style = Symbol(),
RE = /[A-Z]|(^(webkit|moz|ms|o)(?=[A-Z]))/g,
atRE = /^(@[^ {]+)(.*)$/,
counter = 0,
apply;
// CssGroup
class CssGroup{
constructor(sh,extra){
var i,keys;
this[sheet] = sh;
if(extra){
keys =... | 17,238 |
https://github.com/tripdog/Gatsby-Prismic/blob/master/brill-edit-pro/node_modules/@prismicio/custom-types-client/src/errors.ts | Github Open Source | Open Source | 0BSD, Apache-2.0 | 2,021 | Gatsby-Prismic | tripdog | TypeScript | Code | 298 | 548 | /**
* Metadata about the failed Prismic Custom Types API request.
*/
type PrismicErrorArgs<TResponse> = {
/**
* The Prismic Custom Types API URL used for the failed request.
*/
url: string;
/**
* The Prismic Custom Types API response from the failed request.
*/
response?: TResponse;
};
/**
* An error r... | 17,634 |
https://github.com/australiaitgroup/snakegame/blob/master/src/au/com/jiangren/games/snake/Food.java | Github Open Source | Open Source | MIT | null | snakegame | australiaitgroup | Java | Code | 36 | 112 | package au.com.jiangren.games.snake;
import javafx.geometry.Point2D;
public class Food {
private Point2D position;
public Food(Point2D position) {
this.position = position;
}
public Point2D getPosition() {
return position;
}
public void setPosition(Point2D position) {
... | 21,017 |
https://github.com/mille2004/NoteItIOS/blob/master/Vendor/BWAFNetworking/BWAFNetworking.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | NoteItIOS | mille2004 | C | Code | 128 | 669 | //
// BWAFNetworking.h
// Notepad
//
// Created by Bruno Wernimont on 19/07/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFNetworking.h"
typedef void(^BWAFNetworkingAllObjectsSuccessBlock)(NSArray *objects);
typedef void(^BWAFNetworkingObjectSuc... | 7,752 |
https://github.com/zhewuzhou/variant-sample/blob/master/standalone-android-gradle-plugin/gradle-core/src/main/java/com/android/build/api/variant/impl/BuiltArtifactImpl.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | variant-sample | zhewuzhou | Kotlin | Code | 514 | 1,788 | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 18,936 |
https://github.com/Carlitox95/App-Patuserie/blob/master/index.php | Github Open Source | Open Source | CC0-1.0 | null | App-Patuserie | Carlitox95 | PHP | Code | 165 | 567 | <!DOCTYPE html>
<html lang="es">
<head>
<!-- Invocamos el modulo que tiene el Head -->
<?php include ('modulo-head.php') ?>
</head>
<body id="page-top">
<!-- Navigation -->
<!-- Invocamos al modulo para tener el menu de navegacion -->
<?php include ('modulo-navigation.php') ?>
<header... | 21,348 |
https://github.com/PecanProject/pecan/blob/master/modules/meta.analysis/R/meta.analysis.write.model.R | Github Open Source | Open Source | NCSA, LicenseRef-scancode-unknown-license-reference | 2,023 | pecan | PecanProject | R | Code | 411 | 1,045 | #-------------------------------------------------------------------------------
# Copyright (c) 2012 University of Illinois, NCSA.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the
# University of Illinois/NCSA Open Source License
# which accompanies this d... | 40,791 |
https://github.com/Muratbatirov/Case1/blob/master/public/CaseOne/ext/packages/core/src/data/proxy/Proxy.js | Github Open Source | Open Source | MIT | null | Case1 | Muratbatirov | JavaScript | Code | 2,013 | 4,403 | /**
* Proxies are used by {@link Ext.data.Store Stores} to handle the loading and saving of
* {@link Ext.data.Model Model} data. Usually developers will not need to create or interact
* with proxies directly.
*
* # Types of Proxy
*
* There are two main types of Proxy - {@link Ext.data.proxy.Client Client} and
*... | 46,137 |
https://github.com/thirteenpylons/practicerust/blob/master/todo_app/src/to_do/structs/done.rs | Github Open Source | Open Source | MIT | null | practicerust | thirteenpylons | Rust | Code | 56 | 144 | use super::base::Base;
use super::traits::get::Get;
use super::traits::delete::Delete;
use super::traits::edit::Edit;
pub struct Done {
pub super_struct: Base
}
impl Done {
pub fn new(input_title: &str) -> Done {
let input_status: String = String::from("done");
let base: Base = Base::new(input... | 48,850 |
https://github.com/ClementGuerin/Semaine-Intensive---3D/blob/master/assets/styles/sass/components/_demo3d.scss | Github Open Source | Open Source | MIT | null | Semaine-Intensive---3D | ClementGuerin | SCSS | Code | 211 | 879 | .demo3d{
padding-bottom: 250px;
position: relative;
z-index: 1;
h1{
text-align: center;
font-family: 'Exo Bold';
font-size: 24px;
}
.parent-traitbleu{
text-align: center;
.traitbleu{
width: 3px;
height: 60px;
... | 4,065 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.