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/TheHerno/cg_stock_bot/blob/master/src/utils/checkStock.ts | Github Open Source | Open Source | MIT | null | cg_stock_bot | TheHerno | TypeScript | Code | 31 | 78 | const checkStock = async (product: string): Promise<Boolean> => {
const res = await fetch(`https://compragamer.com/producto/${product}`)
const html = await res.text()
let stock = html.includes("Sumar al carrito")
return stock
}
export default checkStock
| 20,264 |
https://github.com/stefan1968/gokyo-group/blob/master/src/components/all.sass | Github Open Source | Open Source | MIT | 2,021 | gokyo-group | stefan1968 | Sass | Code | 647 | 2,236 | @import "~bulma/sass/utilities/initial-variables"
// Config vars
// Kaldi logo brand color: #FD461E
$kaldi-red: #FD461E
$kaldi-red-invert: #fff
$primary: $kaldi-red
$primary-invert: $kaldi-red-invert
$body-color: #333
$black: #000000
div
font-family: 'Merriweather Sans'
h1,h2,h3,h4,h5,h6,button
font-family: 'Me... | 5,232 |
https://github.com/iTwenty/Hashtagger/blob/master/src/net/thetranquilpsychonaut/hashtagger/sites/gplus/ui/GPlusHeader.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,014 | Hashtagger | iTwenty | Java | Code | 203 | 717 | package net.thetranquilpsychonaut.hashtagger.sites.gplus.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import net.thetranquilpsychonaut.hashtagger.R;
import net.thetranquilpsychonaut.hashtagger... | 38,603 |
https://github.com/barbatoast/bpf-parser/blob/master/Makefile | Github Open Source | Open Source | MIT | null | bpf-parser | barbatoast | Makefile | Code | 25 | 105 | scanner: lex.yy.c grammer.tab.c
gcc -std=c99 -o parser grammer.tab.c
grammer.tab.c: grammer.y
bison -v grammer.y
lex.yy.c: scanner.l
flex scanner.l
clean:
rm -rf grammer.tab.h grammer.tab.c lex.yy.c grammer.output parser
| 13,805 |
https://github.com/eladg/bart-watch-client/blob/master/client/redux/reducer.js | Github Open Source | Open Source | MIT | null | bart-watch-client | eladg | JavaScript | Code | 211 | 631 | import axios from 'axios';
import config from '../config.json';
const UPADTE_MAP = 'UPADTE_MAP';
const UPADTE_MAP_INDEX = 'UPADTE_MAP_INDEX';
const UPADTE_MAP_ERROR = 'UPADTE_MAP_ERROR';
const SET_MAPTHREE = 'SET_MAPTHREE';
const initState = {
mapData: null,
mapIndex: null,
error: null,
mapThree: null
}
expo... | 4,184 |
https://github.com/tundera/remix-prisma/blob/master/.eslintrc.js | Github Open Source | Open Source | MIT | null | remix-prisma | tundera | JavaScript | Code | 224 | 1,052 | /**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
env: {
browser: true,
node: true,
es2021: true,
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
],
plugins: ['imp... | 13,543 |
https://github.com/friedger/kethereum/blob/master/crypto_api/src/main/kotlin/org/kethereum/crypto/impl/kdf/PBKDF2.kt | Github Open Source | Open Source | MIT | 2,022 | kethereum | friedger | Kotlin | Code | 36 | 128 | package org.kethereum.crypto.impl.kdf
import org.kethereum.crypto.impl.hashing.DigestParams
interface PBKDF2 {
fun derive(pass: ByteArray, salt: ByteArray?, iterations: Int = 2048, digestParams: DigestParams = DigestParams.Sha512): ByteArray
fun derive(pass: CharArray, salt: ByteArray?, iterations: Int = 204... | 30,324 |
https://github.com/caodg/xiuos/blob/master/Ubiquitous/XiUOS/tool/shell/letter-shell/file_ext/bzlib/bzlib_private.h | Github Open Source | Open Source | MIT, LicenseRef-scancode-mulanpsl-2.0-en | 2,021 | xiuos | caodg | C | Code | 375 | 1,675 | /* ------------------------------------------------------------------
This file is part of bzip2/libbzip2, a program and library for
lossless, block-sorting data compression.
bzip2/libbzip2 version 1.0.4 of 20 December 2006
Copyright (C) 1996-2006 Julian Seward <jseward@bzip.org>
Please read the WARNING, DISCLAIMER a... | 8,113 |
https://github.com/square/square-dotnet-sdk/blob/master/Square/Models/OrderPricingOptions.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | square-dotnet-sdk | square | C# | Code | 575 | 1,851 | namespace Square.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using APIMatic.Core.Utilities.Converters;
using Newtonsoft.Json;
using Newtonsoft.Json.Conve... | 56,893 |
https://github.com/cnsuhao/yam/blob/master/code/pstoyam/src/pschannel.cpp | Github Open Source | Open Source | MIT | 2,014 | yam | cnsuhao | C++ | Code | 263 | 1,159 | #include "pschannel.h"
namespace yam{ namespace external{
YCPsBufferProcs::YCPsBufferProcs()
: m_pProcAllocate(NULL)
, m_pProcFree(NULL)
, m_pProcLock(NULL)
, m_pProcUnlock(NULL)
{
//
}
YCPsBufferProcs::~YCPsBufferProcs()
{
//
}
void YCPsBufferProcs::operator=(BufferProcs*& rpBufferProcs)
{
... | 6,007 |
https://github.com/pmcollins/feedster/blob/master/Classes/DownloadListener.h | Github Open Source | Open Source | MIT | null | feedster | pmcollins | C | Code | 42 | 210 | //
// DownloadListener.h
// XReader
//
// Created by Pablo Collins on 5/6/12.
//
#import "Article.h"
#import <AVFoundation/AVFoundation.h>
@protocol DownloadListener <NSObject>
- (void)downloadQueuedForArticleId:(NSManagedObjectID *)articleId;
- (void)downloadStartedForArticleId:(NSManagedObjectID *)articleId;
... | 17,832 |
https://github.com/lucasvbeek/Knowledgebase/blob/master/app/Console/Commands/User/CreateCommand.php | Github Open Source | Open Source | MIT | null | Knowledgebase | lucasvbeek | PHP | Code | 172 | 500 | <?php
namespace App\Console\Commands\User;
use App\Author;
use App\User;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Hash;
class CreateCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'cf:user:creat... | 46,664 |
https://github.com/pikesley/rgb-desk/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | rgb-desk | pikesley | Makefile | Code | 409 | 1,240 | PROJECT = $(shell basename $$(pwd))
ID = pikesley/${PROJECT}
PIHOST = led.local
default: all
# Laptop targets
build: laptop-only
docker build \
--tag ${ID} .
docker-compose:
docker-compose up
run: laptop-only
docker-compose exec light-emitting-desk bash
# Docker targets
all: docker-only format lint test cle... | 45,353 |
https://github.com/sillsun/PanuonUI.Silver/blob/master/SharedResources/Panuon.UI.Silver.Internal/Controls/NoticeXWindow.cs | Github Open Source | Open Source | MIT | null | PanuonUI.Silver | sillsun | C# | Code | 340 | 1,190 | using Panuon.UI.Silver.Components;
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Threading;
namespace Panuon.UI.Silver.Internal.Controls
{
internal sealed class NoticeXWindow : ... | 21,281 |
https://github.com/kikonejacob/schedit/blob/master/web/src/app/modules/studyclasses/lib/actions.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | schedit | kikonejacob | JavaScript | Code | 196 | 737 | /**
* STUDY CLASSES ACTIONS
* This code below represent all the actions managed by this modules
*/
import {ShouldFetch,APIgetFetch} from 'utils/asyncHelper';
import {URL_CLASSE_LIST,URL_CLASS,URL_LEVEL_CLASSES,URL_CLASS_AGGREGATE}from 'lib/apiUrlconst';
import {API_LIST_STUDYCLASS,API_GET_STUDYCLASS,API_CLASS_AGGR... | 28,536 |
https://github.com/nutli/concept_normalisation/blob/master/concept_normalisation.py | Github Open Source | Open Source | MIT | 2,016 | concept_normalisation | nutli | Python | Code | 1,173 | 4,458 | #! /usr/bin/env python
__author__ = 'nl347'
import numpy as np
from tensorflow.contrib import learn
import lasagne
from gensim.models.word2vec import Word2Vec
import theano
import logging
import sys
import time
import argparse
logger = logging.getLogger("concept_normalisation")
logger.setLevel(logging.INFO)
stream_ha... | 16,348 |
https://github.com/andrii-pukhalevych/cakephp-ide-helper/blob/master/tests/test_app/src/Generator/Task/TestFixtureTask.php | Github Open Source | Open Source | MIT | 2,022 | cakephp-ide-helper | andrii-pukhalevych | PHP | Code | 43 | 205 | <?php
namespace TestApp\Generator\Task;
use IdeHelper\Generator\Task\FixtureTask;
class TestFixtureTask extends FixtureTask {
/**
* @return \IdeHelper\ValueObject\StringName[]
*/
protected function getFixtures(): array {
$list = parent::getFixtures();
$list = [
'app.Houses' => $list['app.Houses'],
... | 40,410 |
https://github.com/HackQC2017-BoltTeam/alerte-blanche-api/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,017 | alerte-blanche-api | HackQC2017-BoltTeam | Ignore List | Code | 18 | 65 | # Python
*.pyc
__pycache__
*.egg-info
/dist
/build
*.venv
# OS-specific
.DS_Store
# Editors
*.sublime-project
*.sublime-workspace
# Database
*.db
| 527 |
https://github.com/seanyen/can-talon-srx-ros/blob/master/include/can_talon_srx/can_base.h | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,020 | can-talon-srx-ros | seanyen | C | Code | 104 | 383 | #ifndef CAN_TALON_SRX_CAN_BASE_H
#define CAN_TALON_SRX_CAN_BASE_H
#include "wpilib/CANSessionMux.h"
namespace can_talon_srx
{
class CanInterface
{
public:
virtual void sendMessage(uint32_t messageID, const uint8_t *data, uint8_t dataSize, int32_t periodMs, int32_t *status) = 0;
virtual void receiv... | 50,434 |
https://github.com/tnir/gitaly/blob/master/internal/praefect/coordinator_pg_test.go | Github Open Source | Open Source | BSD-3-Clause, ISC, LicenseRef-scancode-unknown-license-reference, Apache-2.0, BSD-2-Clause, GPL-2.0-or-later, MIT, GPL-1.0-or-later, LicenseRef-scancode-google-patent-license-golang, MPL-2.0 | 2,022 | gitaly | tnir | Go | Code | 1,069 | 4,143 | package praefect
import (
"context"
"errors"
"fmt"
"math/rand"
"sync"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/v14/internal/praefect/config"
"gitlab.com/gitlab-org/gitaly/v14/internal/praefect/datastore"
"gitlab.com/gitlab-org/gitaly... | 12,090 |
https://github.com/Lykos/cube_trainer/blob/master/client/src/app/utils/sampling/weighted-draw.ts | Github Open Source | Open Source | MIT | 2,023 | cube_trainer | Lykos | TypeScript | Code | 83 | 181 | import { sum } from '@utils/utils';
interface Weighted {
readonly weight: number;
}
export function weightedDraw<X extends Weighted>(xs: X[]): X {
const weightSum = sum(xs.map(x => x.weight));
if (weightSum === 0) {
throw new Error('weight sum is 0');
}
let weightIndex = Math.random() * weightSum;
for... | 29,795 |
https://github.com/Archomeda/scraping/blob/master/tests/gw2wiki/miniSets.spec.js | Github Open Source | Open Source | MIT | 2,020 | scraping | Archomeda | JavaScript | Code | 65 | 220 | /* eslint-env node, mocha */
import { expect } from 'chai'
import fetchMock from 'lets-fetch/mock'
import miniSets from '../../src/gw2wiki/miniSets.js'
miniSets.__set__('fetch', fetchMock)
describe('gw2wiki > miniSets', function () {
this.timeout(20000)
beforeEach(() => {
fetchMock.enableMocking(false)
fe... | 55,640 |
https://github.com/barats/ohUrlShortener/blob/master/Makefile | Github Open Source | Open Source | MulanPSL-1.0 | 2,022 | ohUrlShortener | barats | Makefile | Code | 210 | 1,192 | .PHONY: all build compress build-macos build-linux build-windows compress-macos compress-linux compress-windows help
BUILD_PATH=./build
APPNAME=ohurlshortener
all: build compress
build: build-macos build-linux build-windows
compress: compress-macos compress-linux compress-windows
build-macos:
@echo "开始 macOS 可执行程序编... | 43,579 |
https://github.com/ericclei/arctic-captions/blob/master/make_coco_chunks1.py | Github Open Source | Open Source | BSD-3-Clause | 2,016 | arctic-captions | ericclei | Python | Code | 656 | 2,350 | import caffe
from caffe_cnn import *
import numpy as np
import os
import scipy
import json
import cPickle
from sklearn.feature_extraction.text import CountVectorizer
import pdb
from pycocotools.coco import COCO
from pycocoevalcap.eval import COCOEvalCap
import requests
import sys
#Create the CNN, using the 19 layers C... | 55,081 |
https://github.com/ShkarupaDC/software-architecture/blob/master/query/src/config/config.ts | Github Open Source | Open Source | MIT | null | software-architecture | ShkarupaDC | TypeScript | Code | 84 | 274 | import 'dotenv/config';
import { ServerConfig } from '@shared/interfaces/config/server';
import { DBConfig } from '@shared/interfaces/config/db';
import { SearchConfig } from '@config/interfaces/search.config';
import { AppConfig } from '@config/interfaces/app.config';
export const config = {
server: {
host: pr... | 54,067 |
https://github.com/rlaschuk/devops-platform-eks-template/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,020 | devops-platform-eks-template | rlaschuk | Ignore List | Code | 5 | 25 | .hub/*.elaborate
.hub/*.state
.env
env/
.terraform
| 24,081 |
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/devel/hs-streaming-commons/buildlink3.mk | Github Open Source | Open Source | Unlicense | 2,021 | dotfiles-1 | Scottx86-64 | Makefile | Code | 33 | 306 | # $NetBSD: buildlink3.mk,v 1.3 2021/05/03 19:01:02 pho Exp $
BUILDLINK_TREE+= hs-streaming-commons
.if !defined(HS_STREAMING_COMMONS_BUILDLINK3_MK)
HS_STREAMING_COMMONS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.hs-streaming-commons+= hs-streaming-commons>=0.2.2
BUILDLINK_ABI_DEPENDS.hs-streaming-commons+= hs-streaming-c... | 14,169 |
https://github.com/iltizio/MusicLibrary/blob/master/src/app/albums/albums-list/albums-list.component.ts | Github Open Source | Open Source | MIT | null | MusicLibrary | iltizio | TypeScript | Code | 68 | 238 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { AlbumsService } from '../shared/albums.service';
import { Album } from '../shared/album';
@Component({
selector: 'app-albums-list',
templateUrl: 'app/albums/albums-list/albums-list.component.html',
styleU... | 27,633 |
https://github.com/dictyBase/modware-import/blob/master/internal/k8s/random_name.go | Github Open Source | Open Source | BSD-2-Clause | null | modware-import | dictyBase | Go | Code | 5,604 | 26,168 | package k8s
func PluralNoun() []string {
return []string{
"Abilities", "Absences", "Abundances", "Academics",
"Academies", "Accents", "Acceptances", "Accesses", "Accidents",
"Accommodations", "Accomplishments", "Accordances", "Accountabilities",
"Accountants", "Accounts", "Accumulations", "Accuracies", "Accus... | 17,279 |
https://github.com/Neil9102/gogocode-copy/blob/master/packages/gogocode-core/src/NodePath.js | Github Open Source | Open Source | MIT | 2,021 | gogocode-copy | Neil9102 | JavaScript | Code | 71 | 196 | const recast = require('recast');
const visit = recast.types.visit;
module.exports = class NodePath {
constructor(node, parent, parentPath) {
if (!parent && !parentPath && node.program) {
const nodePath = this;
visit(node, {
visitFile(path) {
['no... | 30,266 |
https://github.com/OnlineMenu-StartUp/OnlineMenu.Api/blob/master/OnlineMenu.Domain/Exceptions/BadValueException.cs | Github Open Source | Open Source | MIT | null | OnlineMenu.Api | OnlineMenu-StartUp | C# | Code | 19 | 52 | using System;
namespace OnlineMenu.Domain.Exceptions
{
public class BadValueException: Exception
{
public BadValueException(string message) : base(message)
{ }
}
} | 12,603 |
https://github.com/estebanarivasv/Systems-Design-UM/blob/master/web/src/app/app.module.ts | Github Open Source | Open Source | MIT | null | Systems-Design-UM | estebanarivasv | TypeScript | Code | 207 | 790 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { HeaderComponent } from './header/header.componen... | 56,726 |
https://github.com/noobiehacker/CaptivaAndroidDemoApp/blob/master/app/src/main/java/emc/captiva/mobile/sdksampleapp/ServiceBuilder/CaptivaImageServiceBuilder.java | Github Open Source | Open Source | MIT | null | CaptivaAndroidDemoApp | noobiehacker | Java | Code | 72 | 328 | package emc.captiva.mobile.sdksampleapp.ServiceBuilder;
import emc.captiva.mobile.sdksampleapp.Interceptor.CaptivaCookieInterpreter;
import emc.captiva.mobile.sdksampleapp.Service.CaptivaImageUploadService;
import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/*... | 49,175 |
https://github.com/artur79/ff-tbl-macros/blob/master/spec/lib/ctx/copy_spec.rb | Github Open Source | Open Source | MIT | null | ff-tbl-macros | artur79 | Ruby | Code | 80 | 219 | # frozen_string_literal: true
RSpec.describe Macros::Ctx::Copy do
subject(:copy_step) { described_class.new(origin_key, destination_key) }
let(:origin_key) { :foo }
let(:destination_key) { :bar }
let(:value) { :lorem }
let(:ctx) { { origin_key => value } }
it 'expects to copy origin value to destination... | 16,984 |
https://github.com/rahulsom/bootstraped-multi-test-results-report/blob/master/junit-reporting-handlebars/src/main/java/com/github/bogdanlivadariu/reporting/junit/xml/models/BaseModel.java | Github Open Source | Open Source | MIT | 2,021 | bootstraped-multi-test-results-report | rahulsom | Java | Code | 63 | 192 | package com.github.bogdanlivadariu.reporting.junit.xml.models;
import jakarta.xml.bind.annotation.*;
@XmlAccessorType(XmlAccessType.FIELD)
public class BaseModel {
@XmlAttribute
private String message;
@XmlAttribute
private String type;
@XmlValue
private String value;
public String getM... | 38,334 |
https://github.com/bitfade/actionscript/blob/master/media/visuals/Rtmp.as | Github Open Source | Open Source | MIT | null | actionscript | bitfade | null | Spoken | 34 | 110 | /*
This class is used display a video stream
*/
package bitfade.media.visuals {
import bitfade.media.visuals.*
public class Rtmp extends bitfade.media.visuals.Video {
// constructor
public function Rtmp(w:uint=0,h:uint=0) {
super(w,h)
}
}
}
/* commentsOK */ | 1,191 |
https://github.com/AlperMehmetOzdemir/react_mini_projects/blob/master/react-projects-master/20-dark-mode/final/src/Article.js | Github Open Source | Open Source | MIT | null | react_mini_projects | AlperMehmetOzdemir | JavaScript | Code | 40 | 128 | import React from 'react'
import moment from 'moment'
const Article = ({ title, snippet, date, length }) => {
return (
<article className='post'>
<h2>{title}</h2>
<div className='post-info'>
<span>{moment(date).format('dddd Do, YYYY')}</span>
<span>{length} min read</span>
</div>... | 16,454 |
https://github.com/jiubadao/DelegationAdapter/blob/master/sample/src/main/java/com/kevin/delegationadapter/sample/multidataandtype/MultiDataAndTypeActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | DelegationAdapter | jiubadao | Java | Code | 152 | 949 | package com.kevin.delegationadapter.sample.multidataandtype;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.wid... | 25,557 |
https://github.com/vcvetkovs/TonSdk/blob/master/src/TonSdk/Modules/Processing/ITonClient.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | TonSdk | vcvetkovs | C# | Code | 18 | 51 | using TonSdk.Modules.Processing;
namespace TonSdk
{
public partial interface ITonClient
{
IProcessingModule Processing { get; set; }
}
}
| 115 |
https://github.com/baoxqw/leaplean/blob/master/src/pages/PlanManagement/ProgressLook/ProgressLook.js | Github Open Source | Open Source | MIT | null | leaplean | baoxqw | JavaScript | Code | 1,066 | 3,599 | import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import NormalTable from '@/components/NormalTable';
import {
Row,
Col,
Form,
Input,
DatePicker,
Divider,
Button,
Card,
Tree,
Checkbox,
message,
Popconfirm,
} from 'antd';
import router ... | 13,173 |
https://github.com/kenilt/SimpleCircleIndicator/blob/master/app/src/main/java/com/kenilt/simplecircleindicator/PageModel.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | SimpleCircleIndicator | kenilt | Kotlin | Code | 18 | 51 | package com.kenilt.loopingviewpager.example
/**
* Created by thangnguyen on 3/11/20.
*/
data class PageModel(var text: String, var color: Int)
| 6,642 |
https://github.com/TomDecroos/atomic-spadl/blob/master/socceraction/spadl/opta.py | Github Open Source | Open Source | MIT | 2,020 | atomic-spadl | TomDecroos | Python | Code | 1,855 | 7,544 | import tqdm # type: ignore
import json # type: ignore
import pandas as pd # type: ignore
import numpy as np # type: ignore
import unidecode # type: ignore
#####################################
# Convert opta json files to opta.h5
#####################################
def jsonfiles_to_h5(jsonfiles, h5file, append=Tr... | 4,511 |
https://github.com/roboavatars/FtcRobotController/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/OpenCV/BaseDetector.java | Github Open Source | Open Source | MIT | 2,021 | FtcRobotController | roboavatars | Java | Code | 81 | 444 | package org.firstinspires.ftc.teamcode.OpenCV;
import com.acmerobotics.dashboard.FtcDashboard;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName;
import org.openftc.easyopencv.OpenCvCamera;
import org.openftc.easyopencv.OpenCvCamera... | 34,201 |
https://github.com/marco-c/gecko-dev-wordified/blob/master/testing/web-platform/tests/html/canvas/offscreen/filters/2d.filter.value.worker.js | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,023 | gecko-dev-wordified | marco-c | JavaScript | Code | 612 | 1,315 | /
/
DO
NOT
EDIT
!
This
test
has
been
generated
by
/
html
/
canvas
/
tools
/
gentest
.
py
.
/
/
OffscreenCanvas
test
in
a
worker
:
2d
.
filter
.
value
/
/
Description
:
test
if
ctx
.
filter
works
correctly
/
/
Note
:
importScripts
(
"
/
resources
/
testharness
.
js
"
)
;
importScripts
(
"
/
html
/
canvas
/
resources
/
c... | 17,930 |
https://github.com/Baseult/Riptide-Remastered/blob/master/Riptide Remastered/Riptide-Remastered/Cheat/Radar/Radar.cpp | Github Open Source | Open Source | MIT | 2,022 | Riptide-Remastered | Baseult | C++ | Code | 537 | 2,185 | #include "Radar.h"
using namespace Client;
//[junk_enable /]
void CRadar::RadarRange(float* x, float* y, float range)
{
if (fabs((*x)) > range || fabs((*y)) > range)
{
if ((*y) > (*x))
{
if ((*y) > -(*x))
{
(*x) = range * (*x) / (*y);
(*y) = range;
}
else
{
(*y) = -range * (*y) / (*x);... | 24,821 |
https://github.com/christopher-beckham/orion/blob/master/tests/unittests/algo/test_base.py | Github Open Source | Open Source | BSD-3-Clause | null | orion | christopher-beckham | Python | Code | 186 | 626 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Example usage and tests for :mod:`orion.algo.base`."""
from orion.algo.base import BaseAlgorithm
def test_init(dumbalgo):
"""Check if initialization works for nested algos."""
nested_algo = {'DumbAlgo': dict(
value=6,
scoring=5
)}
a... | 44,347 |
https://github.com/bookshelves-project/bookshelves-back/blob/master/database/migrations/2021_11_20_084230_create_cms_home_pages_table.php | Github Open Source | Open Source | BSD-2-Clause | null | bookshelves-back | bookshelves-project | PHP | Code | 58 | 362 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCmsHomePagesTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('cms_home_pages', function (Blueprint ... | 6,682 |
https://github.com/WShabti-Team/WShabtiPict/blob/master/wshabtilib/oracle-generator/oracle-generator.h | Github Open Source | Open Source | MIT | 2,021 | WShabtiPict | WShabti-Team | C++ | Code | 131 | 335 | #ifndef __ORACLE_GENERATOR_H__
#define __ORACLE_GENERATOR_H__
//////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Takes a vector of oracles to check if AT LEAST one oracle is expressed as interval (e.g 11.0:0.12)
*
* INPUT:
* vector of string (oracles)... | 16,715 |
https://github.com/jquorning/Gauss/blob/master/source/exceptions.adb | Github Open Source | Open Source | blessing | 2,019 | Gauss | jquorning | Ada | Code | 86 | 202 | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Ada.Text_IO;
package body Exceptions... | 1,990 |
https://github.com/babel/babel/blob/master/packages/babel-parser/test/fixtures/esprima/es2015-destructuring-assignment-array-pattern/nested-assignment/input.js | Github Open Source | Open Source | MIT, BSD-2-Clause | 2,023 | babel | babel | JavaScript | Code | 1 | 21 | [a,b=0,[c,...a[0]]={}]=0;
| 29,015 |
https://github.com/sailingfree/Hardware-genetic-programmng/blob/master/PhD/CS papers Birmingham/Csm357/images/hw_fit_limit_single-16.eps | Github Open Source | Open Source | MIT | 2,021 | Hardware-genetic-programmng | sailingfree | PostScript | Code | 3,363 | 5,720 | %!PS-Adobe-2.0 EPSF-2.0
%%Title: hw_fit_limit_single-16.eps
%%Creator: gnuplot 3.7 patchlevel 1
%%CreationDate: Fri Jan 11 09:37:19 2002
%%DocumentFonts: (atend)
%%BoundingBox: 50 50 410 302
%%Orientation: Portrait
%%EndComments
/gnudict 256 dict def
gnudict begin
/Color false def
/Solid false def
/gnulinewidth 5.000 d... | 11,898 |
https://github.com/ylji1990/maptalks-tileLayercollection/blob/master/src/tilelayers/CartoDbTileLayer.js | Github Open Source | Open Source | BSD-3-Clause | 2,018 | maptalks-tileLayercollection | ylji1990 | JavaScript | Code | 22 | 96 |
import BaseTileLayer from "./BaseTileLayer";
import params from "./../param"
class CartoDbTileLayer extends BaseTileLayer{
constructor(id,options={}){
var style=options.style||'light'
options.urlTemplate=params.CartoDb[style].url;
super(id,options);
}
}
export default CartoDbTileLaye... | 32,528 |
https://github.com/adover/frontend/blob/master/facia-press/app/frontpress/FrontPressCron.scala | Github Open Source | Open Source | Apache-2.0 | null | frontend | adover | Scala | Code | 161 | 658 | package frontpress
import com.amazonaws.regions.{Region, Regions}
import com.amazonaws.services.sqs.AmazonSQSAsyncClient
import common.FaciaPressMetrics.{FrontPressCronFailure, FrontPressCronSuccess}
import common.{Edition, JsonMessageQueue, SNSNotification, StopWatch}
import conf.Switches.FrontPressJobSwitch
import c... | 32,920 |
https://github.com/MarginC/kame/blob/master/freebsd5/sys/modules/netgraph/hole/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,022 | kame | MarginC | Makefile | Code | 24 | 102 | # $FreeBSD: src/sys/modules/netgraph/hole/Makefile,v 1.9 2002/01/11 15:48:52 ru Exp $
# $Whistle: Makefile,v 1.2 1999/01/19 19:39:21 archie Exp $
KMOD= ng_hole
SRCS= ng_hole.c
.include <bsd.kmod.mk>
| 26,587 |
https://github.com/msolivera/Phyton/blob/master/OBLIGATORIO 1/Primer obligatorio/obligatorio/cif 2 obligatorio.py | Github Open Source | Open Source | bzip2-1.0.6 | null | Phyton | msolivera | Python | Code | 26 | 110 |
cadena= "agus"
cadena_min = cadena.lower()
cadena_comparadora= "abcdefghijklmnopqrstuvwxyz .,_1234567890"
contador = 0
cifrada = ""
for i in range (len(cadena_min)):
x= cadena_comparadora.find(cadena_min[i])
cifrada += cadena_comparadora[x+3]
print (cifrada)
| 50,285 |
https://github.com/BarefootBKK/Book-Storm/blob/master/back-end/book-main/src/main/java/com/book/dao/OrderShippingDao.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Book-Storm | BarefootBKK | Java | Code | 25 | 93 | package com.book.dao;
import com.book.model.OrderShipping;
import org.apache.ibatis.annotations.Param;
/**
* Created by 夏日云泊镇 on 2019/7/8
**/
public interface OrderShippingDao {
OrderShipping getOrderShipping(@Param(value = "orderId") Long orderId);
}
| 49,283 |
https://github.com/dylemma/xml-spac/blob/master/core/src/main/scala/io/dylemma/spac/Parsable.scala | Github Open Source | Open Source | MIT | 2,021 | xml-spac | dylemma | Scala | Code | 410 | 1,178 | package io.dylemma.spac
import cats.data.Chain
import cats.effect.{Sync, SyncIO}
import cats.~>
import fs2.{Fallible, Stream}
import io.dylemma.spac.impl.{ParsableByIterator, ParserToPipe}
/** Typeclass used to provide functionality to `Parser#parse` and `Parser#parseF`.
*
* Implementations of `Parsable` are resp... | 21,764 |
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_ubercab/app/smali_classes7/rkt$5.smali | Github Open Source | Open Source | Apache-2.0 | 2,019 | AndroidPermissions | iantal | Smali | Code | 135 | 589 | .class Lrkt$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lhhc;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lrkt;->a(Lroc;)V
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lhhc<",... | 45,275 |
https://github.com/samyaziz44/saitek-plugin-xplane/blob/master/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,017 | saitek-plugin-xplane | samyaziz44 | Makefile | Code | 171 | 774 | #
CXX=g++
WINDLLMAIN=
# -m32 export ARCHFLAGS ="-arch i386"
HOSTOS=$(shell uname | tr A-Z a-z)
ifeq ($(HOSTOS),darwin)
HIDAPIPATH=./hidapi/mac
LIBS=-lptypes -framework IOKit -framework CoreFoundation
LNFLAGS=-arch i386 -dynamiclib -flat_namespace -undefined warning -L.
CFLAGS=-arch i386 -Wall -O3 -DAPL=1 -DIBM=0 -... | 2,894 |
https://github.com/uni51/quick_laravel6/blob/master/app/Http/Controllers/SaveController.php | Github Open Source | Open Source | MIT | 2,020 | quick_laravel6 | uni51 | PHP | Code | 102 | 387 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Book;
class SaveController extends Controller
{
public function create()
{
return view('save.create');
}
public function store(Request $req)
{
$this->validate($req, Book::$rules);
$b = new Book();
... | 21,831 |
https://github.com/automation551/Confab-Server/blob/master/application/controllers/sites.php | Github Open Source | Open Source | BSD-3-Clause | 2,010 | Confab-Server | automation551 | PHP | Code | 83 | 327 | <?php defined('SYSPATH') or die('No direct script access.');
class Sites_Controller extends Template_Controller {
public function index($id=null) {
$this->template->title = 'Seating::Spaces';
$this->template->content = new View('pages/spaces');
}
public function markers($space_id=null) {
$space_id... | 5,085 |
https://github.com/pombreda/syzygy/blob/master/syzygy/agent/asan/heaps/large_block_heap.h | Github Open Source | Open Source | Apache-2.0 | 2,015 | syzygy | pombreda | C++ | Code | 523 | 1,160 | // Copyright 2014 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... | 4,953 |
https://github.com/code-words/codewords-server-foss/blob/master/spec/models/game_card_spec.rb | Github Open Source | Open Source | MIT | null | codewords-server-foss | code-words | Ruby | Code | 73 | 207 | require 'rails_helper'
RSpec.describe GameCard, type: :model do
describe "Validations" do
it { should validate_presence_of(:category) }
it { should validate_numericality_of(:address) }
end
describe "Relationships" do
it { should belong_to(:game) }
it { should belong_to(:card) }
end
describe... | 49,523 |
https://github.com/anatagadaisukidesu/leadcom.isp/blob/master/app/src/main/java/com/gzlk/android/isp/fragment/individual/MomentListFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | leadcom.isp | anatagadaisukidesu | Java | Code | 400 | 1,739 | package com.gzlk.android.isp.fragment.individual;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import com.gzlk.android.isp.R;
import com.gzlk.android.isp.adapter.RecyclerViewAdapter;
import com.gzlk.android.isp.api.listener.OnMultipleRequestListener;
import com.gzlk.... | 55,889 |
https://github.com/soitun/VirtMan/blob/master/src/VirtMan/Exceptions/StorageAlreadyActiveException.php | Github Open Source | Open Source | MIT | 2,017 | VirtMan | soitun | PHP | Code | 122 | 301 | <?php
namespace VirtMan\Exceptions;
use Exception;
use VirtMan\Storage\Storage;
class StorageAlreadyActiveException extends Exception {
/**
* Storage associated with the exception
*
* @var Storage
*/
private $storage = null;
/**
* Storage Already Active Exception
*
* Exception constructor... | 22,517 |
https://github.com/vrtsev/LifeLog/blob/master/app/helpers/devise_helper.rb | Github Open Source | Open Source | MIT | 2,018 | LifeLog | vrtsev | Ruby | Code | 14 | 50 | module DeviseHelper
def devise_error_messages!
resource.errors.full_messages
.map { |msg| content_tag(:li, msg) }
.join
end
end
| 6,044 |
https://github.com/Vaishnavi06Desai/OvaryAct/blob/master/src/app/gynacform/gynacform.component.spec.ts | Github Open Source | Open Source | MIT | 2,021 | OvaryAct | Vaishnavi06Desai | TypeScript | Code | 55 | 192 | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GynacformComponent } from './gynacform.component';
describe('GynacformComponent', () => {
let component: GynacformComponent;
let fixture: ComponentFixture<GynacformComponent>;
beforeEach(async () => {
await TestBed.configureTesting... | 22,084 |
https://github.com/CC-CIFUZZ-TEST/lighttpd/blob/master/tests/cachable.t | Github Open Source | Open Source | BSD-3-Clause | 2,021 | lighttpd | CC-CIFUZZ-TEST | Perl | Code | 885 | 2,535 | #!/usr/bin/env perl
BEGIN {
# add current source dir to the include-path
# we need this for make distcheck
(my $srcdir = $0) =~ s,/[^/]+$,/,;
unshift @INC, $srcdir;
}
use strict;
use IO::Socket;
use Test::More tests => 25;
use LightyTest;
my $tf = LightyTest->new();
my $t;
ok($tf->start_proc == 0, "Starting ligh... | 47,972 |
https://github.com/TheBnl/silverstripe-excel-import-export/blob/master/tests/ExcelImportExportTest.php | Github Open Source | Open Source | MIT | 2,021 | silverstripe-excel-import-export | TheBnl | PHP | Code | 53 | 232 | <?php
namespace LeKoala\ExcelImportExport\Test;
use SilverStripe\Dev\SapphireTest;
use LeKoala\ExcelImportExport\ExcelImportExport;
use SilverStripe\Security\Member;
/**
* Tests for ExcelImportExport
*/
class ExcelImportExportTest extends SapphireTest
{
public function setUp()
{
parent::setUp();
... | 32,669 |
https://github.com/sakav1111/mortal-coding-combat/blob/master/backend/src/main/java/com/dennisjauernig/flashcards/controller/model/QuestionDtoList.java | Github Open Source | Open Source | MIT | 2,021 | mortal-coding-combat | sakav1111 | Java | Code | 32 | 139 | package com.dennisjauernig.flashcards.controller.model;
import com.dennisjauernig.flashcards.controller.model.enums.DtoType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
publi... | 27,487 |
https://github.com/Groxx/LocalTrace/blob/master/LocalTrace.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | LocalTrace | Groxx | Java | Code | 949 | 3,487 | package com.example
import android.content.Context;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Process;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
im... | 13,223 |
https://github.com/payalbhatia/Machine_Learning/blob/master/*Python_Basics/Sys/input.py | Github Open Source | Open Source | MIT | 2,021 | Machine_Learning | payalbhatia | Python | Code | 4 | 21 |
user_input = input()
print('user_input:',user_input) | 25,165 |
https://github.com/yadavraju/ISOP-PODCAST-APP/blob/master/android/app/src/main/java/com/isop/podcastapp/util/Number.kt | Github Open Source | Open Source | MIT | null | ISOP-PODCAST-APP | yadavraju | Kotlin | Code | 16 | 48 | package com.isop.podcastapp.util
fun Long.toDurationMinutes(): String {
val minutes = (this / 60).toInt()
return "$minutes min"
} | 10,309 |
https://github.com/CUC-Arcblock/Forge-CLI-Doc/blob/master/node_modules/@arcblock/forge-config/lib/index.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | Forge-CLI-Doc | CUC-Arcblock | TypeScript | Code | 72 | 177 | // Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme)
/**
* Parse config from a standard forge release configuration file
*
* @public
* @static
* @param {string} configPath
* @returns {object}
* @throws Error when file not found
* @example
const { parse } = require('@arcblock/forge-config');... | 32,414 |
https://github.com/eyhl/issm/blob/master/trunk/externalpackages/blas/install-linux64.sh | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,019 | issm | eyhl | Shell | Code | 61 | 212 | #!/bin/bash
set -eu
#Some cleanup
rm -rf src install BLAS blas.tgz
mkdir install src
#Download from ISSM server
$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/blas.tgz' 'blas.tgz'
#Untar
tar -zxvf blas.tgz
#Move blas into install directory
mv BLAS/* src
rm -rf BLAS
... | 3,555 |
https://github.com/kriswep/morphlog/blob/master/client/src/component/__snapshots__/Projects.test.js.snap | Github Open Source | Open Source | MIT | 2,019 | morphlog | kriswep | null | Spoken | 850 | 3,901 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Projects renders correctly 1`] = `
Array [
<styled.ul
data-test="projects"
>
<StyledComponent
data-test="projects"
forwardedComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"c... | 45,572 |
https://github.com/SimpleNexus/finbin/blob/master/src/test/java/org/riversun/finbin/TestBigBinarySearcher.java | Github Open Source | Open Source | MIT | 2,021 | finbin | SimpleNexus | Java | Code | 795 | 2,226 | /* finbin - Hi-speed search byte[] data from big byte[]
*
* Copyright (c) 2015 Tom Misawa(riversun.org@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 restri... | 13,094 |
https://github.com/aiconoa/Zend-Framework-2-Training/blob/master/module/Module_4_ZendDb/src/Module_4_ZendDb/Controller/IndexController.php | Github Open Source | Open Source | BSD-3-Clause | null | Zend-Framework-2-Training | aiconoa | PHP | Code | 660 | 2,504 | <?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD Lic... | 53,651 |
https://github.com/FredericoVieira/where-in-the-world/blob/master/src/components/content/Country.jsx | Github Open Source | Open Source | MIT | null | where-in-the-world | FredericoVieira | null | Spoken | 275 | 932 | import React, { useEffect, useState } from 'react'
import { A } from 'hookrouter'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faArrowLeft} from '@fortawesome/free-solid-svg-icons'
import Loader from 'react-loader-spinner'
import useGlobal from '../../store';
import { numberWithCommas } f... | 20,842 |
https://github.com/YeoHoonYun/KoSpeech/blob/master/kospeech/utils.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | KoSpeech | YeoHoonYun | Python | Code | 284 | 1,219 | # Soohwan Kim, Seyoung Bae, Cheolhwang Won.
# @ArXiv : KoSpeech: Open-Source Toolkit for End-to-End Korean Speech Recognition
# This source code is licensed under the Apache 2.0 License license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
import logging
impo... | 20,507 |
https://github.com/adcentury/vue-weui/blob/master/components/article/article.vue | Github Open Source | Open Source | MIT | 2,022 | vue-weui | adcentury | Vue | Code | 6 | 30 | <template>
<article class="weui_article">
<slot></slot>
</article>
</template>
| 4,608 |
https://github.com/TeknikhogskolanGothenburg/ticketSystem-mjsfebruaryproject/blob/master/src/RestApi.sln | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,018 | ticketSystem-mjsfebruaryproject | TeknikhogskolanGothenburg | null | Spoken | 157 | 1,230 |
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2027
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DatabaseRepository", "DatabaseRepository\DatabaseRepository.csproj", "{B32B9919-BFF2-48C0-945C-01D2945BD57... | 44,621 |
https://github.com/TheGreyGhost/MinecraftForge/blob/master/src/main/java/net/minecraftforge/client/event/GuiScreenEvent.java | Github Open Source | Open Source | BSD-3-Clause | 2,015 | MinecraftForge | TheGreyGhost | Java | Code | 553 | 1,430 | package net.minecraftforge.client.event;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Event;
import net.minecraftf... | 15,050 |
https://github.com/jaydp17/movie-ticket-watcher/blob/master/pkg/utils/collection.go | Github Open Source | Open Source | MIT | 2,019 | movie-ticket-watcher | jaydp17 | Go | Code | 112 | 254 | package utils
// Intersection finds the intersecting elements between 2 slices
func Intersection(sliceA, sliceB []string) []string {
encounteredMap := map[string]int8{}
for _, element := range sliceA {
encounteredMap[element] = 1
}
for _, element := range sliceB {
if val, ok := encounteredMap[element]; ok {
... | 16,618 |
https://github.com/fvutils/pyucis/blob/master/src/ucis/du_scope.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | pyucis | fvutils | Python | Code | 81 | 276 | '''
Created on Jan 12, 2020
@author: ballance
'''
from ucis.scope import Scope
from ucis.unimpl_error import UnimplError
from ucis.str_property import StrProperty
class DUScope(Scope):
def __init__(self):
super().__init__()
def getSignature(self):
raise UnimplError()
de... | 45,055 |
https://github.com/stonko1994/bitmovin-player-ui/blob/master/src/ts/uimanager.ts | Github Open Source | Open Source | MIT | null | bitmovin-player-ui | stonko1994 | TypeScript | Code | 4,242 | 9,820 | import {UIContainer} from './components/uicontainer';
import {DOM} from './dom';
import {Component, ComponentConfig} from './components/component';
import {Container} from './components/container';
import { SeekBar, SeekBarMarker } from './components/seekbar';
import {NoArgs, EventDispatcher, CancelEventArgs} from './e... | 17,753 |
https://github.com/Ballistc-dot/Mc-donalds-shop/blob/master/backend/src/controllers/AddressController.ts | Github Open Source | Open Source | MIT | 2,021 | Mc-donalds-shop | Ballistc-dot | TypeScript | Code | 142 | 415 | import {
Query,
Resolver,
Arg,
Mutation,
Args,
ArgsType,
Field,
Int,
UseMiddleware,
ObjectType,
Ctx,
} from 'type-graphql'
import Product from '../schema/product.schema'
import prisma from '../utils/PrismaConnection'
import { UserInputError } from 'apollo-server'
import { isAuthenticated } from '.... | 4,058 |
https://github.com/Salyel/LD47---LOOPOST/blob/master/src/game/basic_planet/Planet.gd | Github Open Source | Open Source | MIT | 2,020 | LD47---LOOPOST | Salyel | GDScript | Code | 160 | 620 | extends Node2D
var orbiting = false
export (float) var speed # rotation speed (in radians)
export (bool) var gaucheDroiteLune = false
export (float) var lune_speed
var gaucheDroite = true
var rotate_speed
var rng = RandomNumberGenerator.new()
export var is_checkpoint = false
var is_already_checked = false
func _ready... | 39,677 |
https://github.com/DaySmart/frankenstack/blob/master/packages/api/plugin/cloudwatchLogObserver/cloudwatchLogObserver.ts | Github Open Source | Open Source | Apache-2.0 | null | frankenstack | DaySmart | TypeScript | Code | 106 | 263 | // import log from '../log/log';
// import { send } from '../router/router';
// import { DynamoDbRepository } from "../repository/repository";
// import generateObservationFromCloudwatchLogs from './generateObservationFromCloudwatchLogs';
import { cloudWatchLogObserver } from "o18k-ts-aws";
import { getTemplate } from... | 25,796 |
https://github.com/Catalyst4222/Dis-Snek/blob/master/dis_snek/event_processors/_template.py | Github Open Source | Open Source | MIT | null | Dis-Snek | Catalyst4222 | Python | Code | 55 | 187 | import asyncio
import logging
from typing import TYPE_CHECKING, Callable, Coroutine
from dis_snek.const import logger_name
from dis_snek.models import events, SnakeBotUser
if TYPE_CHECKING:
from dis_snek.smart_cache import GlobalCache
log = logging.getLogger(logger_name)
class EventMixinTemplate:
"""All ev... | 57,041 |
https://github.com/priyankamane26/TradeLinkApplication/blob/master/public/js/userlogin.js | Github Open Source | Open Source | MIT | 2,017 | TradeLinkApplication | priyankamane26 | JavaScript | Code | 83 | 252 | /**
* Created by sanketh on 11/28/2016.
*/
function validateUserLoginForm()
{
var returnresult = false;
jQuery(function($) {
try {
var email = $("#username").val();
var password = $("#password").val();
var errorContainer = document.getElementById("error-container... | 14,769 |
https://github.com/alifahfathonah/percetakan-pembeli/blob/master/cetak.sql | Github Open Source | Open Source | MIT | 2,020 | percetakan-pembeli | alifahfathonah | SQL | Code | 1,229 | 4,133 | -- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 26, 2020 at 01:59 AM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.2.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | 40,027 |
https://github.com/bw-clinical-trials/Marketing-Page/blob/master/pt1/less/main.less | Github Open Source | Open Source | MIT | 2,020 | Marketing-Page | bw-clinical-trials | Less | Code | 34 | 84 | // The cascade matters!
// Vars and Mixins
@import "variables";
// @import "mixins";
// General Styles Here
@import "reset";
@import "global";
// Components Here
@import "navigation";
@import "footer";
@import "index";
@import "age";
@import "travelRadius"; | 26,940 |
https://github.com/dtisza1/bluebutton-web-server/blob/master/apps/accounts/migrations/0037_auto_20171016_1542.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | bluebutton-web-server | dtisza1 | Python | Code | 44 | 170 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-10-16 15:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0036_auto_20170818_0420'),
]
operations = [
migrations.AlterFiel... | 52,788 |
https://github.com/GW2Treasures/gw2treasures.com/blob/master/legacy/web/app/views/wvw/matchBox/score.blade.php | Github Open Source | Open Source | MIT | 2,023 | gw2treasures.com | GW2Treasures | Blade | Code | 51 | 184 | <?php
/** @var Match $match */
/** @var string $side */
// calculate max score
$maxScore = max($match->getScore(Match::TEAM_RED), $match->getScore(Match::TEAM_GREEN), $match->getScore(Match::TEAM_BLUE));
?>
<span class="wvw-table__label">
{{ number_format( $match->getScore($side), 0, '.', ' ' ) }}... | 38,688 |
https://github.com/OrangeFlagGames/FirstGame/blob/master/FrstAvaGame/Assets/Environment/tileset-sliced.png.meta | Github Open Source | Open Source | Apache-2.0 | 2,020 | FirstGame | OrangeFlagGames | Unity3D Asset | Code | 8,975 | 32,957 | fileFormatVersion: 2
guid: 5ad6a8426be542d4993f271d717b232e
TextureImporter:
internalIDToNameTable:
- first:
213: 8020792422996973119
second: tileset-sliced_0
- first:
213: 7622575126782243504
second: tileset-sliced_1
- first:
213: -5056025633293989528
second: tileset-sliced_2
- ... | 10,523 |
https://github.com/vinayakpokharkar/aws-sdk-java/blob/master/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/DefaultMetricCollectorFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | aws-sdk-java | vinayakpokharkar | Java | Code | 250 | 675 | /*
* Copyright 2010-2022 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 45,205 |
https://github.com/Vbrawl/DynamicVar/blob/master/var.hpp | Github Open Source | Open Source | MIT | null | DynamicVar | Vbrawl | C++ | Code | 284 | 781 | #ifndef DYNAMIC_VAR
#define DYNAMIC_VAR
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include "DynamicError.hpp"
#include "DynamicObject.hpp"
static constexpr unsigned short VOID_TYPE = 0;
static constexpr unsigned short BOOL_TYPE = 1;
static constexpr unsigned short CHAR_TYPE = 2;
static constexpr unsi... | 12,403 |
https://github.com/oracle/dtrace-utils/blob/master/test/unittest/actions/printf/err.D_PRINTF_ARG_EXTRA.addr_width.r | Github Open Source | Open Source | UPL-1.0 | 2,023 | dtrace-utils | oracle | null | Spoken | 24 | 71 | -- @@stderr --
dtrace: failed to compile script test/unittest/actions/printf/err.D_PRINTF_ARG_EXTRA.addr_width.d: [D_PRINTF_ARG_EXTRA] line 20: printf( ) prototype mismatch: only 1 arguments required by this format string
| 53,793 |
https://github.com/srfoster/vr-cabin/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | vr-cabin | srfoster | Ignore List | Code | 8 | 31 | *~
\#*
.\#*
*.bak
.DS_Store
compiled/
/doc/
Build/
| 33,144 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.