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/Rohit484/Distribution/blob/master/r/rsocket-core/src/main/scala/typings/rsocketCore/rsocketframeMod/ERROR_CODES.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 81 | 282 | package typings.rsocketCore.rsocketframeMod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@JSImport("rsocket-core/RSocketFrame", "ERROR_CODES")
@js.native
object ERROR_CODES extends js.Object {
var APPLICATION_E... | 24,100 |
https://github.com/kplotnik/maps-api-for-javascript-examples/blob/master/indoor-map/demo.js | Github Open Source | Open Source | MIT | 2,022 | maps-api-for-javascript-examples | kplotnik | JavaScript | Code | 277 | 675 | /**
* Load and add indoor data on the map.
*
* @param {H.Map} map A HERE Map instance
*/
function addVenueToMap(map) {
// Get an instance of the Indoor Maps service using a valid apikey for Indoor Maps
const venuesService = platform.getVenuesService({ apikey: 'QICW7garcjxE7C7sSguJcNolMZXqYCJ9m5o6Qq3ygjg' });
... | 3,701 |
https://github.com/syl741/myblog/blob/master/static/public/js/header.js | Github Open Source | Open Source | MIT | 2,017 | myblog | syl741 | JavaScript | Code | 118 | 766 |
define(function(require,exports,module){
var canvas = document.getElementById("canvas");
var cobj = canvas.getContext("2d");
function startShowStar(){
var star = [];
for(var i=0;i<15;i++){
var starObj = {
radius1:20+10*Math.random(),
radius2:8+7*... | 20,417 |
https://github.com/fernanda322/Aplikasi-Pengaduan-Masyarakat/blob/master/app/Models/penduduk.php | Github Open Source | Open Source | MIT | 2,021 | Aplikasi-Pengaduan-Masyarakat | fernanda322 | PHP | Code | 31 | 123 | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\aspirasi;
class penduduk extends Model
{
use HasFactory;
protected $table = 'Penduduks';
protected $fillable = ['nik','nama','alamat'];
public function aspir... | 41,238 |
https://github.com/EMResearch/EMB/blob/master/jdk_11_maven/cs/graphql/timbuctoo/timbuctoo-instancev4/src/main/java/nl/knaw/huygens/timbuctoo/database/tinkerpop/CustomRelationProperties.java | Github Open Source | Open Source | Apache-2.0, GPL-1.0-or-later, LGPL-2.0-or-later, GPL-3.0-only | 2,023 | EMB | EMResearch | Java | Code | 24 | 166 | package nl.knaw.huygens.timbuctoo.database.tinkerpop;
import nl.knaw.huygens.timbuctoo.core.dto.RelationRef;
import nl.knaw.huygens.timbuctoo.model.vre.Vre;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.structure.Vertex;
public interface Cust... | 32,979 |
https://github.com/EduardoCitelli/fe-mcga-second/blob/master/src/models/user.ts | Github Open Source | Open Source | MIT | null | fe-mcga-second | EduardoCitelli | TypeScript | Code | 17 | 44 | export interface User {
id?: string;
name: string;
surname: string;
phone?: string;
email: string;
username: string;
} | 5,175 |
https://github.com/dynagoDavidIstvan/al-objid/blob/master/vscode-extension/src/features/ConsumptionCache.ts | Github Open Source | Open Source | MIT | null | al-objid | dynagoDavidIstvan | TypeScript | Code | 160 | 495 | import { Disposable, EventEmitter } from "vscode";
import { ConsumptionData } from "../lib/types/ConsumptionData";
import { ALObjectType } from "../lib/types/ALObjectType";
import { PropertyBag } from "../lib/types/PropertyBag";
import { ConsumptionWarnings } from "./ConsumptionWarnings";
export interface ConsumptionE... | 43,841 |
https://github.com/byansanur/Android-Fundamental/blob/master/Submission3UIUXApi/app/src/main/java/com/byandev/submission3uiuxapi/db/dao/UserFavoriteDao.kt | Github Open Source | Open Source | MIT | 2,020 | Android-Fundamental | byansanur | Kotlin | Code | 33 | 147 | package com.byandev.submission3uiuxapi.db.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.byandev.submission3uiuxapi.models.Item
@Dao
interface UserFavoriteDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun inserts(item: Item): Long
@Query("SELECT * FROM item")
... | 20,993 |
https://github.com/Rudy-Zidan/jobi/blob/master/spec/utils_spec.rb | Github Open Source | Open Source | MIT | 2,022 | jobi | Rudy-Zidan | Ruby | Code | 57 | 237 | module Jobi
RSpec.describe Utils do
let(:dummy_class) do
Class.new { extend Utils }
end
let(:uuid_regex) do
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
end
context 'constantize' do
it 'should return constant name of a string' do
constant = dummy_cla... | 24,996 |
https://github.com/gianpaj/react-native-ui-kitten/blob/master/src/components/ui/select/select.spec.tsx | Github Open Source | Open Source | MIT | null | react-native-ui-kitten | gianpaj | TypeScript | Code | 406 | 1,437 | import React from 'react';
import {
Image,
ImageProps,
TouchableOpacity,
} from 'react-native';
import {
render,
fireEvent,
RenderAPI,
} from 'react-native-testing-library';
import {
ApplicationProvider,
StyleType,
} from '@kitten/theme';
import { Select } from './select.component';
import { SelectOptio... | 18,127 |
https://github.com/naver/webgraphics/blob/master/mozilla/gfx/2d/Rect.h | Github Open Source | Open Source | MS-PL | 2,020 | webgraphics | naver | C | Code | 740 | 2,824 | /* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef MOZILLA_GFX_RECT_H_
#define M... | 41,923 |
https://github.com/thiagomagero/Sistema-Ascap/blob/master/app/Http/Controllers/indexPainel.php | Github Open Source | Open Source | MIT | 2,018 | Sistema-Ascap | thiagomagero | PHP | Code | 36 | 153 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use Charts;
use App\Financeiro as Financeiro;
use Carbon\Carbon; Carbon::setLocale('pt_BR');;
class indexPainel extends Controller
{
public function index()
{
$chart = Charts::database(Financeiro::all(),'pie', 'goo... | 9,937 |
https://github.com/codeater7/JavaScript-Flashback/blob/master/basics/boolean-advanced.js | Github Open Source | Open Source | MIT | 2,021 | JavaScript-Flashback | codeater7 | JavaScript | Code | 60 | 146 | let isAccountLocked = true;
let userRole = 'user'
if (isAccountLocked) {
console.log('The account is locked!')
}
else if (userRole === 'admin') {
console.log('Welcom Admin!')
}
else {
console.log('Welcome');
}
let temp = 45;
if (temp <= 32) {
console.log('It is freezing outside!')
}
else if (temp >= ... | 37,971 |
https://github.com/LoganBarnes/AirWaves/blob/master/src/vmp/audio/Output.cpp | Github Open Source | Open Source | MIT | 2,021 | AirWaves | LoganBarnes | C++ | Code | 166 | 543 | // ////////////////////////////////////////////////////////////
// Created on 10/21/2017.
// Copyright (c) 2017. All rights reserved.
// ___________________________$$$$$$$\__________
// | $$\ $$\ $$ __$$\ | ||
// |_$$ |___$$ |_$$\______$$\__$$ |__$$ |_____|_||
// | $$ | $$ | $$$\ $$$ | $$$... | 5,988 |
https://github.com/luk4z7/middleware-acl/blob/master/src/middleware/controller/user/user.go | Github Open Source | Open Source | BSD-3-Clause | 2,022 | middleware-acl | luk4z7 | Go | Code | 149 | 524 | package user
import (
"net/http"
"middleware/service/user"
"github.com/gorilla/mux"
"middleware/core/response"
liberr "middleware/lib/error"
"middleware/service/model"
)
func GetUserRoles(w http.ResponseWriter, r *http.Request, next http.HandlerFunc) {
var responseStatus = http.StatusOK
var errors = []liberr.... | 44,133 |
https://github.com/dotnet/infer/blob/master/src/Examples/CrowdsourcingWithWords/EnglishWord.cs | Github Open Source | Open Source | MIT | 2,023 | infer | dotnet | C# | Code | 43 | 105 | namespace CrowdsourcingWithWords
{
/// <summary>
/// This is a placeholder class. Replace with your own stemmer.
/// </summary>
public class EnglishWord
{
public readonly string Original;
public readonly string Stem;
public EnglishWord(string word)
{
Original = word;
Stem = word;
}
}
} | 42,831 |
https://github.com/prohimanshu/CshOOP-basic_adv/blob/master/Sealed Keyword/Sealed Keyword/com/Module/ClassB.cs | Github Open Source | Open Source | MIT | null | CshOOP-basic_adv | prohimanshu | C# | Code | 19 | 58 | using System;
namespace Sealed_Keyword.com.Module
{
sealed class ClassB
{
public ClassB()
{
Console.WriteLine("i'm in class b");
}
}
}
| 44,090 |
https://github.com/vunder/dotmimsync/blob/master/dotmimsync/src/main/java/com/mimetis/dotmim/sync/messages/TableChangesSelected.kt | Github Open Source | Open Source | MIT | null | dotmimsync | vunder | Kotlin | Code | 142 | 312 | package com.mimetis.dotmim.sync.messages
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
/**
* Get changes to be applied (contains Deletes AND Inserts AND Updates)
*/
@Serializable
class TableChangesSelected(
/**
* Gets the ta... | 54,561 |
https://github.com/letsar/DoLess.Bindings/blob/master/src/DoLess.Bindings.Droid/Core/CollectionBinding.T4.cs | Github Open Source | Open Source | MIT | 2,017 | DoLess.Bindings | letsar | C# | Code | 147 | 603 | using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Windows.Input;
namespace DoLess.Bindings
{
internal class CollectionBinding<TSource, TTarget, TItem, TSubItem> :
CollectionBinding<TSource, TTarget, TItem>,
ICollectionBinding<TSource, TTarget, TItem, TSubIt... | 5,614 |
https://github.com/Fabz29/offer-web/blob/master/src/AppBundle/Form/OfferType.php | Github Open Source | Open Source | MIT | null | offer-web | Fabz29 | PHP | Code | 193 | 715 | <?php
namespace AppBundle\Form;
use AppBundle\Entity\User;
use AppBundle\Entity\Offer;
use AppBundle\Repository\UserRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Bridge\Doctrine\Form\Type\Entit... | 1,628 |
https://github.com/sslavov93/kali-linux-tools/blob/master/scripts/peepdf.sh | Github Open Source | Open Source | MIT | 2,022 | kali-linux-tools | sslavov93 | Shell | Code | 5 | 13 | sudo apt-get -y install peepdf
| 16,702 |
https://github.com/yavuzyoldas/MyNotesProject/blob/master/application/controllers/UserBlocked.php | Github Open Source | Open Source | MIT | null | MyNotesProject | yavuzyoldas | PHP | Code | 163 | 934 | <?php
class UserBlocked extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model("UserBlocked_model");
}
public function index()
{
}
public function get()
{
$response = $this->UserBlocked_model->getAllUserBlocked();
... | 48,516 |
https://github.com/phylame/ccl/blob/master/core/yiterator.h | Github Open Source | Open Source | Apache-2.0 | null | ccl | phylame | C | Code | 220 | 677 | /*
* Copyright 2016 Peng Wan <phylame@163.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 54,659 |
https://github.com/jl632541832/spear/blob/master/src/Spear.ProxyGenerator/Proxy/ProxyBuilder.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | spear | jl632541832 | C# | Code | 745 | 3,047 | using Spear.ProxyGenerator.Impl;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Threading.Tasks;
namespace Spear.ProxyGenerator.Proxy
{
internal class ProxyBuilder
{
private const int Invo... | 40,121 |
https://github.com/gavinaboulhosn/texttoxicity/blob/master/pip-install.sh | Github Open Source | Open Source | MIT | null | texttoxicity | gavinaboulhosn | Shell | Code | 16 | 34 | #!/bin/bash
function pip_install {
pip install $1 && pip freeze | grep $1 >> requirements.txt;
} | 18,678 |
https://github.com/Beven91/react-bundle-loader/blob/master/src/config.js | Github Open Source | Open Source | MIT | 2,018 | react-bundle-loader | Beven91 | JavaScript | Code | 207 | 775 | /**
* 名称:代码拆分loader配置
* 日期: 2017-07-04
* 描述:用于配置webpack进行代码拆分的工具,实现拆分后不影响react同构
*/
var path = require('path');
var url = require('url');
var fs = require('fs-extra');
var CodeSpliterRouter = require('code-spliter-router')
var querystring = require('querystring');
function Configure(name, rootDir, points, splitHa... | 49,198 |
https://github.com/lihbr/slidev-theme-diapositiv/blob/master/composables/useRandomTheme.ts | Github Open Source | Open Source | MIT | null | slidev-theme-diapositiv | lihbr | TypeScript | Code | 79 | 225 | import { ref, Ref } from "vue";
enum Theme {
Navy = "navy",
Beet = "beet",
Flamingo = "flamingo",
Ochre = "ochre",
Butter = "butter",
Mantis = "mantis",
}
export const useRandomTheme = (): {
shuffle: () => void;
current: Ref<Theme>;
} => {
const current = ref<Theme>("" as Theme);
const shuffle = () => {
... | 16,004 |
https://github.com/HongZhaoHua/jstarcraft-core/blob/master/jstarcraft-core-cache/src/main/java/com/jstarcraft/core/cache/CacheMatcher.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jstarcraft-core | HongZhaoHua | Java | Code | 39 | 130 | package com.jstarcraft.core.cache;
import com.jstarcraft.core.common.identification.IdentityObject;
/**
* 缓存匹配器
*
* @author Birdy
*
* @param <K>
*/
public interface CacheMatcher<K extends Comparable, T extends IdentityObject<K>> {
/**
* 指定对象是否匹配
*
* @param object
* @return
*/
... | 47,569 |
https://github.com/JakeSteam/PixelBlacksmith/blob/master/Blacksmith/src/main/java/uk/co/jakelee/blacksmith/helper/ErrorHelper.java | Github Open Source | Open Source | MIT | 2,022 | PixelBlacksmith | JakeSteam | Java | Code | 68 | 612 | package uk.co.jakelee.blacksmith.helper;
import java.util.HashMap;
import uk.co.jakelee.blacksmith.R;
public class ErrorHelper {
public static final HashMap<Integer, Integer> errors = createErrorMap();
private static HashMap<Integer, Integer> createErrorMap() {
HashMap<Integer, Integer> errors = new... | 1,549 |
https://github.com/AdamSalma/Lurka/blob/master/app/modules/Panels/MenuPanel/containers/BoardListPage/BoardListItem.jsx | Github Open Source | Open Source | MIT | 2,022 | Lurka | AdamSalma | JavaScript | Code | 51 | 180 | import React from 'react';
import cx from 'classnames';
const BoardListItem = (props) => {
const { boardID, title, info, isFavourite } = props.board;
return (
<div className={cx('BoardListItem', isFavourite && "is-favourite")} onClick={props.onClick}>
<div className="title-wrap">
... | 47,701 |
https://github.com/aksqcy/Android-7.0/blob/master/hardware/aw/marlin/Android.mk | Github Open Source | Open Source | MIT | 2,019 | Android-7.0 | aksqcy | Makefile | Code | 12 | 70 | LOCAL_PATH:= $(call my-dir)
ifeq ($(BOARD_MARLIN_USE_SECUREOS), 1)
include $(LOCAL_PATH)/Lib/secure/Android.mk
else
include $(LOCAL_PATH)/Lib/nonsecure/Android.mk
endif
| 31,412 |
https://github.com/FrankDomburg/local_hero/blob/master/lib/src/rendering/layer.dart | Github Open Source | Open Source | MIT | 2,022 | local_hero | FrankDomburg | Dart | Code | 771 | 1,942 | import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
import 'package:local_hero/src/rendering/controller.dart';
import 'package:vector_math/vector_math_64.dart';
// ignore_for_file: public_member_api_docs
class LocalHeroLayer extends ContainerLayer {
/// Create... | 6,889 |
https://github.com/Cabrra/SPG-Project/blob/master/NinjaVsZombie/POC - C++/source/BitmapFont.cpp | Github Open Source | Open Source | MIT | null | SPG-Project | Cabrra | C++ | Code | 836 | 2,017 | /***************************************************************
| File: BitmapFont.cpp
| Author: Jagoba Marcos
| Course:
| Purpose: BitmapFont class draws text using an image
| of fixed-size character glyphs
***************************************************************/
#include "BitmapFont.h"
#include "..... | 40,080 |
https://github.com/goodieosc/andfun-kotlin-sleep-tracker/blob/master/app/src/main/java/com/example/android/trackmysleepquality/database/SleepDatabase.kt | Github Open Source | Open Source | Apache-2.0 | null | andfun-kotlin-sleep-tracker | goodieosc | Kotlin | Code | 123 | 319 | package com.example.android.trackmysleepquality.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import java.security.AccessControlContext
@Database(entities = [SleepNight::class], version = 1, exportSchema = false) //Can add multiple e... | 13,208 |
https://github.com/einride/protoc-gen-messageintegrity/blob/master/proto/gen/integrity/v1/signature.pb.go | Github Open Source | Open Source | MIT | 2,022 | protoc-gen-messageintegrity | einride | Go | Code | 1,112 | 4,645 | // Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: integrity/v1/signature.proto
package v1
import (
proto "github.com/golang/protobuf/proto"
descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor"
protoreflect "google.golang.org/pro... | 20,095 |
https://github.com/exoort/todolist/blob/master/utils/validations.ts | Github Open Source | Open Source | MIT | null | todolist | exoort | TypeScript | Code | 62 | 112 | export function isRequired (value: unknown, errorMsg?: string): boolean | string {
const msg = errorMsg ?? 'Field is required';
return !!value || msg;
}
export function lessThenSymbols (value: unknown, num = 200, errorMsg?: string): boolean | string {
const msg = errorMsg ?? `Must be less then ${num} symbols`;
... | 35,783 |
https://github.com/smogpill/core/blob/master/src/math/collision/intersection/coIntersectRayCapsule_f.cpp | Github Open Source | Open Source | MIT | 2,016 | core | smogpill | C++ | Code | 986 | 2,738 | // Copyright(c) 2021 Jounayd Id Salah
// Distributed under the MIT License (See accompanying file LICENSE.md file or copy at http://opensource.org/licenses/MIT).
#include "math/pch.h"
#include "coIntersectRayCapsule_f.h"
#include "coIntersectRaySphere_f.h"
// PT: ray-capsule intersection code, originally from the old ... | 29,845 |
https://github.com/lucabelluccini/apm-agent-java/blob/master/apm-agent-plugins/apm-grpc/apm-grpc-test-1.6.1/src/test/java/co/elastic/apm/agent/grpc/v1_6_1/testapp/generated/HelloGrpc.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | apm-agent-java | lucabelluccini | Java | Code | 987 | 5,644 | /*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 - 2021 Elastic and contributors
* %%
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. ... | 32,130 |
https://github.com/ronaldoussoren/pyobjc/blob/master/pyobjc-framework-MediaPlayer/PyObjCTest/test_mperror.py | Github Open Source | Open Source | MIT | 2,023 | pyobjc | ronaldoussoren | Python | Code | 33 | 234 | from PyObjCTools.TestSupport import TestCase, min_os_level
import MediaPlayer
class TestMPError(TestCase):
def test_enum_types(self):
self.assertIsEnumType(MediaPlayer.MPErrorCode)
@min_os_level("10.12")
def testConstants(self):
self.assertIsInstance(MediaPlayer.MPErrorDomain, str)
... | 19,837 |
https://github.com/dereekb/dbx-components/blob/master/packages/dbx-core/src/lib/injection/injection.context.ts | Github Open Source | Open Source | MIT | null | dbx-components | dereekb | TypeScript | Code | 208 | 410 | import { Provider, Type } from '@angular/core';
import { DbxInjectionComponentConfig } from './injection';
/**
* DbxInjectedViewContext showContext() configuration.
*/
export interface DbxInjectionContextConfig<T = unknown, O = unknown> {
/**
* Injected config.
*/
config: DbxInjectionComponentConfig<T>;
... | 13,262 |
https://github.com/VisualAcademy/Supports/blob/master/MemoEngine.Database/Logins/dbo/Stored Procedures/LoginsCount.sql | Github Open Source | Open Source | MIT | 2,018 | Supports | VisualAcademy | SQL | Code | 26 | 93 | -- 특정 아티클 테이블의 전체 레코드 수 반환
CREATE PROCEDURE [dbo].[LoginsCount]
@UserName NVarChar(100) -- 사용자 아이디
AS
Select Count(*) From Logins Where UserName = @UserName
Go
| 5,539 |
https://github.com/codersaga/HackerRank/blob/master/Problem Solving/Data Structures/Stacks/Equal Stacks.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | HackerRank | codersaga | Java | Code | 96 | 610 | import java.io.*;
import java.math.*;
import java.text.*;
import java.util.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n1=sc.nextInt();
int n2=sc.nextInt();
int n3=sc.nextInt();
int a1[]=... | 4,234 |
https://github.com/apache/kudu/blob/master/src/kudu/common/columnar_serialization.cc | Github Open Source | Open Source | OpenSSL, Apache-2.0, BSD-3-Clause, LicenseRef-scancode-openssl, LicenseRef-scancode-ssleay-windows, LicenseRef-scancode-google-patent-license-webrtc, LicenseRef-scancode-unknown-license-reference, dtoa, MIT, BSL-1.0, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown | 2,023 | kudu | apache | C++ | Code | 2,382 | 7,496 | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 35,003 |
https://github.com/square/square-php-sdk/blob/master/src/Models/ChargeRequest.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | square-php-sdk | square | PHP | Code | 2,553 | 6,109 | <?php
declare(strict_types=1);
namespace Square\Models;
use stdClass;
/**
* Defines the parameters that can be included in the body of
* a request to the [Charge](api-endpoint:Transactions-Charge) endpoint.
*
* Deprecated - recommend using [CreatePayment](api-endpoint:Payments-CreatePayment)
*/
class ChargeReq... | 44,307 |
https://github.com/haydendonald/node-red-contrib-allenandheath/blob/master/functions/ahm/muteControl.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | node-red-contrib-allenandheath | haydendonald | JavaScript | Code | 547 | 1,428 | module.exports = {
object: function () {
return {
parameters: undefined,
data: {
"channel": {},
"zone": {},
"controlGroup": {}
},
setup: function (parameters) {
this.parameters = parameters;
... | 44,419 |
https://github.com/Vovchikus/gofias/blob/master/app/interfaces/grpc/proto/v1/fias/fias.proto | Github Open Source | Open Source | MIT | 2,020 | gofias | Vovchikus | null | Spoken | 715 | 2,203 | syntax = "proto3";
package fias_v1;
option go_package = "app/infrastructure/persistence/grpc/dto/v1/fias";
import "google/protobuf/empty.proto";
import "google/api/annotations.proto";
import "protoc-gen-swagger/options/annotations.proto";
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
info... | 4,170 |
https://github.com/Deeds67/hoplite/blob/master/hoplite-core/src/main/kotlin/com/sksamuel/hoplite/decoder/urls.kt | Github Open Source | Open Source | Apache-2.0 | null | hoplite | Deeds67 | Kotlin | Code | 112 | 397 | package com.sksamuel.hoplite.decoder
import arrow.core.Try
import arrow.core.invalid
import com.sksamuel.hoplite.ConfigFailure
import com.sksamuel.hoplite.ConfigResult
import com.sksamuel.hoplite.DecoderContext
import com.sksamuel.hoplite.StringNode
import com.sksamuel.hoplite.Node
import com.sksamuel.hoplite.arrow.to... | 43,243 |
https://github.com/knreise/KNappen_web/blob/master/KNappen_src/KNappen/KNappen.MobileSPA/JS/App/Controllers/MapController.ts | Github Open Source | Open Source | BSD-3-Clause | 2,018 | KNappen_web | knreise | TypeScript | Code | 951 | 3,820 |
/**
Controller modules
@namespace App.Controllers
*/
module App.Controllers {
declare var OpenLayers: any;
export class MapController {
public mapProvider: System.Providers.MapProvider = null;
public panel: any = null;
private currentMarkerSelected: any;
private curre... | 12,447 |
https://github.com/JurajRusnak/chakra-paginator/blob/master/src/lib/providers/PaginatorProvider.tsx | Github Open Source | Open Source | MIT | null | chakra-paginator | JurajRusnak | TypeScript | Code | 405 | 1,430 | import React, {
FC,
useState,
createContext,
Dispatch,
SetStateAction,
useEffect,
useMemo,
} from "react";
import { ButtonProps } from "@chakra-ui/react";
// lib
import { IconType } from "../types";
import { INITIAL_VALUES } from "../constants";
import { isDecimalNumber } from "../helpers";
export type ... | 21,223 |
https://github.com/equivalent/pragmatic_serializer/blob/master/lib/pragmatic_serializer/pagination_json.rb | Github Open Source | Open Source | MIT | 2,021 | pragmatic_serializer | equivalent | Ruby | Code | 113 | 324 | module PragmaticSerializer
class PaginationJSON
attr_reader :limit, :offset, :total, :pagination_evaluator
def initialize(limit:, offset:, total: nil, pagination_evaluator:)
@limit = limit
@offset = offset
@total = total
@pagination_evaluator = pagination_evaluator
end
def as... | 50,120 |
https://github.com/chaibio/chaipcr/blob/master/realtime/db/temperaturelog.h | Github Open Source | Open Source | Apache-2.0 | 2,023 | chaipcr | chaibio | C++ | Code | 479 | 1,172 | /* * Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
* For more information visit http://www.chaibio.com
*
* Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... | 3,548 |
https://github.com/tefra/xsdata-w3c-tests/blob/master/output/models/nist_data/list_pkg/ncname/schema_instance/nistschema_sv_iv_list_ncname_min_length_5_xsd/__init__.py | Github Open Source | Open Source | MIT | 2,021 | xsdata-w3c-tests | tefra | Python | Code | 9 | 107 | from output.models.nist_data.list_pkg.ncname.schema_instance.nistschema_sv_iv_list_ncname_min_length_5_xsd.nistschema_sv_iv_list_ncname_min_length_5 import NistschemaSvIvListNcnameMinLength5
__all__ = [
"NistschemaSvIvListNcnameMinLength5",
]
| 1,367 |
https://github.com/anhvut/aoc/blob/master/src/2021/aoc2021-15.js | Github Open Source | Open Source | MIT | 2,022 | aoc | anhvut | JavaScript | Code | 582 | 1,615 | const fs = require('fs')
const lines = fs.readFileSync(__dirname + '/aoc2021-15.txt', 'utf-8').split(/\r?\n/);
const maze = lines.map(x => Array.from(x).map(y => +y));
const extendMaze = (maze) => {
const extendPoint = (n, i) => {
const v = n + i;
return v >= 10 ? v - 9 : v;
}
const newMaze = maze.map(n... | 31,422 |
https://github.com/gistable/gistable/blob/master/all-gists/2994781/snippet.py | Github Open Source | Open Source | MIT | 2,023 | gistable | gistable | Python | Code | 111 | 326 | from eventlet.pools import Pool
from eventlet.timeout import Timeout
class SocketPool(Pool):
"""A pool of sockets connected to a component
If a socket times out in use, simply close if before handing it back to the
pool and it will be discarded and a replacement inserted into the pool."""
def __init_... | 19,143 |
https://github.com/dehnhardt/iconnconfig/blob/master/src/sysex/retsetmixerinputcontrolvalue.cpp | Github Open Source | Open Source | MIT | 2,021 | iconnconfig | dehnhardt | C++ | Code | 572 | 2,600 | #include "retsetmixerinputcontrolvalue.h"
RetSetMixerInputControlValue::RetSetMixerInputControlValue(Device *device)
: PortSysExMessage(Command::RET_SET_MIXER_OUTPUT_CONTROL_VALUE,
SysExMessage::QUERY, device) {}
RetSetMixerInputControlValue::~RetSetMixerInputControlValue() {}
void RetSetMixerInputControlVa... | 55,520 |
https://github.com/YumeMichi/android_vendor_lineage/blob/master/config/common_full.mk | Github Open Source | Open Source | Apache-2.0 | null | android_vendor_lineage | YumeMichi | Makefile | Code | 55 | 241 | # Inherit common Lineage stuff
$(call inherit-product, vendor/lineage/config/common_mobile.mk)
PRODUCT_SIZE := full
# Include {Lato,Rubik} fonts
$(call inherit-product-if-exists, external/google-fonts/lato/fonts.mk)
$(call inherit-product-if-exists, external/google-fonts/rubik/fonts.mk)
# Fonts
PRODUCT_PACKAGES += \... | 19,465 |
https://github.com/Baret/zircon/blob/master/zircon.core/src/jvmTest/kotlin/org/hexworks/zircon/api/component/data/CommonComponentPropertiesTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | zircon | Baret | Kotlin | Code | 47 | 281 | package org.hexworks.zircon.api.component.data
import org.assertj.core.api.Assertions.assertThat
import org.hexworks.zircon.api.component.Component
import org.hexworks.zircon.api.component.ComponentStyleSet
import org.hexworks.zircon.api.component.renderer.ComponentDecorationRenderer
import org.hexworks.zircon.api.res... | 19,272 |
https://github.com/neosoumik/auction_system/blob/master/src/application/view/MainItemsController.java | Github Open Source | Open Source | MIT | null | auction_system | neosoumik | Java | Code | 58 | 224 | package application.view;
import java.io.IOException;
import javafx.scene.control.Button;
import application.Main;
import javafx.fxml.FXML;
public class MainItemsController {
@FXML
private Button ItemlistId;
@FXML
private Button BiddingListId;
@FXML
private Button SellingListId;
... | 1,983 |
https://github.com/alvinteh/bindfirst/blob/master/test/tests/main.js | Github Open Source | Open Source | MIT | 2,013 | bindfirst | alvinteh | JavaScript | Code | 159 | 520 | define(function(require) {
require("common");
require("bindfirst");
var currentCount = 0;
var createTestElement = function() {
$("body").append("<div id=\"test-" + currentCount + "\"></div>");
currentCount++;
return $("#test-" + (currentCount - 1));
};
describe("bind... | 2,672 |
https://github.com/fossabot/elenchos/blob/master/src/lib/getRefId.js | Github Open Source | Open Source | MIT | 2,019 | elenchos | fossabot | JavaScript | Code | 88 | 243 | import { isMaster } from "../lib/isMaster";
export const getRefId = event => {
let refId = false;
if (!event || !event.repository || !event.repository.full_name) {
return false;
}
let fullName = event.repository.full_name;
if (event && event.action) {
refId = event.pull_request.head.ref;
} else ... | 18,131 |
https://github.com/SealUI/sealui-m/blob/master/Makefile | Github Open Source | Open Source | MIT | null | sealui-m | SealUI | Makefile | Code | 96 | 590 | .PHONY: dist test
default: help
# build all theme
build-theme:
npm run build:theme
install:
npm install
install-cn:
npm install --registry=http://registry.npm.taobao.org
dev:
npm run dev
new:
node build/bin/new.js $(filter-out $@,$(MAKECMDGOALS))
dist: install
npm run dist
dist-all:
npm run dist:all
help... | 13,715 |
https://github.com/arbor/topictap/blob/master/src/App/Options/Types.hs | Github Open Source | Open Source | MIT | null | topictap | arbor | Haskell | Code | 716 | 1,867 | {-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
module App.Options.Types where
import Antiope.Core (FromText (..), Region (..), fromText)
import Antiope.DynamoDB (TableName)
import Antiope.S3 (BucketName)
import App.Types (Seconds (..)... | 9,310 |
https://github.com/jasonless/swagger-json-builder/blob/master/src/main/java/com/jasonless/swagger/SwaggerApplication.java | Github Open Source | Open Source | Apache-2.0 | null | swagger-json-builder | jasonless | Java | Code | 25 | 83 | package com.jasonless.swagger;
import com.jasonless.swagger.build.TemplateBuilder;
/**
* @author Jasonless
* @date 2021/4/3
*/
public class SwaggerApplication {
public static void main(String[] args) {
TemplateBuilder.builder();
}
}
| 44,481 |
https://github.com/ngram2017/forgejs-test/blob/master/src/audio/PlaylistTrack.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | forgejs-test | ngram2017 | JavaScript | Code | 1,139 | 3,897 |
/**
* A FORGE.PlaylistTrack is an object that manages the sound atached to a playlist track.
*
* @constructor FORGE.PlaylistTrack
* @param {FORGE.Viewer} viewer - The {@link FORGE.Viewer} reference.
* @param {AudioTrackConfig} config - The track config object.
* @extends {FORGE.BaseObject}
*/
FORGE.PlaylistTrac... | 43,595 |
https://github.com/cjpit/selpi/blob/master/connection/connection_select_live.py | Github Open Source | Open Source | MIT | null | selpi | cjpit | Python | Code | 172 | 624 | from ssl import SSLZeroReturnError
from exception import ConnectionLostException, ValidationException
import settings
from . import Connection
from .ssl import create_ssl_connection
class ConnectionSelectLive(Connection):
def __init__(
self,
create_ssl_connection_function: create_ssl_connec... | 15,218 |
https://github.com/lskjs/cli/blob/master/packages/cli-scripts/softFiles/.lskjs.js | Github Open Source | Open Source | MIT | null | cli | lskjs | JavaScript | Code | 41 | 190 | module.exports = {
storybook: 0,
i18: {
url: 'https://docs.google.com/spreadsheets/d/1yqEtc7VfCZRv4I3iqSiKSq9CkSDCU3fIKa-ZayyW_ys/edit#gid=0',
},
ncu: {
dep: 'prod,dev,peer,optional',
packages: '/^@(lskjs)/.*$/',
newest: 1,
},
lerna: {
// releaseArgs: '--yes' // yes
// releaseArgs: '... | 2,035 |
https://github.com/avsm/Ivor/blob/master/Ivor/rts/test.c | Github Open Source | Open Source | BSD-2-Clause | 2,010 | Ivor | avsm | C | Code | 311 | 1,394 | #include "closure.h"
#include <stdio.h>
#define FTAG_EVM_testval 5
VAL _EVM_testval();
#define FTAG_EVM_plus 1
VAL _EVM_plus(VAL v0);
#define FTAG_EVMSC_2_plus 2
VAL _EVMSC_2_plus(VAL v0,VAL v1,VAL v2,VAL v3);
#define FTAG_EVMSC_1_plus 3
VAL _EVMSC_1_plus(VAL v0,VAL v1);
#define FTAG_EVMSC_0_plus 4
VAL _EVMSC_0_plus(V... | 36,943 |
https://github.com/aslepenkov/frontend-comptech/blob/master/.gitignore | Github Open Source | Open Source | BSD-2-Clause | 2,017 | frontend-comptech | aslepenkov | Ignore List | Code | 4 | 13 | build
.idea
node_modules
debug.log | 54,641 |
https://github.com/ismail16/giantbddfrddrdrdrdt/blob/master/app/Http/Controllers/Admin/SubmissionreceiveController.php | Github Open Source | Open Source | MIT | 2,019 | giantbddfrddrdrdrdt | ismail16 | PHP | Code | 840 | 3,628 | <?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Mail\Customaccept;
use App\Mail\RejectMail;
use App\Mail\SendapprovedMail;
use App\Models\Author\Submit;
use App\Models\Category;
use App\Models\Submission_timer;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\... | 18,268 |
https://github.com/boredom-fueled-games/colyseum/blob/master/api/src/Doctrine/Repository/ItemRepository.php | Github Open Source | Open Source | MIT | null | colyseum | boredom-fueled-games | PHP | Code | 65 | 222 | <?php
namespace App\Doctrine\Repository;
use App\Core\Entity\Item;
use App\Core\Repository\ItemRepositoryInterface;
use Doctrine\ORM\EntityManagerInterface;
class ItemRepository extends AbstractDoctrineRepository implements ItemRepositoryInterface
{
public function __construct(EntityManagerInterface $entityManag... | 50,076 |
https://github.com/modulexcite/Session/blob/master/src/Microsoft.AspNet.Session/SessionMiddlewareExtensions.cs | Github Open Source | Open Source | Apache-2.0 | 2,015 | Session | modulexcite | C# | Code | 141 | 412 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using Microsoft.AspNet.Session;
using Microsoft.Framework.Caching.Distributed;
using Microsoft.Framework.Caching.Memory;... | 33,273 |
https://github.com/ultravideo/CiThruS-simulation-environment/blob/master/Assets/NPCSystem/Scripts/StructLink.cs | Github Open Source | Open Source | MIT | 2,023 | CiThruS-simulation-environment | ultravideo | C# | Code | 132 | 301 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
/// <summary>
/// Represents the link between two waypoint nodes
/// </summary>
public struct Link
{
private UniqueWaypoint origin;
private UniqueWaypoint target;
public UniqueWaypoint Origin { get { return origi... | 23,295 |
https://github.com/FledgeXu/Trunk/blob/master/Tests/TrunkTests/ModelsTest/ListTests.swift | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Trunk | FledgeXu | Swift | Code | 62 | 187 | //
// ListTests.swift
//
//
// Created by Fledge Shiu on 2021/7/12.
//
import XCTest
import Foundation
@testable import Trunk
final class ListTests: XCTestCase {
let testJosn = """
{
"id":"1343",
"title":"Test",
"replies_policy":"list"
}
"""
let type ... | 5,061 |
https://github.com/LaudateCorpus1/LockstepFramework/blob/master/Core/Game/Agents/AgentControllerSystem/AgentControllerHelper.cs | Github Open Source | Open Source | MIT | 2,022 | LockstepFramework | LaudateCorpus1 | C# | Code | 201 | 627 | using UnityEngine;
using Lockstep.Data;
using FastCollections;
namespace Lockstep
{
/// <summary>
/// At the moment a simple script that automatically creates AgentControllers at the start of games
/// </summary>
public class AgentControllerHelper : BehaviourHelper
{
[SerializeField, DataCodeAttribute("AgentCo... | 10,423 |
https://github.com/ampproject/amppackager/blob/master/vendor/gopkg.in/ns1/ns1-go.v2/rest/model/account/permissions.go | Github Open Source | Open Source | Apache-2.0, metamail, LicenseRef-scancode-other-permissive, Beerware, LicenseRef-scancode-zeusbench, Apache-1.1, LicenseRef-scancode-rsa-1990, LicenseRef-scancode-pcre, Spencer-94, LicenseRef-scancode-public-domain, NTP, LicenseRef-scancode-rsa-md4, MIT, HPND-sell-variant, RSA-MD | 2,022 | amppackager | ampproject | Go | Code | 241 | 848 | package account
// PermissionsMap wraps a User's "permissions" attribute
type PermissionsMap struct {
DNS PermissionsDNS `json:"dns"`
Data PermissionsData `json:"data"`
Account PermissionsAccount `json:"account"`
Monitoring PermissionsMonitoring `json:"monitoring"`
Security *Perm... | 11,582 |
https://github.com/Londiuh/FabricAntiXray/blob/master/src/main/java/me/drex/antixray/config/Config.java | Github Open Source | Open Source | MIT | null | FabricAntiXray | Londiuh | Java | Code | 54 | 217 | package me.drex.antixray.config;
import com.moandjiezana.toml.Toml;
import me.drex.antixray.AntiXray;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Objects;
public class Config {
public static Toml toml;
public static void loadConfig(File file) {
if (... | 13,718 |
https://github.com/chipsenkbeil/scala-debugger/blob/master/scala-debugger-api/src/main/scala/org/scaladebugger/api/dsl/monitors/MonitorContendedEnteredDSLWrapper.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | scala-debugger | chipsenkbeil | Scala | Code | 113 | 649 | package org.scaladebugger.api.dsl.monitors
import org.scaladebugger.api.lowlevel.JDIArgument
import org.scaladebugger.api.lowlevel.events.data.JDIEventDataResult
import org.scaladebugger.api.pipelines.Pipeline.IdentityPipeline
import org.scaladebugger.api.profiles.traits.info.events.MonitorContendedEnteredEventInfo
im... | 1,012 |
https://github.com/FilippoNevi/EISD/blob/master/Laboratorio/08/splatters/cc65/libwrk/atari/asrax4.d | Github Open Source | Open Source | Zlib | 2,021 | EISD | FilippoNevi | Makefile | Code | 3 | 35 | ../libwrk/atari/asrax4.o: runtime/asrax4.s
runtime/asrax4.s:
| 20,005 |
https://github.com/ricardoub/expedicao-laravel/blob/master/resources/views/home.blade.php | Github Open Source | Open Source | MIT | 2,018 | expedicao-laravel | ricardoub | PHP | Code | 37 | 195 | @extends('layouts.bootstrap.panel')
@section('panel-head-middle')
<button type="button" class="btn btn-default btn-title form-control" disabled>
<i class="fa fa-dashboard"></i>
Dashboard
<span class="hidden-xs hidden-sm"> </span>
</button>
@endsection
@section('panel-head-left')
@endsection
@section(... | 20,012 |
https://github.com/influxdata/routerify/blob/master/src/types/route_params.rs | Github Open Source | Open Source | MIT | 2,021 | routerify | influxdata | Rust | Code | 429 | 1,175 | use std::collections::HashMap;
/// Represents a map of the route parameters using the name of the parameter specified in the path as their respective keys.
///
/// Please refer to the [Route Parameters](./index.html#route-parameters) section for more info.
///
/// **Note:** This type shouldn't be created directly. It ... | 41,745 |
https://github.com/chain2/chain2/blob/master/src/test/pow_tests.cpp | Github Open Source | Open Source | MIT | 2,023 | chain2 | chain2 | C++ | Code | 537 | 1,943 | // Copyright (c) 2015 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "pow.h"
#include "util.h"
#include "test/test_bitcoin.h"
#include <boost/test/unit_test.hpp>
#incl... | 26,067 |
https://github.com/Symplicity/subdivision-list/blob/master/data/it/php/subdivisions.php | Github Open Source | Open Source | MIT | 2,018 | subdivision-list | Symplicity | PHP | Code | 8,916 | 27,296 | <?php return array (
'AD' => array(
'AD-07' => array('name' => 'Andorra la Vella', 'level' => 'parish'),
'AD-02' => array('name' => 'Parrocchia di Canillo', 'level' => 'parish'),
'AD-03' => array('name' => 'Parrocchia di Encamp', 'level' => 'parish'),
'AD-08' => array('name' => 'Parrocchia di Escaldes... | 53,742 |
https://github.com/pulumi/pulumi-azure/blob/master/sdk/java/src/main/java/com/pulumi/azure/sentinel/inputs/ThreatIntelligenceIndicatorParsedPatternArgs.java | Github Open Source | Open Source | BSD-3-Clause, MPL-2.0, Apache-2.0 | 2,023 | pulumi-azure | pulumi | Java | Code | 322 | 1,089 | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.sentinel.inputs;
import com.pulumi.azure.sentinel.inputs.ThreatIntelligenceIndicatorParsedPatternPatternTypeValueArgs;
import com.pulumi.core.Outpu... | 49,271 |
https://github.com/amal-hoor/kanon/blob/master/app/Http/Controllers/Admin/messageController.php | Github Open Source | Open Source | MIT | null | kanon | amal-hoor | PHP | Code | 46 | 211 | <?php
namespace App\Http\Controllers\Admin;
use App\Conversation;
use App\Message;
use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class messageController extends Controller
{
public function index()
{
$users=User::where('role_id','!=',1)->get();
return view('a... | 3,382 |
https://github.com/BananaAccounting/General/blob/master/TutorialApps/helloworld.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | General | BananaAccounting | JavaScript | Code | 200 | 409 | // Copyright [2018] [Banana.ch SA - Lugano Switzerland]
//
// 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 ap... | 37,382 |
https://github.com/ziodave/silk/blob/master/silk2/silk-core/src/main/scala/de/fuberlin/wiwiss/silk/runtime/resource/ResourceLoader.scala | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,015 | silk | ziodave | Scala | Code | 79 | 175 | package de.fuberlin.wiwiss.silk.runtime.resource
/**
* Loads external resources that are required by a data set, such as files.
*/
trait ResourceLoader {
/**
* Lists all available resources.
*/
def list: List[String]
/**
* Retrieves a name resource.
*
* @param name The name of the resource.
... | 27,017 |
https://github.com/StephenMcConnel/BloomDesktop/blob/master/src/BloomBrowserUI/publish/commonPublish/PublishProgressDialogInner.tsx | Github Open Source | Open Source | MIT | 2,022 | BloomDesktop | StephenMcConnel | TypeScript | Code | 429 | 1,244 | import * as React from "react";
import { useLayoutEffect } from "react";
import {
Button,
CircularProgress,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Typography
} from "@material-ui/core";
import { BloomApi } from "../../utils/bloomApi";
import { useTheme } from "@material-ui/styles... | 47,301 |
https://github.com/dyna-mis/Hilabeling/blob/master/src/core/qgsmaptopixel.h | Github Open Source | Open Source | MIT | null | Hilabeling | dyna-mis | C | Code | 915 | 1,955 | /***************************************************************************
qgsmaptopixel.h - description
-------------------
begin : Sat Jun 22 2002
copyright : (C) 2002 by Gary E.Sherman
email : sherman at m... | 6,946 |
https://github.com/ryanjdew/go-marklogic-go/blob/master/util/util.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | go-marklogic-go | ryanjdew | Go | Code | 708 | 1,949 | package util
import (
"bytes"
"encoding/xml"
"fmt"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
"net/textproto"
"net/url"
"strconv"
"strings"
"github.com/ryanjdew/go-marklogic-go/clients"
handle "github.com/ryanjdew/go-marklogic-go/handle"
)
// SerializableStringMap is a map[string]string which can be c... | 37,297 |
https://github.com/hannupekka/mullet/blob/master/src/react_components/facebook.js | Github Open Source | Open Source | MIT | 2,015 | mullet | hannupekka | JavaScript | Code | 73 | 301 | 'use strict';
var React = require('react');
var Facebook = React.createClass({
propTypes: {
subtitle: React.PropTypes.string,
title: React.PropTypes.string
},
getInitialState: function () {
return {};
},
componentDidMount: function () {},
componentWillUnmount: function () {},
render: functi... | 40,435 |
https://github.com/mgoffin/slack-dnd-bot/blob/master/dnd-bot.py | Github Open Source | Open Source | MIT | 2,020 | slack-dnd-bot | mgoffin | Python | Code | 649 | 1,641 | import json
import os
import requests
from d20 import roll
from flask import abort, Flask, request
app = Flask(__name__)
# Set response type
response_type = "in_channel" # ephemeral
# Character lookup for anyone with a real name and image.
# Each key/value pair should be in the form of:
# 'slash_cmd': {'name': 'D... | 48,170 |
https://github.com/tmeiczin/reliqua/blob/master/src/reliqua/app.py | Github Open Source | Open Source | MIT | null | reliqua | tmeiczin | Python | Code | 631 | 2,210 | import falcon
import glob
import imp
import inspect
import os
import re
import sys
import uuid
from six.moves import configparser
from gunicorn.app.base import BaseApplication
from falcon_cors import CORS
from . resources.base import Resource
from . middleware import ProcessParams
def load_config(config_file):
... | 40,311 |
https://github.com/FabioFazio/full_Hd0/blob/master/public/js/script.js | Github Open Source | Open Source | BSD-3-Clause | null | full_Hd0 | FabioFazio | JavaScript | Code | 1,038 | 4,207 | "use strict";
function escapeHtml(text) {
var map = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": '''
};
return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}
/////////////////////////////////////////////
//////////__WAITING FUNCTIONS__ ////////////... | 15,499 |
https://github.com/dsm23/reactPortfolio/blob/master/src/components/pages/Weather/index.jsx | Github Open Source | Open Source | MIT | null | reactPortfolio | dsm23 | null | Spoken | 20 | 44 | import React from 'react';
const Weather = () => {
return (
<div>
Weather
</div>
);
};
export default Weather;
| 45,270 |
https://github.com/DahamChoi/cocos_imgui_debugSystem/blob/master/Classes/Imgui/DebugLog/DebugLogGui.h | Github Open Source | Open Source | MIT | 2,021 | cocos_imgui_debugSystem | DahamChoi | C++ | Code | 114 | 397 | #pragma once
#include "ace.h"
#include "ImGuiObj.h"
NS_ACE_BEGIN
class DebugLogGui : public ImGuiObj
{
public:
static const std::string DebugLogGuiKey;
public:
DebugLogGui();
private:
// 검색창
char inputTextSearchBuf_[100] = {'\0', };
// 필터 체크박스
bool chkFilterDefault_ = true;
... | 49,090 |
https://github.com/ihmcrobotics/ihmc-open-robotics-software/blob/master/ihmc-robotics-toolkit/src/test/java/us/ihmc/robotics/math/trajectories/FramePolynomial3DBasicsTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | ihmc-open-robotics-software | ihmcrobotics | Java | Code | 190 | 1,248 | package us.ihmc.robotics.math.trajectories;
import org.junit.jupiter.api.Test;
import us.ihmc.commons.Assertions;
import us.ihmc.commons.RandomNumbers;
import us.ihmc.euclid.referenceFrame.FramePoint3D;
import us.ihmc.euclid.referenceFrame.FrameVector3D;
import us.ihmc.euclid.referenceFrame.ReferenceFrame;
import us.i... | 42,934 |
https://github.com/lintiansheng/vant/blob/master/packages/switch-cell/index.js | Github Open Source | Open Source | MIT | 2,019 | vant | lintiansheng | JavaScript | Code | 78 | 214 | import { use } from '../utils';
import { inherit } from '../utils/functional';
import Cell from '../cell';
import Switch from '../switch';
import SwitchMixin from '../mixins/switch';
const [sfc, bem] = use('switch-cell');
export default sfc({
functional: true,
mixins: [SwitchMixin],
props: {
title: String... | 29,721 |
https://github.com/michellebholland/Generocity/blob/master/client/components/ItemCard.jsx | Github Open Source | Open Source | MIT, Unlicense | 2,020 | Generocity | michellebholland | null | Spoken | 145 | 436 | /* eslint-disable no-useless-constructor */
import React, { Component } from 'react';
import '../scss/app.scss';
// eslint-disable-next-line react/prefer-stateless-function
class ItemCard extends Component {
constructor(props) {
super(props);
}
// eslint-disable-next-line lines-between-class-members
render... | 19,552 |
https://github.com/GatorQue/etl/blob/master/test/test_crc.cpp | Github Open Source | Open Source | MIT | 2,015 | etl | GatorQue | C++ | Code | 847 | 3,928 | /******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
Copyright(c) 2014 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(... | 161 |
https://github.com/josephizatt/furucombo-contract/blob/master/test/HComptroller.test.js | Github Open Source | Open Source | MIT | null | furucombo-contract | josephizatt | JavaScript | Code | 391 | 1,413 | const { balance, ether, time } = require('@openzeppelin/test-helpers');
const { tracker } = balance;
const { duration, increase } = time;
const abi = require('ethereumjs-abi');
const utils = web3.utils;
const { expect } = require('chai');
const {
CETHER,
COMP_TOKEN,
COMPOUND_COMPTROLLER,
COMPOUND_LENS,
} = re... | 40,918 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.