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/BadBambi/wpmu-bamco/blob/master/wp-content/themes/mesmerize/functions.php
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, GPL-1.0-or-later, LGPL-2.0-or-later, GPL-3.0-or-later, GPL-3.0-only, LGPL-2.1-or-later, OFL-1.1, MIT, Apache-2.0, CC0-1.0, GPL-2.0-or-later, GPL-2.0-only
2,020
wpmu-bamco
BadBambi
PHP
Code
146
587
<?php /** * Sets up theme defaults and registers support for various WordPress features. * */ if ( ! defined('MESMERIZE_THEME_REQUIRED_PHP_VERSION')) { define('MESMERIZE_THEME_REQUIRED_PHP_VERSION', '5.3.0'); } add_action('after_switch_theme', 'mesmerize_check_php_version'); function mesmerize_check_php_vers...
34,924
https://github.com/gzTeamwork/admin_thinkphp/blob/master/public/interface/src/pages/admin/uploader/uploaderApi.js
Github Open Source
Open Source
Apache-2.0
2,018
admin_thinkphp
gzTeamwork
JavaScript
Code
77
316
import httpAxios from '@/public/http.js'; import './uploaderApiMock' export default { /** * 获取多个文章 * @param file * @param url */ async uploadImg(file, url = null) { let result; let param = new FormData(); // 创建form对象 param.append('img', file); param.append('chunk', '0'); // 通过ap...
24,705
https://github.com/zerepolbap/QualityCrowd2/blob/master/core/lib/ElementVideo.php
Github Open Source
Open Source
BSD-3-Clause
2,020
QualityCrowd2
zerepolbap
PHP
Code
104
387
<?php class ElementVideo extends StepElement { protected function init() { } public function validate(&$data) { $msg = array(); if (!isset($data['watched-' . $this->uid]) || $data['watched-' . $this->uid] <> true) { $msg[] = 'You have to watch the whole video.'; } if (count($msg) == 0) { u...
15,772
https://github.com/smikodanic/ng6-startup/blob/master/projects/ng6cookies/src/lib/ng6cookies.module.ts
Github Open Source
Open Source
MIT
2,018
ng6-startup
smikodanic
TypeScript
Code
28
79
import { NgModule } from '@angular/core'; import { CookiesService } from './ng6cookies.service'; @NgModule({ imports: [ ], declarations: [], providers: [CookiesService], exports: [] }) export class Ng6cookiesModule { }
779
https://github.com/nestyme/voice-morphing/blob/master/gender_detector/create_dataset.sh
Github Open Source
Open Source
MIT
2,022
voice-morphing
nestyme
Shell
Code
7
36
wget https://ndownloader.figshare.com/files/10256148 unzip -q 10256148 python3 utils/preprocess.py
15,859
https://github.com/bodgit/puppet-freeradius/blob/master/spec/spec_helper.rb
Github Open Source
Open Source
Apache-2.0
null
puppet-freeradius
bodgit
Ruby
Code
44
195
require 'puppetlabs_spec_helper/module_spec_helper' RSpec.configure do |c| c.treat_symbols_as_metadata_keys_with_true_values = true c.before(:each) do Puppet.features.stubs(:root? => true) end end dir = Pathname.new(__FILE__).parent Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules') Puppet[:libdi...
40,312
https://github.com/ezhivitsa/microservices-starter/blob/master/src/packages/common/src/types/general-types.ts
Github Open Source
Open Source
MIT
2,021
microservices-starter
ezhivitsa
TypeScript
Code
79
215
import { FeatureFlag } from './feature-flags'; export enum FrontApplication { Dashboard = 'dashboard', Auth = 'auth', Settings = 'settings', Calendar = 'calendar', } export enum ApplicationLayout { Default = 'default', Empty = 'empty', } export interface FrontUpstream { name: string; jsUrl: string; ...
28,419
https://github.com/kwkoo/pipeline-restrictor/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
null
pipeline-restrictor
kwkoo
Makefile
Code
595
2,268
PREFIX=github.com/kwkoo PACKAGE=pipelinerestrictor IMAGE_VERSION=0.1 PROJECT=$(PACKAGE) APP_NAME=$(PACKAGE) SERVICE_NAME=$(PACKAGE) SECRET_NAME=$(PACKAGE) ROLE_NAME=$(PACKAGE) ROLE_BINDING_NAME=$(PACKAGE) SERVICE_CN=$(SERVICE_NAME).$(PROJECT).svc GVR_GROUP=kwkoo.github.com GVR_VERSION=v1beta1 RESOURCE_NAME=requests PIP...
10,855
https://github.com/marlonfan/deck/blob/master/solver/utils.go
Github Open Source
Open Source
Apache-2.0
null
deck
marlonfan
Go
Code
111
361
package solver import ( "encoding/json" "github.com/kong/deck/crud" "github.com/kong/deck/diff" "github.com/yudai/gojsondiff" "github.com/yudai/gojsondiff/formatter" ) var ( differ = gojsondiff.New() ) func getDiff(a, b interface{}) (string, error) { aJSON, err := json.Marshal(a) if err != nil { return ""...
50,719
https://github.com/airamrguez/titanium_mobile/blob/master/dist/mobilesdk-3.2.0-osx/mobilesdk/osx/3.2.0/node_modules/titanium-code-processor/lib/RuleProcessor.js
Github Open Source
Open Source
Apache-2.0
2,013
titanium_mobile
airamrguez
JavaScript
Code
496
1,093
/** * <p>Copyright (c) 2012 by Appcelerator, Inc. All Rights Reserved. * Please see the LICENSE file for information about licensing.</p> * * @module RuleProcessor * @author Bryan Hughes &lt;<a href='mailto:bhughes@appcelerator.com'>bhughes@appcelerator.com</a>&gt; */ var AST = require('./AST'), Runtime = requi...
48,400
https://github.com/c-koehler/fabric8-ui/blob/master/src/app/space/forge-wizard/import-pages/step4/build-config-step.component.ts
Github Open Source
Open Source
Apache-2.0, MIT
2,018
fabric8-ui
c-koehler
TypeScript
Code
68
202
import { Component, Input, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Gui } from 'ngx-forge'; @Component({ selector: 'build-config-step', templateUrl: './build-config-step.component.html' }) export class BuildConfigStepComponent implements OnInit { @Input() gui: Gui; ...
14,778
https://github.com/Chutancdn/chainlink/blob/master/evm-contracts/src/v0.7/dev/StalenessFlaggingValidator.sol
Github Open Source
Open Source
MIT
null
chainlink
Chutancdn
Solidity
Code
514
1,323
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./ConfirmedOwner.sol"; import "../vendor/SafeMathChainlink.sol"; import "../interfaces/FlagsInterface.sol"; import "../interfaces/AggregatorV3Interface.sol"; contract StalenessFlaggingValidator is ConfirmedOwner { using SafeMathChainlink for uint256; ...
38,709
https://github.com/Reuben357/Organization-API/blob/master/src/main/java/database/NewsDao.java
Github Open Source
Open Source
MIT
null
Organization-API
Reuben357
Java
Code
207
731
package database; import models.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sql2o.Connection; import java.util.Collections; import java.util.List; public class NewsDao { List<News> news, showNews; static final Logger NewDaoLogger = LoggerFactory.getLogger(News.class.getSimpleName()...
13,560
https://github.com/Devidence7/radtree/blob/master/RadTree/src/sistinfo/servlets/jsp/gestion/EditarNoticiaServlet.java
Github Open Source
Open Source
MIT
2,019
radtree
Devidence7
Java
Code
94
353
package sistinfo.servlets.jsp.gestion; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import sistinfo.servlets.jsp.FooterServlet; import sistinfo.servlets.jsp.util.IncludeInRequest; @SuppressWarnings("se...
30,178
https://github.com/stephencarr/thing-client/blob/master/src/server.js
Github Open Source
Open Source
WTFPL
2,016
thing-client
stephencarr
JavaScript
Code
311
972
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import path from 'path'; import Html from './helpers/Html'; import PrettyError from 'pretty-error'; import http fr...
12,545
https://github.com/lanceshelton/Avere/blob/master/test/utils/check_rc.sh
Github Open Source
Open Source
CC-BY-4.0, MIT
2,022
Avere
lanceshelton
Shell
Code
222
474
#!/bin/bash # Copyright (C) Microsoft Corporation. All rights reserved. # # Evaluate if a given exit code indicates success (0) or failure. # # If failure, output an error message in Azure DevOps Pipelines format. # Additionally, output the "current task failed" Pipelines string. # # PARAMETERS: # This script takes t...
24,409
https://github.com/chychkan/lab/blob/master/lab-core/src/test/java/com/github/jnthnclt/os/lab/core/api/exceptions/LABExceptionTest.java
Github Open Source
Open Source
Apache-2.0
2,020
lab
chychkan
Java
Code
31
140
package com.github.jnthnclt.os.lab.core.api.exceptions; import org.testng.annotations.Test; public class LABExceptionTest { @Test public void sillyConstructorTestForCodeCoverage() { new LABClosedException("Foo"); new LABConcurrentSplitException(); new LABCorruptedException(); ...
53,397
https://github.com/matthieu-vincke/Angular2-Materializecss-Starter/blob/master/app/materialize/components/dropdown.ts
Github Open Source
Open Source
MIT
2,016
Angular2-Materializecss-Starter
matthieu-vincke
TypeScript
Code
59
223
import {Component,Input} from "@angular/core" @Component({ selector: "dropdown", template: ` <!-- Dropdown Trigger --> <a materialize="dropdown" class='dropdown-button btn' href='#' [attr.data-activates]="id">{{elements.header}}</a> <!-- Dropdown Structure --> <ul [id]="id" class='dropdown-...
24,896
https://github.com/Wrosinski/keraspipelines/blob/master/keraspipelines/legacy/__init__.py
Github Open Source
Open Source
MIT
2,022
keraspipelines
Wrosinski
Python
Code
16
56
from .keras_basic_pipeline import KerasBasicPipeline from .keras_flow_pipeline import KerasFlowPipeline from .keras_directoryflow_pipeline import KerasDirectoryFlowPipeline from .utils import copytree
18,497
https://github.com/LagOussama/enseeiht/blob/master/2IMA/Graphes/Projet/2b.dot
Github Open Source
Open Source
FTL
2,021
enseeiht
LagOussama
Graphviz (DOT)
Code
18
55
digraph question2b { size="10" node [shape = circle]; C_1 -> B_R; B_R -> C_2; G_G -> B_R; }
35,073
https://github.com/jawsper/modularirc-basemodules/blob/master/setup.py
Github Open Source
Open Source
MIT
null
modularirc-basemodules
jawsper
Python
Code
60
289
#!/usr/bin/env python3 from setuptools import setup import sys sys.path.insert(0, 'src/modularirc/modules') from basemodules import __version__ setup( name='modularirc.basemodules', version=__version__, author='Jasper Seidel', author_email='code@jawsper.nl', packages=['modularirc.modules.basemodu...
52,373
https://github.com/hernad/eShell/blob/master/scripts/rm_eshell_unused.sh
Github Open Source
Open Source
MIT
null
eShell
hernad
Shell
Code
149
821
rm -rf extensions/javascript rm -rf extensions/java rm -rf extensions/vb rm -rf extensions/vscode-web-playground rm -rf extensions/html-language-features rm -rf extensions/json-language-features/package.json rm src/ws/workbench/contrib/debug rm src/vs/workbench/api/common/extHostDebugService.ts rm src/vs/workbench/api...
23,040
https://github.com/istommao/maxbox/blob/master/src/renderer/views/QRCode.ts
Github Open Source
Open Source
Apache-2.0
null
maxbox
istommao
TypeScript
Code
416
1,470
import { defineComponent, ref, watch } from 'vue' import { NUpload, NUploadDragger, NIcon, NCard, NCheckbox, NSpace, NInput, NButton, useMessage, } from 'naive-ui' import { useDebounce } from '@vueuse/core' import qrcodeParser from "qrcode-parser"; import QRCode from 'qrcode' export default defi...
8,474
https://github.com/markbush/cxx-pipes/blob/master/src/Makefile
Github Open Source
Open Source
MIT
2,021
cxx-pipes
markbush
Makefile
Code
8
16
DEFAULT:: test test:: cd test ; make test
25,480
https://github.com/tingsxh/tauren/blob/master/src/main/java/cn/tauren/framework/ioc/impl/DefaultBeanFactory.java
Github Open Source
Open Source
Apache-2.0
2,018
tauren
tingsxh
Java
Code
496
1,986
/** * Joice * Copyright (c) 1995-2017 All Rights Reserved. */ package cn.tauren.framework.ioc.impl; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import cn.tauren.framework.aop.annotation.Intercept; import ...
4,430
https://github.com/lgcarrier/AFW/blob/master/5.2.3/Database/Packages/AFW_07_EXCEP_PKG.pkb
Github Open Source
Open Source
MIT
2,017
AFW
lgcarrier
SQL
Code
13
38
SET DEFINE OFF; create or replace package body afw_07_excep_pkg as end afw_07_excep_pkg; /
43,228
https://github.com/lengyang99/react-dva/blob/master/src/services/countPeople.js
Github Open Source
Open Source
MIT
null
react-dva
lengyang99
JavaScript
Code
26
88
import { stringify } from 'qs'; import request from '../utils/request'; export async function tableQueryLogin(params) { return request(`/proxy/log/loginCount?${stringify(params)}`); } export async function tableQuery(params) { return request(`/proxy/log/loginStat?${stringify(params)}`); }
19,619
https://github.com/Deadly-Smile/Online-Exam/blob/master/src/main/java/view/homepage/TimerThread.java
Github Open Source
Open Source
MIT
null
Online-Exam
Deadly-Smile
Java
Code
86
273
package view.homepage; import javax.swing.*; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import static java.lang.Thread.sleep; public class TimerThread extends Thread{ private boolean isRunning; private final JLabel timeLabel; private final SimpleDateFormat timeF...
42,696
https://github.com/c-ryan-k/vscode-dtdl/blob/master/src/common/constants.ts
Github Open Source
Open Source
MIT
2,022
vscode-dtdl
c-ryan-k
TypeScript
Code
138
408
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. /** * Common constants */ export class Constants { public static readonly CHANNEL_NAME = "DTDL"; public static readonly UTF8 = "utf8"; public static readonly EMPTY_STRING = ""; public static readonly JSON_SPACE = ...
41,441
https://github.com/zackElkhaddar/Bigscreen/blob/master/resources/views/layouts/index.blade.php
Github Open Source
Open Source
MIT
2,019
Bigscreen
zackElkhaddar
Blade
Code
103
958
<!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>BigScreen</title> <!-- link --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/boo...
54,866
https://github.com/pelcro-inc/react-pelcro-js/blob/master/src/Components/Login/LoginButton.js
Github Open Source
Open Source
MIT
null
react-pelcro-js
pelcro-inc
JavaScript
Code
111
321
import React, { useContext, useState, useEffect } from "react"; import { useTranslation } from "react-i18next"; import { Button } from "../../SubComponents/Button"; import { HANDLE_LOGIN } from "../../utils/action-types"; import { store } from "./LoginContainer"; export const LoginButton = ({ name, onClick, ...otherPr...
4,258
https://github.com/jivesoftware/miru/blob/master/miru-plugin/src/main/java/com/jivesoftware/os/miru/plugin/solution/MiruRequestAndReport.java
Github Open Source
Open Source
Apache-2.0
2,018
miru
jivesoftware
Java
Code
71
233
package com.jivesoftware.os.miru.plugin.solution; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; /** * @author jonathan.colt * @param <Q> * @param <R> */ public class MiruRequestAndReport<Q, R> implements Serializable { ...
3,391
https://github.com/mikeparisstuff/stateslang-js/blob/master/src/utils/applyResultPath.ts
Github Open Source
Open Source
MIT
2,021
stateslang-js
mikeparisstuff
TypeScript
Code
90
211
import { lensPath, lensProp, view, set } from 'ramda' /** * https://docs.aws.amazon.com/step-functions/latest/dg/awl-ref-filters.html */ export default function applyResultPath( input: mixed, result: mixed, path: string | undefined | null, ): mixed { let resultPath = path // If the path is null return the ...
32,687
https://github.com/atul-vyshnav/2021_IBM_Code_Challenge_StockIT/blob/master/src/StockIT-v2-release_source_from_JADX/sources/org/apache/commons/lang3/math/NumberUtils.java
Github Open Source
Open Source
Apache-2.0
2,021
2021_IBM_Code_Challenge_StockIT
atul-vyshnav
Java
Code
3,721
10,562
package org.apache.commons.lang3.math; import java.lang.reflect.Array; import java.math.BigDecimal; import java.math.RoundingMode; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; public class NumberUtils { public static final Byte BYTE_MINUS_ONE = (byte) -1; public stati...
40,743
https://github.com/arturopala/agents-external-stubs/blob/master/app/uk/gov/hmrc/agentsexternalstubs/controllers/BearerToken.scala
Github Open Source
Open Source
Apache-2.0
2,020
agents-external-stubs
arturopala
Scala
Code
135
264
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
16,046
https://github.com/graffiticode/graffiticode-api/blob/master/src/testing/fixture.js
Github Open Source
Open Source
MIT
null
graffiticode-api
graffiticode
JavaScript
Code
84
270
exports.TASK_ID1 = 'yLimC0'; exports.TASK1 = { lang: "0", code: { "1": { "tag": "STR", "elts": ["hello, world!"] }, "2": { "tag": "EXPRS", "elts": [1] }, "3": { "tag": "PROG", "elts": [2] }, "root": 3, "version": "1" } }; exports.DATA1 = 'hello, world!'; exports.TASK_ID2 = 'WaiqIp'; exports.T...
5,027
https://github.com/pupipipu/botbuilder-proxy/blob/master/Node/core/lib/storage/BotStorage.js
Github Open Source
Open Source
MIT
null
botbuilder-proxy
pupipipu
JavaScript
Code
459
1,147
"use strict"; // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. // // Microsoft Bot Framework: http://botframework.com // // Bot Builder SDK Github: // https://github.com/Microsoft/BotBuilder // // Copyright (c) Microsoft Corporation // All rights reserved. // // MIT License: /...
29,732
https://github.com/kacase/ng-fuse/blob/master/dist/index.d.ts
Github Open Source
Open Source
MIT
null
ng-fuse
kacase
TypeScript
Code
19
54
export declare class NgFuseModule { } export { NgFuseOptions, NgFuseService } from './src/ngfuse.service'; export { NgFusePipe } from './src/ngfuse.pipe';
36,421
https://github.com/rsassi/hivemind1/blob/master/hivebuild/src/java/org/apache/hivemind/build/Grabber.java
Github Open Source
Open Source
Apache-2.0
null
hivemind1
rsassi
Java
Code
690
1,765
// Copyright 2004 The Apache Software Foundation // // 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 ...
55,221
https://github.com/alphagov/cf_app_discovery/blob/master/Rakefile
Github Open Source
Open Source
MIT
2,022
cf_app_discovery
alphagov
Ruby
Code
14
60
require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task :lint do system("bundle exec rubocop") end task default: %i[spec lint]
9,609
https://github.com/R32/flashdevelop/blob/master/External/Plugins/ASCompletion/PluginMain.cs
Github Open Source
Open Source
MIT
null
flashdevelop
R32
C#
Code
3,273
11,930
using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.IO; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; using System.Timers; using System.Windows.Forms; using ASCompletion.Commands; using ASCompletion...
32,346
https://github.com/12Apr21-Salesforce/p2_lead/blob/master/force-app/main/default/classes/Triggers_Demo.cls
Github Open Source
Open Source
MIT
2,021
p2_lead
12Apr21-Salesforce
Apex
Code
172
520
public class Triggers_Demo { public static void ApartmentDeletion(){ for(Apartment__c Apt : [SELECT Name FROM Apartment__c WHERE Id IN (SELECT Apartment_Name__c FROM Property__C) AND Id IN :Trigger.old]) { Trigger.oldMap.get(Apt.Id).addError(...
47,053
https://github.com/ajnadox/tailscale-qpkg/blob/master/Makefile
Github Open Source
Open Source
MIT
null
tailscale-qpkg
ajnadox
Makefile
Code
60
259
TSTAG ?= v1.8.6 .PHONY: build-tailscaled-container build-tailscaled-container: docker build -f build/Dockerfile.build -t tailscale-qnap-builder:latest build/ .PHONY: out/tailscaled out/tailscaled: build-tailscaled-container docker run --rm -v ${CURDIR}/out:/out -e TSTAG=${TSTAG} tailscale-qnap-builder .PHONY: buil...
10,415
https://github.com/dozenow/shortcut/blob/master/linux-lts-quantal-3.5.0/arch/s390/math-emu/math.c
Github Open Source
Open Source
GPL-1.0-or-later, Linux-syscall-note, GPL-2.0-only, BSD-2-Clause
2,019
shortcut
dozenow
C
Code
8,213
31,313
/* * arch/s390/math-emu/math.c * * S390 version * Copyright (C) 1999-2001 IBM Deutschland Entwicklung GmbH, IBM Corporation * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * * 'math.c' emulates IEEE instructions on a S390 processor * that does not have the IEEE fpu (all processors bef...
6,182
https://github.com/Patrick-Erichsen/cactus/blob/master/packages/cactus-cmd-api-server/src/main/typescript/config/config-service.ts
Github Open Source
Open Source
Apache-2.0
null
cactus
Patrick-Erichsen
TypeScript
Code
1,110
3,404
import { randomBytes } from "crypto"; import convict, { Schema, Config, SchemaObj } from "convict"; import { ipaddress } from "convict-format-with-validator"; import secp256k1 from "secp256k1"; import { v4 as uuidV4 } from "uuid"; import { LoggerProvider, Logger, LogLevelDesc, } from "@hyperledger/cactus-common";...
43,056
https://github.com/jinglongyang/leetcode/blob/master/src/array/MedianOfTwoSortedArrays.java
Github Open Source
Open Source
Apache-2.0
null
leetcode
jinglongyang
Java
Code
217
464
package array; /** * https://oj.leetcode.com/problems/median-of-two-sorted-arrays/ * * There are two sorted arrays A and B of size m and n respectively. * Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). */ public class MedianOfTwoSortedArrays { public double f...
35,779
https://github.com/Fl4m3Ph03n1x/deprecation/blob/master/docs/sample.py
Github Open Source
Open Source
Apache-2.0
2,022
deprecation
Fl4m3Ph03n1x
Python
Code
194
658
import unittest2 import deprecation __version__ = "1.5" @deprecation.deprecated(deprecated_in="1.0", removed_in="2.0", current_version=__version__, details="Use the ``one`` function instead") def won(): """This function returns 1""" # Oops, it's one, not won. ...
19,821
https://github.com/neviko/Video-based-attack/blob/master/mexopencv-master/samples/smiledetect_demo.m
Github Open Source
Open Source
BSD-3-Clause
2,017
Video-based-attack
neviko
MATLAB
Code
615
1,887
%% Smile Detection demo % This program demonstrates the smile detector. % % NOTE: Smile intensity will only be valid after a first smile has been % detected. % % <https://github.com/opencv/opencv/blob/3.1.0/samples/cpp/smiledetect.cpp> % %% Options % this is the frontal face classifier cascadeName = fullfile(mexopenc...
10,197
https://github.com/AngleSharp/AngleSharp.Css/blob/master/src/AngleSharp.Css/Parser/CssTokenizer.cs
Github Open Source
Open Source
MIT
2,023
AngleSharp.Css
AngleSharp
C#
Code
2,772
9,895
namespace AngleSharp.Css.Parser { using AngleSharp.Common; using AngleSharp.Css.Dom.Events; using AngleSharp.Css.Parser.Tokens; using AngleSharp.Dom; using AngleSharp.Text; using System; using System.Globalization; /// <summary> /// The CSS tokenizer. /// See http://dev.w3.org/c...
49,702
https://github.com/chriswarren/desk/blob/master/lib/desk/error.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
desk
chriswarren
Ruby
Code
281
660
module Desk # Custom error class for rescuing from all Desk.com errors class Error < StandardError attr_reader :http_headers def initialize(message, http_headers) http_headers ||= {} @http_headers = Hash[http_headers] super message end def ratelimit_reset @http_headers.valu...
42,592
https://github.com/fdcl-gwu/fdcl_param/blob/master/src/test_fdcl_param.cpp
Github Open Source
Open Source
MIT
null
fdcl_param
fdcl-gwu
C++
Code
81
313
#include <iostream> #include <string> #include "Eigen/Dense" #include "fdcl/param.hpp" using namespace std; int main(void) { double m; string dev; int addr; Eigen::Matrix<double, 3, 3> J; bool GPS; fdcl::param pfile; pfile.open("config.txt"); pfile.read("UAV.m",m); cout << "m=" << m << endl; pfile....
31,033
https://github.com/BlinkTagInc/gtfs-block-tool/blob/master/lib/utils.js
Github Open Source
Open Source
MIT
null
gtfs-block-tool
BlinkTagInc
JavaScript
Code
130
386
import { promisify } from 'node:util'; import csvStringify from 'csv-stringify'; import moment from 'moment'; const stringify = promisify(csvStringify); /* * Initialize configuration with defaults. */ export function setDefaultConfig(initialConfig) { const defaults = { timeFormat: 'HH:mm:ss' }; const c...
36,570
https://github.com/tenantcloud/php-better-reflection/blob/master/relocation/relocated/vendor/webmozart/assert/tests/static-analysis/assert-true.php
Github Open Source
Open Source
MIT
null
php-better-reflection
tenantcloud
PHP
Code
71
293
<?php namespace TenantCloud\BetterReflection\Relocated\Webmozart\Assert\Tests\StaticAnalysis; use TenantCloud\BetterReflection\Relocated\Webmozart\Assert\Assert; /** * @psalm-pure * * @param mixed $value * * @return true */ function true($value) : bool { \TenantCloud\BetterReflection\Relocated\Webmozart\Ass...
39,140
https://github.com/ErikMeinders/cirrus/blob/master/bin/generateLogTenX.sh
Github Open Source
Open Source
MIT
null
cirrus
ErikMeinders
Shell
Code
9
28
#! /usr/bin/env bash python ./bin/generateLogTenX.py | sort > flights.html
14,229
https://github.com/Gavant/ember-power-select-infinity/blob/master/test-app/app/controllers/docs/components/power-select-infinity-for-model.ts
Github Open Source
Open Source
MIT
2,023
ember-power-select-infinity
Gavant
TypeScript
Code
110
312
import Controller from '@ember/controller'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking'; import Person from '../../../models/person'; export default class PowerSelectInfinityForModelController extends Controller { @tracked selectedPerson: Person | null = null; @tracked ...
49,639
https://github.com/yurioliveira3/DNSFirewall/blob/master/Old/script_v2.py
Github Open Source
Open Source
MIT
null
DNSFirewall
yurioliveira3
Python
Code
157
591
from threading import Thread from Queue import Queue, Empty from scapy.all import * m_iface = "wlan1" m_finished = False def print_summary(packet): target = {'uol.com':'200.147.67.142', 'google.com':'173.194.118.35', 'facebook.com':'173.252.120.6', 'gmail.com':'216.58.222.5' } if packet.haslay...
7,216
https://github.com/saazim1123/advanced-hashes-hashketball-london-web-career-040119/blob/master/hashketball.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
advanced-hashes-hashketball-london-web-career-040119
saazim1123
Ruby
Code
734
1,877
# Write your code here! def game_hash game = { home: { team_name: "Brooklyn Nets", colors: ["Black", "White"], players: [ { name: "Alan Anderson", number: 0, shoe: 16, points: 22, rebo...
25,149
https://github.com/Nutria-LUG/openair-dashboard/blob/master/src/apps/table/plugins/vuex/state.ts
Github Open Source
Open Source
MIT
null
openair-dashboard
Nutria-LUG
TypeScript
Code
12
24
import { IStoreState } from '../../interfaces'; export const state: IStoreState = {};
10,910
https://github.com/fennadew/boilerplate-html/blob/master/webpack.dev.js
Github Open Source
Open Source
MIT
2,019
boilerplate-html
fennadew
JavaScript
Code
90
326
const merge = require('webpack-merge') const common = require('./webpack.common.js') const webpack = require('webpack') module.exports = merge(common, { mode: 'development', output: { filename: 'js/bundle.js', chunkFilename: `js/[name].js` }, devServer: { contentBase: './dist', hot: true }, ...
40,158
https://github.com/si9ma/KillOJ-backend/blob/master/vendor/github.com/si9ma/KillOJ-common/asyncjob/init.go
Github Open Source
Open Source
MIT
null
KillOJ-backend
si9ma
Go
Code
58
238
package asyncjob import ( "github.com/RichardKnop/machinery/v1" "github.com/RichardKnop/machinery/v1/brokers/iface" machlog "github.com/RichardKnop/machinery/v1/log" ) // manual init func Init(cfg Config) (machineryServer *machinery.Server, err error) { machineryCfg := cfg.toMachineryCfg() var machineryBroker ...
25,829
https://github.com/pulumi/pulumi-gcp/blob/master/sdk/java/src/main/java/com/pulumi/gcp/compute/inputs/RegionUrlMapDefaultRouteActionArgs.java
Github Open Source
Open Source
BSD-3-Clause, MPL-2.0, Apache-2.0
2,023
pulumi-gcp
pulumi
Java
Code
2,603
5,354
// *** WARNING: this file was generated by pulumi-java-gen. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package com.pulumi.gcp.compute.inputs; import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.gcp.compute.inputs.RegionUrlMapDefaultRou...
53,791
https://github.com/hgupta9/Sandy3D/blob/master/src/sandy/materials/IAlphaMaterial.as
Github Open Source
Open Source
MIT
2,021
Sandy3D
hgupta9
null
Spoken
63
151
 package sandy.materials { /** * Interface for setting and getting alpha on a material. * * @author flexrails * @version 3.1 * @date 22.03.2008 **/ public interface IAlphaMaterial { /** * Indicates the alpha transparency value of the material. Valid values are 0 (fully transparent) to 1 (fully...
21,914
https://github.com/GSSBuse/GSSB/blob/master/src/main/webapp/static/frontend-jam/static/vendors/avalon/plugin/mmRouter/mmState.js
Github Open Source
Open Source
MIT, Apache-2.0
2,018
GSSB
GSSBuse
JavaScript
Code
3,264
12,539
define(["../mmPromise/mmPromise", "./mmRouter"], function() { //重写mmRouter中的route方法 avalon.router.route = function(method, path, query, options) { path = path.trim() var states = this.routingTable[method] for (var i = 0, el; el = states[i++]; ) {//el为一个个状态对象,状态对象的callback总是返回一个Promise ...
55,473
https://github.com/golangee/gotrino-make/blob/master/Makefile
Github Open Source
Open Source
Apache-2.0
null
gotrino-make
golangee
Makefile
Code
9
38
all: go build ./... golangci-lint run --enable-all --exclude-use-default=false --disable=paralleltest
27,047
https://github.com/Neotoxic-off/Epitech2024/blob/master/B-CPP-300-LYN-3-1-CPPD16/ex00/DomesticKoala.hpp
Github Open Source
Open Source
Apache-2.0
2,022
Epitech2024
Neotoxic-off
C++
Code
74
304
/* ** EPITECH PROJECT, 2020 ** B-CPP-300-LYN-3-1-CPPD16- ** File description: ** DomesticKoala.hpp */ #ifndef _DOMESTICKOALA_HPP_ #define _DOMESTICKOALA_HPP_ #include <iostream> #include <string> #include <vector> #include "KoalaAction.hpp" class DomesticKoala { public: Dome...
18,594
https://github.com/gilbertgit95/py-tests/blob/master/basics/9 - multiple conditions/app.py
Github Open Source
Open Source
MIT
null
py-tests
gilbertgit95
Python
Code
33
92
lang = input('Enter your Language: ') lang = lang.lower() if lang == 'english': print('good day my friend') elif lang == 'tagalog': print('magandang araw kaibigan') elif lang == 'bisaya': print('maayong adlaw bai') else: print(':-)')
16,961
https://github.com/bachitoph/Cuis-Smalltalk-Dev/blob/master/CoreUpdates/1531-CuisCore-JuanVuletich-2013Jan02-15h32m-jmv.1.cs.st
Github Open Source
Open Source
MIT
2,015
Cuis-Smalltalk-Dev
bachitoph
null
Spoken
566
1,567
'From Cuis 4.1 of 12 December 2012 [latest update: #1530] on 2 January 2013 at 3:34 pm'! !String methodsFor: 'user interface' stamp: 'jmv 1/2/2013 15:26'! editLabel: labelString TextModel new contents: self; openLabel: labelString! ! !Text methodsFor: 'user interface' stamp: 'jmv 1/2/2013 15:26'! editLabel: labelS...
52,838
https://github.com/lechium/tvOS145Headers/blob/master/System/Library/PrivateFrameworks/PhotosUICore.framework/PXTitleSubtitleCALayerPromise.h
Github Open Source
Open Source
MIT
2,021
tvOS145Headers
lechium
C
Code
267
1,036
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:06:43 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/PrivateFrameworks/PhotosUICo...
50,166
https://github.com/korjjh1216/good-casting-personal/blob/master/fe/src/scss/controls/_theme-color-maping.scss
Github Open Source
Open Source
MIT
2,021
good-casting-personal
korjjh1216
SCSS
Code
205
774
$theme-colors: () ; $theme-colors: map-merge( ( "primary" : $primary, "secondary" : $secondary, "white" : $white, "green" : $green, "blue" : $blue, "eastern" : $eastern-blue, "denim" : $denim-blue, "dodger" : $dodger-blue, "d...
16,454
https://github.com/aravindhrs/camunda-bpm-data/blob/master/mockito/src/main/kotlin/TaskServiceVariableMockBuilder.kt
Github Open Source
Open Source
Apache-2.0
2,020
camunda-bpm-data
aravindhrs
Kotlin
Code
299
1,020
package io.holunda.camunda.bpm.data.mockito import com.nhaarman.mockito_kotlin.any import com.nhaarman.mockito_kotlin.doAnswer import com.nhaarman.mockito_kotlin.eq import com.nhaarman.mockito_kotlin.whenever import io.holunda.camunda.bpm.data.factory.VariableFactory import org.camunda.bpm.engine.TaskService import or...
8,536
https://github.com/earlman/me-styles-shipwright/blob/master/01 - Color/_index.sass
Github Open Source
Open Source
MIT
2,020
me-styles-shipwright
earlman
Sass
Code
4
13
@import "_colors" @import "_defaultcolors"
51,051
https://github.com/Drimpac2020eu/usef/blob/master/usef-build/usef-workflow/usef-dso/src/test/java/energy/usef/dso/workflow/validate/create/flexorder/DsoFlexOrderCoordinatorTest.java
Github Open Source
Open Source
Apache-2.0
2,020
usef
Drimpac2020eu
Java
Code
502
2,750
/* * Copyright 2015-2016 USEF Foundation * * 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 agree...
56,457
https://github.com/Lambda-School-Labs/memefy-be/blob/master/src/Routes/__tests__/AccountRouter.spec.ts
Github Open Source
Open Source
MIT
null
memefy-be
Lambda-School-Labs
TypeScript
Code
1,090
3,510
import testAccount, { ITestAccount } from "../../models/__tests__/utils/testAccount"; import {expect, assert} from "chai"; import jwt, { JsonWebTokenError } from "jsonwebtoken"; import axios, { AxiosRequestConfig } from "axios"; import "mocha"; import {spawn} from "child_process"; import AccountModel from "../../models...
23,153
https://github.com/tchon/react-data-components/blob/master/src/PageItems.js
Github Open Source
Open Source
MIT
2,015
react-data-components
tchon
JavaScript
Code
49
146
'use strict'; var React = require('react'); class PageItems { render() { var self = this; var {id, dataLength, startIndex, endIndex} = this.props; var start = startIndex + 1; return ( <div className="ns-inline-block pull-left ns-page-items"> Items {start} &ndash; {endIndex} of {dataL...
35,475
https://github.com/Gulpi/ClinicalReasoningTool/blob/master/ClinReasonTool/src/java/test/Confidence.java
Github Open Source
Open Source
MIT
null
ClinicalReasoningTool
Gulpi
Java
Code
112
328
package test; /** * Level of confidence, e.g. with the DDX, stored as a value between 1-100. * 1-25: not at all confident, 26-50: somewhat confident , 51-75: confident, 76-100:very confident * @author ingahege * @deprecated */ public class Confidence { public static final int NOT_CONFIDENT = 1; public static f...
22,157
https://github.com/jiangkeyuan/Hyphenopoly/blob/master/lang/sl/src/g.ts
Github Open Source
Open Source
MIT
2,020
Hyphenopoly
jiangkeyuan
TypeScript
Code
66
122
export const to: i32 = 184752; export const po: i32 = 184874; export const pl: i32 = 4049; export const vs: i32 = 1536; export const pt: i32 = 5196; export const wo: i32 = 183800; export const tw: i32 = 183928; export const hp: i32 = 183992; export const hw: i32 = 184056; export const lm: i32 = 2; export const rm: i32 ...
4,782
https://github.com/msaari/gamestats/blob/master/frontend/src/overmind/index.js
Github Open Source
Open Source
MIT
2,020
gamestats
msaari
JavaScript
Code
41
87
import { createHook } from "overmind-react" import state from "./state" import * as actions from "./actions" import * as effects from "./effects" import onInitialize from "./onInitialize" export const config = { onInitialize, state, actions, effects } export const useOvermind = createHook()
13,137
https://github.com/holtsoftware/potential-octo-wallhack/blob/master/School C++/other/lpc/receive.3
Github Open Source
Open Source
Apache-2.0
null
potential-octo-wallhack
holtsoftware
null
Spoken
86
164
.\"displays a message to the current object .TH receive 3 "5 Sep 1994" MudOS "LPC Library Functions" .SH NAME receive() - displays a message to the current object .SH SYNOPSIS int receive( string message ); .SH DESCRIPTION This efun is an interface to the add_message() function in the driver. Its purpose is to displ...
19,959
https://github.com/conundrumer/musicpsych/blob/master/test/spec/components/FormGroup.js
Github Open Source
Open Source
MIT
2,015
musicpsych
conundrumer
JavaScript
Code
36
105
'use strict'; describe('FormGroup', function () { var React = require('react/addons'); var FormGroup, component; beforeEach(function () { FormGroup = require('components/FormGroup.js'); component = React.createElement(FormGroup); }); it('should create a new instance of FormGroup', function () { ...
53,392
https://github.com/nickfargo/pim/blob/master/lib/helpers.js
Github Open Source
Open Source
MIT
2,014
pim
nickfargo
JavaScript
Code
592
1,692
// Generated by CoffeeScript 1.7.1 (function() { var ArrayIterator, PairwiseArrayIterator, base32, base32p, bin32p, format, formatWithHashes, formatWithHashesInBase32, hashOf, hashOfObject, hashOfString, hex32p, iteratorOf, pairwiseIteratorOf, populationOf, print, rxType, typeOf, uid, valueOf, _ref, _uid; _ref = r...
33,050
https://github.com/atrn/ici/blob/master/int.cc
Github Open Source
Open Source
MIT
2,021
ici
atrn
C++
Code
284
756
#define ICI_CORE #include "fwd.h" #include "int.h" #include "primes.h" #include "archiver.h" namespace ici { integer *small_ints[small_int_count]; /* * Return the int object with the value 'v'. The returned object has had its * ref count incremented. Returns nullptr on error, usual convention. Note that * ints...
55,089
https://github.com/getActivity/Logcat/blob/master/library/src/main/java/com/hjq/logcat/LogcatActivity.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
Logcat
getActivity
Java
Code
1,380
6,416
package com.hjq.logcat; import android.Manifest; import android.annotation.SuppressLint; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.res.Configuration; import an...
52,016
https://github.com/christian-fuss/rocket/blob/master/packages/cli/test-node/merge-templates-fixtures/order/docs/_includes/_joiningBlocks/layout/30-first.njk
Github Open Source
Open Source
MIT
2,021
rocket
christian-fuss
null
Spoken
1
11
<p>30-first</p>
33,790
https://github.com/krzysg/FaspHeuristic/blob/master/benchmark/benchmarks/FASP-benchmarks/data/random-oriented/randomoriented-1646-450-1440.al
Github Open Source
Open Source
MIT
null
FaspHeuristic
krzysg
Perl
Code
1,890
3,780
1 93 214 246 330 419 2 209 375 3 392 4 47 72 5 72 96 300 346 6 43 183 421 7 2 276 8 72 368 420 9 28 276 284 419 10 23 83 184 252 404 11 8 76 181 281 372 12 103 242 243 327 391 13 5 14 57 133 205 329 384 385 410 424 440 15 16 135 185 283 17 88 279 322 328 18 13 27 185 275 19 198 20 145 245 21 141 209 259 375 22 118 390 ...
13,031
https://github.com/LeoLy77/Project-Plutus-Gold/blob/master/AWR1843/mmwave_sdk_18xx_dss/isk/configPkg/package/cfg/mmw_dss_pe674.cfg.mak
Github Open Source
Open Source
Unlicense, MIT
null
Project-Plutus-Gold
LeoLy77
Makefile
Code
19
170
# invoke SourceDir generated makefile for mmw_dss.pe674 mmw_dss.pe674: .libraries,mmw_dss.pe674 .libraries,mmw_dss.pe674: package/cfg/mmw_dss_pe674.xdl $(MAKE) -f C:\Users\Jimmy\Desktop\Git\Project\AWR1843\mmwave_sdk_18xx_dss/src/makefile.libs clean:: $(MAKE) -f C:\Users\Jimmy\Desktop\Git\Project\AWR1843\mmwave_sdk_...
20,517
https://github.com/lega911/vscode-python/blob/master/src/test/constants.ts
Github Open Source
Open Source
MIT
null
vscode-python
lega911
TypeScript
Code
123
425
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { workspace } from 'vscode'; import { PythonSettings } from '../client/common/configSettings'; // import { IS_APPVEYOR, IS_CI_SERVER, IS_CI_SERVER_TEST_DEBUGGER, // IS_TRAVIS, IS_VSTS, MOCHA_CI_PROPERTIES, MOCHA_...
37,247
https://github.com/h43z/vim-vixen/blob/master/e2e/command_buffer.test.ts
Github Open Source
Open Source
MIT
null
vim-vixen
h43z
TypeScript
Code
533
1,499
import * as path from 'path'; import * as assert from 'assert'; import { Request, Response } from 'express'; import TestServer from './lib/TestServer'; import eventually from './eventually'; import { Builder, Lanthan } from 'lanthan'; import { WebDriver } from 'selenium-webdriver'; import Page from './lib/Page'; desc...
33,901
https://github.com/datarootsio/bikefitting/blob/master/backend/src/utils/keypoints.py
Github Open Source
Open Source
MIT
2,022
bikefitting
datarootsio
Python
Code
48
186
# Dictionary that maps from joint names to keypoint indices. KEYPOINT_DICT = { "nose": 0, "left_eye": 1, "right_eye": 2, "left_ear": 3, "right_ear": 4, "left_shoulder": 5, "right_shoulder": 6, "left_elbow": 7, "right_elbow": 8, "left_wrist": 9, "right_wrist": 10, "left_hi...
28,479
https://github.com/t2y/microserver-sample/blob/master/src/main/java/com/example/microserver/ObjectMapperProvider.java
Github Open Source
Open Source
Apache-2.0
null
microserver-sample
t2y
Java
Code
47
199
package com.example.microserver; import javax.inject.Inject; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.ext.ContextResolver; import javax.ws.rs.ext.Provider; import com.fasterxml.jackson.databind.ObjectMapper; @Provider @Produces(MediaType.APPLICATION_JSON) public class Object...
4,419
https://github.com/aabarmin/epam-spring-testing/blob/master/external-post-generator/src/main/java/com/epam/community/z/spring/test/service/sync/export/PostGenerationController.java
Github Open Source
Open Source
Apache-2.0
2,021
epam-spring-testing
aabarmin
Java
Code
50
323
package com.epam.community.z.spring.test.service.sync.export; import com.epam.community.z.spring.test.service.sync.model.ExportRequest; import com.epam.community.z.spring.test.service.sync.model.ExportResponse; import com.epam.community.z.spring.test.service.sync.service.PostGenerationService; import org.springframewo...
37,501
https://github.com/logansease/QwikJson/blob/master/QwikJson.podspec
Github Open Source
Open Source
MIT
2,022
QwikJson
logansease
Ruby
Code
315
658
# # Be sure to run `pod lib lint QwikJson.podspec' to ensure this is a # valid spec before submitting. # # Any lines starting with a # are optional, but their use is encouraged # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html # Pod::Spec.new do |s| s.name = "QwikJson" s.v...
47,575
https://github.com/peacefullatom/dev/blob/master/src/app/page/utilities/utilities-concurrently/const.ts
Github Open Source
Open Source
MIT
2,019
dev
peacefullatom
TypeScript
Code
31
86
import { emptyPath } from 'src/app/const'; import { IRoute } from 'src/app/types'; import { UtilitiesConcurrentlyComponent } from './utilities-concurrently.component'; export const utilitiesConcurrentlyComponentRoutes: IRoute[] = [ { path: emptyPath, component: UtilitiesConcurrentlyComponent } ];
56,104
https://github.com/aiiksveryown/force/blob/master/src/desktop/components/search_bar/index.styl
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,019
force
aiiksveryown
Stylus
Code
388
1,471
@require '../stylus_lib' logo-size = home-logo-size suggestion-thumbnail-size = default-icon-font-size suggestion-height = (suggestion-thumbnail-size + 20px) #main-layout-search-bar-container position relative width 100% height header-logo-icon-size margin ((home-logo-size - header-logo-icon-size) / 2) 0 pa...
42,076
https://github.com/Snektron/zig/blob/master/lib/libc/include/any-windows-any/d3dnthal.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-other-permissive, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain
2,021
zig
Snektron
C
Code
650
3,522
/* * d3dnthal.h * * Direct3D NT driver interface * * Contributors: * Created by Ge van Geldorp * * THIS SOFTWARE IS NOT COPYRIGHTED * * This source code is offered for use in the public domain. You may * use, modify or distribute it freely. * * This code is distributed in the hope that it will be useful ...
5,837
https://github.com/inderpal2406/python/blob/master/udemy/01_walkthrough/title.py
Github Open Source
Open Source
MIT
null
python
inderpal2406
Python
Code
59
121
#!/usr/bin/env python3 # This script will accept a string. # Then check if input string is in title format or not # If not then convert it to title format and print import os os.system("clear") input_string=input("Enter the string: ") if input_string.istitle(): print(f"Your string is already in title format.") e...
30,113
https://github.com/caffeine-mgn/ekdb/blob/master/db/src/commonTest/kotlin/com/ekdb/TreeIndexTest.kt
Github Open Source
Open Source
Apache-2.0
null
ekdb
caffeine-mgn
Kotlin
Code
129
607
package com.ekdb import kotlin.test.Test import kotlin.test.assertEquals class TreeIndexTest { @Test fun test() { val indexColumns = intArrayOf(0, 1, 2) val c = MemTreeIndex(indexColumns, false) c.insert(Record(arrayOf(Value.IntegerValue(10), Value.IntegerValue(11), Value.IntegerValue...
35,034
https://github.com/Joeao/phosphor-react-native/blob/master/src/fill/Quotes.tsx
Github Open Source
Open Source
MIT
null
phosphor-react-native
Joeao
TypeScript
Code
48
335
/* GENERATED FILE */ import * as React from "react"; import Svg, { Rect, Path } from "react-native-svg"; import { IconProps } from '../lib' function Quotes(props: IconProps) { return <Svg viewBox="0 0 256 256" width={props.size} height={props.size} fill={props.color} {...props}><Rect width={256} height={256} fill="...
36,405
https://github.com/alexanv/go-transcode/blob/master/profiles/hls/copy.sh
Github Open Source
Open Source
Apache-2.0
2,021
go-transcode
alexanv
Shell
Code
45
155
#!/bin/sh exec ffmpeg -hide_banner -loglevel warning \ -i "${1}" \ -map 0:v:0 -map 0:a:0 \ -c:a copy \ -c:v copy \ -f hls \ -hls_time 2 \ -hls_list_size 5 \ -hls_wrap 10 \ -hls_delete_threshold 1 \ -hls_flags delete_segments \ -hls_start_number_source datetime \ -hls_segment_filen...
40,698
https://github.com/liyanjun/renren-security/blob/master/renren-web/src/main/java/io/renren/controller/GamePropertyValueController.java
Github Open Source
Open Source
Apache-2.0
2,017
renren-security
liyanjun
Java
Code
158
780
package io.renren.controller; import java.util.List; import java.util.Map; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBod...
52,801
https://github.com/shilpasayura/java/blob/master/basic/Equality.java
Github Open Source
Open Source
MIT
2,021
java
shilpasayura
Java
Code
60
183
class Car{ int x; Car(int i){ x=i; } } public class Equality { public static void main (String args[]) { Car Obj1, Obj2, Obj3; Obj1 = new Car(7); Obj2= Obj1; System.out.println(Obj1.x+ " : " + Obj2.x); System.out.println("Same? " + (Obj1 == Obj2)); Obj3= new Car(7); System.out.println(Obj1.x+ " : " + Obj2....
28,141