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/mkbryla/spartacus/blob/master/projects/storefrontlib/src/cms-structure/services/feature-modules.service.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | spartacus | mkbryla | TypeScript | Code | 520 | 1,602 | import {
Injectable,
InjectFlags,
Injector,
NgModuleRef,
OnDestroy,
} from '@angular/core';
import {
CMSComponentConfig,
CmsComponentMapping,
CmsConfig,
ConfigChunk,
ConfigInitializerService,
deepMerge,
DefaultConfigChunk,
FeatureModuleConfig,
LazyModulesService,
} from '@spartacus/core';
im... | 1,877 |
https://github.com/aml-ginina/startup-laravel-admin-user/blob/master/app/Models/User.php | Github Open Source | Open Source | MIT | null | startup-laravel-admin-user | aml-ginina | PHP | Code | 268 | 1,045 | <?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... | 33,344 |
https://github.com/Minhb171/Tamu.GeoInnovation.js.monorepo/blob/master/libs/ues/recycling/ngx/src/lib/modules/data/pages/upload/upload.component.ts | Github Open Source | Open Source | MIT | 2,021 | Tamu.GeoInnovation.js.monorepo | Minhb171 | TypeScript | Code | 100 | 308 | import { Component, OnInit } from '@angular/core';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { ResultsService } from '../../../data-access/results/results.service';
@Component({
selector: 'tamu-gisc-upload',
templateUrl: './upload.component.html',
styleUrls: ['./upload.componen... | 15,150 |
https://github.com/papadop/medInria-public/blob/master/src/medTest/medQtView.cpp | Github Open Source | Open Source | BSD-4-Clause | null | medInria-public | papadop | C++ | Code | 241 | 953 | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 42,133 |
https://github.com/Philipp-Borchert-ISH/smallrye-config/blob/master/examples/expansion/src/main/java/io/smallrye/config/examples/expansion/ExampleExpansionBean.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | smallrye-config | Philipp-Borchert-ISH | Java | Code | 28 | 120 | package io.smallrye.config.examples.expansion;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@ApplicationScoped
public class ExampleExpansionBean {
@Inject
@ConfigProperty(name = "my.prop")
private String myPro... | 47,826 |
https://github.com/KyleHowell/react-redux/blob/master/src/containers/App.styles.js | Github Open Source | Open Source | Apache-2.0 | null | react-redux | KyleHowell | JavaScript | Code | 18 | 55 | import {injectGlobal} from 'react-emotion';
injectGlobal`
html {
position: absolute;
top: 0;
}
body {
margin: 0;
}
`;
| 42,062 |
https://github.com/dune-universe/dune-universe/blob/master/packages/containers.3.5/src/core/CCUtf8_string.ml | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,021 | dune-universe | dune-universe | OCaml | Code | 2,123 | 4,988 |
(** {1 UTF8 strings} *)
(** Ref {{: https://en.wikipedia.org/wiki/UTF-8} Wikipedia}
We only deal with UTF8 strings as they naturally map to OCaml bytestrings *)
open CCShims_
type uchar = Uchar.t
type 'a gen = unit -> 'a option
type 'a iter = ('a -> unit) -> unit
let equal (a:string) b = Stdlib.(=) a b
let ha... | 37,135 |
https://github.com/william-wyliang/zenoh-perf/blob/master/throughput/src/bin/t_pubsub_thr.rs | Github Open Source | Open Source | Apache-2.0 | null | zenoh-perf | william-wyliang | Rust | Code | 585 | 1,973 | //
// Copyright (c) 2017, 2020 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.or... | 41,863 |
https://github.com/omerwwazap/C-Projects/blob/master/GlutGames-HomeWork/Homeowrk1/Homeowrk1/Ömer Levent Durdali.cpp | Github Open Source | Open Source | MIT | 2,020 | C-Projects | omerwwazap | C++ | Code | 3,150 | 9,025 | /*********
CTIS164 - Template Source Program
----------
STUDENT : Omer Levent Durdali
SECTION : 3
HOMEWORK: Homework #1
----------
PROBLEMS:
*********/
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdarg.h>
#include <time.h>
#define WINDOW_WIDTH 1000 //l... | 12,512 |
https://github.com/CheYulin/ScanOptimizing/blob/master/SCANVariants/shell_playground/run_pscan_valgrind.sh | Github Open Source | Open Source | MIT | 2,021 | ScanOptimizing | CheYulin | Shell | Code | 9 | 39 | #!/usr/bin/env bash
valgrind --tool=callgrind ../build/pSCANStatistics0 ../../dataset 0.3 5 output
| 11,380 |
https://github.com/KBerstene/home-assistant-android/blob/master/app/src/main/java/io/homeassistant/companion/android/nfc/ProviderComponent.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | home-assistant-android | KBerstene | Kotlin | Code | 19 | 94 | package io.homeassistant.companion.android.nfc
import dagger.Component
import io.homeassistant.companion.android.common.dagger.AppComponent
@Component(dependencies = [AppComponent::class])
interface ProviderComponent {
fun inject(activity: TagReaderActivity)
fun inject(nfcEditFragment: NfcEditFragment)
}
| 41,327 |
https://github.com/c-w/appinsights-on-premises/blob/master/app/database/postgres.py | Github Open Source | Open Source | MIT | 2,021 | appinsights-on-premises | c-w | Python | Code | 493 | 1,965 | """
Database backend that stores the telemetry in PostgreSQL.
The backend leverages JSONB to enable arbitrary queries on the telemetry.
The DATABASE_URL is in the format:
postgres://<user>:<password>@<db_host>:<db_port>/<db_name>
"""
from datetime import timedelta
from itertools import groupby
from operator imp... | 30,678 |
https://github.com/indrivo/bizon360_pm/blob/master/IndrivoPM/IndrivoPM.Application/EntityServices/CloudStorage/Commands/MoveFileToFolder/MoveFileToFolderCommand.cs | Github Open Source | Open Source | MIT | null | bizon360_pm | indrivo | C# | Code | 36 | 109 | using Gear.CloudStorage.Abstractions.Domain;
using MediatR;
namespace Gear.Manager.Core.EntityServices.CloudStorage.Commands.MoveFileToFolder
{
public class MoveFileToFolderCommand : IRequest
{
public string FullFilePath { get; set; }
public string NewParentFolderId { get; set; }
pub... | 21,328 |
https://github.com/anakin/bitmex-kline/blob/master/dbops/api.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | bitmex-kline | anakin | Go | Code | 566 | 1,908 | package dbops
import (
"fmt"
"github.com/anakin/bitmex-kline/swagger"
"github.com/kataras/iris/core/errors"
"log"
"time"
)
type CustomKline struct {
Id int
Ktime time.Time
Symbol string
High float64
Low float64
Open float64
Close float64
}
func Addkline(tableName string, bin []swagger.TradeB... | 38,989 |
https://github.com/libocca/occa/blob/master/scripts/compiler/fortranCompilerSupportsOpenMP.f90 | Github Open Source | Open Source | MIT | 2,023 | occa | libocca | Fortran Free Form | Code | 27 | 76 | program parallel_hello_world
use omp_lib
implicit none
integer :: i
i = -1
i = omp_get_thread_num()
if (i == -1) stop "*** omp_get_thread_num error ***"
stop 0
end
| 22,265 |
https://github.com/harveler/Quiz-App/blob/master/Capitals/Controllers/QuizController.cs | Github Open Source | Open Source | Unlicense | 2,019 | Quiz-App | harveler | C# | Code | 59 | 186 | using Capitals.Services;
using Microsoft.AspNetCore.Mvc;
namespace Capitals.Controllers
{
[Route("api/[controller]")]
public class QuizController : Controller
{
private readonly QuizService _service;
public QuizController(QuizService service)
{
_service = service;
... | 30,242 |
https://github.com/CaelestisZ/IrisCore/blob/master/include/linux/i2c/mms300.h | Github Open Source | Open Source | MIT | 2,021 | IrisCore | CaelestisZ | C | Code | 253 | 954 | /*
* mms_ts.h - Platform data for Melfas MMS-series touch driver
*
* Copyright (C) 2011 Google Inc.
* Author: Dima Zavin <dima@android.com>
*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software F... | 39,692 |
https://github.com/kimhyebeen/Buok-iOS/blob/master/Buok/ViewControllers/Main/Profile/View/BuokmarkHeaderButton.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | Buok-iOS | kimhyebeen | Swift | Code | 202 | 747 | //
// BuokmarkHeaderButton.swift
// Buok
//
// Copyright © 2021 Buok. All rights reserved.
//
import HeroUI
class BuokmarkHeaderButton: UIButton {
private let buokmarkLabel = UILabel()
private let buokmarkCountLabel = UILabel()
private let stackView = UIStackView()
var count: Int = 0 {
... | 13,302 |
https://github.com/dealsky/Bicycle/blob/master/src/main/webapp/static/js/mainPageJs.js | Github Open Source | Open Source | MIT | 2,018 | Bicycle | dealsky | JavaScript | Code | 1,128 | 4,428 | $(document).ready(function () {
var weatherData;
$.ajax({
url: "GetWeather.action",
type: "POST",
datatype: "json",
async: false,
success: function (data) {
var obj = eval('(' + data.weather + ')');
var weather = obj.showapi_res_body;
... | 8,519 |
https://github.com/sbelka-1703/ICO/blob/master/hardhat-tutorial/contracts/ICryptoDevs.sol | Github Open Source | Open Source | MIT | 2,022 | ICO | sbelka-1703 | Solidity | Code | 70 | 157 | // SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;
interface ICryptoDevs {
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index)... | 10,846 |
https://github.com/Sirherobrine23/Dir819gpl_code/blob/master/DIR819_v1.06/src/kernel/linux-2.6.36.x/drivers/net/eip93_drivers/quickSec/src/interceptor/windows/wrkqueue.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | Dir819gpl_code | Sirherobrine23 | C | Code | 207 | 874 | /**
@copyright
Copyright (c) 2002 - 2010, AuthenTec Oy. All rights reserved.
wrkqueue.h
Implements asynchronous callback facility by using internal queue and a
worker thread. This allows to execute code at IRQL PASSIVE_LEVEL when
the caller is running at DISPATCH_LEVEL (as most NDIS callb... | 5,231 |
https://github.com/ucsd-progsys/yunounderstand-data/blob/master/data/derived/sp14/progs/unify/prog0316.ml | Github Open Source | Open Source | CC0-1.0 | 2,017 | yunounderstand-data | ucsd-progsys | OCaml | Code | 35 | 79 |
let rec listCompare l k =
if ((List.hd l) = []) && ((List.hd k) = [])
then true
else
if ((List.hd l) - (List.hd k)) != 0
then false
else listCompare (List.tl l) (List.tl k);;
| 20,379 |
https://github.com/mustofa-binary/amp-deriv/blob/master/src/utils/traffic.js | Github Open Source | Open Source | MIT | null | amp-deriv | mustofa-binary | JavaScript | Code | 274 | 835 | import Cookies from 'js-cookie'
import queryString from 'query-string'
const TrafficSource = (() => {
const setAffiliateData = () => {
const url_params = queryString.parseUrl(window.location.href).query
const token = url_params.t
if (!token) return false
const token_length = token... | 48,332 |
https://github.com/renehorstmann/pbase/blob/master/python/example_socket_server.py | Github Open Source | Open Source | MIT | 2,021 | pbase | renehorstmann | Python | Code | 46 | 172 | import pbase
def server_example():
print("creating the server")
server = pbase.socket.SocketServer('127.0.0.1', 12345)
print("accepting the client")
client = server.accept()
print("read a msg")
msg = client.read_msg(32)
msg = msg.decode()
print("read msg:", msg)
msg = msg.upper(... | 39,532 |
https://github.com/saleyn/erl_lfq/blob/master/rebar.config | Github Open Source | Open Source | Apache-2.0 | 2,012 | erl_lfq | saleyn | Erlang | Code | 17 | 109 | {so_name, "erl_lfq.so"}.
{port_sources, ["c_src/erl_lfq.cpp"]}.
{port_envs, [
{"CXXFLAGS", "-Ic_src"},
{"i686.*-linux.*", "CXXFLAGS", "$CXXFLAGS -march=i686"},
{".*-linux.*", "LDFLAGS", "$CXXFLAGS -lstdc++"}
]}.
| 21,354 |
https://github.com/Daniel-MedeirosSP/purplet/blob/master/src/main/java/com/medeirosdaniel/XSSM/Entity/CriteriaEntity.java | Github Open Source | Open Source | Apache-2.0 | null | purplet | Daniel-MedeirosSP | Java | Code | 29 | 129 | package com.medeirosdaniel.XSSM.Entity;
import com.medeirosdaniel.XSSM.Enums.SlaEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
pub... | 37,471 |
https://github.com/jhh67/chapel/blob/master/third-party/gmp/gmp-src/mpn/generic/sbpi1_bdiv_r.c | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | chapel | jhh67 | C | Code | 381 | 770 | /* mpn_sbpi1_bdiv_r -- schoolbook Hensel division with precomputed inverse,
returning remainder.
Contributed to the GNU project by Niels Möller and Torbjörn Granlund.
THE FUNCTIONS IN THIS FILE ARE INTERNAL FUNCTIONS WITH MUTABLE INTERFACES.
IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN... | 39,261 |
https://github.com/dss875914213/DesignPatterns/blob/master/test/3_DecorativePattern/Finery.h | Github Open Source | Open Source | MIT | null | DesignPatterns | dss875914213 | C | Code | 85 | 209 | #pragma once
#include "Person.h"
class Finery:public Person
{
public:
Finery() { ; }
void Decorate(Person* component);
void Show() override;
protected:
Person* m_component = nullptr;
};
class TShirts :public Finery
{
public:
void Show() override;
};
class BigTrouser :public Finery
{
public:
void Show() override... | 47,270 |
https://github.com/justindh/evedata/blob/master/services/nail/structure.go | Github Open Source | Open Source | MIT | 2,022 | evedata | justindh | Go | Code | 221 | 1,197 | package nail
import (
"github.com/antihax/evedata/internal/datapackages"
"github.com/antihax/evedata/internal/gobcoder"
nsq "github.com/nsqio/go-nsq"
)
func init() {
AddHandler("structure", func(s *Nail, consumer *nsq.Consumer) {
consumer.AddConcurrentHandlers(s.wait(nsq.HandlerFunc(s.structureHandler)), 10)
... | 30,716 |
https://github.com/skyapps-id/CURD-RESTful-API-Spring-Boot-2.4.1/blob/master/src/main/java/com/customer/demo/repository/CustomerRepository.java | Github Open Source | Open Source | MIT | null | CURD-RESTful-API-Spring-Boot-2.4.1 | skyapps-id | Java | Code | 25 | 119 | package com.customer.demo.repository;
import com.customer.demo.model.Customer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.io.Serializable;
public interface CustomerRepository extends JpaRepo... | 17,122 |
https://github.com/IvanRF/GoodContracts/blob/master/upgradables/scripts/governance/upgradeToGov.ts | Github Open Source | Open Source | MIT | null | GoodContracts | IvanRF | TypeScript | Code | 805 | 3,126 | /**
* 1. deploy votingmachine + reputation
* 2. give reputation ownership to controllerCreator
* 3. register votingmachine as scheme with all permissions
* - test permissions + voting
* 4. remove permissions from old absolute voting machine via new voting machine
*/
import { ethers, upgrades, network } from "... | 21,527 |
https://github.com/Rijul5/TURN-LSP/blob/master/node_modules/@theia/typescript/lib/browser/typescript-frontend-contribution.d.ts | Github Open Source | Open Source | Apache-2.0 | null | TURN-LSP | Rijul5 | TypeScript | Code | 222 | 613 | /********************************************************************************
* Copyright (C) 2018 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* Th... | 17,600 |
https://github.com/userappstore/app-store-application-server/blob/master/src/www/edit-collection.test.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-public-domain | 2,020 | app-store-application-server | userappstore | JavaScript | Code | 419 | 1,404 | /* eslint-env mocha */
const assert = require('assert')
const TestHelper = require('../../test-helper.js')
describe(`/edit-collection`, () => {
describe('EditCollection#BEFORE', () => {
it('should reject invalid collectionid', async () => {
const user = await TestHelper.createUser()
const req = TestH... | 28,898 |
https://github.com/FogChainInc/vscode-radjav/blob/master/media/RadJavAppPreview/dependencies/dojo/dijit/form/nls/sr/ComboBox.js | Github Open Source | Open Source | MIT | null | vscode-radjav | FogChainInc | JavaScript | Code | 4 | 41 | //>>built
define("dijit/form/nls/sr/ComboBox",{previousMessage:"Prethodne opcije",nextMessage:"Više opcija"});
| 37,084 |
https://github.com/terasoluna-batch/v5-tutorial/blob/master/terasoluna-batch-tutorial/src/main/java/org/terasoluna/batch/tutorial/dbaccess/chunk/PointAddItemProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | v5-tutorial | terasoluna-batch | Java | Code | 194 | 490 | /*
* Copyright (C) 2017 NTT DATA Corporation. Copyright (C) 2017 NTT Corporation.
*
* 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
*
... | 998 |
https://github.com/MadeByMars/ivy/blob/master/build_submodules.py | Github Open Source | Open Source | MIT | 2,022 | ivy | MadeByMars | Python | Code | 343 | 1,727 | import sys
import os
import platform
def do_cmd(cmd):
print cmd
status = os.system(cmd)
if status:
exit(1)
def make_dir_exist(dir):
if not os.path.exists(dir):
os.mkdir(dir)
elif not os.path.isdir(dir):
print "cannot create directory {}".format(dir)
exit(1)
... | 41,268 |
https://github.com/suraj292/akash_dixut/blob/master/resources/views/livewire/admin/login.blade.php | Github Open Source | Open Source | MIT | null | akash_dixut | suraj292 | PHP | Code | 56 | 256 | <div class="container">
<div class="w-50 text-center mx-auto" style="margin: 100px;">
<form class="form-signin" wire:submit.prevent="login">
<h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
<label class="sr-only">Email address</label>
<input type="text" class=... | 49,862 |
https://github.com/aooshi/adf.cs/blob/master/Adf.Cs/CsType.cs | Github Open Source | Open Source | MIT | null | adf.cs | aooshi | C# | Code | 39 | 113 | using System;
using System.Collections.Generic;
using System.Text;
namespace Adf.Cs
{
/// <summary>
/// 类型
/// </summary>
public enum CsType
{
/// <summary>
/// 客户端
/// </summary>
Client = 1,
/// <summary>
/// 服务端
/// </summary>
Serv... | 17,912 |
https://github.com/qiuchili/ggnn_graph_classification/blob/master/program_data/JavaProgramData/94/2107.java | Github Open Source | Open Source | MIT | 2,018 | ggnn_graph_classification | qiuchili | Java | Code | 140 | 449 | package <missing>;
public class GlobalMembers
{
public static int Main()
{
int i1 = 1;
int i;
int j = 1;
int j1;
int j2;
int n;
int[] a = new int[500];
int[] b = new int[500];
int x = 0;
String tempVar = ConsoleInput.scanfRead();
if (tempVar != null)
{
n = Integer.parseInt(tempVar);
}
... | 22,287 |
https://github.com/PriscilaZeferino/ExerciciosdeProgramacaoOrientadaAObjetos_Java/blob/master/src/lista2And3_Projeto3/Projeto3.java | Github Open Source | Open Source | MIT | null | ExerciciosdeProgramacaoOrientadaAObjetos_Java | PriscilaZeferino | Java | Code | 14 | 42 | package lista2And3_Projeto3;
public class Projeto3 {
public static void main(String[] args) {
}
}
| 40,729 |
https://github.com/lfarrell/MetaDash/blob/master/js/services.js | Github Open Source | Open Source | MIT | null | MetaDash | lfarrell | JavaScript | Code | 191 | 763 | angular.module('metadataViewerApp').service('LoadService', function() {
this.file_load = function (text_file, $scope) {
d3.json(text_file, function (error, graph) {
load(graph);
});
function load(data) {
// put the data into angular's scope
$scope.data = ... | 48,561 |
https://github.com/okuhn/JUGF-TDD/blob/master/src/test/java/de/jugf/tdd/matcher/ListSizeRangeTest.java | Github Open Source | Open Source | Apache-2.0 | null | JUGF-TDD | okuhn | Java | Code | 31 | 137 | package de.jugf.tdd.matcher;
import static de.jugf.tdd.matcher.CollectionSizeRangeMatcher.collectionWithinSizeRange;
import static org.junit.Assert.assertThat;
import org.junit.Test;
import de.jugf.tdd.basic.ListProvider;
public class ListSizeRangeTest {
private ListProvider lp = new ListProvider();
@Test
pub... | 36,829 |
https://github.com/solgenomics/R_libs/blob/master/bit/doc/bit-demo.R | Github Open Source | Open Source | MIT | 2,022 | R_libs | solgenomics | R | Code | 140 | 521 | ## ---- echo = FALSE, results = "hide", message = FALSE-------------------------
knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
require(bit)
.ff.version <- try(packageVersion("ff"), silent = TRUE)
.ff.is.available <- !inherits(.ff.version, "try-error") && .ff.version >= "4.0.0" && require(ff)
#tools::buildVigne... | 22,814 |
https://github.com/dvhb/dvhb-backend-cookiecutter/blob/master/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/web.py | Github Open Source | Open Source | MIT | 2,017 | dvhb-backend-cookiecutter | dvhb | Python | Code | 66 | 404 | import os
import django
import aiohttp_jinja2
import jinja2
import aioworkers_aiohttp.app
from dvhb_hybrid.config import dirs
from dvhb_hybrid.amodels import AppModels
import {{cookiecutter.project_slug}}.wsgi
from aiohttp_wsgi import WSGIHandler
wsgi_handler = WSGIHandler({{cookiecutter.project_slug}}.wsgi.applic... | 1,829 |
https://github.com/Cloudwalker1986/annotations/blob/master/src/Database/Reader/ReaderFactory.php | Github Open Source | Open Source | MIT | null | annotations | Cloudwalker1986 | PHP | Code | 19 | 73 | <?php
declare(strict_types=1);
namespace Database\Reader;
use Autowired\DependencyContainer;
class ReaderFactory
{
public static function getReader(): ReaderInterface
{
return DependencyContainer::getInstance()->get(PdoReader::class);
}
}
| 44,782 |
https://github.com/rpcxio/etcd/blob/master/scripts/updatebom.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | etcd | rpcxio | Shell | Code | 57 | 206 | #!/usr/bin/env bash
set -e
if ! [[ "$0" =~ scripts/updatebom.sh ]]; then
echo "must be run from repository root"
exit 255
fi
export GO111MODULE=off # Don't add BOM tool to etcd go.mod
echo "installing 'bill-of-materials.json'"
go get -v -u github.com/coreos/license-bill-of-materials
export GO111MODULE=on
echo "ge... | 38,669 |
https://github.com/ctrlplusb/easy-peasy/blob/master/map-set-support.js | Github Open Source | Open Source | MIT | 2,023 | easy-peasy | ctrlplusb | JavaScript | Code | 8 | 25 | /* eslint-disable */
var immer = require('immer');
immer.enableMapSet();
| 40,510 |
https://github.com/Calamari/boost-movehub/blob/master/index.js | Github Open Source | Open Source | MIT | 2,021 | boost-movehub | Calamari | JavaScript | Code | 110 | 560 | const Boost = require("./src/Boost");
const Hub = require("./src/Hub");
const R2D2 = require("./src/interfaces/R2D2");
const RgbLed = require("./src/peripherals/RgbLed");
const DeviceMessage = require("./src/messages/DeviceMessage");
const GenericError = require("./src/messages/GenericError");
const HubAction = requ... | 8,348 |
https://github.com/dim-an/zorgmode/blob/master/tests/test_archivation.py | Github Open Source | Open Source | MIT | 2,020 | zorgmode | dim-an | Python | Code | 122 | 704 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import tempfile
from zorgtest import (
get_active_view_text,
set_active_view_cursor_position,
set_active_view_text,
ZorgTestCase,
)
class TestArchivation(ZorgTestCase):
def test_simple_archivation(self):
with tempfile.NamedTemporaryFile() as ... | 48,077 |
https://github.com/xoenll/bedtime/blob/master/preact.config.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | bedtime | xoenll | JavaScript | Code | 108 | 517 | import { resolve } from "path";
import preactSVGLoader from "preact-cli-svg-loader";
import envVars from "preact-cli-plugin-env-vars";
export default function(config, env, helpers) {
// Use any `index` file, not just index.js
config.resolve.alias["preact-cli-entrypoint"] = resolve(
process.cwd(),
"src",
... | 3,509 |
https://github.com/sxysxy/XYGui/blob/master/example/guitest/window_with_filedialog.rbw | Github Open Source | Open Source | MIT | 2,017 | XYGui | sxysxy | Ruby | Code | 116 | 380 | require 'XYGuiCore'
XYApp.new("fff") do |app|
XYMainWindow.new(app, nil, {:title => 'file dialog test', :layout => XYVerticalLayout}) do |wnd|
XYPushButton.new(app, wnd, {:text => "Show Open File Dialog"}).set do
connect(:ON_COMMAND) do |sender, data|
f = XYFileDialog.show(wnd, {:multiple => true, :title => ... | 6,193 |
https://github.com/capesean/codegen-update/blob/master/codegenerator/app/entities/entitycode.js | Github Open Source | Open Source | MIT | 2,020 | codegen-update | capesean | JavaScript | Code | 428 | 1,383 | (function () {
"use strict";
angular
.module("app")
.controller("entityCode", entityCode);
entityCode.$inject = ["$scope", "$state", "$timeout", "$stateParams", "entityResource", "notifications", "appSettings", "$q", "errorService", "projectResource", "fieldResource", "clipboard"];
funct... | 48,062 |
https://github.com/Confucius-Pei/libvpx/blob/master/test/ratectrl_rtc_test.cc | Github Open Source | Open Source | BSD-3-Clause | 2,022 | libvpx | Confucius-Pei | C++ | Code | 1,139 | 4,925 | /*
* Copyright (c) 2020 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... | 16,546 |
https://github.com/sergeyduhovich/nscoding-codable-sourcery-sample/blob/master/demo_custom/Demo/Models/Recipe.swift | Github Open Source | Open Source | Apache-2.0 | 2,019 | nscoding-codable-sourcery-sample | sergeyduhovich | Swift | Code | 179 | 563 | //
// Recipe.swift
// Demo
//
// Created by Sergey Duhovich on 23.9.18.
// Copyright © 2018 iTechArt. All rights reserved.
//
import Foundation
class Recipe: NSObject, NSCoding, Codable {
var ingredients: [Ingredient]?
// sourcery:inline:Recipe.CodingKeys
enum CodingKeys: String, CodingKey {
case ... | 47,601 |
https://github.com/uve/tensorflow/blob/master/tensorflow/core/api_def/base_api/api_def_CombinedNonMaxSuppression.pbtxt | Github Open Source | Open Source | Apache-2.0 | 2,020 | tensorflow | uve | Protocol Buffer Text Format | Code | 515 | 1,052 | op {
graph_op_name: "CombinedNonMaxSuppression"
in_arg {
name: "boxes"
description: <<END
A 4-D float tensor of shape `[batch_size, num_boxes, q, 4]`. If `q` is 1 then
same boxes are used for all classes otherwise, if `q` is equal to number of
classes, class-specific boxes are used.
END
}
in_arg {
... | 13,971 |
https://github.com/egoist/denote/blob/master/components/Logo.vue | Github Open Source | Open Source | MIT | 2,021 | denote | egoist | Vue | Code | 162 | 1,249 | <template>
<svg xmlns="http://www.w3.org/2000/svg" :width="size" :height="size" viewBox="0 0 800 800">
<g fill="none" fill-rule="evenodd">
<rect width="800" height="800" fill="#F4B604" rx="6"/>
<g transform="translate(180 44)">
<g fill-rule="nonzero">
<path fill="#D0CFCE" d="M220.325564,712.6934... | 26,165 |
https://github.com/Annopaolo/LotR/blob/master/build.sbt | Github Open Source | Open Source | MIT | null | LotR | Annopaolo | Scala | Code | 30 | 157 | name := "LotR"
version := "0.1"
scalaVersion := "2.11.12"
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.4.5"
//https://mvnrepository.com/artifact/com.johnsnowlabs.nlp/spark-nlp
libraryDependencies += "com.johnsnowlabs.nlp" %% "spark-nlp" % "2.4.5"
libraryDependencies+= "org.apache.spark" %% "spark-m... | 35,623 |
https://github.com/Zhuyixuan519/deep-learned-embedding/blob/master/preprocessing.py | Github Open Source | Open Source | CC0-1.0 | 2,021 | deep-learned-embedding | Zhuyixuan519 | Python | Code | 135 | 559 | from nltk.util import pr
import pandas as pd
import corpus_creation
import nltk
import re
from sklearn.model_selection import train_test_split
stopwords = nltk.corpus.stopwords.words('english')
# Create a function to Tokenize all the Categorical Data
def tokenize_cat_var(catvar):
tokens = re.split('\W+', catvar... | 28,045 |
https://github.com/pschonev/biBooks/blob/master/src/russian_stresses.py | Github Open Source | Open Source | MIT | null | biBooks | pschonev | Python | Code | 93 | 338 | import argparse
try:
import udar
from tqdm import tqdm
except ImportError as e:
raise ImportError("To add Russian stresses, install udar using \"pip install udar\"") from e
def add_russian_stresses(src_file_path, new_path):
out_str = ""
in_str = open(src_file_path, "r").read()
for line in tqdm... | 22,447 |
https://github.com/GustavoSMelo/Musicfy/blob/master/frontend/src/views/chooseLogin/styled.js | Github Open Source | Open Source | MIT | 2,021 | Musicfy | GustavoSMelo | JavaScript | Code | 64 | 218 | import styled from 'styled-components';
export const Container = styled.main`
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
background-color: #fff;
.button {
text-decoration: none;
background: linear-gradient(to right, #... | 25,680 |
https://github.com/BBVA/purescript-google-apps/blob/master/src/Control/Google/Apps/CardService/ImageComponent.purs | Github Open Source | Open Source | Apache-2.0 | 2,021 | purescript-google-apps | BBVA | PureScript | Code | 160 | 484 | module Control.Google.Apps.CardService.ImageComponent (
setAltText,
setBorderStyle,
setCropStyle,
setImageUrl
) where
import Effect (Effect)
import Data.Google.Apps.CardService.BorderStyle as CardServiceBorderStyle
import Data.Google.Apps.CardService.ImageCropStyle as CardServiceImageCropStyle
import Data.Go... | 4,403 |
https://github.com/iansantana00/Python-Course/blob/master/dicionarios3.py | Github Open Source | Open Source | MIT | 2,022 | Python-Course | iansantana00 | Python | Code | 89 | 206 | """
CONTINUAÇÃO... dicionarios3.py
"""
# Remover dados de uma dicionário
receita = {'jan': 100, 'fev': 120, 'mar': 300}
print(receita)
# Forma 1 - Mais comum
ret = receita.pop('mar')
print(ret)
print(receita)
# OBS 1: Aqui precisamos SEMPRE informar a chave, e caso nao encontre o elemeto, um KeyError é retornado... | 120 |
https://github.com/WebFreak001/ahoviewer/blob/master/src/booru/tagentry.h | Github Open Source | Open Source | MIT | null | ahoviewer | WebFreak001 | C | Code | 106 | 426 | #ifndef _TAGENTRY_H_
#define _TAGENTRY_H_
#include <gtkmm.h>
#include <set>
namespace AhoViewer
{
namespace Booru
{
class TagEntry : public Gtk::Entry
{
public:
TagEntry(BaseObjectType *cobj, const Glib::RefPtr<Gtk::Builder> &bldr);
virtual ~TagEntry() override ... | 10,484 |
https://github.com/raymanoz/borgy/blob/master/src/main/react/src/store/trial/reducers.ts | Github Open Source | Open Source | MIT | null | borgy | raymanoz | TypeScript | Code | 34 | 90 | import {RECEIVED_TRIAL, TrialActionTypes, TrialState} from "./types";
const initialState: TrialState = {name: "", observations: [], selectedObservation: 0};
export const trialReducer = (state = initialState, action: TrialActionTypes): TrialState =>
action.type === RECEIVED_TRIAL ? action.trial : state;
| 4,236 |
https://github.com/gverse/gverse/blob/master/src/gverse/debug-logger.ts | Github Open Source | Open Source | MIT | 2,023 | gverse | gverse | TypeScript | Code | 30 | 57 | import debug from "debug"
/* To see Gverse debug logs, run the scrpit or test, set environment variable:
* `DEBUG=Gverse <script ...>`
*/
const log = debug("Gverse")
export default log
| 33,237 |
https://github.com/hnjolles1/CasperLabs/blob/master/models/src/test/scala/io/casperlabs/models/cltype/SemVerSerializationTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | CasperLabs | hnjolles1 | Scala | Code | 70 | 255 | package io.casperlabs.models.cltype
import io.casperlabs.models.bytesrepr.SerializationTest.roundTrip
import org.scalacheck.{Arbitrary, Gen}
import org.scalatest.{FlatSpec, Matchers}
import org.scalatest.prop.PropertyChecks
import SemVerSerializationTest.arbSemVer
class SemVerSerializationTest extends FlatSpec with M... | 9,214 |
https://github.com/davidvmckay/Klondike/blob/master/app/models/package.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | Klondike | davidvmckay | JavaScript | Code | 34 | 120 | import Ember from 'ember';
import SemanticVersion from './semantic-version';
export default Ember.Object.extend({
id: '',
version: '',
versionHistory: [],
displayTitle: function() {
return this.get('title') || this.get('id');
}.property('title', 'id'),
semanticVersion: function() {
... | 27,335 |
https://github.com/veripool/verilog-perl/blob/master/Getopt.pm | Github Open Source | Open Source | Artistic-2.0 | 2,022 | verilog-perl | veripool | Perl | Code | 2,891 | 7,864 | # See copyright, etc in below POD section.
######################################################################
package Verilog::Getopt;
require 5.000;
require Exporter;
use strict;
use vars qw($VERSION $Debug %Skip_Basenames);
use Carp;
use IO::File;
use File::Basename;
use File::Spec;
use Cwd;
##################... | 35,694 |
https://github.com/SReichelt/slate/blob/master/src/envs/web/api/embedding.ts | Github Open Source | Open Source | MIT | 2,022 | slate | SReichelt | TypeScript | Code | 54 | 130 | export type RequestCommand = 'GET' | 'CREATE' | 'PUT' | 'EDIT' | 'REVERT' | 'SELECT' | 'TITLE';
export interface RequestMessage {
command: RequestCommand;
index?: number;
uri?: string;
text?: string;
}
export type ResponseCommand = 'RESPONSE' | 'ERROR' | 'UPDATE' | 'SELECT';
export interface ResponseMessage ... | 17,205 |
https://github.com/war408705279/vulcan/blob/master/src/pages/ship/page-data.ts | Github Open Source | Open Source | MIT | 2,021 | vulcan | war408705279 | TypeScript | Code | 546 | 1,708 | /**
* @file page-data 相关
*/
export type DataItemType = {
code?: string
label: string
}
export type DataType = {
title: string,
list: DataItemType[]
}
export const data: DataType[] = [{
title: '22 世纪',
list: [{
code: 'GangesClass',
label: '恒河级 - Ganges Class'
}, {
code: 'IntrepidType',
... | 16,135 |
https://github.com/BadlionNetwork/BadlionClientModAPI/blob/master/bungee/src/main/java/net/badlion/bungeeapi/waypoints/UnsupportedWaypointManager.java | Github Open Source | Open Source | MIT | 2,020 | BadlionClientModAPI | BadlionNetwork | Java | Code | 53 | 190 | package net.badlion.bungeeapi.waypoints;
import net.badlion.modapicommon.utility.AbstractWaypoint;
import net.badlion.modapicommon.utility.AbstractWaypointManager;
import java.util.UUID;
public class UnsupportedWaypointManager extends AbstractWaypointManager {
@Override
public void addPlayerWaypoint(UUID player, ... | 1,811 |
https://github.com/jeremy-coleman/office-react-mono-simplified/blob/master/src/office-ui-fabric-react/components/ResizeGroup/ResizeGroup.tsx | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,021 | office-react-mono-simplified | jeremy-coleman | TSX | Code | 11 | 30 | import { ResizeGroupBase } from './ResizeGroup.base';
export const ResizeGroup = ResizeGroupBase;
| 13,865 |
https://github.com/cristicmf/P/blob/master/Src/Pc/Compiler/TypeChecker/AST/Declarations/TypeDef.cs | Github Open Source | Open Source | MIT | null | P | cristicmf | C# | Code | 54 | 167 | using System.Diagnostics;
using Antlr4.Runtime;
using Microsoft.Pc.Antlr;
using Microsoft.Pc.TypeChecker.Types;
namespace Microsoft.Pc.TypeChecker.AST.Declarations
{
public class TypeDef : IPDecl
{
public TypeDef(string name, ParserRuleContext sourceNode)
{
Debug.Assert(sourceNode i... | 26,049 |
https://github.com/mohawk2/invisible-xml/blob/master/t/reverse.t | Github Open Source | Open Source | Artistic-2.0 | 2,020 | invisible-xml | mohawk2 | Perl | Code | 247 | 688 | use lib 't/lib';
use JTTest;
use XML::Invisible qw(make_parser make_canonicaliser);
sub run_test {
my ($grammar_text, $doc, $expected_canonical, $label) = @_;
my $parser = make_parser($grammar_text);
my $got_forward = $parser->($doc);
my $got_reversed = make_canonicaliser($grammar_text)->($got_forward);
is $... | 18,519 |
https://github.com/chandamotiyani/semaphoredeployment/blob/master/vendor/craftcms/cms/src/test/internal/example-test-suite/tests/unit/ExampleUnitTest.php | Github Open Source | Open Source | MIT | null | semaphoredeployment | chandamotiyani | PHP | Code | 35 | 141 | <?php
namespace myprojecttests;
use Codeception\Test\Unit;
use Craft;
use UnitTester;
class ExampleUnitTest extends Unit
{
/**
* @var UnitTester
*/
protected $tester;
/**
*
*/
public function testCraftEdition()
{
Craft::$app->setEdition(Craft::Pro);
$this->as... | 24,750 |
https://github.com/chandhukogila/Pattern-Package/blob/master/Alphabets/Small_Alphabets/l.py | Github Open Source | Open Source | MIT | null | Pattern-Package | chandhukogila | Python | Code | 58 | 179 | def for_l():
for row in range(6):
for col in range(4):
if col==1 and row<5or (row==5 and (col==0 or col==2 or col==3)) :
print("*",end=" ")
else:
print(" ",end=" ")
print()
def while_l():
row=0
while row<6:
col=0
while... | 35,971 |
https://github.com/khayamgondal/SOSForGENI/blob/master/src/main/java/net/floodlightcontroller/sos/web/SOSServerSerializer.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | SOSForGENI | khayamgondal | Java | Code | 61 | 357 | package net.floodlightcontroller.sos.web;
import java.io.IOException;
import net.floodlightcontroller.sos.ISOSServer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.JsonGenerator.Feature;
import com.fasterxml.jackson.datab... | 28,529 |
https://github.com/chobberoni/typos/blob/master/node_modules/react-syntax-highlighter/dist/esm/languages/hljs/routeros.js | Github Open Source | Open Source | MIT | 2,020 | typos | chobberoni | JavaScript | Code | 7 | 25 | import routeros from "highlight.js/lib/languages/routeros";
export default routeros; | 42,154 |
https://github.com/pip-services3-java/pip-services3-commons-java/blob/master/test/org/pipservices3/commons/data/MultiStringTest.java | Github Open Source | Open Source | MIT | null | pip-services3-commons-java | pip-services3-java | Java | Code | 11 | 32 | package org.pipservices3.commons.data;
public class MultiStringTest {
// Todo: Complete implementation...
}
| 14,556 |
https://github.com/Percobaan-12/yuclean/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | 2,017 | yuclean | Percobaan-12 | Blade | Code | 279 | 1,580 | @extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<p class=" text-info">Waktu Server : {{$carbon}} </p>
<div class="col-xs-12 col-sm-12 " >
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel... | 45,273 |
https://github.com/isrvoid/lepasd/blob/master/src/lepasd/swkeyboard.d | Github Open Source | Open Source | MIT | 2,021 | lepasd | isrvoid | D | Code | 93 | 293 | /*
* Copyright (c) 2021 Johannes Teichrieb
* MIT License
*/
module lepasd.swkeyboard;
import std.exception : enforce;
extern (C) @nogc
{
bool lepasd_kbdCanInit();
int lepasd_kbdInit();
int lepasd_kbdWrite(int, const char*, size_t);
int lepasd_kbdClose(int);
}
struct SwKeyboard
{
static bool c... | 23,088 |
https://github.com/yoppeh/eeprom-programmer/blob/master/schematic/eeprom-programmer.sch | Github Open Source | Open Source | MIT | 2,021 | eeprom-programmer | yoppeh | Eagle | Code | 2,558 | 5,304 | EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr A 11000 8500
encoding utf-8
Sheet 1 1
Title "AT28C EEPROM Programmer"
Date "2019-12-05"
Rev "b"
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
Text GLabel 5500 1750 0 50 Input ~ 0
Arduino5V
Text GLabel 5500 3950 0 50 Input ~ ... | 28,325 |
https://github.com/Nonj/MLLearning/blob/master/Machine Learning A-Z Template Folder/Part two - Regression/Section 6 - Polynomial Regression/poly_reg.r | Github Open Source | Open Source | MIT | null | MLLearning | Nonj | R | Code | 215 | 619 | #Data preprocess template
#Importing the dataset
dataset = read.csv('Position_Salaries.csv')
dataset = dataset[2:3]
# Split the dataset into the Training set and test set
# library(caTools)
# set.seed(123)
# split = sample.split(dataset$Purchased, SplitRatio = 0.8)
# training_set = subset(dataset, split==TRUE)
# tes... | 49,153 |
https://github.com/danielcrt/php-ups-api/blob/master/src/Entity/Pickup/FreightOptionsAddress.php | Github Open Source | Open Source | MIT | null | php-ups-api | danielcrt | PHP | Code | 153 | 292 | <?php
namespace Ups\Entity\Pickup;
use Ups\Entity\SerializableEntity;
class FreightOptionsAddress extends SerializableEntity
{
/**
* The city of pickup address if available.
* It is required for non-postal country Ireland (IE).
* @var string
*/
private $City;
/**
* 1. It means d... | 27,896 |
https://github.com/EzrealJ/EasyQuery/blob/master/test/Ezreal.EasyQuery.Test/WhereConditionArgumentsOfT_Test.cs | Github Open Source | Open Source | MIT | 2,021 | EasyQuery | EzrealJ | C# | Code | 101 | 419 | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using Ezreal.EasyQuery.Models;
using Xunit;
namespace Ezreal.EasyQuery.Test
{
public class WhereConditionArgumentsOfT_Test
{
[Fact]
public void GetWhereExpressionTest()
{
Wher... | 13,314 |
https://github.com/brycemthompson/web-checkers/blob/master/src/test/java/model/SpaceTest.java | Github Open Source | Open Source | MIT | null | web-checkers | brycemthompson | Java | Code | 540 | 1,438 | package model;
import com.webcheckers.Model.Piece;
import com.webcheckers.Model.Position;
import com.webcheckers.Model.Space;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* Unit Test for the Space Class
*/
@Tag("Model-Tier")
public class... | 27,784 |
https://github.com/Qianhongrui/Database-Recipe/blob/master/recipe/app/src/main/java/com/example/ygl/baking/widget/BakingWidget.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Database-Recipe | Qianhongrui | Java | Code | 59 | 266 | package com.example.ygl.baking.widget;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import com.example.ygl.baking.MainActivity;
import com.examp... | 38,422 |
https://github.com/xfyre/tapestry-5/blob/master/plastic/src/test/java/testinterfaces/MagicContainer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | tapestry-5 | xfyre | Java | Code | 9 | 22 | package testinterfaces;
public interface MagicContainer
{
String magic();
}
| 8,976 |
https://github.com/GustavoSMelo/Musicfy/blob/master/frontend/src/utils/verify.js | Github Open Source | Open Source | MIT | 2,021 | Musicfy | GustavoSMelo | JavaScript | Code | 31 | 68 | function Verify(...params) {
return params.find(
(item) =>
item === undefined ||
item === null ||
item === '' ||
item.lenght <= 0 ||
item == null
);
}
export default Verify;
| 35,956 |
https://github.com/georgejenkins/dotnet-runtime-package-store-generator/blob/master/Program.cs | Github Open Source | Open Source | Apache-2.0 | null | dotnet-runtime-package-store-generator | georgejenkins | C# | Code | 29 | 99 | using CommandLine;
using layers.Commands;
namespace layers
{
class Program
{
static int Main(string[] args)
{
return Parser.Default.ParseArguments<CreateLocalLayerOptions, object>(args)
.MapResult(
(CreateLocalLayerOptions opts) => CreateLocalLayer.... | 17,016 |
https://github.com/bogdanustyak/ReactNativeBloc/blob/master/src/presentation/scenes/signUp/styles.tsx | Github Open Source | Open Source | MIT | 2,019 | ReactNativeBloc | bogdanustyak | TypeScript | Code | 46 | 143 | import { StyleSheet } from 'react-native';
import { Colors } from 'react-native/Libraries/NewAppScreen';
const CommonStyles = StyleSheet.create({
form: {
padding: 40,
flexDirection: 'column',
justifyContent: 'space-between',
flex: 1
},
textInput: {
backgroundColor: C... | 31,846 |
https://github.com/Rubtsowa/numba-dppy/blob/master/numba_dppy/ocl/oclimpl.py | Github Open Source | Open Source | Apache-2.0 | null | numba-dppy | Rubtsowa | Python | Code | 1,661 | 6,016 | # Copyright 2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 42,043 |
https://github.com/ASP-MVC/CodeGist-System/blob/master/CG/CG.Web/Controllers/TagsController.cs | Github Open Source | Open Source | MIT | null | CodeGist-System | ASP-MVC | C# | Code | 157 | 628 | using System.Linq;
using System.Web.Mvc;
using AutoMapper.QueryableExtensions;
using CG.Data.UoW;
using CG.Web.Models.ViewModels;
namespace CG.Web.Controllers
{
using System;
using AutoMapper;
using CG.Models;
using CG.Web.Models.BindingModel;
[Authorize]
public class TagsController : BaseC... | 37,323 |
https://github.com/funny123/xiaoma_ai/blob/master/application/common.php | Github Open Source | Open Source | Apache-2.0 | null | xiaoma_ai | funny123 | PHP | Code | 220 | 866 | <?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... | 17,549 |
https://github.com/David-Woroniuk/FedTools/blob/master/FedTools/__init__.py | Github Open Source | Open Source | MIT | 2,022 | FedTools | David-Woroniuk | Python | Code | 32 | 79 | from __future__ import print_function
from bs4 import BeautifulSoup
from urllib.request import urlopen
import re
import pandas as pd
import threading
from .FedMinutes import MonetaryPolicyCommittee
from .Beigebook import BeigeBooks
from .FedMins import FederalReserveMins
| 45,667 |
https://github.com/davethemac/roaming-repairs/blob/master/App/view/joblist.html.twig | Github Open Source | Open Source | Apache-2.0 | null | roaming-repairs | davethemac | Twig | Code | 26 | 115 | {# empty Twig template #}
<script id="job-list-tpl" type="text/template">
<div class="container">
<ul>
{% verbatim %}
{{#each jobs}}
<li>{{this.description}}<br>
<a href="#job/{{this.id}}">view</a></li>
{{/each}}
{% endverbatim %}
</ul>
</d... | 28,586 |
https://github.com/gh-determined-ai/determined/blob/master/master/internal/resourcemanagers/scaling.go | Github Open Source | Open Source | Apache-2.0 | null | determined | gh-determined-ai | Go | Code | 235 | 702 | package resourcemanagers
import (
"github.com/determined-ai/determined/master/pkg/actor"
"github.com/determined-ai/determined/master/pkg/mathx"
)
// calculateDesiredNewAgentNum calculates the new instances based on pending tasks and
// slots per instance.
func calculateDesiredNewAgentNum(
taskList *taskList, group... | 7,366 |
https://github.com/SwitchOS/switchdex/blob/master/src/components/erc20/pages/marketplace.tsx | Github Open Source | Open Source | Apache-2.0 | 2,020 | switchdex | SwitchOS | TSX | Code | 995 | 3,277 | import React, { useState } from 'react';
import { Responsive } from 'react-grid-layout';
import Joyride, { CallBackProps, STATUS } from 'react-joyride';
import { useDispatch, useSelector } from 'react-redux';
import styled from 'styled-components';
import { setERC20Layout, setTour } from '../../../store/actions';
impo... | 25,725 |
https://github.com/MCD-50/Airstem-Server/blob/master/src/providers/match/soundcloud.js | Github Open Source | Open Source | Apache-2.0 | null | Airstem-Server | MCD-50 | JavaScript | Code | 190 | 635 | const request = require('request');
import { make_request, is_online } from '../../helpers/internet';
import {
SOUNDCLOUD_API, SOUNDCLOUD_DEFAULT_KEY,
SOUNDCLOUD_LIMIT, SOUNDCLOUD_QUERY
} from '../../helpers/constant';
import { Type } from '../../helpers/type';
import { parse_soundcloud_tracks } from '../../helpers/... | 26,678 |
https://github.com/brsanthiago/sjcnews-server/blob/master/src/main/java/br/com/brsantiago/sjcnews/load/NewsCron.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | sjcnews-server | brsanthiago | Java | Code | 50 | 192 |
package br.com.brsantiago.sjcnews.load;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import br.com.brsantiago.sjcnews.model.service.parses.impl.ItemParser;
@Component
public class NewsCron ... | 16,299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.