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/hrvbid/snh/blob/master/Zotlabs/Module/Editlayout.php | Github Open Source | Open Source | MIT | 2,019 | snh | hrvbid | PHP | Code | 399 | 1,451 | <?php
namespace Zotlabs\Module;
require_once('include/channel.php');
require_once('include/acl_selectors.php');
require_once('include/conversation.php');
class Editlayout extends \Zotlabs\Web\Controller {
function init() {
if(argc() > 1 && argv(1) === 'sys' && is_site_admin()) {
$sys = get_sys_channel();
i... | 53,991 |
https://github.com/Slion/SharpLibStreamDeck/blob/master/Project/Samples/Rainbow/Program.cs | Github Open Source | Open Source | MIT | 2,021 | SharpLibStreamDeck | Slion | C# | Code | 131 | 406 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace SharpLib.StreamDeck.Examples.Rainbow
{
class Program
{
private static readonly Random rnd = new Random();
private static readonly ManualResetEve... | 40,818 |
https://github.com/OXIDprojects/oxid_offcanvas/blob/master/copy_this/agoffcanvas/application/controllers/agoffcanvaslist.php | Github Open Source | Open Source | MIT | 2,020 | oxid_offcanvas | OXIDprojects | PHP | Code | 43 | 198 | <?php
class agoffcanvaslist extends oxUBase {
protected $_sThisTemplate = 'widget/header/agoffcanvas.tpl';
public function render(){
$cnid = oxRegistry::getConfig()->getRequestParameter('cnid');
$oList = oxNew('oxcategorylist');
$oList->loadSubCats( $cnid );
... | 13,118 |
https://github.com/jordankettles/345-group-project/blob/master/docs/scripts/sourceset_dependencies.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | 345-group-project | jordankettles | JavaScript | Code | 1 | 52 | sourceset_dependencies='{":app:dokkaHtml/androidTestRelease":[],":app:dokkaHtml/debug":[],":app:dokkaHtml/main":[],":app:dokkaHtml/release":[]}'
| 1,037 |
https://github.com/sourcegraph/sourcegraph/blob/master/client/shared/src/commandPalette/EmptyCommandList.scss | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference, MIT, BSD-3-Clause | 2,022 | sourcegraph | sourcegraph | SCSS | Code | 46 | 180 | .empty-command-list {
position: relative;
color: $gray-17;
padding: 1rem;
&__title {
font-weight: 600;
margin-bottom: 0.5rem;
}
&__text {
line-height: 1.5;
margin-bottom: 2rem;
}
&__illustration {
position: absolute;
bottom: 1rem;
... | 38,997 |
https://github.com/brikr/practice-rom-patcher/blob/master/asm/codes/hijack/reset_timer.asm | Github Open Source | Open Source | MIT | 2,018 | practice-rom-patcher | brikr | Assembly | Code | 75 | 211 | // Manual Timer Reset on L
scope ManualTimerReset: {
lui t0, 0x8034
lb at, 0x9C31 (t0)
addiu v0, r0, 0x0020
bne at, v0, End // D0339C31 0020
nop
sh r0, 0x9EFC (t0) // 81339EFC 0000
End:
}
// Automatically Reset Timer at Star Select
scope ManualTimerAutoReset: {
lui t0, 0x8034
lb at, 0x9EC9 (t0)
a... | 15,824 |
https://github.com/etalab/prevair-experiment/blob/master/index.js | Github Open Source | Open Source | MIT | 2,018 | prevair-experiment | etalab | JavaScript | Code | 154 | 389 | const {parse} = require('querystring')
const {send} = require('micro')
const cors = require('micro-cors')()
const {createSpatialIndex} = require('./lib/spatial')
const {metadata, records} = require('./data/previsions-latest.json')
/* Micro helpers */
function extractQueryString(req) {
const pos = req.url.indexOf('?... | 30,917 |
https://github.com/abechens/SMLM-Constraint-Relaxation/blob/master/GradientSquare.m | Github Open Source | Open Source | MIT | 2,021 | SMLM-Constraint-Relaxation | abechens | MATLAB | Code | 95 | 284 | function [ Grad ] =GradientSquare(x,paramsConv,Iacq,alphas,step, norminv)
%GradientSquare calculates the gradient of the square norm + the gradient
%of the distance function from R+.
%
% Inputs:
% x
% paramsConv, which contains the gaussian kernal, A, and the reduction of
% dimension
% Iacq the observed data... | 38,248 |
https://github.com/domingo0217/cae/blob/master/app/Http/Requests/StoreMember.php | Github Open Source | Open Source | MIT | 2,017 | cae | domingo0217 | PHP | Code | 422 | 1,108 | <?php
namespace cae\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreMember extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... | 36,677 |
https://github.com/EIDSS/EIDSS-Legacy/blob/master/EIDSS v5/vb/EIDSS/EIDSS.Reports/BaseControls/Aggregate/TimeUnitReport.designer.cs | Github Open Source | Open Source | BSD-2-Clause | 2,017 | EIDSS-Legacy | EIDSS | C# | Code | 394 | 2,103 | namespace EIDSS.Reports.BaseControls.Aggregate
{
partial class TimeUnitReport
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | 9,233 |
https://github.com/roeiba/slash/blob/master/slash/runner.py | Github Open Source | Open Source | BSD-3-Clause | 2,013 | slash | roeiba | Python | Code | 312 | 1,118 | import sys
from . import hooks
from .cleanups import call_cleanups
from .conf import config
from .ctx import context
from .exceptions import (
NoActiveSession,
SkipTest,
TestFailed,
)
from .exception_handling import handling_exceptions
from .metadata import ensure_slash_metadata
from .test_context impor... | 4,463 |
https://github.com/geneontology/noctua-models/blob/master/models/MGI_MGI_1916815.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | noctua-models | geneontology | Turtle | Code | 491 | 5,842 |
<http://model.geneontology.org/MGI_MGI_1916815> a <http://www.w3.org/2002/07/owl#Ontology> .
<http://geneontology.org/lego/evidence> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/lego/hint/layout/x> a <http://www.w3.org/2002/07/owl#AnnotationProperty> .
<http://geneontology.org/leg... | 37,514 |
https://github.com/dailyherald/dailygraphics/blob/master/old-templates/highcharts/js/chart.js | Github Open Source | Open Source | MIT | null | dailygraphics | dailyherald | JavaScript | Code | 153 | 664 |
var chartRate = new Highcharts.Chart({
chart: {
renderTo: 'graphic',
backgroundColor: '#fafafa',
height: 325,
spacingBottom: 15,
spacingTop: 10,
spacingLeft: 10,
spacingRight: 10,
type: 'bar'
},
title: {
text: null,
... | 12,408 |
https://github.com/maouw/singularity-catalog/blob/master/_recipes/powerPlant/busco-srf/Singularity.4.1.1 | Github Open Source | Open Source | MIT | 2,021 | singularity-catalog | maouw | null | Spoken | 13 | 71 | Bootstrap: docker
From: ezlabgva/busco:v4.1.1_cv1
%labels
Maintainer eric.burgueno@plantandfood.co.nz
Version 4.1.1
%runscript
exec busco "$@"
| 39,128 |
https://github.com/alexsah/plainwatchanddate/blob/master/src/main.c | Github Open Source | Open Source | Apache-2.0 | 2,014 | plainwatchanddate | alexsah | C | Code | 148 | 726 | #include <pebble.h>
Window *window;
TextLayer *time_layer;
TextLayer *date_layer;
InverterLayer *inverter_layer;
void handle_timechanges(struct tm *tick_time, TimeUnits units_changed) {
static char time_buffer[6];
static char date_buffer[25];
strftime(time_buffer, sizeof(time_buffer), "%l:%M", tick_t... | 12,260 |
https://github.com/chromium/chromium/blob/master/chrome/browser/uid/android/java/src/org/chromium/chrome/browser/uid/UniqueIdentificationGeneratorFactory.java | Github Open Source | Open Source | BSD-3-Clause | 2,023 | chromium | chromium | Java | Code | 275 | 566 | // Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.uid;
import java.util.HashMap;
import java.util.Map;
/**
* Factory for setting and retrieving instances of {@link UniqueIdentificationGen... | 13,475 |
https://github.com/codingwithchris/playground.web/blob/master/packages/web/src/domains/performance/show/views/SingleShowView/components/Information/ContentAdvisoryCard/ContentAdvisoryCard.tsx | Github Open Source | Open Source | MIT | null | playground.web | codingwithchris | TypeScript | Code | 93 | 351 | import React from 'react';
import { BodyText, Tag } from '@web/ui/core';
import { SHOW_RATING } from '../../../../../constants';
import { ShowDetail } from '../../../../../types';
import * as styled from './ContentAdvisoryCard.styles';
export const ContentAdvisoryCard = ({
rating,
copy,
hasModal,
moda... | 34,909 |
https://github.com/BenRKarl/google-ads-java/blob/master/google-ads/src/main/java/com/google/ads/googleads/v6/services/CampaignLabelServiceProto.java | Github Open Source | Open Source | Apache-2.0 | null | google-ads-java | BenRKarl | Java | Code | 309 | 2,843 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v6/services/campaign_label_service.proto
package com.google.ads.googleads.v6.services;
public final class CampaignLabelServiceProto {
private CampaignLabelServiceProto() {}
public static void registerAllExtensions(
c... | 10,855 |
https://github.com/ajithkp560/ServerZilla/blob/master/js/misc.js | Github Open Source | Open Source | MIT | 2,015 | ServerZilla | ajithkp560 | JavaScript | Code | 161 | 910 | $(function(){
$("#logoutBtn").on("click", function(){
$.ajax({
type: "GET",
url: "delcookie.php",
data: "logout",
success: function(msg){
$(location).attr('href', "?#");
}
});
//$(location).attr('href', "?#");
});
$("#loginButton").on("click", function(){
$(location).attr('href', "?#logi... | 16,850 |
https://github.com/zhcj/openresty/blob/master/patches/nginx-1.17.4-balancer_status_code.patch | Github Open Source | Open Source | BSD-2-Clause | 2,022 | openresty | zhcj | null | Spoken | 183 | 1,035 | diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index f8d5707d..6efe0047 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1515,6 +1515,11 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
return;
}
+ if (rc >= NGX_HTTP... | 14,651 |
https://github.com/qsupremacy/huaweicloud-sdk-go-v3/blob/master/services/ocr/v1/model/model_general_text_words_block_list.go | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, BSD-2-Clause, JSON | 2,021 | huaweicloud-sdk-go-v3 | qsupremacy | Go | Code | 49 | 264 | package model
import (
"encoding/json"
"strings"
)
// 识别文字块列表,输出顺序从左到右,先上后下。
type GeneralTextWordsBlockList struct {
// 文字块识别结果。
Words string `json:"words"`
// 文字块的区域位置信息,列表形式,包含文字区域四个顶点的二维坐标(x,y);坐标原点为图片左上角,x轴沿水平方向,y轴沿竖直方向。
Location [][]int32 `json:"location"`
}
func (o GeneralTextWordsBlockList) String() ... | 1,772 |
https://github.com/huub-l/dreamdefendact.org/blob/master/site/web/app/themes/harper/resources/views/atoms/interlude-2.blade.php | Github Open Source | Open Source | MIT | 2,019 | dreamdefendact.org | huub-l | Blade | Code | 31 | 125 | <div class="bordered">
<div class="interlude cf flex items-left flex-row flex-wrap flex-grow-1 w-100 bg-black">
<div class="lozad" data-background-image="@asset('images/2018/dream-defenders-0009.JPG')" style="width: 100%; height: 20em; background-size: cover; background-position: 30% 30%;" class="fl dn-m dib-ns d... | 47,538 |
https://github.com/toproplus/laravel-admin-ext-uibox/blob/master/resources/views/index.blade.php | Github Open Source | Open Source | MIT | 2,021 | laravel-admin-ext-uibox | toproplus | PHP | Code | 34 | 281 | <div class="container">
<div class="row">
<b class="unibox-index-title col-md-6 col-md-offset-3" style="text-align: center">
<h3>欢迎使用laravel-admin扩展UiBox组件</h3>
</b>
</div>
<div class="row">
<div class="list-group col-md-6 col-md-offset-3">
<a href="/{... | 28,134 |
https://github.com/yeunglee/tc-api/blob/master/node_modules/dredd/src/logger.coffee | Github Open Source | Open Source | MIT | 2,013 | tc-api | yeunglee | CoffeeScript | Code | 65 | 201 | winston = require 'winston'
config =
levels:
test: 0
info: 1
pass: 2
fail: 3
complete: 4
actual: 5
expected: 6
diff: 7
request: 8
colors:
test: 'yellow'
info: 'blue'
pass: 'green'
fail: 'red'
complete: 'green'
actual: 'red'
expected: 'red'
diff: '... | 39,973 |
https://github.com/rapzo/laws_and_pathways/blob/master/app/assets/stylesheets/cclow/_colors.scss | Github Open Source | Open Source | MIT | null | laws_and_pathways | rapzo | SCSS | Code | 16 | 88 | $white: #fff;
$blue: #5587F6;
$blue-dark: #2E3152;
$red: #ED3D48;
$grey: #C0C1CB;
$grey-light: #EAEAED;
$grey-text: #828397;
$border-cl: #D5D6DC;
| 1,914 |
https://github.com/wangcy6/weekly_read/blob/master/code_reading/oceanbase-master/unittest/sql/engine/sort/ob_fake_table.h | Github Open Source | Open Source | Apache-2.0 | null | weekly_read | wangcy6 | C | Code | 425 | 1,374 | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 25,519 |
https://github.com/kakekfunky/ci-AdminLTE/blob/master/application/controllers/management/Properties.php | Github Open Source | Open Source | MIT | 2,016 | ci-AdminLTE | kakekfunky | PHP | Code | 30 | 125 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Properties extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->library(array('form_validation', 'session', 'ion_auth'));
$this->load->helper('form');
$this->lang->load('auth');... | 4,233 |
https://github.com/XorAndre/biosual/blob/master/MDC_files/pinvNew/prepinv.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | biosual | XorAndre | JavaScript | Code | 262 | 1,194 | function includeProteinsFromURLParameter(array,parameter,type){
var proteins=getURLParameter(parameter);
if (proteins!=null && proteins!="null" && jQuery.trim(proteins)!=""){
var prs=proteins.split(",");
for (var i=0;i<prs.length;i++){
array.push({"id":prs[i],"type":type});
}
}
}
var URLrequests=[];
include... | 38,786 |
https://github.com/crazytoucan/math2d/blob/master/src/__test__/boxFunctions/boxTransformBy.spec.ts | Github Open Source | Open Source | MIT | 2,020 | math2d | crazytoucan | TypeScript | Code | 124 | 352 | import { boxTransformBy } from "../../boxFunctions/boxTransformBy";
import { expectBoxEqualsApprox, _boxValues, _mat2dValues } from "../helpers";
describe("boxTransformBy", () => {
const SQRT2 = Math.SQRT2;
it.each`
box | mat | result
... | 39,604 |
https://github.com/blujedis/kawkah/blob/master/src/kawkah.ts | Github Open Source | Open Source | ISC, LicenseRef-scancode-unknown-license-reference | 2,018 | kawkah | blujedis | TypeScript | Code | 2,582 | 6,340 | import { isBoolean, isString, isObject, isValue, isFunction } from 'chek';
import { IKawkahResult, IKawkahGroup, KawkahHelpHandler, KawkahCompletionsHandler, IKawkahCommand, IKawkahOptions, KawkahResultAction, IKawkahCommandInternal, KawkahLogHandler, KawkahThemeKeys, IKawkahTheme, IKawkahOptionInternal, KawkahAction,... | 49,534 |
https://github.com/afdw/Rendering/blob/master/Matrix3F.h | Github Open Source | Open Source | Apache-2.0, MIT | null | Rendering | afdw | C | Code | 56 | 193 | #ifndef MATRIX_3F_H
#define MATRIX_3F_H
#include "VectorTypes.h"
#include "Vector3F.h"
typedef struct Matrix3F {
F m00, m01, m02;
F m10, m11, m12;
F m20, m21, m22;
} Matrix3F;
Matrix3F matrix3FNew(F m00, F m01, F m02,
F m10, F m11, F m12,
F m20, F m21, F m22);
M... | 47,541 |
https://github.com/mattharris5/sectionmaster/blob/master/register/admin/footer.php | Github Open Source | Open Source | MIT | 2,014 | sectionmaster | mattharris5 | PHP | Code | 7 | 33 | <?
print "<script type=\"text/javascript\">
ResizeTabs();
</script>";
?> | 32,848 |
https://github.com/Linko91/api-docs-gen/blob/master/assets/export-res/tmpl/html.js | Github Open Source | Open Source | MIT | null | api-docs-gen | Linko91 | JavaScript | Code | 840 | 5,436 | function getHtml(filename, obj, debug) {
//debug_path = 'file:///Users/Linko/Documents/GIT/api-docs-gen/assets/export-res/';
debug_path = 'file:///C:/Users/ddimodica/Documents/GIT/api-docs-gen/assets/export-res/';
var links = [
'<link rel="stylesheet" href="'+__css['material-icons.css']+'">',
'<link rel="stylesh... | 43,234 |
https://github.com/tylerfanelli/libkrun/blob/master/src/arch/src/aarch64/macos/regs.rs | Github Open Source | Open Source | Apache-2.0 | 2,022 | libkrun | tylerfanelli | Rust | Code | 187 | 385 | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Portions Copyright 2017 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 THIRD-PARTY file.
use std::result;
use... | 9,890 |
https://github.com/abock/runtime/blob/master/src/installer/test/HostActivation.Tests/FrameworkResolution/RollForwardOnNoCandidateFxSettings.cs | Github Open Source | Open Source | MIT | 2,021 | runtime | abock | C# | Code | 661 | 2,639 | // 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.
using Microsoft.DotNet.Cli.Build;
using Microsoft.DotNet.Cli.Build.Framework;
using Xunit;
namespace Microsoft.Dot... | 33,623 |
https://github.com/tzConnectBerlin/thanos-wallet/blob/master/src/contentScript.ts | Github Open Source | Open Source | MIT | 2,021 | thanos-wallet | tzConnectBerlin | TypeScript | Code | 273 | 912 | import { browser } from "webextension-polyfill-ts";
import { IntercomClient } from "lib/intercom/client";
import { serealizeError } from "lib/intercom/helpers";
import { ThanosMessageType, ThanosResponse } from "lib/thanos/types";
import {
ThanosPageMessage,
ThanosPageMessageType,
} from "@thanos-wallet/dapp/dist/t... | 53,047 |
https://github.com/avanetten/SpaceNet_SAR_Buildings_Solutions/blob/master/3-SatShipAI/solaris/utils/__init__.py | Github Open Source | Open Source | Apache-2.0, Python-2.0, CC-BY-3.0, MIT, BSD-3-Clause | 2,020 | SpaceNet_SAR_Buildings_Solutions | avanetten | Python | Code | 8 | 14 | from . import core, geo, io, tile, data
| 27,690 |
https://github.com/nurbektorbayev/feed/blob/master/project/src/Service/Centrifugo.php | Github Open Source | Open Source | Apache-2.0 | null | feed | nurbektorbayev | PHP | Code | 172 | 677 | <?php
namespace Feed\Service;
use Feed\Model\FeedCollectionQuery;
use phpcent\Client;
class Centrifugo
{
/**
* @var Client
*/
private $centrifugo_client;
/**
* @var string
*/
private $host;
/**
* @var string
*/
private $api_key;
/**
* @var string
... | 53,417 |
https://github.com/ustasby/ptah-api/blob/master/common/middleware/mongo.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | ptah-api | ustasby | JavaScript | Code | 271 | 895 | 'use strict';
/* inspired by koa-mongo-driver npm package
* https://www.npmjs.com/package/koa-mongo-driver
* except this implementation does no modify ctx.body on db connection errors
* but simply throws the exception
*/
const DSNParser = require('dsn-parser');
const {MongoClient} = require('mongodb');
const def... | 42,500 |
https://github.com/nagineni/chromium-crosswalk/blob/master/content/browser/accessibility/browser_accessibility_manager_mac.mm | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | null | chromium-crosswalk | nagineni | Objective-C++ | Code | 348 | 1,319 | // Copyright (c) 2012 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.
#include "content/browser/accessibility/browser_accessibility_manager_mac.h"
#import "base/logging.h"
#import "content/browser/accessibility/browser_... | 41,356 |
https://github.com/ying310/house/blob/master/app/Http/Controllers/avgleController.php | Github Open Source | Open Source | MIT | null | house | ying310 | PHP | Code | 173 | 734 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class avgleController extends Controller
{
public function index(Request $request){
$key = $request->input('key');
if($key == 'iloveyou'){
$url = 'https://api.avgle.com/v1/videos/0?limit=10';
$json_data = $... | 4,172 |
https://github.com/zapov/Relinq/blob/master/UnitTests/Parsing/ExpressionTreeVisitors/TransformingExpressionTreeVisitorTest.cs | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | Relinq | zapov | C# | Code | 498 | 1,542 | // Copyright (c) rubicon IT GmbH, www.rubicon.eu
//
// See the NOTICE file distributed with this work for additional information
// regarding copyright ownership. rubicon licenses this file to you under
// the Apache License, Version 2.0 (the "License"); you may not use this
// file except in compliance with the Lic... | 44,750 |
https://github.com/tnoho/cpp-mp4/blob/master/include/shiguredo/mp4/track/av1.hpp | Github Open Source | Open Source | Apache-2.0, MIT, BSD-3-Clause, LicenseRef-scancode-object-form-exception-to-mit, BSL-1.0 | 2,021 | cpp-mp4 | tnoho | C++ | Code | 73 | 263 | #pragma once
#include <cstdint>
#include "shiguredo/mp4/track/vide.hpp"
namespace shiguredo::mp4 {
class BoxInfo;
namespace writer {
class Writer;
}
} // namespace shiguredo::mp4
namespace shiguredo::mp4::track {
struct AV1TrackParameters {
const std::uint32_t timescale;
const std::int64_t media_time = 0... | 9,626 |
https://github.com/neoneye/loda/blob/master/programs/oeis/284/A284906.asm | Github Open Source | Open Source | Apache-2.0 | 2,022 | loda | neoneye | Assembly | Code | 42 | 317 | ; A284906: Positions of 0 in A284905; complement of A284907.
; 1,4,5,8,9,11,13,16,17,20,21,23,25,28,29,31,34,35,37,40,41,44,45,47,49,52,53,56,57,59,61,64,65,67,70,71,73,76,77,80,81,83,85,88,89,91,94,95,98,99,101,103,106,107,109,112,113,116,117,119,121,124,125,128,129,131,133,136,137,139,142,143,145,148,149,152,153,155,... | 40,392 |
https://github.com/dobleub/nestjs-logger-challenge/blob/master/src/logger/interfaces/log.interface.ts | Github Open Source | Open Source | MIT | null | nestjs-logger-challenge | dobleub | TypeScript | Code | 44 | 89 | import { Document } from 'mongoose';
export interface LogInterface extends Document {
readonly line: string;
readonly context: string;
}
export interface ConfigOptions {
readonly type: string;
}
export interface LoggerOptions {
readonly level: string;
readonly label: string;
readonly context: string;
r... | 51,508 |
https://github.com/annotating/VioDy/blob/master/addon/components/storefront-exposition/template.hbs | Github Open Source | Open Source | MIT | null | VioDy | annotating | null | Spoken | 64 | 360 | {{#if (eq position "bottom")}}
{{#if imgSrc}}
<div class="storefront-exposition__image-container">
<img class="storefront-exposition__image" src="{{imgSrc}}">
</div>
{{else}}
<div class="storefront-exposition__background-image {{imgClass}}"></div>
{{/if}}
{{/if}}
<div class="storefront-expositi... | 27,229 |
https://github.com/SvanBoxel/OrchardCore/blob/master/src/OrchardCore.Modules/OrchardCore.Workflows/Http/Liquid/SignalUrlFilter.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | OrchardCore | SvanBoxel | C# | Code | 120 | 487 | using System;
using System.Threading.Tasks;
using Fluid;
using Fluid.Values;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Routing;
using OrchardCore.Liquid;
using OrchardCore.Workflows.Http.Models;
using OrchardCore.Workflows.Models;
using OrchardCore.Workflows.Services;
namespace OrchardCore.Workflo... | 11,379 |
https://github.com/mrkurt/loofah/blob/master/lib/loofah/instance_methods.rb | Github Open Source | Open Source | MIT | 2,010 | loofah | mrkurt | Ruby | Code | 276 | 861 | module Loofah
#
# Mixes +scrub!+ into Document, DocumentFragment, Node and NodeSet.
#
# Traverse the document or fragment, invoking the +scrubber+ on
# each node.
#
# +scrubber+ must either be one of the symbols representing the
# built-in scrubbers (see Scrubbers), or a Scrubber instance.
#
# ... | 41,287 |
https://github.com/neoml-lib/neoml/blob/master/NeoOnnx/src/Optimization/SqueezeAndExciteOptimizer.cpp | Github Open Source | Open Source | Apache-2.0, NCSA, BSD-3-Clause, LLVM-exception, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-protobuf, LicenseRef-scancode-arm-llvm-sga, MIT, Intel | 2,023 | neoml | neoml-lib | C++ | Code | 987 | 3,125 | /* Copyright © 2017-2023 ABBYY
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, software
distri... | 29,763 |
https://github.com/newmanza/Newman_QuaSOR_2021/blob/master/General/Image Tools/ImageContraster.m | Github Open Source | Open Source | MIT | 2,021 | Newman_QuaSOR_2021 | newmanza | MATLAB | Code | 261 | 1,898 | function [Image_Contrasted,cMap_Contrasted,Image_Contrasted_Color,cMap_Contrasted_Color,ContrastHigh,ContrastLow,cMap]=...
ImageContraster(RawImage,Label,ContrastHigh,ContrastLow,ChannelColor,BitDepth,TurboMode)
%jheapcl
% RawImage=BrpImage_Crop;
% Label=[];
% ContrastHigh=[];
% ContrastLow=[];
% BitDepth=16;
% Ch... | 23,343 |
https://github.com/Wzzzx/chromium-crosswalk/blob/master/ui/file_manager/file_manager/foreground/js/ui/file_table.js | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,021 | chromium-crosswalk | Wzzzx | JavaScript | Code | 4,914 | 13,257 | // Copyright (c) 2012 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.
/**
* Namespace for utility functions.
*/
var filelist = {};
/**
* Custom column model for advanced auto-resizing.
*
* @param {!Array<cr.ui.tabl... | 52,506 |
https://github.com/JairoDuarte/monday-ui-react-core/blob/master/.storybook/preview.js | Github Open Source | Open Source | MIT | null | monday-ui-react-core | JairoDuarte | JavaScript | Code | 67 | 218 | import { addParameters, configure } from "@storybook/react";
import { DocsPage, DocsContainer } from "@storybook/addon-docs/blocks";
import { loadFoundationsStories } from "../src/general-stories/foundations-stories";
import { loadComponentsStories } from "../src/components/componensts-stories";
addParameters({
doc... | 5,320 |
https://github.com/shashi-kant10/nit_lab/blob/master/Sem2/cplusplus/Assignment7/2.cpp | Github Open Source | Open Source | MIT | null | nit_lab | shashi-kant10 | C++ | Code | 324 | 907 | // Assignment 7
// Question 2
// 2021pgcaca050
#include <iostream>
using namespace std;
class FamilyMember
{
protected:
string n;
string familyname;
string origin;
public:
FamilyMember() {}
FamilyMember(string name, string fn, string o)
{
n = name;
familyname = fn;
or... | 19,489 |
https://github.com/manavjain99/oscar_buggy/blob/master/docs/sass/_blog_part.scss | Github Open Source | Open Source | MIT | 2,022 | oscar_buggy | manavjain99 | SCSS | Code | 285 | 1,187 | /**************** blog part css start ****************/
.blog_part{
@media #{$small_mobile}{
padding-bottom: 50px;
}
@media #{$large_mobile}{
padding-bottom: 50px;
}
@media #{$tab_device}{
padding-bottom: 50px;
}
@media #{$medium_device}{
padding-bottom: 50px;... | 6,780 |
https://github.com/yishengjin1413/docfx/blob/master/src/Microsoft.DocAsCode.Common/FileLinkInfo.cs | Github Open Source | Open Source | MIT | 2,021 | docfx | yishengjin1413 | C# | Code | 264 | 813 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Common
{
using System;
using Microsoft.DocAsCode.Plugins;
public struct FileLinkInfo
: IFileLinkInfo
{
p... | 34,108 |
https://github.com/jonathanpike/jonathanpike.net/blob/master/_sass/_layout.scss | Github Open Source | Open Source | MIT | null | jonathanpike.net | jonathanpike | SCSS | Code | 141 | 527 | html{
height: 100%;
}
body {
font-family: $pd-font-family-sans-serif;
font-size: $font-size-base;
border: 8px solid $pd-transparent-blue;
min-height: 100%;
background-color: $pd-off-white;
margin: 0;
@media only screen and (max-width: $screen-phone) {
border: 4px solid $pd-transparent-blue;
}
}... | 27,450 |
https://github.com/CyberDefenseInstitute/burp-pretty-json/blob/master/src/test/java/jp/cyberdefense/burp/json/PrettyPrintJsonTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | burp-pretty-json | CyberDefenseInstitute | Java | Code | 162 | 361 | /*
* Copyright (C) 2016 Cyber Defense Institute.
*
* 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 ... | 11,594 |
https://github.com/niccolo-delfino/laravel-molisana/blob/master/resources/sass/partials/_header.scss | Github Open Source | Open Source | MIT | null | laravel-molisana | niccolo-delfino | SCSS | Code | 20 | 76 | header{
text-align: center;
ul{
li{
display: inline-block;
a{
color: $menuCol;
padding: 15px;
&:hover{
background-color: $hoverCol;
}
}
}
}
}
| 18,225 |
https://github.com/bospangan2022/bospanganmarketplace/blob/master/app/Http/Controllers/StoreController.php | Github Open Source | Open Source | MIT | null | bospanganmarketplace | bospangan2022 | PHP | Code | 360 | 1,837 | <?php
namespace App\Http\Controllers;
use App\Mail\TokoMasuk;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use App\Models\District;
use App\Models\Store;
use App\Models\Village;
use App\Models\UserDetailModel;
use Illuminate\Routing\Route;
use Illuminate\Suppor... | 11,572 |
https://github.com/zfinder/client/blob/master/src/cgi/read-dir.js | Github Open Source | Open Source | MIT | 2,016 | client | zfinder | JavaScript | Code | 34 | 104 | 'use strict';
/**
* read-dir module
* @module read-dir
* @see module:index
*/
import request from 'superagent';
export default (pathname, callback) => {
request.get(pathname)
.set('Accept', 'application/json')
.query({
_handler: 'read-dir',
summary: true,
})
.end(callback);
};
| 26,554 |
https://github.com/srgrn/postmanerator/blob/master/utils/git_test.go | Github Open Source | Open Source | MIT | 2,018 | postmanerator | srgrn | Go | Code | 133 | 631 | package utils_test
import (
"fmt"
"os"
"path"
. "github.com/srgrn/postmanerator/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/satori/go.uuid"
)
var _ = Describe("Git", func() {
var (
gitAgent *GitAgent
)
BeforeEach(func() {
gitAgent = &GitAgent{}
})
Describe("Clone", fu... | 17,528 |
https://github.com/aaronpurt/retail-sales/blob/master/client/components/Chart/style.scss | Github Open Source | Open Source | MIT | null | retail-sales | aaronpurt | SCSS | Code | 14 | 61 | @import "../../assets/variables.scss";
.chart-container {
.chart-header {
margin:10px;
padding:10px;
text-align: left;
font-weight: normal;
}
} | 19,613 |
https://github.com/admpub/goim/blob/master/vendor/github.com/Terry-Mao/goconf/doc.go | Github Open Source | Open Source | MIT | 2,019 | goim | admpub | Go | Code | 104 | 377 | /*
Package goconf provides configuraton read and write implementations.
Examples:
package main
import (
"fmt"
"github.com/Terry-Mao/goconf"
"time"
)
type TestConfig struct {
ID int `goconf:"core:id"`
Col string `goconf:"core:col"`
Ignore int ... | 46,047 |
https://github.com/suzuki/its-travel-pack/blob/master/src/Pdf/Writer/RectWriter.php | Github Open Source | Open Source | MIT | 2,017 | its-travel-pack | suzuki | PHP | Code | 92 | 343 | <?php
namespace Its\Pdf\Writer;
use fpdi\FPDI;
class RectWriter implements WriterInterface, FpdiInterface
{
use WriterTrait;
protected $width;
protected $height;
public function __construct(array $settings, FPDI $fpdi)
{
$this->setFpdi($fpdi);
$this->setX($settings['x']);
... | 45,638 |
https://github.com/6mn12j/js-todo-list-step1-1/blob/master/component/toDoFilter.js | Github Open Source | Open Source | MIT | null | js-todo-list-step1-1 | 6mn12j | JavaScript | Code | 207 | 642 | import { toDos } from '../src/app.js';
import { renderToDos, toDoRenderClear } from './toDoList.js';
const $toDoCount = document.querySelector('.todo-count strong');
export const $toDofilters = document.querySelector('.filters');
export const handleFilterClick = (e) => {
e.preventDefault();
const filterState = e... | 14,155 |
https://github.com/liamfrogspark/oliver-cookson/blob/master/web/app/plugins/wp-nested-pages/app/Entities/NavMenu/NavMenuRepository.php | Github Open Source | Open Source | GPL-2.0-or-later, MIT | 2,020 | oliver-cookson | liamfrogspark | PHP | Code | 580 | 1,771 | <?php
namespace NestedPages\Entities\NavMenu;
class NavMenuRepository
{
/**
* Get the Menu ID
* @since 1.3.4
* @return int
*/
public function getMenuID()
{
$term = $this->getMenuTermObject();
return $term->term_id;
}
/**
* Get Menu Item ID
* @since 1.3.4
* @param int $id - Post ID
* @param string $q... | 1,346 |
https://github.com/gileoo/MCSurfaceTension2020-Supplemental/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | MCSurfaceTension2020-Supplemental | gileoo | Ignore List | Code | 4 | 12 | bin
obj
packages
.suo
| 52,718 |
https://github.com/mikiec84/Tuktu/blob/master/modules/web/app/tuktu/web/processors/RESTProcessor.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | Tuktu | mikiec84 | Scala | Code | 207 | 623 | package tuktu.web.processors
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
import scala.concurrent.duration.DurationInt
import akka.util.Timeout
import play.api.Play.current
import play.api.cache.Cache
import play.api.libs.iteratee.Enumeratee
import play.api.libs.json.JsObje... | 1,360 |
https://github.com/optimuse/sirius-biz/blob/master/src/main/java/sirius/biz/web/BizRythmExtension.java | Github Open Source | Open Source | MIT | 2,017 | sirius-biz | optimuse | Java | Code | 85 | 278 | /*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - info@scireum.de
*/
package sirius.biz.web;
import sirius.biz.codelists.CodeLists;
import sirius.kernel.di.std.Part;
import sirius.kernel.di.std.Register;
import sirius.web.templat... | 3,446 |
https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRenderMayaPlugin/blob/master/FireRender.Maya.Src/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,023 | RadeonProRenderMayaPlugin | GPUOpen-LibrariesAndSDKs | Makefile | Code | 4,208 | 20,327 | # CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmak... | 3,625 |
https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/CtxLazy.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | dotty | lampepfl | Scala | Code | 123 | 204 | package dotty.tools.dotc
package transform
import core.Contexts._
/** Utility class for lazy values whose evaluation depends on a context.
* This should be used whenever the evaluation of a lazy expression
* depends on some context, but the value can be re-used afterwards
* with a different context.
*
* A ty... | 1,365 |
https://github.com/petruki/focusleaf-app/blob/master/src/components/Work.js | Github Open Source | Open Source | MIT | null | focusleaf-app | petruki | JavaScript | Code | 150 | 491 | import React, { useState } from 'react';
import PropTypes from 'prop-types';
import Card from './atoms/Card';
import Fade from 'react-reveal/Fade';
import Slider from 'react-slick';
const Work = ({ work }) => {
const [projectsGroup, setGroupProjects] = React.useState([]);
const sliderSettings = {
dots: false,... | 3,672 |
https://github.com/codefog/contao-events_subscriptions/blob/master/languages/en/tl_calendar_events.php | Github Open Source | Open Source | MIT | 2,020 | contao-events_subscriptions | codefog | PHP | Code | 321 | 1,019 | <?php
/**
* events_subscriptions extension for Contao Open Source CMS
*
* @copyright Copyright (c) 2011-2017, Codefog
* @author Codefog <https://codefog.pl>
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @link http://github.com/codefog/contao-events_subscriptions
*/
/**
* Fields
*/
... | 24,475 |
https://github.com/Armedin/kuka-ui/blob/master/packages/icons/src/UserPlusSolid.tsx | Github Open Source | Open Source | MIT | null | kuka-ui | Armedin | TypeScript | Code | 92 | 364 | import React from 'react';
import { SvgIcon, SvgIconProps } from '@kukui/ui';
const SvgComponent = props => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" {...props}>
<path d="M224 256c70.7 0 128-57.31 128-128S294.7 0 224 0 96 57.31 96 128s57.3 128 128 128zm50.7 48H173.3C77.61 304 0 381.6 0 477.... | 44,956 |
https://github.com/Duniaalkilany/storefront/blob/master/src/components/storefront.js | Github Open Source | Open Source | MIT | 2,021 | storefront | Duniaalkilany | JavaScript | Code | 37 | 84 | import React from 'react';
import Categories from './Category';
import Products from './Products';
import ActiveCategory from './current-category';
const StoreFront = () => {
return (
<>
<Categories />
<ActiveCategory />
<Products />
</>
)
}
export default StoreFront; | 42,616 |
https://github.com/ZqyDaoDao/zstack/blob/master/test/src/test/groovy/org/zstack/test/integration/identity/resource/OperationResourceCase.groovy | Github Open Source | Open Source | Apache-2.0 | null | zstack | ZqyDaoDao | Groovy | Code | 154 | 702 | package org.zstack.test.integration.identity.resource
import org.zstack.core.db.DatabaseFacade
import org.zstack.header.identity.AccountConstant
import org.zstack.header.vm.VmInstanceState
import org.zstack.header.vm.VmInstanceVO
import org.zstack.sdk.AccountInventory
import org.zstack.sdk.InstanceOfferingInventory
im... | 11,797 |
https://github.com/paulydboy/Quad-Vision/blob/master/DroneControl/Load.py | Github Open Source | Open Source | Apache-2.0 | null | Quad-Vision | paulydboy | Python | Code | 148 | 400 | from CommandManager import CommandManager
from Command import Command
from ActionManager import ActionManager
from Action import Action
import json
import cv2
#class voor de load
class Load(object):
actionManager = ActionManager()
def loadActions(self): #loads ... | 12,650 |
https://github.com/pdecat/home-assistant-android/blob/master/common/src/main/java/io/homeassistant/companion/android/common/data/authentication/impl/AuthenticationRepositoryImpl.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | home-assistant-android | pdecat | Kotlin | Code | 425 | 1,795 | package io.homeassistant.companion.android.common.data.authentication.impl
import com.fasterxml.jackson.databind.ObjectMapper
import io.homeassistant.companion.android.common.data.LocalStorage
import io.homeassistant.companion.android.common.data.authentication.AuthenticationRepository
import io.homeassistant.companio... | 46,999 |
https://github.com/atirtahirgroupdocs/GroupDocs.Annotation-for-.NET/blob/master/Plugins/WebPart/GroupDocs_Annotation_SharePoint_WebPart/Layouts/GroupDocs_Annotation_SharePoint_WebPart/Scripts/MeasurementAnnotation.js | Github Open Source | Open Source | MIT | 2,018 | GroupDocs.Annotation-for-.NET | atirtahirgroupdocs | JavaScript | Code | 958 | 3,421 | Raphael.fn.doubleArrow = function (x1, y1, x2, y2) {
var distance = 7,
halfDistance = distance / 2,
angle = Math.atan2(y1 - y2, x1 - x2),
st = this.set();
st.push(
this.path(
Raphael.format('M{0},{1} L{2},{3} {4},{5}', x1 + distance, y1 - halfDistance, x1, y1, x... | 46,729 |
https://github.com/Hadis-Hashemi/leaflet-challenge/blob/master/code/static/js/logic.js | Github Open Source | Open Source | ADSL | 2,020 | leaflet-challenge | Hadis-Hashemi | JavaScript | Code | 1,343 | 3,866 |
// Function that will determine the color of a neighborhood based on the borough it belongs to
function chooseColor(d) {
return d>5 ? 'red':
d>4 ? "#FFEDA0":
d>3 ? "orange":
d>2 ? "yellow":
d>1 ? "#bfff00":
"#00fa00";
};
function createFeatures(earthquakeData ) {
... | 53,409 |
https://github.com/tyrbedarf/Mesh-Simplification-for-Godot/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | Mesh-Simplification-for-Godot | tyrbedarf | Ignore List | Code | 2 | 10 | *.obj
__pycache__
| 16,842 |
https://github.com/samueltauil/rhoarsummitlabs/blob/master/wildflyswarm-noun/src/main/java/io/openshift/booster/service/NounResource.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | rhoarsummitlabs | samueltauil | Java | Code | 154 | 704 | package io.openshift.booster.service;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.... | 5,219 |
https://github.com/somkiet073/ci-demos-dashbord/blob/master/assets/DevExtreme/Demos/WidgetsGallery/Demos/DataGrid/FocusedRow/jQuery/index.js | Github Open Source | Open Source | MIT | null | ci-demos-dashbord | somkiet073 | JavaScript | Code | 248 | 999 | $(function(){
var dataGrid = $("#gridContainer").dxDataGrid({
dataSource: {
store: {
type: "odata",
key: "Task_ID",
url: "https://js.devexpress.com/Demos/DevAV/odata/Tasks"
},
expand: "ResponsibleEmployee",
selec... | 26,495 |
https://github.com/leancloud/swift-sdk/blob/master/LeanCloudTests/RTMConnectionTestCase.swift | Github Open Source | Open Source | Apache-2.0 | 2,023 | swift-sdk | leancloud | Swift | Code | 1,219 | 4,660 | //
// RTMConnectionTestCase.swift
// LeanCloudTests
//
// Created by zapcannon87 on 2018/11/3.
// Copyright © 2018 LeanCloud. All rights reserved.
//
import XCTest
@testable import LeanCloud
class RTMConnectionTestCase: RTMBaseTestCase {
override func setUp() {
super.setUp()
RTMConnection... | 7,844 |
https://github.com/redding/dk-dumpdb/blob/master/lib/dk-dumpdb/script.rb | Github Open Source | Open Source | MIT | 2,016 | dk-dumpdb | redding | Ruby | Code | 157 | 633 | require 'much-plugin'
require 'dk-dumpdb/config'
require 'dk-dumpdb/task'
module Dk::Dumpdb
module Script
include MuchPlugin
plugin_included do
include InstanceMethods
extend ClassMethods
class self::Task
include Dk::Dumpdb::Task
end
self::Task.script_class self
... | 25,306 |
https://github.com/Nextzy/nextdroid-architecture/blob/master/TabCommon/Setting/src/main/java/com/nextzy/setting/view/widget/base/DialogPreferenceView.java | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,017 | nextdroid-architecture | Nextzy | Java | Code | 804 | 2,531 | package com.nextzy.setting.view.widget.base;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Bundle;
im... | 43,436 |
https://github.com/Eonasdan/tempus-dominus/blob/master/types/plugins/fa-five.d.ts | Github Open Source | Open Source | MIT | 2,023 | tempus-dominus | Eonasdan | TypeScript | Code | 41 | 105 | declare const faFiveIcons: {
type: string;
time: string;
date: string;
up: string;
down: string;
previous: string;
next: string;
today: string;
clear: string;
close: string;
};
declare const load: (_: any, __: any, tdFactory: any) => void;
export { faFiveIcons, load };
| 12,699 |
https://github.com/Blackdread/lens/blob/master/packages/core/src/features/weblinks/main/validate-weblink.global-override-for-injectable.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-4.0 | 2,023 | lens | Blackdread | TypeScript | Code | 42 | 98 | /**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getGlobalOverride } from "@k8slens/test-utils";
import validateWeblinkInjectable from "./validate-weblink.injectable";
export default getGlobalOverride(validateWe... | 34,624 |
https://github.com/aosp-mirror/platform_frameworks_base/blob/master/services/tests/mockingservicestests/src/com/android/server/pm/DistractingPackageHelperTest.kt | Github Open Source | Open Source | LicenseRef-scancode-unicode, Apache-2.0 | 2,023 | platform_frameworks_base | aosp-mirror | Kotlin | Code | 449 | 2,610 | /*
* Copyright (C) 2022 The Android Open Source Project
*
* 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 app... | 24,385 |
https://github.com/ac744/cgal-swig-bindings/blob/master/build-java/CGAL/Polyline_simplification_2/PS2_Constrained_Delaunay_triangulation_plus_2_Finite_faces_iterator.java | Github Open Source | Open Source | BSL-1.0 | 2,019 | cgal-swig-bindings | ac744 | Java | Code | 244 | 1,572 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 23,581 |
https://github.com/LokerArt/launchbase-04-gym-manager/blob/master/gym-manager/src/lib/utils.js | Github Open Source | Open Source | MIT | 2,020 | launchbase-04-gym-manager | LokerArt | JavaScript | Code | 116 | 378 | module.exports = {
age: function (timestamp) {
const today = new Date()
const birth = new Date(timestamp)
let age = today.getUTCFullYear() - birth.getUTCFullYear()
const month = today.getUTCMonth() - birth.getUTCMonth()
if (month < 0 || month == 0 && today.getUTCDate() < bi... | 45,464 |
https://github.com/techmmunity/user-service/blob/master/src/v1/utils/yup/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | user-service | techmmunity | TypeScript | Code | 134 | 318 | /**
*
* Every Time that a function be added here,
* you need to add the type to
* the types/yup.d.ts file
*
*/
import * as yup from "yup";
import { afterNow } from "./number/after-now";
import { uniqueValues } from "./object/unique-values";
import { emailOrPhone } from "./string/email-or-phone";
import { fullNa... | 27,588 |
https://github.com/apache/flink/blob/master/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/LegacyTypeInformationType.java | Github Open Source | Open Source | BSD-3-Clause, OFL-1.1, ISC, MIT, Apache-2.0 | 2,023 | flink | apache | Java | Code | 441 | 1,153 | /*
* 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 ... | 850 |
https://github.com/nathansng/Lightning/blob/master/Lightning.pde | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | Lightning | nathansng | null | Spoken | 910 | 2,510 | int startX = 150;
int startY = 0;
int endX = 150;
int endY;
int startXAuto = (int)(Math.random()*225)+50;
int startYAuto = 0;
int endXAuto = startXAuto;
int endYAuto;
boolean shocked;
boolean auto = false;
int aX = (int)(Math.random() * 30) - 15;
int bX = (int)(Math.random() * 30) + 35;
int cX = (int)(Math.random() ... | 34,509 |
https://github.com/ali1810/sol_heroku/blob/master/rdkit/Code/GraphMol/MolCatalog/Wrap/CMakeLists.txt | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,021 | sol_heroku | ali1810 | CMake | Code | 10 | 89 | remove_definitions(-DRDKIT_MOLCATALOG_BUILD)
rdkit_python_extension(rdMolCatalog rdMolCatalog.cpp
DEST Chem
LINK_LIBRARIES MolCatalog )
add_pytest(pyMolCatalog ${CMAKE_CURRENT_SOURCE_DIR}/rough_test.py)
| 930 |
https://github.com/mihaicrisanbodea/ve-metrics-statsdclient-csharp/blob/master/Ve.Metrics.StatsDClient.Abstract/ITimingToken.cs | Github Open Source | Open Source | MIT | null | ve-metrics-statsdclient-csharp | mihaicrisanbodea | C# | Code | 13 | 37 | using System;
namespace Ve.Metrics.StatsDClient.Abstract
{
public interface ITimingToken : IDisposable { }
} | 14,861 |
https://github.com/andriluka/mechturk-public/blob/master/matlab_utils/split_by_worker_new.m | Github Open Source | Open Source | LicenseRef-scancode-other-permissive, BSD-3-Clause | 2,015 | mechturk-public | andriluka | MATLAB | Code | 147 | 656 | function worker_annolist = split_by_worker_new(annolist, outdir)
worker_annolist = cell(0);
worker_idx = containers.Map();
for aidx = 1:length(annolist)
assert(isfield(annolist(aidx), 'workerid') && length(annolist(aidx).workerid) > 0);
if worker_idx.isKey(annolist(aidx).workerid)
cur_wor... | 38,477 |
https://github.com/grujicbr/aws-sdk-cpp/blob/master/aws-cpp-sdk-elasticbeanstalk/source/model/InstanceHealthSummary.cpp | Github Open Source | Open Source | Apache-2.0 | 2,019 | aws-sdk-cpp | grujicbr | C++ | Code | 545 | 2,212 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 38,951 |
https://github.com/juanobrach/pakke-store/blob/master/theme/assets/scss/customer-menu.scss | Github Open Source | Open Source | MIT | null | pakke-store | juanobrach | SCSS | Code | 166 | 827 | .customer-menu {
font-size: 13px;
position:relative;
cursor:pointer;
.menu-item{
margin: 0;
color: $purple;
font-size: 13px;
font-family:"open_sansbold";
}
span.arrow-down-icon{
margin-left: 1.9em;
}
.menu{
position:absolute;
background: white;
width: 330px;
padding:... | 34,766 |
https://github.com/dgamerx/BulletHell/blob/master/include/MenuOptions/Options.h | Github Open Source | Open Source | MIT | 2,018 | BulletHell | dgamerx | C | Code | 29 | 93 | #ifndef OPTIONS_H
#define OPTIONS_H
#include "jgl.h"
class Options
{
public:
Options();
virtual ~Options();
virtual void update() = 0;
virtual void eventHandler(jgl::Event) = 0;
protected:
private:
};
#endif // OPTIONS_H
| 45,242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.