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/jrmhaig/OO_Game/blob/master/spec/lib/frameworks/ruby2d_factory_spec.rb
Github Open Source
Open Source
MIT
null
OO_Game
jrmhaig
Ruby
Code
38
140
# frozen_string_literal: true require 'frameworks/ruby2d_factory' require 'lib/frameworks/shared_examples' RSpec.describe Frameworks::Ruby2dFactory do subject(:factory) { described_class.new } it_behaves_like 'a framework factory' describe '#window' do subject { factory.window(width: 800, height: 800, tit...
45,240
https://github.com/StratoKit/strato-db/blob/master/src/DB/DB.js
Github Open Source
Open Source
MIT
2,022
strato-db
StratoKit
JavaScript
Code
555
1,466
import {sortBy} from 'lodash' import debug from 'debug' import SQLite, {sql} from './SQLite' import {DEV, deprecated} from '../lib/warning' const dbg = debug('strato-db/DB') export const _getRanMigrations = async db => { if ( !(await db.get(`SELECT 1 FROM sqlite_master WHERE name="{sdb} migrations"`)) ) { await...
51,926
https://github.com/ricardosantos9521/vscode-windows-terminal/blob/master/src/docker.ts
Github Open Source
Open Source
MIT
2,022
vscode-windows-terminal
ricardosantos9521
TypeScript
Code
34
99
import { exec } from 'child_process'; export function runDockerCommand(command: string): Promise<string> { return new Promise<string>((resolve, reject) => { exec(`docker ${command}`, (err, stdout, stderr) => { if (err) { reject(err); } resolve(stdout.trim()); }); }); }
21,242
https://github.com/Codinee/split-wise/blob/master/ioperator.go
Github Open Source
Open Source
MIT
null
split-wise
Codinee
Go
Code
9
26
package sharecalculate type iooperator interface{ read() []string write(string) }
24,760
https://github.com/AlexWorldD/EvoComputing/blob/master/SubmitHere/wtfKatsuura2.sh
Github Open Source
Open Source
MIT
2,018
EvoComputing
AlexWorldD
Shell
Code
64
304
#!/usr/bin/env bash for popSize in 40 60 do for epsMax in 2.0 3.0 4.0 do for sigma in 0.005 do for selPressure in 1.8 1.95 do for eps in 0.0002 0.0004 do for j in {1..5} do ja...
43,412
https://github.com/efueger/practical-startpage/blob/master/appdev/app/services/semantic-ui/semantic-ui.js
Github Open Source
Open Source
MIT
2,016
practical-startpage
efueger
JavaScript
Code
2
14
angular.module('ngSemanticUi', []);
30,108
https://github.com/YTLogos/gatk/blob/master/src/main/java/org/broadinstitute/hellbender/utils/R/RScriptExecutorException.java
Github Open Source
Open Source
BSD-3-Clause
null
gatk
YTLogos
Java
Code
25
90
package org.broadinstitute.hellbender.utils.R; import org.broadinstitute.hellbender.exceptions.GATKException; public final class RScriptExecutorException extends GATKException { private static final long serialVersionUID = 0L; public RScriptExecutorException(String msg) { super(msg); } }
45,383
https://github.com/iauchuk/newsbase-react/blob/master/newbase/src/components/header/header.styles.tsx
Github Open Source
Open Source
MIT
null
newsbase-react
iauchuk
TypeScript
Code
55
163
import {makeStyles} from "@mui/styles"; interface styledHeaderProps { color: string; } const styledHeader = makeStyles({ header: { display: 'flex', alignItems: 'center', textAlign: 'center', margin: `24px 0`, }, headerItem: { margin: `0 24px`, color: (props: styledHeaderProps) => {retu...
38,747
https://github.com/sguzman/SiteBuilder/blob/master/src/main/scala/com/github/sguzman/scala/site/builder/Main.scala
Github Open Source
Open Source
Unlicense
null
SiteBuilder
sguzman
Scala
Code
27
120
package com.github.sguzman.scala.site.builder object Main { def main(args: Array[String]): Unit = { val urls = Schemer.args(args) .par .flatMap(Schemer.uri({t => {}})(_)).distinct .flatMap(Schemer.uri(println)(_)).distinct .toList.sorted urls foreach println println(urls.length) ...
18,400
https://github.com/KtitarevEugene/todosAndroid/blob/master/app/models/Project.js
Github Open Source
Open Source
Apache-2.0
null
todosAndroid
KtitarevEugene
JavaScript
Code
64
221
exports.definition = { config: { columns: { "id": "INTEGER PRIMARY KEY AUTOINCREMENT", "projectName": "text" }, adapter: { type: "sql", collection_name: "Project", db_name: "dbTodos", idAttribute: "id", remoteBackup: false } }, extendModel: function(Model) { _.extend(Model.prototy...
31,553
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/k/kevinljh1/finalspeed-shadowsocks-server/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
192
669
# This dockerfile uses the ubuntu image # VERSION 1 - EDITION 1 # Author: Yourtion, Yale Huang # Command format: Instruction [arguments / command] .. # Base image to use, this must be set as the first line FROM ubuntu MAINTAINER Yale Huang <calvino.huang@gmail.com> # Commands to update the image R...
50,434
https://github.com/wrouesnel/callback/blob/master/node_modules/cerebral/lib/providers/Debugger.js
Github Open Source
Open Source
MIT, Apache-2.0
2,017
callback
wrouesnel
JavaScript
Code
204
567
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); function DebuggerProviderFactory() { function DebuggerProvider(context, functionDetails, payload, prevPayload) { var devtools = context.controller.devtools; if (devtools.preventPropsReplacement) { Object.keys(payload).forEa...
34,427
https://github.com/cmcmA20/plzoo-hs/blob/master/src/Zoo/Core.hs
Github Open Source
Open Source
MIT
null
plzoo-hs
cmcmA20
Haskell
Code
294
587
-- | This file contains all the common code used by the languages implemented in the PL Zoo. module Zoo.Core where import Control.Algebra import Control.Carrier.Error.Church import Control.Carrier.Reader import Control.Carrier.State.Strict import Control.Effect.Excepti...
38,917
https://github.com/chentepixtol/Bender2/blob/master/bender.php
Github Open Source
Open Source
MIT
2,012
Bender2
chentepixtol
PHP
Code
18
119
<?php require_once 'autoload.php'; use Application\Event\CoreListener; use Application\Bender\Bender; $bender = Bender::getInstance(); $bender->loadContainer(realpath('.').'/config/Services.xml'); $bender->getEventDispatcher()->addSubscriber(new CoreListener()); $output = $bender->getContainer()->get('output'); $...
7,482
https://github.com/v-kabanov/MultiDatabaseRestorer/blob/master/src/RestoreBackupLib/RestorationException.cs
Github Open Source
Open Source
Unlicense
null
MultiDatabaseRestorer
v-kabanov
C#
Code
73
211
using System; namespace RestoreBackupLib { public class RestorationException : Exception { /// <summary> /// May be null /// </summary> public RestorationSummary RestorationSummary { get; set; } public RestorationException(string message, Exception innerException) ...
5,928
https://github.com/lisongwang/java-core/blob/master/src/main/java/com/lisong/learn/core/generics/movie/Thanos.java
Github Open Source
Open Source
Apache-2.0
null
java-core
lisongwang
Java
Code
9
31
package com.lisong.learn.core.generics.movie; public class Thanos extends BadGuys { }
49,035
https://github.com/edgyulnazaryan/stock-managment/blob/master/home/resources/views/home.blade.php
Github Open Source
Open Source
MIT
2,021
stock-managment
edgyulnazaryan
Blade
Code
59
344
@extends('layouts.app') @section('content') <div class="container"> <a href="{{ route('order_create') }}" class="btn float-right"><i class="fa fa-plus" aria-hidden="true"></i></a> {{-- @dd($data[0]->manager->first_name) --}} <table class="table"> <thead> <tr> <th>Supplier name</th> ...
35,910
https://github.com/githubZzmh/yjjy/blob/master/src/main/java/cn/com/ctrl/yjjy/project/control/online/controller/OnlineController.java
Github Open Source
Open Source
MIT
null
yjjy
githubZzmh
Java
Code
240
1,286
package cn.com.ctrl.yjjy.project.control.online.controller; import cn.com.ctrl.yjjy.common.utils.http.HttpUtils; import cn.com.ctrl.yjjy.framework.web.controller.BaseController; import cn.com.ctrl.yjjy.framework.web.domain.AjaxResult; import cn.com.ctrl.yjjy.framework.web.page.TableDataInfo; import cn.com.ctrl.yjjy.pr...
32,727
https://github.com/bhuvnesh2703/gpupgrade/blob/master/hub/services/check_upgrade.go
Github Open Source
Open Source
Apache-2.0
null
gpupgrade
bhuvnesh2703
Go
Code
80
272
package services import ( "sync" "github.com/hashicorp/go-multierror" ) func (h *Hub) CheckUpgrade(stream OutStreams) error { var wg sync.WaitGroup checkErrs := make(chan error, 2) wg.Add(1) go func() { defer wg.Done() err := h.UpgradeMaster(stream, true) if err != nil { checkErrs <- err } }() ...
6,661
https://github.com/yannakisg/g-classifier/blob/master/include/decisionTree.h
Github Open Source
Open Source
MIT
2,014
g-classifier
yannakisg
C
Code
121
310
#ifndef _DECISIONTREE_H #include "linkedlist.h" #include "include.h" #include <stdlib.h> #define _DECISIONTREE_H typedef struct DecisionTree_ { unsigned short empty; /*0 means empty, 1 means with data */ long double gainSampleW, gainAge, gainJobC, gainEducation, gainYearsOfEdu, gainMarStatus, gainOcc, gainGender,...
26,431
https://github.com/nightingalejs/nightingale-console/blob/master/lib-module-node8-dev/index.js
Github Open Source
Open Source
ISC
2,018
nightingale-console
nightingalejs
JavaScript
Code
65
225
import formatterANSI from 'nightingale-ansi-formatter'; import consoleOutput from 'nightingale-console-output'; import createFindDebugLevel from 'nightingale-debug'; import t from 'flow-runtime'; const handle = record => { let _recordType = t.object(); t.param('record', _recordType).assert(record); return conso...
18,127
https://github.com/WeiwenXu21/Edamame/blob/master/ARIMA/arima_model.py
Github Open Source
Open Source
MIT
2,018
Edamame
WeiwenXu21
Python
Code
400
1,287
import argparse import json import pandas as pd import numpy as np import itertools import operator import warnings import pprint from datetime import datetime from support.io_support import load_data from support.evaluation import smape, evaluate_smape from .itsmpy import ITSM def fit_arima_model(series, M): """ ...
24,544
https://github.com/Core-Team-META/Spellshock-2/blob/master/SS2-NewPlayerArena/Data/Templates/Assassin.pbt
Github Open Source
Open Source
Apache-2.0
2,022
Spellshock-2
Core-Team-META
Protocol Buffer Text Format
Code
6,557
25,380
Assets { Id: 17802584465689016806 Name: "Assassin" PlatformAssetType: 5 TemplateAsset { ObjectBlock { RootId: 4569115510025570718 Objects { Id: 4569115510025570718 Name: "Assassin" Transform { Scale { X: 1 Y: 1 Z: 1 ...
12,653
https://github.com/wsmigaj/odc/blob/master/tests/api/odc-cpp-index.1
Github Open Source
Open Source
Apache-2.0
null
odc
wsmigaj
null
Spoken
4
18
Usage: odc-cpp-index <odb2 file>
49,839
https://github.com/scivis-exhibitions/OpenSpace/blob/master/scripts/core_scripts.lua
Github Open Source
Open Source
MIT
2,022
OpenSpace
scivis-exhibitions
Lua
Code
318
791
openspace.documentation = { { Name = "markInterestingNodes", Arguments = "List of nodes", Documentation = "This function marks the scene graph nodes identified by name " .. "as interesting, which will provide shortcut access to focus buttons and " .. "featured properties." ...
28,990
https://github.com/S-a-k-s-h-i/nestjs-quiz-app/blob/master/server/src/modules/quiz/controllers/quiz.controller.ts
Github Open Source
Open Source
MIT
2,021
nestjs-quiz-app
S-a-k-s-h-i
TypeScript
Code
63
248
import { Body, Controller, Get, Param, Post, UsePipes, ValidationPipe } from '@nestjs/common'; import { CreateQuizDTO } from '../dto/create-quiz.dto'; import { Quiz } from '../entities/quiz.entity'; import { QuizService } from '../services/quiz.service'; @Controller('quiz') export class QuizController { constructor...
41,562
https://github.com/JT1989/ruby-exercises/blob/master/exercises/max.rb
Github Open Source
Open Source
MIT
2,015
ruby-exercises
JT1989
Ruby
Code
448
751
# Method name: max # Input: a list of numbers # Returns: the largest number in the list # Prints: Nothing # # In English, the "max" method takes as input a list of numbers and # returns the largest number in that list. # Note: This exercise is "complete." # This is meant to give you a starting point and also illustrat...
52,047
https://github.com/apache/netbeans-jackpot30/blob/master/language/ide/indexing/src/org/netbeans/modules/jackpot30/indexing/batch/OptionProcessorImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
netbeans-jackpot30
apache
Java
Code
768
2,780
/** * 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...
37,428
https://github.com/SeasideSt/Seaside/blob/master/repository/Seaside-Pharo-Development.package/WAMemoryItem.class/class/on..st
Github Open Source
Open Source
MIT
2,023
Seaside
SeasideSt
null
Spoken
9
19
instance creation on: aClass ^ self basicNew initializeOn: aClass
46,581
https://github.com/klikli-dev/occultism/blob/master/src/main/java/com/klikli_dev/occultism/common/entity/spirit/SpiritEntity.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
occultism
klikli-dev
Java
Code
1,973
7,877
/* * MIT License * * Copyright 2020 klikli-dev * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merg...
17,428
https://github.com/anuarfx/Parqueaderos4Ruedas/blob/master/app/Http/Controllers/VehiculoController.php
Github Open Source
Open Source
MIT
null
Parqueaderos4Ruedas
anuarfx
PHP
Code
265
945
<?php namespace App\Http\Controllers; use App\Vehiculo; use App\Marca; use App\Propietario; use Illuminate\Http\Request; use App\Http\Requests\ValidateVehiculo; class VehiculoController extends Controller { /** * Create a new controller instance. * * @return void */ public function __con...
51,149
https://github.com/usc-cloud/floe2/blob/master/floe-core/src/test/java/edu/usc/pgroup/TestMain.java
Github Open Source
Open Source
Apache-2.0
2,016
floe2
usc-cloud
Java
Code
217
540
/* * Copyright 2014 University of Southern California * * 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 applic...
1,898
https://github.com/mpeterv/rgkit/blob/master/.gitignore
Github Open Source
Open Source
Unlicense
2,015
rgkit
mpeterv
Ignore List
Code
12
35
# Please place your local ignore entries in .git/info/exclude *.py[cod] docs/_build/* docs/_static/*
18,617
https://github.com/zendwang/yii2-app-wechat/blob/master/modules/example/controllers/ProcessController.php
Github Open Source
Open Source
BSD-3-Clause
2,021
yii2-app-wechat
zendwang
PHP
Code
16
71
<?php namespace app\modules\example\controllers; class ProcessController extends \callmez\wechat\components\ProcessController { public function actionIndex() { return $this->responseText('example关键字回复:哈哈'); } }
31,709
https://github.com/Talend/apache-camel/blob/master/docs/components/modules/ROOT/pages/stream-component.adoc
Github Open Source
Open Source
Apache-2.0
2,023
apache-camel
Talend
AsciiDoc
Code
1
23
../../../../../components/camel-stream/src/main/docs/stream-component.adoc
38,049
https://github.com/elastic/swagger-codegen/blob/master/samples/server/petstore/springboot-delegate/src/main/java/io/swagger/api/StoreApiDelegate.java
Github Open Source
Open Source
Apache-2.0
2,021
swagger-codegen
elastic
Java
Code
88
280
package io.swagger.api; import java.util.Map; import io.swagger.model.Order; import io.swagger.annotations.*; import org.springframework.http.ResponseEntity; import org.springframework.web.multipart.MultipartFile; import java.util.List; /** * A delegate to be called by the {@link StoreApiController}}. * Should be...
25,100
https://github.com/cheahjs/gdk-for-unity/blob/master/workers/unity/Packages/io.improbable.gdk.tools/.CodeGenTemplate/CodeGenerationLib/Model/Details/FieldTypes/ContainedType.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,021
gdk-for-unity
cheahjs
C#
Code
245
1,064
using System; using Improbable.Gdk.CodeGeneration.Utils; namespace Improbable.Gdk.CodeGeneration.Model.Details { public class ContainedType { public readonly string FqnType; public readonly string RawType; public readonly ValueType Category; public readonly PrimitiveType? Primit...
15,963
https://github.com/zoetrope/ac-deepcopy/blob/master/applyconfigurations/discovery/v1beta1/doc.go
Github Open Source
Open Source
Apache-2.0
2,022
ac-deepcopy
zoetrope
Go
Code
6
28
// +k8s:deepcopy-gen=package // +groupName=discovery package v1beta1
22,217
https://github.com/razrqcom-dev-team/android_device_motorola_xt1080/blob/master/Android.mk
Github Open Source
Open Source
FTL
2,015
android_device_motorola_xt1080
razrqcom-dev-team
Makefile
Code
16
82
LOCAL_PATH := $(call my-dir) ifeq ($(TARGET_DEVICE),xt1080) include $(call all-subdir-makefiles,$(LOCAL_PATH)) endif ifeq ($(TARGET_DEVICE),xt1080c) include $(call all-subdir-makefiles,$(LOCAL_PATH)) endif
39,310
https://github.com/Rwhytsell/Lurker/blob/master/models/Message.go
Github Open Source
Open Source
MIT
null
Lurker
Rwhytsell
Go
Code
25
59
package models import "time" type Message struct { Username string UserId string MessageText string IsSub bool IsMod bool IsTurbo bool Channel string DateSent time.Time }
15,427
https://github.com/lechium/iOS1351Headers/blob/master/System/Library/ControlCenter/Bundles/LowPowerModule.bundle/CCUILowPowerModule.h
Github Open Source
Open Source
MIT
2,022
iOS1351Headers
lechium
C
Code
73
280
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:18:22 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/ControlCenter/Bundles/Low...
43,073
https://github.com/xiaohaijin/RHIC-STAR/blob/master/StRoot/StTofPool/StTofrNtupleMaker/StTofrCellData.h
Github Open Source
Open Source
MIT
2,022
RHIC-STAR
xiaohaijin
C
Code
206
845
/******************************************************************* * * $Id: StTofrCellData.h,v 1.6 2008/06/05 18:33:45 dongx Exp $ * * Author: Xin Dong ***************************************************************** * * Description: variables list for filling TOFr TTree * **********************************...
46,521
https://github.com/AntonAbtamchenko/iziquizzer/blob/master/database/seeds/UsersTableSeeder.php
Github Open Source
Open Source
Apache-2.0
null
iziquizzer
AntonAbtamchenko
PHP
Code
46
164
<?php use Illuminate\Database\Seeder; /** * Class UsersTableSeeder */ class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(config('auth.providers.users.model'))->create([ 'name' => 'Demo', ...
42,417
https://github.com/Kigamba/kujaku/blob/master/library/src/main/java/io/ona/kujaku/plugin/switcher/BaseLayerSwitcherPlugin.java
Github Open Source
Open Source
BSD-2-Clause
null
kujaku
Kigamba
Java
Code
473
1,733
package io.ona.kujaku.plugin.switcher; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import com.google.android.material.floatingactionbutton.FloatingActionButton; import androidx.appcompat.widget.PopupMenu; import android.view.Gravity; import and...
45,293
https://github.com/weedkiller/propertycode/blob/master/property/src/YK.PropertyMgr.UnitOfWork/PropertyMgrUnitOfWork.cs
Github Open Source
Open Source
MIT
2,018
propertycode
weedkiller
C#
Code
1,262
5,731
using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Linq; using System.Threading; using KW.Sprite.Common.Repository; using YK.PropertyMgr.RepositoryContract; using YK.PropertyMgr.Repository; namespace YK.PropertyMgr.UnitOfWork { public partial class PropertyMgrUnitOfWork ...
37,627
https://github.com/rmsrohan/aws-terraform-backup/blob/master/modules/selection/main.tf
Github Open Source
Open Source
MIT
2,019
aws-terraform-backup
rmsrohan
HCL
Code
44
251
module "backup_role" { build_state = "${var.create_iam_role}" source = "git@github.com:rackspace-infrastructure-automation/aws-terraform-iam_resources//modules/role?ref=v0.0.1" name = "${var.iam_role_name}" aws_service = ["backup.amazonaws.com"] policy_arns = ["arn:aws:iam::aws:policy/serv...
28,768
https://github.com/sean-m/miis-autosync/blob/master/src/Lithnet.Miiserver.Autosync.UI/OnlineHelpProvider.cs
Github Open Source
Open Source
MIT
2,020
miis-autosync
sean-m
C#
Code
119
416
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Input; namespace Lithnet.Miiserver.AutoSync.UI { internal static class OnlineHelpProvider { public static readonly De...
26,050
https://github.com/shawnmssu/ucloud-cli/blob/master/vendor/github.com/ucloud/ucloud-sdk-go/service/unet/bind_eip.go
Github Open Source
Open Source
Apache-2.0
2,018
ucloud-cli
shawnmssu
Go
Code
116
535
//go:generate go run ../../private/cli/gen-api/main.go unet BindEIP package unet import ( "github.com/ucloud/ucloud-sdk-go/sdk/request" "github.com/ucloud/ucloud-sdk-go/sdk/response" ) type BindEIPRequest struct { request.CommonBase // Required, 弹性IP的资源Id EIPId string // Required, 弹性IP请求绑定的资源类型, 枚举值为: uhost:...
9,831
https://github.com/thejungwon/docker-webapp-django/blob/master/src/init_admin.py
Github Open Source
Open Source
MIT
2,022
docker-webapp-django
thejungwon
Python
Code
9
43
#!/usr/bin/env python from django.contrib.auth.models import User User.objects.create_superuser('admin', 'admin@admin.com', 'password')
30,213
https://github.com/devatwork/Premotion-Mansion/blob/master/src/Premotion.Mansion.Web.Portal/ScriptTags/RenderBlockTag.cs
Github Open Source
Open Source
MIT
2,015
Premotion-Mansion
devatwork
C#
Code
79
313
using System; using Premotion.Mansion.Core; using Premotion.Mansion.Core.Scripting.TagScript; using Premotion.Mansion.Web.Portal.Service; namespace Premotion.Mansion.Web.Portal.ScriptTags { /// <summary> /// Renders the specified block. /// </summary> [ScriptTag(Constants.TagNamespaceUri, "renderBlock")] public ...
53,302
https://github.com/MounirRachdi/SupClub/blob/master/SupClub/SupClub/App.xaml.cs
Github Open Source
Open Source
MIT
2,018
SupClub
MounirRachdi
C#
Code
176
671
using Prism; using Prism.Ioc; using SupClub.ViewModels; using SupClub.Views; using Xamarin.Forms; using Xamarin.Forms.Xaml; using Prism.DryIoc; using SupClubLib.Services; using SupClubLib.Repositories; using SupClubLib.Model; using System; using Prism.Navigation; using SupClub.Helper; using Plugin.SecureStorage; [ass...
54,096
https://github.com/andela-kogunde/CheckSmarter/blob/master/app/src/main/kotlin/com/andela/checksmarter/fragments/DetailActivityFragment.kt
Github Open Source
Open Source
MIT
2,016
CheckSmarter
andela-kogunde
Kotlin
Code
82
361
package com.andela.checksmarter.fragments import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.andela.checksmarter.R import com.andela.checksmarter.model.CheckSmarterJava import com.andela.checksmarter.views...
33,252
https://github.com/cpdoc/dhbb-nlp/blob/master/udp/2208.conllu
Github Open Source
Open Source
CC-BY-4.0
2,021
dhbb-nlp
cpdoc
null
Spoken
18,509
52,998
# text = «José Mário Frota Moreira» nasceu em Granja (CE) em 22 de fevereiro de 1943, filho de Francisco Moreira de Sousa e de Francisca Diva Frota Sousa. # sent_id = 1 # newpar # newdoc 1 « « PUNCT _ _ 2 punct _ SpaceAfter=No 2 José José PROPN _ Gender=Masc|Number=Sing 7 nsubj _ _ 3 Mário Mário PROPN _ Number=Sing 2 f...
1,817
https://github.com/Devil7-Softwares/Feedbacks_Manager/blob/master/Feedbacks Manager/Classes/Feedbacks.vb
Github Open Source
Open Source
Apache-2.0
null
Feedbacks_Manager
Devil7-Softwares
Visual Basic
Code
286
816
'==========================================================================' ' ' ' (C) Copyright 2018 Devil7 Softwares. ' ' ' ' Licensed ...
48,467
https://github.com/agry/x-com/blob/master/forms/textbutton.cpp
Github Open Source
Open Source
MIT
null
x-com
agry
C++
Code
300
1,278
#include "forms/textbutton.h" #include "framework/framework.h" namespace OpenApoc { TextButton::TextButton( Framework &fw, Control* Owner, UString Text, std::shared_ptr<BitmapFont> font ) : Control( fw, Owner ), text( Text ), font( font ), buttonbackground(fw.data->load_image( "UI/TEXTBUTTONBACK.PNG" )), TextHAlign(...
6,365
https://github.com/jonathanabennett/esper/blob/master/examples/headless_example.py
Github Open Source
Open Source
MIT
2,020
esper
jonathanabennett
Python
Code
153
466
import esper import time ################################## # Define some Components: ################################## class Velocity: def __init__(self, x=0.0, y=0.0): self.x = x self.y = y class Position: def __init__(self, x=0, y=0): self.x = x self.y = y ############...
36,705
https://github.com/PlantandFoodResearch/irods/blob/master/iRODS/lib/api/src/rcFileRead.cpp
Github Open Source
Open Source
BSD-3-Clause
null
irods
PlantandFoodResearch
C++
Code
77
168
/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* rcFileRead.c - Client API call for fileRead. Part of the * reoutine may be generated by a script */ #include "fileRead.hpp" int rcFileRead( rcComm_t *conn,...
35,000
https://github.com/Konque/J2-Admin/blob/master/src/main/java/org/apache/jetspeed/security/mfa/CaptchaBean.java
Github Open Source
Open Source
Apache-2.0
null
J2-Admin
Konque
Java
Code
219
401
/* * 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...
44,930
https://github.com/qiuqiu086/Project/blob/master/src/models/list.js
Github Open Source
Open Source
MIT
null
Project
qiuqiu086
JavaScript
Code
92
331
import { queryFakeList } from '@/services/api'; export default { namespace: 'list', state: { list: [], }, effects: { *fetch({ payload }, { call, put }) { const response = yield call(queryFakeList, payload); console.log(response) yield put({ type: 'queryList', payload...
27,947
https://github.com/DamieFC/chromium/blob/master/chrome/browser/apps/app_service/app_service_proxy_desktop.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,020
chromium
DamieFC
C
Code
167
730
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_APPS_APP_SERVICE_APP_SERVICE_PROXY_DESKTOP_H_ #define CHROME_BROWSER_APPS_APP_SERVICE_APP_SERVICE_PROXY_DESKTOP_H_ #include <memor...
39,664
https://github.com/ynishi/docker-v/blob/master/build.sh
Github Open Source
Open Source
MIT
null
docker-v
ynishi
Shell
Code
24
47
#!/bin/sh # multi stage builder docker build --target builder -t builder . # multi stage to use docker build --cache-from builder -t v-cli .
16,643
https://github.com/afelisatti/allure-core/blob/master/allure-report-face/src/plugins/behaviors/behaviors-tree/BehaviorsTreeView.hbs
Github Open Source
Open Source
Apache-2.0
2,017
allure-core
afelisatti
null
Spoken
112
581
<a class="pane__overlay" href="#behaviors"></a> <h2 class="pane__title"> Features overview </h2> <div class="{{b "table" hover=true}}"> <div class="{{b "table" "head"}}"> {{> ../../../blocks/table/sortable-col field="title" title="Title" class="behaviors-list__title"}} {{> ../../../blocks/table...
46,069
https://github.com/xentu/xentu-engine/blob/master/src/xentu/graphics/Sprite.h
Github Open Source
Open Source
BSD-2-Clause
2,022
xentu-engine
xentu
C
Code
55
189
#ifndef XEN_SPRITE_HPP #define XEN_SPRITE_HPP #include <string> #include "Vector4.h" #include "Rect.h" #include "Texture.h" #include "Transformable.h" namespace xen { struct Sprite : public Transformable { Sprite(); Sprite(const Texture& texture, float width, float height, Vector4f color, int layer = 0); void...
27,899
https://github.com/openbnet/react-jsonschema-form-extras/blob/master/lib/ReactDatePicker.js
Github Open Source
Open Source
Apache-2.0
2,020
react-jsonschema-form-extras
openbnet
JavaScript
Code
1,007
3,098
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
12,127
https://github.com/blockui/blockui.github.io/blob/master/src/components/MarkCatsView.js
Github Open Source
Open Source
MIT
null
blockui.github.io
blockui
JavaScript
Code
239
965
import React, {Fragment} from 'react' import {Icons} from "components/Icons"; import classNames from "classnames" import {setStoreState} from "components/core/App"; import {getAppBarHeight, getSwiperSubCatsViewHeight, setBodyOverflowHidden} from "shared/functions/common"; import {Swiper, SwiperSlide} from 'swiper/react...
20,965
https://github.com/Calabonga/Calabonga.Microservices.Core/blob/master/src/Calabonga.Microservices.Core/Calabonga.Microservices.Core/AppContracts.Exceptions.cs
Github Open Source
Open Source
MIT
2,021
Calabonga.Microservices.Core
Calabonga
C#
Code
224
512
using System.Runtime.Serialization; namespace Calabonga.Microservices.Core { /// <summary> /// Architecture infrastructure common symbols /// </summary> public static partial class AppContracts { public static class Exceptions { /// <summary> ///...
32,785
https://github.com/HyperloopTeam/Hyperloop/blob/master/NASA-TM/build.sh
Github Open Source
Open Source
Apache-2.0
2,015
Hyperloop
HyperloopTeam
Shell
Code
33
154
#!/bin/bash #build pdf (with bibtex) "/usr/texbin/pdflatex" -synctex=1 -shell-escape -interaction=nonstopmode heading.tex bibtex heading.aux makeindex heading.nlo -s nomencl.ist -o heading.nls "/usr/texbin/pdflatex" -synctex=1 -shell-escape -interaction=nonstopmode heading.tex "/usr/texbin/pdflatex" -synctex=1 -shell-...
54,557
https://github.com/GeoscienceAustralia/earthsci/blob/master/plugins/au.gov.ga.earthsci.core/src/au/gov/ga/earthsci/core/temporal/Chronos.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
earthsci
GeoscienceAustralia
Java
Code
514
1,227
/******************************************************************************* * Copyright 2013 Geoscience Australia * * 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://ww...
31,069
https://github.com/Workiva/wf-uicomponents/blob/master/test/awesome_map/ScaleInterceptorSpec.js
Github Open Source
Open Source
Apache-2.0
2,015
wf-uicomponents
Workiva
JavaScript
Code
728
2,169
/* * Copyright 2015 Workiva, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
49,363
https://github.com/deepcloudlabs/dcl235-2019-nov-25/blob/master/class-and-interfaces/src/com/example/UseInstrumentedHashSet.java
Github Open Source
Open Source
MIT
2,019
dcl235-2019-nov-25
deepcloudlabs
Java
Code
61
238
package com.example; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; public class UseInstrumentedHashSet { @SuppressWarnings("unused") public static void main(String[] args) { HashSet<Integer> hashSet = new HashSet<Integer>(); Instrume...
10,061
https://github.com/dotnet/spark/blob/master/src/scala/microsoft-spark-2-4/src/main/scala/org/apache/spark/mllib/api/dotnet/MLUtils.scala
Github Open Source
Open Source
MIT
2,023
spark
dotnet
Scala
Code
114
236
/* * Licensed to the .NET Foundation under one or more agreements. * The .NET Foundation licenses this file to you under the MIT license. * See the LICENSE file in the project root for more information. */ package org.apache.spark.mllib.api.dotnet import org.apache.spark.ml._ import scala.collection.JavaConverte...
13,468
https://github.com/RichardLitt/Vesper/blob/master/vesper/django/app/archive.py
Github Open Source
Open Source
MIT
null
Vesper
RichardLitt
Python
Code
1,563
5,307
"""Module containing `Archive` class.""" from collections import defaultdict from vesper.django.app.models import ( AnnotationConstraint, AnnotationInfo, Processor) import vesper.util.yaml_utils as yaml_utils _STRING_ANNOTATION_VALUE_COMPONENT_SEPARATOR = '.' _STRING_ANNOTATION_VALUE_WILDCARD = '*' _STRING_ANN...
48,205
https://github.com/ingef/conquery/blob/master/backend/src/main/java/com/bakdata/conquery/models/identifiable/ids/specific/FilterId.java
Github Open Source
Open Source
MIT
2,023
conquery
ingef
Java
Code
87
388
package com.bakdata.conquery.models.identifiable.ids.specific; import java.util.List; import com.bakdata.conquery.models.datasets.concepts.filters.Filter; import com.bakdata.conquery.models.identifiable.ids.Id; import com.bakdata.conquery.models.identifiable.ids.IdUtil; import com.bakdata.conquery.models.identifiable...
13,406
https://github.com/mlrv/H-99/blob/master/Arithmetic/41.hs
Github Open Source
Open Source
WTFPL
null
H-99
mlrv
Haskell
Code
149
293
{- Given a range of integers by its lower and upper limit, print a list of all even numbers and their Goldbach composition. goldbachList 9 20 -> [(3,7),(5,7),(3,11),(3,13),(5,13),(3,17)] -} goldbachList :: Int -> Int -> [(Int, Int)] goldbachList a b = buildPairs $ filter even [a..b] where buildPairs (x:xs)...
13,933
https://github.com/nleiva/scrapligo/blob/master/driver/core/juniperjunos.go
Github Open Source
Open Source
MIT
null
scrapligo
nleiva
Go
Code
270
989
package core import ( "github.com/scrapli/scrapligo/driver/base" "github.com/scrapli/scrapligo/driver/network" ) // NewJUNOSDriver return a driver setup for operation with Junos devices. func NewJUNOSDriver( host string, options ...base.Option, ) (*network.Driver, error) { defaultPrivilegeLevels := map[string]*b...
51,566
https://github.com/wirehead-extension/wirehead/blob/master/script/bayesClassifierTraining.js
Github Open Source
Open Source
MIT
2,020
wirehead
wirehead-extension
JavaScript
Code
47
186
import trainingData from './training-data' let data = trainingData.map(site => ({ document: `${site.input.urlTokens .replace(/[.,|\/#!$%\^&\*;:{}=\-_`~()]/g, ' ') .replace(/\s\s+/g, ' ')} ${site.input.title .replace(/[.,|\/#!$%\^&\*;:{}=\-_`~()]/g, ' ') .replace(/\s\s+/g, ' ')}`, label: site.output...
55,326
https://github.com/markncooper/spark-cassandra-connector/blob/master/spark-cassandra-connector/src/main/scala/com/datastax/spark/connector/rdd/partitioner/dht/Token.scala
Github Open Source
Open Source
Apache-2.0
2,021
spark-cassandra-connector
markncooper
Scala
Code
49
155
package com.datastax.spark.connector.rdd.partitioner.dht trait Token[T] extends Ordered[Token[T]] { def value: T } case class LongToken(value: Long) extends Token[Long] { override def compare(that: Token[Long]) = value.compareTo(that.value) override def toString = value.toString } case class BigIntToken(value:...
23,090
https://github.com/BobKerns/jsdoc/blob/master/packages/jsdoc/test/specs/documentation/generators.js
Github Open Source
Open Source
Apache-2.0
2,023
jsdoc
BobKerns
JavaScript
Code
141
340
/* Copyright 2017 the JSDoc Authors. 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
8,479
https://github.com/lefb766/mono/blob/master/mcs/class/reference-assemblies/Makefile
Github Open Source
Open Source
Apache-2.0
2,015
mono
lefb766
Makefile
Code
19
139
thisdir = class/reference-assemblies include ../../build/rules.make all-local: install-local: $(MKINSTALLDIRS) $(DESTDIR)$(LIBRARY_INSTALL_DIR) $(INSTALL_LIB) ../../../external/binary-reference-assemblies/v4.0/* $(DESTDIR)$(LIBRARY_INSTALL_DIR) DISTFILES = $(wildcard ../../../external/binary-reference-assemblies/...
4,262
https://github.com/showdpro/colorus/blob/master/Assets/3dParty/UFTPersistentSingleton/Editor.meta
Github Open Source
Open Source
MIT
2,016
colorus
showdpro
Unity3D Asset
Code
6
37
fileFormatVersion: 2 guid: 54e5133125bf3436288a11a7b433ba94 DefaultImporter: userData:
9,507
https://github.com/eonlab/kraken-api-client/blob/master/src/KrakenServiceProvider.php
Github Open Source
Open Source
MIT
2,022
kraken-api-client
eonlab
PHP
Code
102
434
<?php namespace Butschster\Kraken; use Butschster\Kraken\Serializer\BigDecimalHandler; use Butschster\Kraken\Serializer\SerializerFactory; use GuzzleHttp\Client as HttpClient; use Illuminate\Support\ServiceProvider; use JMS\Serializer\Handler\HandlerRegistry; use JMS\Serializer\Naming\IdenticalPropertyNamingStrategy;...
16,141
https://github.com/ontop/ontop/blob/master/db/rdb/src/main/java/it/unibz/inf/ontop/dbschema/impl/OracleDBMetadataProvider.java
Github Open Source
Open Source
CC-BY-4.0, Apache-2.0
2,023
ontop
ontop
Java
Code
762
2,897
package it.unibz.inf.ontop.dbschema.impl; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.inject.assistedinject.Assisted; import com.google.inject.assistedinject.AssistedInject; import it.unibz.inf.ontop.dbschema.RelationID; import it.unibz.inf.ontop.exc...
40,406
https://github.com/418sec/microweber/blob/master/userfiles/modules/slickslider/templates/template-2.php
Github Open Source
Open Source
MIT
2,020
microweber
418sec
PHP
Code
50
182
<?php /* type: layout name: Template 2 description: Template 2 */ ?> <link rel="stylesheet" type="text/css" href="<?php print $config['url_to_module'] ?>/templates/template-2/style.css"/> <div class="slickslideWrapper template-second"> <ul class="slickslider"> <?php foreach ($data as $slide) {...
16,486
https://github.com/skylord123/mjolnir/blob/master/src/LogProxy.ts
Github Open Source
Open Source
Apache-2.0
2,020
mjolnir
skylord123
TypeScript
Code
158
395
/* Copyright 2019 The Matrix.org Foundation C.I.C. 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 ...
55,101
https://github.com/tfshockness/khiros-api/blob/master/models/media.model.js
Github Open Source
Open Source
MIT
2,018
khiros-api
tfshockness
JavaScript
Code
37
96
const mongoose = require('mongoose'); const Schema = mongoose.Schema; var mediaSchema = new Schema({ title: {type: String, required: true }, url: {type: String, required: true }, cover: String, isActive: {type: Boolean, default: true} }); module.exports = mongoose.model('media', mediaSchema);
24,340
https://github.com/Pilasilda/IN1000/blob/master/oblig5/Oppgave51.java
Github Open Source
Open Source
MIT
null
IN1000
Pilasilda
Java
Code
67
188
class Oppgave51{ public static void main(String[] args){ Bil opel = new Bil(50, 0.1); //Kaller på metoden kjorTur fra klassen bil og sier at jeg skal kjore 600km boolean drive = opel.kjorTur(200); //if-test for å sjekke om bilen kan kjore 200km if(drive == false){ System.out.println("Du maa fulle bensin...
28,956
https://github.com/0xBlockchainx0/blockfolio-2/blob/master/db/migrate/20180216082027_change_column_in_coins.rb
Github Open Source
Open Source
MIT
2,018
blockfolio-2
0xBlockchainx0
Ruby
Code
12
48
class ChangeColumnInCoins < ActiveRecord::Migration[5.1] def change change_column :coins, :percent_change_24h, :decimal end end
18,159
https://github.com/openwanggq/myblog/blob/master/SpringbootVueBlog20/dbblog-backend/dbblog-manage/src/main/java/cn/dblearn/blog/manage/comment/service/impl/CommentServiceImpl.java
Github Open Source
Open Source
MIT
2,021
myblog
openwanggq
Java
Code
85
436
package cn.dblearn.blog.manage.comment.service.impl; import cn.dblearn.blog.common.util.PageUtils; import cn.dblearn.blog.common.util.Query; import cn.dblearn.blog.entity.comment.Comment; import cn.dblearn.blog.mapper.common.CommentMapper; import cn.dblearn.blog.manage.comment.service.CommentService; import com.baomid...
51,037
https://github.com/Piinks/devtools/blob/master/packages/devtools_app/lib/src/config_specific/ide_theme/ide_theme.dart
Github Open Source
Open Source
BSD-3-Clause
null
devtools
Piinks
Dart
Code
72
193
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file. import 'package:flutter/widgets.dart'; export 'ide_theme_stub.dart' if (dart.library.html) 'ide_theme_web.dart' if (dart.library.io) 'ide_theme_d...
5,895
https://github.com/parad0xe/scan-my-git/blob/master/assets/forms/analysis-form/quick-analysis-form.tsx
Github Open Source
Open Source
MIT
null
scan-my-git
parad0xe
TypeScript
Code
164
674
import React, {useState} from "react"; import {render} from "react-dom"; import Recaptcha from "react-recaptcha"; import SubmitButtonComponent from "./submit-button-component"; interface QuickAnalysisFormPropsInterface { action: string; token: string; } const QuickAnalysisForm: React.FC<QuickAnalysisFormPropsInter...
37,452
https://github.com/alvachien/learning-notes/blob/master/java-httpclient/first-httpclient-demo/src/main/java/com/alvachien/App.java
Github Open Source
Open Source
MIT
null
learning-notes
alvachien
Java
Code
158
590
package com.alvachien; import java.io.IOException; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.nio.file.Files; import java.nio.file.Path; import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; public...
11,963
https://github.com/manoj9788/serenity-core/blob/master/serenity-junit/src/test/java/net/thucydides/samples/SamplePassingNonWebScenarioWithManualTests.java
Github Open Source
Open Source
Apache-2.0
2,019
serenity-core
manoj9788
Java
Code
34
199
package net.thucydides.samples; import net.serenitybdd.junit.runners.SerenityRunner; import net.thucydides.core.annotations.Manual; import net.thucydides.core.annotations.Pending; import net.thucydides.core.annotations.Steps; import net.thucydides.junit.runners.ThucydidesRunner; import org.junit.Test; import org.junit...
51,092
https://github.com/Bernardvdv/djangocms-navigation/blob/master/tests/test_cms_menus.py
Github Open Source
Open Source
BSD-3-Clause
null
djangocms-navigation
Bernardvdv
Python
Code
3,308
15,966
from django.template import Template from django.template.context import Context from django.test import RequestFactory from cms.test_utils.testcases import CMSTestCase from cms.test_utils.util.mock import AttributeObject from cms.toolbar.toolbar import CMSToolbar from cms.toolbar.utils import get_object_edit_url, get...
34,503
https://github.com/lihop/godot-shader-to-image/blob/master/Test.gd
Github Open Source
Open Source
MIT
2,021
godot-shader-to-image
lihop
GDScript
Code
228
918
extends Control onready var result = $Panel/Result onready var generator = $ShaderToImage onready var multiplier = $Panel/Multiplier onready var type = $Panel/NoiseType onready var time = $Panel/Time onready var mod1 = $Panel/Mod1 onready var mod2 = $Panel/Mod2 var enable_time = false var getted_image var example_t...
27,492
https://github.com/sequoiar/android-database-sqlcipher/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,011
android-database-sqlcipher
sequoiar
Ignore List
Code
4
18
TAGS external/libs jni/libs obj/
4,150
https://github.com/AdhiWidhi/AutentikasiLaravel/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
null
AutentikasiLaravel
AdhiWidhi
PHP
Code
31
139
@extends('layouts.app') @section('content') <div class="row justify-content-center"> <div class="col-md-5"> <div class="card shadow"> <div class="card-body"> <h1>Welcome to our website</h1> <hr> <p>Please login first!</p> <a href="...
50,301
https://github.com/ipulian/ipusdk/blob/master/context/src/main/java/com/ipusoft/utils/ViewUtils.java
Github Open Source
Open Source
MIT
2,021
ipusdk
ipulian
Java
Code
84
274
package com.ipusoft.utils; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import java.util.List; /** * author : GWFan * time : 7/8/21 10:55 PM * desc : */ public class ViewUtils { /** * 获取传入指定视图下的所有子视图 * * @param view 根视图 * @return 根视图的所有子视图 ...
46,036
https://github.com/Eternal-Rise/inkline/blob/master/src/helpers/__tests__/hasClass.spec.ts
Github Open Source
Open Source
MIT
2,022
inkline
Eternal-Rise
TypeScript
Code
156
426
import { hasClass } from '@inkline/inkline/helpers'; describe('Helpers', () => { describe('hasClass()', () => { it('should return false if element not defined', () => { expect((hasClass as any)(undefined, 'test')).toEqual(false); }); it('should return false if className not def...
43,741
https://github.com/netmelody/neoclassycle/blob/master/src/test/java/org/netmelody/neoclassycle/util/WildCardPatternTest.java
Github Open Source
Open Source
BSD-2-Clause
2,015
neoclassycle
netmelody
Java
Code
301
1,273
/* * Created on 18.06.2004 */ package org.netmelody.neoclassycle.util; import org.junit.Test; import static org.junit.Assert.assertTrue; /** * @author Franz-Josef Elmer */ public final class WildCardPatternTest { @Test public void testOnNull() { matchNot("", null); } @Test public vo...
46,231
https://github.com/jesusmontano/fitbot/blob/master/src/types.ts
Github Open Source
Open Source
MIT
null
fitbot
jesusmontano
TypeScript
Code
220
714
enum CountUnit { Reps = 'reps', Seconds = 'seconds', } enum TimeUnit { Seconds = 'seconds', Minutes = 'minutes', Hours = 'hours', } interface CountRange { min: number; max: number; unit: CountUnit; } interface Exercise { name: string; messageTemplate: string; countRange: CountRange; } interface Delay { ...
28,149