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/Geforce132/Flash/blob/master/src/net/geforce/flashbot/commands/CommandSchedule.java | Github Open Source | Open Source | MIT | null | Flash | Geforce132 | Java | Code | 311 | 1,343 | package net.geforce.flashbot.commands;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.List;
import org.javacord.api.entity.channel.TextChannel;
import org.javacord.api.entity.message.Message;
import org.javacord.api.entity.message.MessageAuthor;
import org.javacord.api.ent... | 44,222 |
https://github.com/uiktiomasfeliz/3sq.re/blob/master/src/app/services/cache.service.ts | Github Open Source | Open Source | MIT | 2,016 | 3sq.re | uiktiomasfeliz | TypeScript | Code | 166 | 422 | import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
@Injectable()
export class CacheService {
private cache: Array<any> = [];
/**
* Check the cache for this result otherwise fetch it
* @param {Array} key
* @param {Function} callback
* @return {Observable}
*... | 24,515 |
https://github.com/nguyer/aws-sdk-js-v3/blob/master/clients/browser/client-pinpoint-email-browser/types/GetDedicatedIpsOutput.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,020 | aws-sdk-js-v3 | nguyer | TypeScript | Code | 116 | 267 | import { _UnmarshalledDedicatedIp } from "./_DedicatedIp";
import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Information about the dedicated IP addresses that are associated with your Amazon Pinpoint account.</p>
*/
export interface GetDedicatedIpsOutput extends __aws_sdk_types.MetadataBearer {
/**
* ... | 2,851 |
https://github.com/fergy/aplit_linux-5/blob/master/arch/sparc/include/asm/spinlock.h | Github Open Source | Open Source | MIT | 2,022 | aplit_linux-5 | fergy | C | Code | 19 | 99 | /* SPDX-License-Identifier: GPL-2.0 */
#ifndef ___ASM_SPARC_SPINLOCK_H
#define ___ASM_SPARC_SPINLOCK_H
#if defined(__sparc__) && defined(__arch64__)
#include <asm/spinlock_64.h>
#else
#include <asm/spinlock_32.h>
#endif
#endif
| 14,332 |
https://github.com/dao94/Poly/blob/master/backend/modules/routes/api.js | Github Open Source | Open Source | MIT | null | Poly | dao94 | JavaScript | Code | 94 | 345 | "use strict";
(function () {
var express = require('express'),
router = express.Router(),
apiProcess = require('./../request-handle/api-process'),
_util = require('../utils/utils'),
token = require('../auth/token');
router.use(function (req, res, next) {
var _authToke... | 24,115 |
https://github.com/isabella232/basecrm-python/blob/master/basecrm/test/test_sync.py | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | basecrm-python | isabella232 | Python | Code | 131 | 706 | import munch
try:
from unittest import mock
except ImportError:
import mock
import basecrm
from basecrm.test.testutils import BaseTestCase
from munch import munchify
class SyncTests(BaseTestCase):
@property
def device_uuid(self):
return '6dadcec8-6e61-4691-b318-1aab27b8fecf'
def session... | 51,226 |
https://github.com/Dayatgiri/disarpus/blob/master/common/models/SurveyPilihanSesi.php | Github Open Source | Open Source | BSD-3-Clause | null | disarpus | Dayatgiri | PHP | Code | 44 | 148 | <?php
namespace common\models;
use Yii;
use \common\models\base\SurveyPilihanSesi as BaseSurveyPilihanSesi;
/**
* This is the model class for table "SurveyPilihanSesi".
*/
class SurveyPilihanSesi extends BaseSurveyPilihanSesi
{
/**
* @inheritdoc
* @return type array
*/
public functio... | 23,789 |
https://github.com/Sergey111991KV/echoBot/blob/master/src/Adapter/Tel/TelEchoBot.hs | Github Open Source | Open Source | BSD-3-Clause | null | echoBot | Sergey111991KV | Haskell | Code | 285 | 739 | module Adapter.Tel.TelEchoBot where
import ClassyPrelude
import Data.Has (Has(getter))
import Adapter.Tel.TelConfig
( DynamicState(repeats, waitForRepeat)
, State(dynamicState, staticState)
, StaticState(botUrl, telKeyboard, telManager, textMsgHelp,
textSendMsgTel, token)
, TelMonad
)
import A... | 39,237 |
https://github.com/EarnInternetMoney/vector/blob/master/modules/engine/src/paramConverter.ts | Github Open Source | Open Source | MIT | null | vector | EarnInternetMoney | TypeScript | Code | 1,069 | 3,478 | import { WithdrawCommitment } from "@connext/vector-contracts";
import { getRandomBytes32, getSignerAddressFromPublicIdentifier } from "@connext/vector-utils";
import {
CreateTransferParams,
ResolveTransferParams,
FullChannelState,
Result,
DEFAULT_TRANSFER_TIMEOUT,
FullTransferState,
WithdrawState,
Engi... | 12,523 |
https://github.com/kwekel/coap/blob/master/test/coap_message_api_test.dart | Github Open Source | Open Source | BSD-3-Clause, MIT | 2,021 | coap | kwekel | Dart | Code | 799 | 5,142 | /*
* Package : Coap
* Author : S. Hamblett <steve.hamblett@linux.com>
* Date : 20/09/2019
* Copyright : S.Hamblett
*/
import 'package:coap/coap.dart';
import 'package:coap/config/coap_config_logging.dart';
import 'package:test/test.dart';
// Note that nnot all API methods are tested here, some are tested in o... | 42,937 |
https://github.com/coder-kylin/mybatis-3/blob/master/src/main/java/org/apache/ibatis/parsing/XpathLearn.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | mybatis-3 | coder-kylin | Java | Code | 319 | 1,608 | package org.apache.ibatis.parsing;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationExce... | 26,086 |
https://github.com/buildpacks/samples/blob/master/.editorconfig | Github Open Source | Open Source | Apache-2.0 | 2,023 | samples | buildpacks | null | Spoken | 8 | 22 | [{build, detect}]
indent_style = space
indent_size = 2 | 39,668 |
https://github.com/teanfoo/TF_QRScanner/blob/master/TF-Demo/ScanViewController.h | Github Open Source | Open Source | MIT | 2,019 | TF_QRScanner | teanfoo | C | Code | 28 | 82 | //
// ScanViewController.h
// TF-Demo
//
// Created by apple on 16/8/25.
// Copyright © 2016年 legentec. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ScanViewController : UIViewController
@end | 51,119 |
https://github.com/anonfse/COSAL_Anonymized/blob/master/code/src/main/haskell/Objects/DataTypes.hs | Github Open Source | Open Source | Unlicense | null | COSAL_Anonymized | anonfse | Haskell | Code | 229 | 531 | module Objects.DataTypes where
{-# LANGUAGE OverloadedStrings, ExtendedDefaultRules #-}
import Database.MongoDB as Mongo
import Data.Text as T
data DataType = PrimitiveType {
pName :: String
} | ArrayType {
baseType :: DataType
} | TupleType {
types :: [DataType]
} deriving (Show)
slaccType :: DataType -> Str... | 23,311 |
https://github.com/Datasecure/identityserver/blob/master/clients/python/itsyouonline/SeeView.py | Github Open Source | Open Source | BSD-3-Clause | 2,017 | identityserver | Datasecure | Python | Code | 601 | 2,449 | """
Auto-generated class for SeeView
"""
from . import client_support
class SeeView(object):
"""
auto-generated. don't touch.
"""
@staticmethod
def create(category, content_type, creation_date, end_date, globalid, keystore_label, link, markdown_full_description, markdown_short_description, signa... | 13,263 |
https://github.com/swat-flights/Sparrow/blob/master/frontend/src/components/AdminHeader.jsx | Github Open Source | Open Source | MIT | null | Sparrow | swat-flights | null | Spoken | 65 | 252 | import React from 'react';
import { Link } from 'react-router-dom';
import Logo from '../assets/logo.png';
import './styles/AdminHeader.sass';
const AdminHeader = ({ headerTitle }) => {
return (
<>
<header className="AdminHeader">
<figure className="AdminHeader__logo">
<Link to="/editFlig... | 15,008 |
https://github.com/gsfyrakis/TECOmate/blob/master/CCCRest-ear-commons/src/main/java/uk/ac/ncl/erop/RolePlayer.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | TECOmate | gsfyrakis | Java | Code | 118 | 295 | package uk.ac.ncl.erop;
/**
* The Class RolePlayer.
*
* INstances of this class represent role players in the system
*
*/
public class RolePlayer {
private String name = null;
/**
* Instantiates a new role player.
*
* @param n the n
*/
public RolePlayer(String n) {
if((n==null)||(n.length()==0)) ... | 28,437 |
https://github.com/ueberdosis/tiptap/blob/master/packages/extension-list-keymap/src/listHelpers/findListItemPos.ts | Github Open Source | Open Source | MIT | 2,023 | tiptap | ueberdosis | TypeScript | Code | 107 | 257 | import { getNodeType } from '@tiptap/core'
import { NodeType } from '@tiptap/pm/model'
import { EditorState } from '@tiptap/pm/state'
export const findListItemPos = (typeOrName: string | NodeType, state: EditorState) => {
const { $from } = state.selection
const nodeType = getNodeType(typeOrName, state.schema)
l... | 21,581 |
https://github.com/mgauderman/Worth/blob/master/php/db_query.php | Github Open Source | Open Source | MIT | 2,016 | Worth | mgauderman | PHP | Code | 1,439 | 4,883 | <?php
class WorthDB {
protected $db_hostname = "localhost";
protected $db_database = "worth";
protected $db_username = "root";
protected $db_password = "mystockportfolio123";
public $email = "";
private $link;
public function connect() {
$this->link = mysqli_connect($this->db_hostname, $this->db_username, ... | 34,245 |
https://github.com/idmarinas/maker-bundle/blob/master/rector.php | Github Open Source | Open Source | BSD-3-Clause | null | maker-bundle | idmarinas | PHP | Code | 73 | 620 | <?php
declare(strict_types=1);
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\TwigSetList;
use Rector\Core\Configuration\Option;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\CodeQuality\Rector\Include_\AbsolutizeRequireA... | 15,864 |
https://github.com/abostico/former2/blob/master/js/services/frauddetector.js | Github Open Source | Open Source | MIT | 2,022 | former2 | abostico | JavaScript | Code | 911 | 4,155 | /* ========================================================================== */
// Fraud Detector
/* ========================================================================== */
sections.push({
'category': 'Machine Learning',
'service': 'Fraud Detector',
'resourcetypes': {
'Detectors': {
... | 19,275 |
https://github.com/ultraschemer/microweb-sample/blob/master/src/main/java/microweb/sample/controller/GuiImageAssignController.java | Github Open Source | Open Source | BSD-3-Clause | null | microweb-sample | ultraschemer | Java | Code | 75 | 364 | package microweb.sample.controller;
import com.ultraschemer.microweb.persistence.EntityUtil;
import com.ultraschemer.microweb.vertx.SimpleController;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.ext.web.RoutingContext;
import microweb.sample.domain.ImageMan... | 24,925 |
https://github.com/Oglop/RPGSimulation/blob/master/app/constants.js | Github Open Source | Open Source | MIT | null | RPGSimulation | Oglop | JavaScript | Code | 367 | 1,692 |
module.exports = {
ROOT: __dirname,
FILE_PATH:'/outputs/',
ERROR_FILE_PATH: '',
STATS_MIN_VALUE: 3,
STATS_MIN_SUM: 40,
STATS_MAX_ROLLABLE: 12,
HP_BASE: 10,
HP_VITALITY_INCREASE: 4,
HP_LEVEL_INCREASE: 5,
ENUM_SKILL_NAMES: {
lockPicking: 'Lock picking',
steal: 'Ste... | 37,253 |
https://github.com/ymnliu/MedTaggerWeb/blob/master/src/main/java/org/ohnlp/typesystem/type/structured/Metadata.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,022 | MedTaggerWeb | ymnliu | Java | Code | 520 | 2,212 |
/* First created by JCasGen Tue Sep 24 19:27:48 CDT 2013 */
package org.ohnlp.typesystem.type.structured;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
import org.apache.uima.jcas.cas.LongArray;
import org.apache.uima.jcas.cas.TOP;
/** Struc... | 22,025 |
https://github.com/Nick-Ballenger/landing-pages-coordinator-storytelling/blob/master/LESS/header.less | Github Open Source | Open Source | MIT, LicenseRef-scancode-public-domain | 2,019 | landing-pages-coordinator-storytelling | Nick-Ballenger | Less | Code | 217 | 1,013 | header{
display:flex;
justify-content: space-around;
flex-wrap:wrap;
align-items: center;
margin:0 5px 80px 5px;
border-bottom: 2px solid #39393A;
background-image: url("https://i.imgur.com/XfL1FH0.jpg");
@media (max-width:500px){
// flex-direction: column;
width:450px;
... | 39,757 |
https://github.com/Elders/Pushnotifications/blob/master/src/PushNotifications.Api/Controllers/Discovery/HealthCheckController.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | Pushnotifications | Elders | C# | Code | 69 | 238 | using System.Collections.Generic;
using System.Net;
using System.Web.Http;
using Discovery.Contracts;
using Elders.Web.Api;
using Elders.Web.Api.RExamples;
namespace PushNotifications.Api.Controllers.Discovery
{
public class HealthCheckController : ApiController
{
public IDiscoveryReader DiscoveryRead... | 42,404 |
https://github.com/aneeshkp/cluster-logging-operator/blob/master/olm_deploy/scripts/catalog-build.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | cluster-logging-operator | aneeshkp | Shell | Code | 67 | 329 | #!/bin/sh
set -eou pipefail
IMAGE_CLUSTER_LOGGING_OPERATOR_REGISTRY=${IMAGE_CLUSTER_LOGGING_OPERATOR_REGISTRY:-$LOCAL_IMAGE_CLUSTER_LOGGING_OPERATOR_REGISTRY}
echo "Building operator registry image ${IMAGE_CLUSTER_LOGGING_OPERATOR_REGISTRY}"
podman build -f olm_deploy/operatorregistry/Dockerfile -t ${IMAGE_CLUSTER_LOG... | 11,110 |
https://github.com/vlang/v/blob/master/thirdparty/mbedtls/library/x509write_csr.c | Github Open Source | Open Source | MIT, Apache-2.0, GPL-2.0-or-later | 2,023 | v | vlang | C | Code | 1,131 | 4,151 | /*
* X.509 Certificate Signing Request writing
*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
... | 14,715 |
https://github.com/bb4/bb4-Q-learning/blob/master/scala-source/com/barrybecker4/qlearning/common/RmsEvaluator.scala | Github Open Source | Open Source | MIT | 2,023 | bb4-Q-learning | bb4 | Scala | Code | 75 | 183 | package com.barrybecker4.qlearning.common
/**
* Evaluates by taking the root mean squared error between this table and a provided gold standard.
*/
class RmsEvaluator[T](table: QTable[T], goldStandard: QTable[T]) extends Evaluator[T] {
def evaluate(): Double = {
var sumsq: Double = 0
var ct = 0
for... | 1,614 |
https://github.com/mach1el/docker-opensips/blob/master/opensips-cp/web/tools/system/homer/template/homer.main.php | Github Open Source | Open Source | MIT | 2,021 | docker-opensips | mach1el | PHP | Code | 176 | 335 | <?php
/*
* Copyright (C) 2016 OpenSIPS Project
*
* This file is part of opensips-cp, a free Web Control Panel Application for
* OpenSIPS SIP server.
*
* opensips-cp is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundati... | 19,765 |
https://github.com/UbiquitousLanguage/metrics/blob/master/src/Ubiquitous.Metrics.Dogstatsd/StatsdCount.cs | Github Open Source | Open Source | MIT | 2,021 | metrics | UbiquitousLanguage | C# | Code | 38 | 113 | using StatsdClient;
namespace Ubiquitous.Metrics.Dogstatsd {
class StatsdCount : StatsdMetric, ICountMetric {
internal StatsdCount(IDogStatsd service, MetricDefinition metricDefinition) : base(service, metricDefinition) { }
public void Inc(string[]? labels = null, int count = 1)
=> Ser... | 36,384 |
https://github.com/ronakjain2012/MyWallet/blob/master/MyPersonalWallet/WebContent/deleteA.jsp | Github Open Source | Open Source | MIT | 2,017 | MyWallet | ronakjain2012 | null | Spoken | 74 | 396 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</tit... | 29,277 |
https://github.com/geeestar/fes.js/blob/master/packages/fes-cli/build/tasks/components.js | Github Open Source | Open Source | MIT | 2,020 | fes.js | geeestar | JavaScript | Code | 100 | 387 | const render = require('json-templater/string');
const path = require('path');
const endOfLine = require('os').EOL;
const fs = require('fs-extra');
const getCommonComponent = require('../preComplie/components');
function generateComponent(config) {
const OUTPUT_PATH = path.resolve(config.folders.PROJECT_CACHE_DIR,... | 44,364 |
https://github.com/fabiojna02/OpenCellular/blob/master/firmware/coreboot/3rdparty/vboot/bdb/Makefile | Github Open Source | Open Source | CC-BY-4.0, BSD-3-Clause | 2,021 | OpenCellular | fabiojna02 | Makefile | Code | 408 | 1,446 | # Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This Makefile normally builds in a 'build' subdir, but use
#
# make BUILD=<dir>
#
# to put the output somewhere else.
##############################... | 51,374 |
https://github.com/agurokeendavid/senior_citizen_profiling_system/blob/master/SCProfilingSystem/Pages/SeniorProfile.aspx.cs | Github Open Source | Open Source | MIT | 2,021 | senior_citizen_profiling_system | agurokeendavid | C# | Code | 115 | 450 | using System;
using System.Collections.Generic;
using System.Data;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SCProfilingSystem.Repositories;
namespace SCProfilingSystem.Pages
{
public partial class Se... | 44,207 |
https://github.com/bmbstack/go-cronowriter/blob/master/log_test.go | Github Open Source | Open Source | MIT | 2,017 | go-cronowriter | bmbstack | Go | Code | 109 | 405 | package cronowriter
import (
"bytes"
"strings"
"testing"
)
func TestNopLogger(t *testing.T) {
l := &nopLogger{}
l.Write([]byte("test"))
l.Error("error")
l.Errorf("error %s", "error")
}
func TestDebugLogger_Write(t *testing.T) {
obuf := &bytes.Buffer{}
l := &debugLogger{stdout: obuf}
outStr := "out text"
... | 29,152 |
https://github.com/Matttd/mobiUwB-android-next/blob/master/app/src/main/java/pl/edu/uwb/mobiuwb/parsers/json/parser/JsonParser.java | Github Open Source | Open Source | MIT | 2,017 | mobiUwB-android-next | Matttd | Java | Code | 203 | 635 | package pl.edu.uwb.mobiuwb.parsers.json.parser;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.File;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import pl.edu.uwb.mo... | 43,427 |
https://github.com/devitools/platform/blob/master/frontend/source/modules/General/router/middleware.js | Github Open Source | Open Source | MIT | 2,021 | platform | devitools | JavaScript | Code | 70 | 170 | import $emporium from '@devitools/emporium'
import { confirm } from '@devitools/dialog'
/**
* @param {Object} to
* @param {Object} from
* @param {Function} next
*
* > It works better in beforeEach
*/
export const checkModified = async (to, from, next) => {
if (!$emporium.state.modified) {
next()
return... | 21,374 |
https://github.com/tengpuwang/service-platform/blob/master/web-api/src/main/java/wang/tengp/spider/MeiTuan.java | Github Open Source | Open Source | MIT | null | service-platform | tengpuwang | Java | Code | 210 | 905 | package wang.tengp.spider;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import wang.tengp.model.City;
import com.github.stuxuhai.jpinyin.PinyinException;
import com.github.stuxuhai.jpinyin.PinyinFormat;
import com.github.stuxuhai.jpinyin.PinyinHelper;... | 5,690 |
https://github.com/wuyucan666/react/blob/master/bosscard/src/pages/boss-store/maintain-list/customerInfor/components/cardInformation/styles.less | Github Open Source | Open Source | MIT | 2,019 | react | wuyucan666 | Less | Code | 584 | 2,796 | .bigdiv{
.selTop{
height: 170px;
position: relative;
border: 1px solid white;
.selLeft{
height: 100px;
width: 26px;
line-height: 100px;
position: absolute;
top: 43px;
left: 32px;
background: #F0F0F0;
color: white;
font-size: 20px;
text-indent: 2px;
cursor: pointer;
}
.selCe... | 1,043 |
https://github.com/RMPapazov19/Somnum-Project/blob/master/docs/html/tui_8cpp.js | Github Open Source | Open Source | MIT | null | Somnum-Project | RMPapazov19 | JavaScript | Code | 45 | 334 | var tui_8cpp =
[
[ "createPopupWindow", "tui_8cpp.html#a31b1d1fa75e02e67b564d23a1f1bc745", null ],
[ "displayHelp", "tui_8cpp.html#a1451d6a0f33f9d0a02a4b055e5839e6e", null ],
[ "getInput", "tui_8cpp.html#aa30254048107f1a87d9385031150217c", null ],
[ "handleInput", "tui_8cpp.html#a8e5d4b44c73547a2b9ed98e... | 48,078 |
https://github.com/SumiMakito/RhythmView/blob/master/library/src/main/java/com/github/sumimakito/rhythmview/effect/Ray.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | RhythmView | SumiMakito | Kotlin | Code | 407 | 1,180 | package com.github.sumimakito.rhythmview.effect
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.PointF
import com.github.sumimakito.rhythmview.RhythmView
import com.github.sumimakito.rhythmview.util.MathUtils
import com.github.sumimakito.rhythmview.wave.WavePoint
import kotlin.math... | 7,644 |
https://github.com/dl9pf/multimetric/blob/master/tests/language_ruby.test.cmp | Github Open Source | Open Source | BSD-2-Clause | 2,020 | multimetric | dl9pf | Gerber Image | Code | 334 | 1,950 | {
"files": {
"/build/multimetric/testfiles/test.rb": {
"comment_ratio": 4.617834394904459,
"cyclomatic_complexity": 3,
"fanout_external": 0,
"fanout_internal": 2,
"halstead_bugprop": 0.07290827503317318,
"halstead_difficulty": 9.153846153846153,
"halstead_effort": 2002.17... | 9,738 |
https://github.com/lindsejs/sdk/blob/master/dist/components/wfs.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | sdk | lindsejs | JavaScript | Code | 1,018 | 2,858 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | 35,317 |
https://github.com/rxdrag/rx-models-client/blob/master/src/components/auth-board/entity-node.tsx | Github Open Source | Open Source | MIT | 2,021 | rx-models-client | rxdrag | TypeScript | Code | 332 | 1,172 | import { CircularProgress, createStyles, FormControlLabel, Grid, makeStyles, SvgIcon, Switch, Theme } from "@material-ui/core";
import { TreeItem } from "@material-ui/lab";
import { EntityMeta } from "components/entity-board/meta/entity-meta";
import { ActionLabel } from "./action-label";
import { AbilityActions } from... | 19,018 |
https://github.com/idleman/sofia/blob/master/src/Runner.mjs | Github Open Source | Open Source | MIT | 2,020 | sofia | idleman | JavaScript | Code | 407 | 1,143 | import Suite from './Suite.mjs';
import Status from './Status.mjs';
const getGlobalScope = (function() {
let globalScope = null;
return () => {
if(!globalScope) {
globalScope = (new Function('return this'))();
}
return globalScope;
}
})();
function swap(propertyName, from, to) {
const curren... | 53,475 |
https://github.com/karunmatharu/Android-4.4-Pay-by-Data/blob/master/hardware/invensense/60xx/mlsdk/platform/include/linux/mpu.h | Github Open Source | Open Source | MIT | 2,017 | Android-4.4-Pay-by-Data | karunmatharu | C | Code | 1,200 | 3,912 | /*
$License:
Copyright 2011 InvenSense, 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 to in w... | 49,180 |
https://github.com/GunpreetAhuja/StaticBugCheckers/blob/master/python/ParseAndSerializeInfer.py | Github Open Source | Open Source | MIT | 2,021 | StaticBugCheckers | GunpreetAhuja | Python | Code | 173 | 636 | '''
Created on Dec. 28, 2017
@author Andrew Habib
'''
import json
import os
import sys
from Util import JsonDataReader, InferIssue, InferMsg, CustomEncoder, \
get_cls_name_from_file_path, NO_WARNING
def parse_infer_json_output(proj, json_issue):
# Case where report file is NOT empty
if j... | 32,878 |
https://github.com/irilyth/buttonmen/blob/master/test/src/engine/BMBtnSkillTest.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | buttonmen | irilyth | PHP | Code | 18 | 61 | <?php
class BMBtnSkillTest extends PHPUnit_Framework_TestCase {
/**
* @var BMBtnSkill
*/
public function testDummy() {
$this->assertTrue(TRUE);
}
}
| 17,747 |
https://github.com/reymontero/Onyx/blob/master/kernel/arch/riscv64/Makefile | Github Open Source | Open Source | MIT | 2,021 | Onyx | reymontero | Makefile | Code | 18 | 97 | riscv-y:= image.o fpu.o
obj-y+= $(patsubst %, arch/riscv64/%, $(riscv-y))
arch/riscv64/vdso_helper.o: arch/riscv/vdso_helper.S onyx-vdso.so.0 kernel.config
@$(CC) -c $(CPPFLAGS) -o $@ $<
| 15,792 |
https://github.com/EQ4/smint/blob/master/lib/smintUploadFileHelper.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | smint | EQ4 | PHP | Code | 445 | 1,354 | <?php
abstract Class smintUploadFileHelper {
public static function saveFile($file) {
$fileInfo = self::fileLog($file);
$file -> save($fileInfo['filesavepath']);
return $fileInfo;
}
public static function appendFileLog(&$fp, $file) {
sfContext::getInstance() -> getConfiguration() -> loadHelpers('Url');
... | 27,813 |
https://github.com/azuse/Gboard-Patched/blob/master/Gboard_renamed_miui/smali/com/google/lens/sdk/LensApi$LensLaunchStatusCallback.smali | Github Open Source | Open Source | MIT | 2,022 | Gboard-Patched | azuse | Smali | Code | 18 | 67 | .class public interface abstract Lcom/google/lens/sdk/LensApi$LensLaunchStatusCallback;
.super Ljava/lang/Object;
.source "PG"
# virtual methods
.method public abstract onLaunchStatusFetched(I)V
.end method
| 54,155 |
https://github.com/ankurhcu/motis/blob/master/modules/paxmon/src/graph_access.cc | Github Open Source | Open Source | Apache-2.0, MIT | 2,021 | motis | ankurhcu | C++ | Code | 1,030 | 4,357 | #include "motis/paxmon/graph_access.h"
#include <cassert>
#include <algorithm>
#include <iostream>
#include <map>
#include <set>
#include <string_view>
#include <tuple>
#include <utility>
#include "utl/erase_if.h"
#include "utl/get_or_create.h"
#include "utl/pipes.h"
#include "utl/verify.h"
#include "motis/core/acce... | 54,781 |
https://github.com/truongnv1903/e-fever-codebase/blob/master/Flux-Application-Full/Flux Application (Full)/qml/qml.pri | Github Open Source | Open Source | Apache-2.0 | 2,019 | e-fever-codebase | truongnv1903 | null | Spoken | 13 | 48 | QML_IMPORT_PATH += $$PWD
INCLUDEPATH += $$PWD
DEPENDPATH += $$PWD
RESOURCES += \\
$$PWD/qml.qrc
| 10,514 |
https://github.com/edwardstudy/cluster-capacity/blob/master/pkg/cache/cachefakes/fake_cache.go | Github Open Source | Open Source | Apache-2.0 | null | cluster-capacity | edwardstudy | Go | Code | 645 | 2,473 | // Code generated by counterfeiter. DO NOT EDIT.
package cachefakes
import (
"sync"
"sigs.k8s.io/cluster-capacity/pkg/cache"
)
type FakeCache struct {
CleanStub func(string) error
cleanMutex sync.RWMutex
cleanArgsForCall []struct {
arg1 string
}
cleanReturns struct {
result1 error
}
cleanRe... | 7,931 |
https://github.com/ScalablyTyped/Distribution/blob/master/c/csv-stringify/src/main/scala/typings/csvStringify/anon.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 251 | 810 | package typings.csvStringify
import typings.csvStringify.mod.Cast
import typings.csvStringify.mod.CastReturnObject
import typings.csvStringify.mod.CastingContext
import typings.std.Record
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSIm... | 28,295 |
https://github.com/AppImage/appimage.github.io/blob/master/database/Spark.Payments/spark.desktop | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, MIT | 2,023 | appimage.github.io | AppImage | null | Spoken | 82 | 230 | [Desktop Entry]
Name=Spark Payments
Comment=An external terminal application for processing DASH payments in brick and mortar stores.
Exec=AppRun
Terminal=false
Type=Application
Icon=spark
X-AppImage-Version=1.0.0
X-AppImage-BuildId=3b1cfcf0-8ca8-11a8-1890-1bc397b45949
Categories=Finance;
[AppImageHub]
# Dear upstream... | 5,896 |
https://github.com/baidu/baiduads-sdk/blob/master/java/baiduads-sdk-auto/src/main/java/com/baidu/dev2/api/sdk/fluctuationanalysis/model/FluctuationAnalysisRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | baiduads-sdk | baidu | Java | Code | 585 | 2,397 | /*
* dev2 api schema
* 'dev2.baidu.com' api schema
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.baidu.dev2.api.sdk.fluctuationanalysis.model;
import java.util.Objects;
import j... | 21,667 |
https://github.com/nstratos/go-hummingbird/blob/master/hb/anime_test.go | Github Open Source | Open Source | MIT | null | go-hummingbird | nstratos | Go | Code | 299 | 1,032 | package hb
import (
"fmt"
"net/http"
"reflect"
"testing"
)
func TestAnimeService_Get(t *testing.T) {
setup()
defer teardown()
mux.HandleFunc("/api/v1/anime/", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
testResourceID(t, r, "log-horizon")
testFormValues(t, r, values{"title_lan... | 47,557 |
https://github.com/MDudek-ICS/peach/blob/master/Peach.Core.OS.Windows/Debuggers/DebugEngine/Tlb/IDebugOutputCallbacks.cs | Github Open Source | Open Source | MIT | 2,021 | peach | MDudek-ICS | C# | Code | 29 | 155 | namespace Peach.Core.Debuggers.DebugEngine.Tlb
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("4BF58045-D654-4C40-B0AF-683090F356DC"), InterfaceType((short) 1)]
public interface IDebugOutputCallbacks
{
[MethodImpl(MethodImpl... | 52,585 |
https://github.com/Oscarbralo/TopBlogCoder/blob/master/Codeforces/ProblemABearAndRapsberry/Program.cs | Github Open Source | Open Source | MIT | 2,014 | TopBlogCoder | Oscarbralo | C# | Code | 59 | 179 | using System;
using System.Linq;
namespace BearAndRapsberry
{
class Program
{
static void Main(string[] args)
{
int[] cases = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray<int>();
int[] prices = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).T... | 7,595 |
https://github.com/aropixel/admin-bundle/blob/master/Imagine/Filter/ThumbnailFilter.php | Github Open Source | Open Source | MIT | 2,021 | admin-bundle | aropixel | PHP | Code | 165 | 555 | <?php
namespace Aropixel\AdminBundle\Imagine\Filter;
use Imagine\Filter\Basic\Crop;
use Imagine\Filter\Basic\Resize;
use Imagine\Image\Box;
use Imagine\Image\BoxInterface;
use Imagine\Image\ImageInterface;
use Imagine\Image\Point;
use Liip\ImagineBundle\Imagine\Filter\Loader\LoaderInterface;
use Symfony\Component\Opt... | 25,876 |
https://github.com/homedr/HHVDoctorSDK-demo/blob/master/HHVDoctorSDK-demo/vendor/bundle/ruby/2.3.0/gems/fastlane-2.129.0/fastlane/lib/fastlane/swift_fastlane_api_generator.rb | Github Open Source | Open Source | Apache-2.0 | null | HHVDoctorSDK-demo | homedr | Ruby | Code | 1,284 | 4,273 | require 'fastlane/swift_fastlane_function.rb'
module Fastlane
class SwiftToolDetail
attr_accessor :swift_class
attr_accessor :swift_protocol
attr_accessor :command_line_tool_name
def initialize(command_line_tool_name: nil, swift_class: nil, swift_protocol: nil)
self.command_line_tool_name = co... | 14,591 |
https://github.com/mitsuruog/angular-es6/blob/master/gulp/tasks/report.js | Github Open Source | Open Source | MIT | 2,015 | angular-es6 | mitsuruog | JavaScript | Code | 18 | 87 | /*jslint node: true */
'use strict';
var gulp = require('gulp');
var karma = require('karma').server;
gulp.task('report',['karma:cov'],function(){
gulp.run('browser-sync:report');
});
gulp.task('report:ci',['karma:cov']);
| 51,656 |
https://github.com/joansmith1/ontrack/blob/master/ontrack-core/src/main/java/net/ontrack/core/security/ProjectRole.java | Github Open Source | Open Source | MIT | null | ontrack | joansmith1 | Java | Code | 27 | 86 | package net.ontrack.core.security;
/**
* Labels for roles are in <code>model.ls</code> and add also a <code>projectRole-*.png</code> in the images.
*/
public enum ProjectRole {
OWNER,
VALIDATION_MANAGER,
PROMOTER
}
| 41,889 |
https://github.com/FINTprosjektet/fint-adapter-rettigheter-felles/blob/master/src/main/java/no/fint/provider/tilganger/service/RettighetsFactory.java | Github Open Source | Open Source | MIT | null | fint-adapter-rettigheter-felles | FINTprosjektet | Java | Code | 58 | 250 | package no.fint.provider.tilganger.service;
import no.fint.model.felles.kompleksedatatyper.Identifikator;
import no.fint.model.ressurser.tilganger.Rettighet;
public enum RettighetsFactory {
;
public static Rettighet createRettighet(String id, String name, String code, String description) {
Identifik... | 25,153 |
https://github.com/MostafaNafie/social-media/blob/master/database/factories/PostFactory.php | Github Open Source | Open Source | MIT | 2,021 | social-media | MostafaNafie | PHP | Code | 66 | 201 | <?php
namespace Database\Factories;
use App\Models\Post;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Arr;
class PostFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Post... | 18,476 |
https://github.com/jamiepg1/bitex-ruby/blob/master/spec/usd_withdrawal_spec.rb | Github Open Source | Open Source | MIT | 2,014 | bitex-ruby | jamiepg1 | Ruby | Code | 93 | 327 | require 'spec_helper'
describe Bitex::UsdWithdrawal do
let(:as_json) do
[8,12345678,946685400,100.00000000,1,0,]
end
it_behaves_like 'API class'
it "sets amount as BigDecimal" do
thing = Bitex::UsdWithdrawal.from_json(as_json).amount
thing.should be_a BigDecimal
thing.should == 100.0
end
... | 35,349 |
https://github.com/dunyaaziz/Kmys_front_end/blob/master/src/components/header.jsx | Github Open Source | Open Source | MIT | null | Kmys_front_end | dunyaaziz | null | Spoken | 114 | 379 | import { useTranslation } from 'react-i18next';
import { Link } from "react-router-dom";
import { useSelector } from "react-redux";
export const Header = (props) => {
const { t } = useTranslation();
const { isLoggedIn }= useSelector((store) => ({
isLoggedIn: store.isLoggedIn,
}));
let links = (
<>
<Link c... | 52,136 |
https://github.com/fabio-t/terrain-generator/blob/master/src/main/java/com/github/fabioticconi/tergen/noise/FractalNoise.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | terrain-generator | fabio-t | Java | Code | 490 | 1,130 | /*
* Copyright (c) 2015-2018 Fabio Ticconi
*
* 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 agr... | 10,833 |
https://github.com/aoisupersix/B5/blob/master/src/arguments/list-argument.ts | Github Open Source | Open Source | MIT | null | B5 | aoisupersix | TypeScript | Code | 41 | 128 | import { Argument } from './argument'
import { SingleArgument } from './single-argument'
/**
* List型の引数を示します。
*/
export interface ListArgument extends Argument {
/**
* 引数の型がlistか?
*/
is_list: boolean
/**
* 可変長引数の型
*/
inner_type: string
/**
* 可変長引数の実体
*/
inner_a... | 34,391 |
https://github.com/gspu/Coherent/blob/master/mwc/romana/relic/d/bin/tsort/tsort.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Coherent | gspu | C | Code | 250 | 426 | /*
* Various manifest constants.
*/
#define HASHSIZE 1000 /* hash table size */
#define MAXWORD 100 /* longest word size */
#define TRUE (0 == 0) /* logical true */
#define FALSE (0 != 0) /* logical false */
/*
* The struct wordlist is used to form a list of words.
* It is used for two purposes:
* 1. To keep... | 34,020 |
https://github.com/cyrus01337/Testing-Purposes/blob/master/src/ServerStorage/References/RaycastHitDetection/Fireball.client.lua | Github Open Source | Open Source | Unlicense | null | Testing-Purposes | cyrus01337 | Lua | Code | 65 | 240 | local RS = game:GetService("ReplicatedStorage")
local Utils = require(RS.Utils)
local _S = Utils.Services
local player = _S.Players.LocalPlayer
local playerChar = player.Character or player.CharacterAdded:Wait()
local playerHead = playerChar:WaitForChild("Head", 60)
local playerMouse = player:GetMouse()
playerM... | 12,728 |
https://github.com/stephanos/workframe/blob/master/src/container/component2/index.js | Github Open Source | Open Source | MIT | null | workframe | stephanos | JavaScript | Code | 18 | 45 | import Component from './decorator';
import ComponentFactory from './factory';
import Schema from './schema';
export {
Component,
ComponentFactory,
Schema,
};
| 12,613 |
https://github.com/ELehotzky/Search-and-Sweat-frontend/blob/master/node_modules/searchkit/es/components/search/hits/src/NoHits.js | Github Open Source | Open Source | MIT | null | Search-and-Sweat-frontend | ELehotzky | JavaScript | Code | 255 | 1,021 | import * as PropTypes from "prop-types";
import { SearchkitComponent, NoFiltersHitCountAccessor, SuggestionsAccessor, renderComponent } from "../../../../core";
import { NoHitsErrorDisplay } from "./NoHitsErrorDisplay";
import { NoHitsDisplay } from "./NoHitsDisplay";
const defaults = require("lodash/defaults");
export... | 19,759 |
https://github.com/RaynaldM/autohelp/blob/master/AutoHelp.web.netcore/wwwroot/js/manage.js | Github Open Source | Open Source | MIT | 2,021 | autohelp | RaynaldM | JavaScript | Code | 464 | 1,307 | var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | 2,817 |
https://github.com/ruanjiayu/dataStructures/blob/master/src/main/java/com/xian/stack/bo/LinkedListNode.java | Github Open Source | Open Source | Apache-2.0 | null | dataStructures | ruanjiayu | Java | Code | 83 | 271 | package com.xian.stack.bo;
/**
* @Description:
* @Author: Xian
* @CreateDate: 2019/8/30 13:12
* @Version: 0.0.1-SHAPSHOT
*/
public class LinkedListNode<T> {
private T value;
private LinkedListNode<T> next;
public LinkedListNode() {
// 调用构造器
this(null);
}
public LinkedListN... | 35,277 |
https://github.com/dolphinridercrypto/bxcommon/blob/master/src/bxcommon/models/serializable_flag.py | Github Open Source | Open Source | MIT | 2,022 | bxcommon | dolphinridercrypto | Python | Code | 71 | 202 | from enum import Flag
from functools import reduce
class SerializableFlag(Flag):
def __str__(self):
if self.name is not None:
return str(self.name)
else:
return '|'.join([str(m.name) for m in self.__class__ if m in self])
@classmethod
def from_string(cls, string_va... | 9,901 |
https://github.com/amuuth/c19-rnd-dashboard-ui/blob/master/src/constants/config.js | Github Open Source | Open Source | MIT | 2,020 | c19-rnd-dashboard-ui | amuuth | JavaScript | Code | 16 | 114 | export const mapboxApiKey =
process.env.REACT_APP_MAPBOX_ACCESS_TOKEN ||
process.env.STORYBOOK_MAPBOX_ACCESS_TOKEN
export const apiUrl =
process.env.REACT_APP_API_URL ||
process.env.STORYBOOK_API_URL ||
'https://c19-vac-rnd-dash-staging-api.herokuapp.com'
| 21,907 |
https://github.com/belatrix/iOSAllStarsRemake/blob/master/AllStars/AllStars/Entities/UserTagBE.swift | Github Open Source | Open Source | MIT | 2,016 | iOSAllStarsRemake | belatrix | Swift | Code | 59 | 153 | //
// UserTagBE.swift
// AllStars
//
// Created by Flavio Franco Tunqui on 6/1/16.
// Copyright © 2016 Belatrix SF. All rights reserved.
//
import UIKit
class UserTagBE: NSObject {
var user_pk : NSNumber?
var user_username : String?
var user_first_name : S... | 32,006 |
https://github.com/alldatacenter/alldata/blob/master/govern/data-meta/OpenMetadata/openmetadata-ui/src/main/resources/ui/src/rest/tableAPI.ts | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | TypeScript | Code | 654 | 1,863 | /*
* Copyright 2022 Collate.
* 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 writing... | 18,107 |
https://github.com/murphyjoseph/rbol/blob/master/src/stories/link-main.stories.tsx | Github Open Source | Open Source | MIT | null | rbol | murphyjoseph | TypeScript | Code | 83 | 231 | import React from 'react';
import { Story, Meta } from '@storybook/react/types-6-0';
import { LinkMain, LinkMainProps } from '../examples/link-main';
export default {
title: 'Demo/LinkMain',
component: LinkMain,
} as Meta;
const Template: Story<LinkMainProps> = (args) => <LinkMain {...args} />;
const argsDefault... | 19,565 |
https://github.com/freetdi/CFGs/blob/master/sdccdec/contiki/broadcast-announcement.dumprallocdec_set_timers.dot | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-unknown-license-reference | 2,018 | CFGs | freetdi | Graphviz (DOT) | Code | 775 | 1,287 | digraph G {
graph [label="Tree-decomposition of width 1 for register allocator (function _set_timers)"]
0[label="0 | : "];
1[label="1 | 26 : "];
2[label="2 | 25 26 : "];
3[label="3 | 24 25 : "];
4[label="4 | 23 24 : 28 29 "];
5[label="5 | 22 23 : 22 23 24 25 28 29 "];
6[label="6 | 21 22 : 22 23 24 25 28 29 "];
7[label=... | 24,244 |
https://github.com/eco4ndly/simple-android/blob/master/app/src/test/java/org/simple/clinic/home/report/ReportsScreenControllerTest.kt | Github Open Source | Open Source | MIT | 2,020 | simple-android | eco4ndly | Kotlin | Code | 170 | 709 | package org.simple.clinic.home.report
import com.nhaarman.mockito_kotlin.inOrder
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import io.reactivex.Observable
import io.reactivex.subjects.PublishSubject
import org.junit.Before
import org.ju... | 31,610 |
https://github.com/FrankerFaceZ/FrankerFaceZ/blob/master/src/modules/main_menu/components/chat-reasons.vue | Github Open Source | Open Source | Apache-2.0 | 2,023 | FrankerFaceZ | FrankerFaceZ | Vue | Code | 315 | 1,335 | <template lang="html">
<section class="ffz--widget ffz--chat-reasons">
<div class="tw-flex tw-align-items-center tw-pd-b-05">
<div class="tw-flex-grow-1">
{{ t('setting.reasons.info', 'Reasons can be selected using action context menus to add extra information to bans and timeouts.') }}
</div>
<button
... | 4,934 |
https://github.com/jeremiahfernandezzzz/ffuf_webapp/blob/master/vendor/yapcdi/yapcdi/lib/resolver/ResolverInterface.php | Github Open Source | Open Source | MIT | 2,018 | ffuf_webapp | jeremiahfernandezzzz | PHP | Code | 49 | 130 | <?php
namespace yapcdi\resolver;
/**
*
* @author Alexander Schlegel
*/
interface ResolverInterface {
/**
*
* @param \ReflectionClass $class
* @return array Returns an ssociative array
* <pre>
* [
* "constructor" => [
* "Paramtername" =>
* ]
* ]
*... | 44,988 |
https://github.com/sergewhite/active_shipping/blob/master/lib/active_shipping/shipping/label_response.rb | Github Open Source | Open Source | MIT | null | active_shipping | sergewhite | Ruby | Code | 156 | 406 | module ActiveMerchant #:nodoc:
module Shipping
# This is UPS specific for now; the hash is not at all generic
# or common between carriers.
class LabelResponse < Response
attr :params # maybe?
def initialize(success, message, params = {}, options = {})
@params = params
super
... | 16,365 |
https://github.com/blipinsk/cold-reboot/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,020 | cold-reboot | blipinsk | Makefile | Code | 9 | 50 | package:
tar -czvf cold-reboot-1.0.0.tar.gz cold-reboot
shasum -a 256 cold-reboot-1.0.0.tar.gz
| 37,197 |
https://github.com/buhuiming/flutter_nb/blob/master/lib/ui/page/base/default_texefield_page.dart | Github Open Source | Open Source | MIT | 2,023 | flutter_nb | buhuiming | Dart | Code | 368 | 1,536 | import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_nb/resource/colors.dart';
import 'package:flutter_nb/ui/widget/loading_widget.dart';
import 'package:flutter_nb/ui/widget/more_widgets.dart';
import 'package:flutter_nb/utils/device_util.dart';
import 'package:flutte... | 33,858 |
https://github.com/MccreeFei/jframe/blob/master/jframe/jframe-swt/src/test/java/test/TestOS.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jframe | MccreeFei | Java | Code | 35 | 111 | /**
*
*/
package test;
import org.junit.Test;
/**
* @author dzh
* @date Aug 3, 2016 8:01:29 PM
* @since 1.0
*/
public class TestOS {
@Test
public void testOS() {
System.out.println(System.getProperty("os.name"));
System.out.println(System.getProperty("os.arch"));
}
}
| 19,103 |
https://github.com/influx6/gojsdom/blob/master/events.go | Github Open Source | Open Source | MIT | null | gojsdom | influx6 | Go | Code | 827 | 2,982 | package dom
import (
"time"
"github.com/gopherjs/gopherjs/js"
)
func WrapEvent(o *js.Object) Event {
return wrapEvent(o)
}
func wrapEvent(o *js.Object) Event {
if o == nil || o == js.Undefined {
return nil
}
ev := &BasicEvent{o}
c := o.Get("constructor")
switch c {
case js.Global.Get("AnimationEvent"):
... | 19,677 |
https://github.com/igit-cn/jarboot/blob/master/jarboot-api/src/main/java/com/mz/jarboot/api/cmd/session/CommandSession.java | Github Open Source | Open Source | Apache-2.0 | null | jarboot | igit-cn | Java | Code | 107 | 365 | package com.mz.jarboot.api.cmd.session;
/**
* Command session
* @author majianzheng
*/
public interface CommandSession {
/**
* 获取会话id
* @return 会话id
*/
String getSessionId();
/**
* 每执行一次命令会有一个唯一id
* @return Job uuid
*/
String getJobId();
/**
* 控制台消息打印一行
... | 41,451 |
https://github.com/prabhjotSL/CardGame-1/blob/master/Server/cards/basic/ancestralHealing.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | CardGame-1 | prabhjotSL | JavaScript | Code | 138 | 502 | var cardFunctions = require('../cardFunctions')
var ent = require('../../entityManager');
var spellConts = require('../spellConstants');
var Rune = require('../../RuneVM');
var cardTags = require("../cardTags");
var AddTag = require("../../runes/AddTag");
var ModifyHealth = require('../../runes/ModifyHealth');
exports... | 48,383 |
https://github.com/linuxserver/Heimdall/blob/master/vendor/swiftmailer/swiftmailer/lib/classes/Swift/MemorySpool.php | Github Open Source | Open Source | MIT | 2,023 | Heimdall | linuxserver | PHP | Code | 321 | 729 | <?php
/*
* This file is part of SwiftMailer.
* (c) 2011 Fabien Potencier <fabien.potencier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Stores Messages in memory.
*
* @author Fabien Potencier
*/
class Swift... | 27,279 |
https://github.com/mkdika/jeneric-kt/blob/master/src/test/kotlin/com/github/mkdika/jenerickt/function/GenericFunTests.kt | Github Open Source | Open Source | Apache-2.0 | 2,019 | jeneric-kt | mkdika | Kotlin | Code | 89 | 508 | package com.github.mkdika.jenerickt.function
import junitparams.JUnitParamsRunner
import junitparams.Parameters
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(JUnitParamsRunner::class)
class GenericFunTests {
fun chunkListParams(): Array<Any> = arr... | 19,244 |
https://github.com/trizzone52/EmbyStat/blob/master/EmbyStat.Controllers/Emby/ServerInfoViewModel.cs | Github Open Source | Open Source | MIT | null | EmbyStat | trizzone52 | C# | Code | 198 | 398 | namespace EmbyStat.Controllers.Emby
{
public class ServerInfoViewModel
{
public string Id { get; set; }
public int SystemUpdateLevel { get; set; }
public string OperatingSystemDisplayName { get; set; }
public bool HasPendingRestart { get; set; }
public bool IsShuttingDow... | 54,940 |
https://github.com/KahYin28/fyp_dashboard/blob/master/resources/js/testChart.js | Github Open Source | Open Source | MIT | null | fyp_dashboard | KahYin28 | JavaScript | Code | 54 | 158 | import { Pie , mixins } from 'vue-chartjs'
export default {
extends: Pie,
mixins: [mixins.reactiveProp],
props: ['chartData'],
data() {
return {
options: { // Doughnut Chart.js options
title: {
display: true,
text: 'Total Numb... | 8,234 |
https://github.com/utalo/ontologyUpdate/blob/master/OntologyUpdate/src-test/com/hp/hpl/jena/sparql/suites/optimizer/TestProbabilityIndexModel.java | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,019 | ontologyUpdate | utalo | Java | Code | 941 | 2,867 | /*
* (c) Copyright 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP
* [See end of file]
*/
package com.hp.hpl.jena.sparql.suites.optimizer;
import junit.framework.*;
import junit.extensions.TestSetup;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Property;
import com.... | 14,997 |
https://github.com/Raghuram-Veeramallu/MEDiBase_IWSProject/blob/master/Admin-Dashboard-Template-Angular-Bootstrap-master/src/app/home/views/records/records.component.ts | Github Open Source | Open Source | MIT | null | MEDiBase_IWSProject | Raghuram-Veeramallu | TypeScript | Code | 127 | 474 | import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { RecordsService } from 'src/app/shared/services/records.service';
import { UidService } from 'src/app/shared/services/uid.services';
import { SelectedYearService } from 'src/app/shared/services/selectedYear.service';
import { ... | 53,516 |
https://github.com/groupeMB/progestix/blob/master/app/vendor/saad-tazi/g-chart-bundle/SaadTazi/GChartBundle/Resources/views/Demo/demo.html.twig | Github Open Source | Open Source | MIT | 2,017 | progestix | groupeMB | Twig | Code | 383 | 1,600 | {% extends "SaadTaziGChartBundle::layout.html.twig" %}
{% block content %}
<div id="myTableTreeMap" style="width: 1100px;height:500px;"> </div>
<script>
$(function() {
{{ gchart_treemap(dt10, 'myTableTreeMap', 1100, 500, '', {
'minColor': '#f00',
'midColor': '#ddd',
'maxColor... | 49,070 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.