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/Doozer-Framework/Doozr/blob/master/src/Doozr/Di/Parser/Annotation.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Doozr | Doozer-Framework | PHP | Code | 1,563 | 3,873 | <?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* Doozr - Di - Parser - Annotation.
*
* Annotation.php - Annotation Parser of the Di.
*
* PHP versions 5.5
*
* LICENSE:
* Doozr - The lightweight PHP-Framework for high-performance websites
*
* Copyright (c) 2005 - 2016, Benjamin Carl ... | 43,340 |
https://github.com/shok2004/Acute-Angle-Chain/blob/master/docs/latex/structdetail_1_1_take_n_imp_3_01false_00_01_n_00_01_argument_list_i_d_3_01_a1_8_8_8_01_4_00_01_f071c7fe02967668ae0362ef4b23f1e02.dot | Github Open Source | Open Source | MIT, BSD-3-Clause, Apache-2.0 | 2,018 | Acute-Angle-Chain | shok2004 | Graphviz (DOT) | Code | 47 | 280 | digraph "detail::TakeNImp< false, N, ArgumentListID< A1... >, F, R... >"
{
edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"];
node [fontname="Helvetica",fontsize="10",shape=record];
Node2 [label="detail::TakeNImp\< false,\l N, ArgumentListID\< A1...\l \>, F, R... \... | 12,423 |
https://github.com/belongco/belong-ui/blob/master/packages/revamped-button/src/index.js | Github Open Source | Open Source | MIT | 2,020 | belong-ui | belongco | JavaScript | Code | 134 | 540 | // vendor modules
import React from 'react';
import PropTypes from 'prop-types';
import getClassnames from 'classnames';
import _ from 'lodash';
import './index.scss';
/**
* @example ../README.md
*/
export default class RevampedButton extends React.Component {
static propTypes = {
name: PropTypes.string,
... | 34,446 |
https://github.com/terrorizer1980/senzing-api-server/blob/master/src/main/java/com/senzing/api/services/EntityDataServices.java | Github Open Source | Open Source | Apache-2.0 | null | senzing-api-server | terrorizer1980 | Java | Code | 4,640 | 14,384 | package com.senzing.api.services;
import com.senzing.api.model.*;
import com.senzing.g2.engine.G2Engine;
import com.senzing.util.JsonUtils;
import com.senzing.util.SemanticVersion;
import com.senzing.util.Timers;
import javax.json.*;
import javax.ws.rs.*;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriIn... | 12,552 |
https://github.com/lineCode/gecko-1/blob/master/libs/sqlite/database.cpp | Github Open Source | Open Source | MIT | 2,018 | gecko-1 | lineCode | C++ | Code | 137 | 354 | //
// Copyright (c) 2015 Ian Godin
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#include <base/contract.h>
#include "database.h"
#include "sqlite3.h"
namespace sqlite
{
////////////////////////////////////////
database::database( std::st... | 45,190 |
https://github.com/GoranGit/JS-Basic/blob/master/Homework/Strings/10FindPalindromes.js | Github Open Source | Open Source | MIT | null | JS-Basic | GoranGit | JavaScript | Code | 56 | 184 | /**
* Write a program that extracts from a given text all palindromes, e.g. "ABBA", "lamal", "exe".
*/
//test variable
var text = 'oko aabbaa lamal hahaha!';
console.log(findPalindromes(text));
function findPalindromes(text)
{
var arr = text.split(' ').filter(function(a){
return !!a;
}),
... | 27,005 |
https://github.com/yappy/Fever/blob/master/src/gamelib/util/Trace.java | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-Warranty | null | Fever | yappy | Java | Code | 181 | 474 | package gamelib.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
/**
* Debug output.<br>
* You can output to console for IDE, also can output to file for distribution version.
* @author yappy
*/
public final class Trace {
private static boolean ... | 50,303 |
https://github.com/yanyingwang/24-solar-terms/blob/master/main.rkt | Github Open Source | Open Source | Apache-2.0 | 2,020 | 24-solar-terms | yanyingwang | null | Spoken | 352 | 1,665 | #lang at-exp racket/base
(require gregor
racket/format
racket/list
racket/dict
;; (file "houying.rkt")
;; (file "jieqi.rkt")
;; (file "shijie.rkt")
;; (file "shihou.rkt")
)
(provide
;; 二十四节气
;; 二十四时节
;; 七十二候应
... | 50,522 |
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/passport-http/passport-http-tests.ts | Github Open Source | Open Source | MIT | 2,023 | DefinitelyTyped | DefinitelyTyped | TypeScript | Code | 354 | 1,065 | /**
* Created by Christophe Vidal <https://github.com/krizalys>
*/
import passport = require("passport");
import http = require("passport-http");
import express = require("express");
interface UserInterface {
username: string;
password?: string | undefined;
}
class User {
password: string;
static ... | 44,307 |
https://github.com/flo80/redirect/blob/master/pkg/storage/mapredirect.go | Github Open Source | Open Source | MIT | null | redirect | flo80 | Go | Code | 421 | 1,205 | package storage
import (
"encoding/json"
"fmt"
log "github.com/sirupsen/logrus"
)
// MapRedirect saves redirects in a map in memory
// Per default it uses a ruslog default logger, this can be overwritten with NewMapRedirector(logger)
type MapRedirect struct {
Hosts map[string]map[string]string // map[hostname][... | 47,483 |
https://github.com/jojomango/rumors-site/blob/master/components/ListPageDisplays/ListPageCards.js | Github Open Source | Open Source | MIT | 2,021 | rumors-site | jojomango | JavaScript | Code | 59 | 145 | import cx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
const useStyles = makeStyles(() => ({
root: {
display: 'grid',
gridRowGap: 12,
},
}));
/**
* Container for all cards in list page.
*
* @param {string?} className
*/
function ListPageCards({ className, ...otherProps }) {
co... | 10,130 |
https://github.com/ror/ember-cli-admin/blob/master/addon/components/admin-table-head.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,015 | ember-cli-admin | ror | JavaScript | Code | 7 | 27 | import AdminTableHead from '../../app/components/admin-table-head';
export default AdminTableHead;
| 13,326 |
https://github.com/dbartholomae/lambda-middleware/blob/master/packages/json-deserializer/src/customErrors/RequestBodyNotJsonError.ts | Github Open Source | Open Source | MIT | 2,022 | lambda-middleware | dbartholomae | TypeScript | Code | 66 | 162 | export class RequestBodyNotJsonError extends Error {
body: string;
innerError: Error;
statusCode: 400;
// Ignoring the following constructor block due to how coverage is applied on certain transpiled ES5 code
// see here for more details about this issue: https://github.com/microsoft/TypeScript/issues/13029
... | 36,713 |
https://github.com/venku31/niyopolymers/blob/master/niyopolymers/niyopolymers/report/import_cost_sheet/import_cost_sheet.js | Github Open Source | Open Source | MIT | null | niyopolymers | venku31 | JavaScript | Code | 131 | 674 | // Copyright (c) 2016, Atriina and contributors
// For license information, please see license.txt
/* eslint-disable */
frappe.query_reports["Import Cost Sheet"] = {
"filters": [
{
"fieldname":"import_cost_sheet",
"label": __('Import Cost Sheet'),
"fieldtype": "Link",
"options": "Import Cost Sheet",
... | 40,889 |
https://github.com/JianyuanXiao/SymPIC/blob/master/dmshell.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | SymPIC | JianyuanXiao | C | Code | 20,000 | 57,500 | #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #ifndef NCSPIC_SEQ_FIELD #include <mpi.h> #define PS_MPI_CHAR MPI_CHAR #define PS_MPI_INT MPI_INT #define PS_MPI_DOUBLE MPI_DOUBLE #define PS_MPI_FLOAT MPI_FLOAT #define PS_MPI_LONG MPI_LONG #define PS_MPI_LONG_LONG MPI_LONG_LONG #define PS_... | 51,512 |
https://github.com/igniterealtime/openfire-clientControl-plugin/blob/master/src/java/org/jivesoftware/openfire/plugin/spark/manager/FileTransferFilterManager.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | openfire-clientControl-plugin | igniterealtime | Java | Code | 266 | 696 | /*
* Copyright (C) 1999-2008 Jive Software. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 43,660 |
https://github.com/lucas72466/Memo-front-end/blob/master/node_modules/element-plus/lib/components/config-provider/src/config-provider.js | Github Open Source | Open Source | MIT | null | Memo-front-end | lucas72466 | JavaScript | Code | 153 | 470 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
require('../../../utils/index.js');
require('../../../hooks/index.js');
var props = require('../../../utils/vue/props.js');
var index = require('../../../hooks/use-global-config/index.js');
const messageConfig = {}... | 48,962 |
https://github.com/candoumbe/MedEasy/blob/master/src/services/identity/Identity.API/IdentityApiOptions.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | MedEasy | candoumbe | C# | Code | 72 | 135 | namespace Identity.API
{
/// <summary>
/// Options that change the API behavior
/// </summary>
public class IdentityApiOptions
{
/// <summary>
/// Gets/sets the maximum number of elements that an endpoint can return at once.
/// </summary>
public int MaxPageSize { ge... | 24,104 |
https://github.com/StephanEggermont/PharoJS/blob/master/Pharo/PharoJsCoreLibraries/Symbol.extension.st | Github Open Source | Open Source | MIT | 2,022 | PharoJS | StephanEggermont | null | Spoken | 19 | 44 | Extension { #name : #Symbol }
{ #category : #'*PharoJsCoreLibraries' }
Symbol class >> javascriptPlaceholder [
^ PjString
]
| 13,619 |
https://github.com/rebeam-org-zz/pandocker/blob/master/filters/graphviz.lua | Github Open Source | Open Source | MIT | 2,020 | pandocker | rebeam-org-zz | Lua | Code | 323 | 795 | -- Based on https://github.com/Hakuyume/pandoc-filter-graphviz with additional step to generate high-dpi png images, and using pdf for latex rather than dot2tex
local function has_value (tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
... | 10,897 |
https://github.com/3rwww1/celluloid/blob/master/packages/client/src/scenes/Project/scenes/Video/components/AnnotationEditor/AnnotationEditorComponent.tsx | Github Open Source | Open Source | MIT | 2,018 | celluloid | 3rwww1 | TSX | Code | 496 | 1,812 | import 'rc-slider/assets/index.css';
import {
Button,
Checkbox,
createStyles,
FormControlLabel,
IconButton,
Theme,
Typography,
WithStyles,
withStyles
} from '@material-ui/core';
import { deepOrange } from '@material-ui/core/colors';
import CheckIcon from '@material-ui/icons/Check';
import CancelIcon ... | 12,525 |
https://github.com/rapchu/SmartParkingSystem/blob/master/chennai.php | Github Open Source | Open Source | MIT | null | SmartParkingSystem | rapchu | PHP | Code | 116 | 700 | <!doctype html>
<html lang="en">
<head>
<?php include 'components/header.php';?>
</head>
<body>
<?php include 'components/navbar.php';?>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Chennai
</h1>
<ol class="brea... | 43,775 |
https://github.com/MarquezLuis96/Basic-Programming-Course/blob/master/08 - Eighth project - Arduino/03 - Robot using Arduino and NodeJs/arduino.js | Github Open Source | Open Source | MIT | null | Basic-Programming-Course | MarquezLuis96 | JavaScript | Code | 87 | 291 | var port5 = require("johnny-five");
var circuit = new port5.Board();
var lightBulb;
var servo;
var cell;
var turno = 0;
circuit.on("ready", turnOn);
function turnOn() {
var configuration = {pin:"A0", freq: 50}
celda = new port5.Sensor(configuration);
lightBulb = new port5.Led(13);
lightBulb.on();
... | 44,902 |
https://github.com/TyrfingX/TyrLib/blob/master/legacy/TyrLib2/src/com/tyrlib2/graphics/renderables/FormattedText2.java | Github Open Source | Open Source | MIT | 2,017 | TyrLib | TyrfingX | Java | Code | 1,672 | 5,441 | package com.tyrlib2.graphics.renderables;
import java.util.ArrayList;
import java.util.List;
import com.tyrlib2.graphics.renderer.IBlendable;
import com.tyrlib2.graphics.renderer.Program;
import com.tyrlib2.graphics.renderer.RenderableSceneObject;
import com.tyrlib2.graphics.renderer.TyrGL;
import com.tyrlib2.graphic... | 35,277 |
https://github.com/jeffyjo/netlify-cms/blob/master/src/styles/1-settings/colors.scss | Github Open Source | Open Source | MIT | null | netlify-cms | jeffyjo | SCSS | Code | 15 | 95 | // Brand Colors
$color-brand-dark: #2F2F2F;
$color-brand-light: #f2f2f2;
// Implementation
$main-text: $color-brand-light;
$main-text--inverse: $color-brand-dark;
$header-background: $color-brand-dark;
| 28,621 |
https://github.com/dalalsunil1986/rust_os/blob/master/src/asm_routines/debug.asm | Github Open Source | Open Source | MIT | 2,021 | rust_os | dalalsunil1986 | Assembly | Code | 25 | 73 | ; Debug and system panic routines
[BITS 64]
global panic_stop
section .text
panic_stop:
mov rax, 0x4f214f214f214f21 ; !!!!
mov [0xb8000], rax
cli
hlt
jmp $
| 16,390 |
https://github.com/catedrasaes-umu/NoSQLDataEngineering/blob/master/projects/es.um.unosql.xtext.orion.parent/es.um.unosql.xtext.orion/src/es/um/unosql/xtext/orion/OrionRuntimeModule.xtend | Github Open Source | Open Source | MIT | 2,021 | NoSQLDataEngineering | catedrasaes-umu | null | Spoken | 48 | 142 | /*
* generated by Xtext 2.25.0
*/
package es.um.unosql.xtext.orion
import org.eclipse.xtext.validation.NamesAreUniqueValidationHelper
import es.um.unosql.xtext.orion.validation.OrionNamesAreUniqueValidator
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
... | 37,902 |
https://github.com/zenflow/routeemitter/blob/master/lib/client.js | Github Open Source | Open Source | MIT | null | routeemitter | zenflow | JavaScript | Code | 188 | 616 | if (!process.browser){throw new Error('this is a client-only module');}
var _ = require('lodash');
var History = require('html5-history');
var routers = [];
var client = {
bindRouter: function(router){
routers.push(router);
attachLinkHandler(router);
},
unbindRouter: function(router){
... | 32,997 |
https://github.com/yiyuanyan/FF14Server/blob/master/storage/framework/views/4d305bb151647d538240942076584fb3ef4855e6.php | Github Open Source | Open Source | MIT | null | FF14Server | yiyuanyan | PHP | Code | 161 | 865 | <?php $__env->startSection("content"); ?>
<!-- start: Content -->
<div id="content" class="span10">
<ul class="breadcrumb">
<li>
<i class="icon-home"></i>
<a href="index.html">Home</a>
<i class="icon-angle-right"></i>
</li>
<li><a href="#">Tables</a></li>
</ul>
<div class="row-fluid sortable">
... | 49,655 |
https://github.com/hmrc/awrs-notification/blob/master/build.sbt | Github Open Source | Open Source | Apache-2.0 | null | awrs-notification | hmrc | Scala | Code | 137 | 581 | import uk.gov.hmrc.DefaultBuildSettings.{addTestReportOption, defaultSettings, scalaSettings}
import uk.gov.hmrc.sbtdistributables.SbtDistributablesPlugin.publishingSettings
import play.sbt.routes.RoutesKeys
val appName: String = "awrs-notification"
lazy val appDependencies : Seq[ModuleID] = AppDependencies()
lazy va... | 22,699 |
https://github.com/18334581089/GitHub-Pro/blob/master/client/src/pages/issues/issue-detail/index.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | GitHub-Pro | 18334581089 | SCSS | Code | 73 | 227 | .wrap {
padding: 20px 20px 40px;
height: 100vh;
background: $itemBg;
}
.header {
}
.meta {
font-size: 28px;
font-weight: 400;
}
.title {
font-size: 32px;
}
.content {
padding-top: 20px;
}
.author {
display: flex;
}
.avatar {
}
.avatar-img {
width: 80px;
height: 80px;
margin: 0 20px;
border-ra... | 30,947 |
https://github.com/iBOT03/sayurmurah/blob/master/application/controllers/admin/Pasar.php | Github Open Source | Open Source | MIT | null | sayurmurah | iBOT03 | PHP | Code | 390 | 2,044 | <?php
defined('BASEPATH') or exit('No direct script access allowed');
class Pasar extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model("admin/Pasar_Model");
}
public function index()
{
$data['pasar'] = $this->Pasar_Model->getPas... | 31,664 |
https://github.com/smartive/generator-typescript-project/blob/master/app/generator.ts | Github Open Source | Open Source | MIT | null | generator-typescript-project | smartive | TypeScript | Code | 307 | 1,244 | import chalk from 'chalk';
import Generator = require('yeoman-generator');
import yosay = require('yosay');
import { GeneratorOptions } from './options';
import { Answers } from './prompting';
import { join } from 'path';
export class TypescriptProjectGenerator extends Generator {
protected generatorOptions!: Gener... | 12,466 |
https://github.com/juniorstart/junior-backend/blob/master/JuniorStart/DTO/RecruitmentInformationDto.cs | Github Open Source | Open Source | MIT | 2,020 | junior-backend | juniorstart | C# | Code | 189 | 461 | using System;
namespace JuniorStart.DTO
{
public class RecruitmentInformationDto
{
/// <summary>
/// Recruitment id
/// </summary>
public int Id { get; set; }
/// <summary>
/// company name where you apply
/// </summary>
/// <example>Orange</exam... | 15,630 |
https://github.com/anupama-pathirage/nballerina/blob/master/test/ll/Vfloat03.ll | Github Open Source | Open Source | Apache-2.0 | null | nballerina | anupama-pathirage | LLVM | Code | 304 | 907 | @_bal_stack_guard = external global i8*
declare i8 addrspace(1)* @_bal_panic_construct(i64) cold
declare void @_bal_panic(i8 addrspace(1)*) noreturn cold
declare i8 addrspace(1)* @_bal_float_to_tagged(double)
declare void @_Bio__println(i8 addrspace(1)*)
define void @_B_main() {
%x = alloca double
%1 = alloca i8 ad... | 42,991 |
https://github.com/CamilaBodack/aprenda-go-com-testes/blob/master/primeiros-passos-com-go/reflection/v4/reflection.go | Github Open Source | Open Source | MIT | 2,021 | aprenda-go-com-testes | CamilaBodack | Go | Code | 41 | 133 | package main
import (
"reflect"
)
func percorre(x interface{}, fn func(entrada string)) {
valor := reflect.ValueOf(x)
for i := 0; i < valor.NumField(); i++ {
campo := valor.Field(i)
switch campo.Kind() {
case reflect.String:
fn(campo.String())
case reflect.Struct:
percorre(campo.Interface(), fn)
... | 33,958 |
https://github.com/geneontology/noctua-models/blob/master/models/MGI_MGI_3651411.ttl | Github Open Source | Open Source | CC-BY-4.0 | 2,023 | noctua-models | geneontology | Turtle | Code | 491 | 5,887 |
<http://model.geneontology.org/MGI_MGI_3651411> 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... | 19,488 |
https://github.com/yamidgomar/unixjs/blob/master/lib/gwt/gui/text.js | Github Open Source | Open Source | MIT | 2,019 | unixjs | yamidgomar | JavaScript | Code | 155 | 704 | //##############################################################################################
//Class Gwt::Gui::Text
Gwt.Gui.Text = function (Placeholder)
{
Gwt.Gui.Frame.call (this);
this.SetHtml ("textarea");
this.SetClassName ("Gwt_Gui_Text");
this.SetExpand (true);
this.SetPadding (... | 1,997 |
https://github.com/strixeyecom/api-documenter/blob/master/src/components/Header.svelte | Github Open Source | Open Source | MIT | 2,021 | api-documenter | strixeyecom | null | Spoken | 56 | 253 | <script>
export let toggleHamburger;
export let exampleVisible;
export let toggleExample;
</script>
<header>
<div class="header-left">
<a
href={'#'}
class="hamburger-toggler"
on:click={toggleHamburger}
>
<i class="fa fa-bars" aria-hidden="... | 33,158 |
https://github.com/Gela/arcgis-runtime-samples-qt/blob/master/ArcGISRuntimeSDKQt_CppSamples/Scenes/GetElevationAtPoint/GetElevationAtPoint.qml | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,021 | arcgis-runtime-samples-qt | Gela | null | Spoken | 263 | 565 | // [WriteFile Name=GetElevationAtPoint, Category=Scenes]
// [Legal]
// Copyright 2019 Esri.
// 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
//... | 31,123 |
https://github.com/VJAI/angular-ui-components/blob/master/projects/lib/src/components/form/textbox/datatype.ts | Github Open Source | Open Source | MIT | 2,021 | angular-ui-components | VJAI | TypeScript | Code | 17 | 38 | export enum Datatype {
Text = 'text',
Number = 'number',
Password = 'password',
Email = 'email'
}
| 51,403 |
https://github.com/BSnelling/julia/blob/master/base/randomdevice.jl | Github Open Source | Open Source | MIT | 2,022 | julia | BSnelling | Julia | Code | 231 | 666 | # This file is a part of Julia. License is MIT: https://julialang.org/license
# This file contains the minimal support of RandomDevice for Base's own usage.
# The actual RandomDevice type that makes use of this infrastructure is defined
# in the Random stdlib.
module DevRandomState
if !Sys.iswindows()
mut... | 48,473 |
https://github.com/teriiehina/NSUptight/blob/master/NSUptight/NSUptight/NSString+NSUptight.m | Github Open Source | Open Source | MIT | 2,013 | NSUptight | teriiehina | Objective-C | Code | 456 | 1,826 | //
// NSString+NSUptight.m
// NSUptight
//
// Created by Peter MEUEL on 29/06/13.
// Copyright (c) 2013 teriiehina. All rights reserved.
//
#import "NSString+NSUptight.h"
@implementation NSString (NSUptight)
- (BOOL)isDigitsOnly
{
NSCharacterSet* nonNumbers = [[NSCharacterSet decimalDigitCharacterSet] invert... | 17,848 |
https://github.com/PeaceMaker503/danmaku-game/blob/master/stage_maker/StageMaker/spell_maker/models/Delegates.cs | Github Open Source | Open Source | MIT | 2,016 | danmaku-game | PeaceMaker503 | C# | Code | 55 | 163 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StageMaker.spell_maker.models
{
public static class Delegates
{
public delegate void GrammarAction(GrammarArgs args);
public delegate long LoopGetterAction(LoopGetterAr... | 29,385 |
https://github.com/BookerLoL/JLibrary/blob/master/src/main/java/designpattern/state/Package.java | Github Open Source | Open Source | MIT | 2,021 | JLibrary | BookerLoL | Java | Code | 34 | 92 | package main.designpattern.state;
public abstract class Package {
private State<Package> state;
String id;
public Package(String id) {
this.id = id;
state = new OrderedState();
}
public void setState(State<Package> newState) {
state = newState;
}
}
| 44,848 |
https://github.com/simmone/racket-simple-xlsx/blob/master/simple-xlsx/xl/chartsheets/_rels/chartsheets-rels.rkt | Github Open Source | Open Source | MIT | 2,023 | racket-simple-xlsx | simmone | null | Spoken | 99 | 470 | #lang racket
(require simple-xml)
(require "../../../xlsx/xlsx.rkt")
(require "../../../sheet/sheet.rkt")
(provide (contract-out
[chartsheets-rels (-> natural? list?)]
[write-chartsheets-rels (->* () (path-string?) void?)]
))
(define (chartsheets-rels typeSeq)
(list
"Relationships... | 34,850 |
https://github.com/tomhpeeters/modern-jcr/blob/master/src/main/java/com/github/zwaldeck/modern/jcr/StreamProperty.java | Github Open Source | Open Source | Apache-2.0 | null | modern-jcr | tomhpeeters | Java | Code | 536 | 1,546 | package com.github.zwaldeck.modern.jcr;
import com.github.zwaldeck.modern.jcr.exception.ModernJcrException;
import javax.jcr.Binary;
import javax.jcr.Node;
import javax.jcr.Property;
import javax.jcr.RepositoryException;
import javax.jcr.Value;
import javax.jcr.nodetype.PropertyDefinition;
import java.math.BigDecimal... | 14,098 |
https://github.com/dask/partd/blob/master/partd/tests/test_buffer.py | Github Open Source | Open Source | 2,023 | partd | dask | Python | Code | 174 | 558 | from partd.dict import Dict
from partd.file import File
from partd.buffer import Buffer, keys_to_flush
import pickle
import shutil
import os
def test_partd():
a = Dict()
b = Dict()
with Buffer(a, b, available_memory=10) as p:
p.append({'x': b'Hello', 'y': b'abc'})
assert a.get(['x', 'y'])... | 12,694 | |
https://github.com/enchev/mobile-cli-lib/blob/master/test/test-bootstrap.ts | Github Open Source | Open Source | Apache-2.0 | 2,016 | mobile-cli-lib | enchev | TypeScript | Code | 116 | 386 | import Future = require("fibers/future");
global._ = require("lodash");
global.$injector = require("../yok").injector;
// $injector.require("config", "../lib/config");
// $injector.require("resources", "../lib/resource-loader");
$injector.require("hostInfo", "../host-info");
$injector.register("config", {});
// Our h... | 2,117 |
https://github.com/mgobec/concord/blob/master/server/impl/src/main/java/com/walmartlabs/concord/server/process/pipelines/processors/EnqueueingProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | concord | mgobec | Java | Code | 644 | 1,943 | package com.walmartlabs.concord.server.process.pipelines.processors;
/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2018 Walmart Inc.
* -----
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | 22,514 |
https://github.com/Sushindhran/Motley/blob/master/client/src/main/resources/styles/main.scss | Github Open Source | Open Source | MIT | null | Motley | Sushindhran | SCSS | Code | 132 | 466 | @import "../../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
@import "common/variables";
@import "helpers/margin";
@import "helpers/padding";
@import "helpers/typography";
@import "helpers/layout";
@import "common/bootstrap_overrides";
body {
background-color: #ccc;
height: 100%;
}
.select {
... | 22,205 |
https://github.com/cnjllin/actual-16-homework/blob/master/lesson2/monkey/08.py | Github Open Source | Open Source | MIT | 2,017 | actual-16-homework | cnjllin | Python | Code | 52 | 105 | #coding: utf-8
arr = range(1, 21)
print 'arr: ', arr
'''
arr2
'''
arr1 = []
for x in arr:
if x % 2 == 1:
arr1.append(x)
print 'new arr2: ', arr1
arr1 = [ x for x in arr if x % 2 == 1 ]
print 'new arr3: ', arr1
| 19,625 |
https://github.com/remcowesterhoud/backend/blob/master/src/main/scala/com/analyzedgg/api/services/riot/MatchService.scala | Github Open Source | Open Source | Apache-2.0 | 2,017 | backend | remcowesterhoud | Scala | Code | 281 | 1,184 | package com.analyzedgg.api.services.riot
import akka.http.scaladsl.model.HttpResponse
import akka.http.scaladsl.model.StatusCodes.{NotFound, OK}
import com.analyzedgg.api.domain.riot._
import com.analyzedgg.api.domain.{MatchDetail, PlayerStats, Team, Teams}
import com.analyzedgg.api.services.MatchHistoryManager.GetMat... | 23,280 |
https://github.com/SiliconJungles/stand-up-bot/blob/master/src/components/Loader.js | Github Open Source | Open Source | MIT | 2,021 | stand-up-bot | SiliconJungles | JavaScript | Code | 74 | 271 | import React from 'react'
import CircleLoader from 'react-spinners/CircleLoader'
import {motion} from 'framer-motion'
import styled from 'styled-components'
const Loader = React.memo(({current}) => {
return (
<SpinnerWrapper
key="spinner"
initial={{scale: 0}}
animate={{scale: 1}}
transiti... | 35,783 |
https://github.com/scala-steward/stakenet-orderbook/blob/master/server/src/main/scala/io/stakenet/orderbook/models/lnd/LndChannel.scala | Github Open Source | Open Source | Apache-2.0 | null | stakenet-orderbook | scala-steward | Scala | Code | 31 | 144 | package io.stakenet.orderbook.models.lnd
import io.stakenet.orderbook.models.ChannelIdentifier.LndOutpoint
import io.stakenet.orderbook.models.{ChannelId, Currency}
case class LndChannel(
channelId: ChannelId.LndChannelId,
currency: Currency,
fundingTransaction: LndTxid,
outputIndex: Int,
lifeTime... | 49,654 |
https://github.com/csf-ngs/hinkskalle-api/blob/master/hinkskalle_api/cli.py | Github Open Source | Open Source | MIT | null | hinkskalle-api | csf-ngs | Python | Code | 520 | 1,875 | """Console script for hinkskalle_api."""
import re
import sys
import click
import click_log
import logging
import typing
logger = logging.getLogger()
click_log.basic_config(logger)
from hinkskalle_api import HinkApi
@click.group()
@click_log.simple_verbosity_option(logger)
@click.option('--base', help='API Base URL'... | 42,304 |
https://github.com/abolhoseinisina/DesignPatterns/blob/master/dist/Structural/Flyweight/Row.js | Github Open Source | Open Source | MIT | null | DesignPatterns | abolhoseinisina | JavaScript | Code | 54 | 154 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const column_1 = require("./column");
class Row {
constructor(column_count) {
this.columns = [];
for (let i = 0; i < column_count; i++) {
this.columns.push(new column_1.default());
}
}
getData() ... | 1,173 |
https://github.com/wantonsolutions/warm/blob/master/presentation/012_QP_bottleneck-Sept_30_2021/Experiment_3-id-toq-small-burst.py | Github Open Source | Open Source | MIT | 2,022 | warm | wantonsolutions | Python | Code | 213 | 1,788 | import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
from common_library import *
from svgpathtools import svg2paths
from svgpath2mpl import parse_path
skull_path, skull_attributes = svg2paths('/home/ena/Pictures/matplotlib_custom_markers/Skull_and_Crossbones.svg')
skull_marker = parse_path(sk... | 39,558 |
https://github.com/recipeify/Recipes/blob/master/client/src/PrivateRoute.jsx | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Recipes | recipeify | null | Spoken | 102 | 254 | /* eslint-disable react/prop-types */
/* eslint-disable react/jsx-props-no-spreading */
import React, { useEffect } from 'react';
import { Route } from 'react-router-dom';
import { useAuth0 } from './react-auth0-spa';
const PrivateRoute = ({ component: Component, path, ...rest }) => {
const { loading, isAuthenticate... | 22,892 |
https://github.com/edificapps/Language-Manager-JS/blob/master/dist/core.lang.manager.js | Github Open Source | Open Source | MIT | 2,015 | Language-Manager-JS | edificapps | JavaScript | Code | 63 | 297 | /*!
* Language-Manager-JS v1.0.0 (http://usermyadmin.net/Language-Manager-JS)
* Copyright 2015 EdificApps.
* Licensed under MIT (https://github.com/edificapps/Language-Manager-JS/blob/master/LICENSE)
*
* Plug-in for jQuery 1.11.2 - 2.1.3 : Full testing.
*
*/
$.fn.extend({
lang: function (e) {
this.each(funct... | 38,987 |
https://github.com/harrymd/NonlinearEigenproblems.jl/blob/master/src/method_infbilanczos.jl | Github Open Source | Open Source | MIT | 2,022 | NonlinearEigenproblems.jl | harrymd | Julia | Code | 610 | 3,227 | using SpecialFunctions
using Random
export infbilanczos
"""
λv,V,U=infbilanczos([eltype],nep, nept,[linsolvecreator,][linsolvertcreator,][v,][u,][σ,][γ,][tol,][neigs,][errmeasure,][logger,][maxit,][check_error_every])
Executes the Infinite Bi-Lanczos method on the problem defined by `nep::NEP`
and `nept::NEP`. `n... | 9,714 |
https://github.com/runtologist/scalaz-zio/blob/master/interop-reactiveStreams/shared/src/main/scala/scalaz/zio/interop/reactiveStreams/SubscriberHelpers.scala | Github Open Source | Open Source | Apache-2.0 | null | scalaz-zio | runtologist | Scala | Code | 156 | 510 | package scalaz.zio.interop.reactiveStreams
import org.reactivestreams.{ Subscriber, Subscription }
import scalaz.zio.stream.Sink.Step
import scalaz.zio.stream.ZSink
import scalaz.zio.{ Chunk, Queue, Runtime, UIO }
private[reactiveStreams] object SubscriberHelpers {
def demandUnfoldSink[A](
subscriber: Subscrib... | 8,920 |
https://github.com/unPi-ro/lunch-roulette/blob/master/migrations/versions/dd0859a3839e_adding_canteen_support.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | lunch-roulette | unPi-ro | Python | Code | 89 | 293 | """adding canteen support
Revision ID: dd0859a3839e
Revises: 9a905eed7848
Create Date: 2019-04-24 08:26:30.488892
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'dd0859a3839e'
down_revision = '9a905eed7848'
branch_labels = None
depends_on = None
def upgrade(... | 41,211 |
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/drivers/fpga/fpga-bridge.c | Github Open Source | Open Source | MIT, Linux-syscall-note, GPL-2.0-only | 2,020 | monolinux-example-project | eerimoq | C | Code | 1,428 | 4,508 | // SPDX-License-Identifier: GPL-2.0
/*
* FPGA Bridge Framework Driver
*
* Copyright (C) 2013-2016 Altera Corporation, All Rights Reserved.
* Copyright (C) 2017 Intel Corporation
*/
#include <linux/fpga/fpga-bridge.h>
#include <linux/idr.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_pl... | 21,303 |
https://github.com/Maxosys/wordpress-investment-theme/blob/master/page-templates/page_investment_confirm.php | Github Open Source | Open Source | CC0-1.0, MIT | null | wordpress-investment-theme | Maxosys | PHP | Code | 546 | 2,578 | <?php /* template name: _Investment Confirm */ ?>
<?php
get_header();
$current_user_id= get_current_user_id();
?>
<?php if(isset($_POST['submit'])){
global $wpdb;
$customer_totalprice = $_POST["totalpricehidn"];
... | 15,251 |
https://github.com/daanstout/DnD-Battle-Simulator/blob/master/BattleSimulator/BattleSimulator/Army/Battle.cs | Github Open Source | Open Source | MIT | null | DnD-Battle-Simulator | daanstout | C# | Code | 298 | 968 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BattleSimulator.Utilities;
namespace BattleSimulator.Army {
public class Battle {
public readonly FightingUnit alliedUnit;
public readonly FightingUnit enemyUnit;
pri... | 17,185 |
https://github.com/hsidky/SAPHRON/blob/master/include/schema.h | Github Open Source | Open Source | MIT | 2,017 | SAPHRON | hsidky | C++ | Code | 182 | 693 | #pragma once
#include <iostream>
namespace SAPHRON
{
class JsonSchema
{
public:
//INSERT_DEC_HERE
static std::string PasquaMembraneC;
static std::string DirectorRestrictionC;
static std::string Constraints;
static std::string P2SAConnectivity;
static std::string Connectivities;
static std::string Wa... | 28,759 |
https://github.com/daggers-and-sorcery/daggers-and-sorcery-frontend/blob/master/static/sass/partial/character/equipment.scss | Github Open Source | Open Source | MIT | null | daggers-and-sorcery-frontend | daggers-and-sorcery | SCSS | Code | 146 | 555 | .equipment-slot {
position: absolute;
cursor: pointer;
z-index: 2;
+ .popover {
margin-left: -10px;
}
}
.equipment-slot-image-icon {
position: absolute;
z-index: 3;
width: 71px;
top: 24px;
left: 24px;
}
.equipment-slot-image-overlay {
position: absolute;
width:... | 20,148 |
https://github.com/MrLiu-647/BiDeMei/blob/master/百思必得妹/Pods/KTVHTTPCache/KTVHTTPCache/Classes/KTVHCTools/KTVHCPathTools.h | Github Open Source | Open Source | MIT | 2,018 | BiDeMei | MrLiu-647 | Objective-C | Code | 66 | 264 | //
// KTVHCPathTools.h
// KTVHTTPCache
//
// Created by Single on 2017/8/12.
// Copyright © 2017年 Single. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface KTVHCPathTools : NSObject
+ (NSString *)absolutePathWithRelativePath:(NSString *)relativePath;
+ (NSString *)absolutePathForArchiver;
+ ... | 35,014 |
https://github.com/wolftotem4/shaolin-ben-don/blob/master/internal/types/json/progress_test.go | Github Open Source | Open Source | MIT | null | shaolin-ben-don | wolftotem4 | Go | Code | 183 | 716 | package typesjson
import (
"database/sql"
"encoding/json"
"testing"
"time"
)
func TestUnmarshalProgress(t *testing.T) {
var data Progress
j, err := embedFS.ReadFile("testdata/progress.json")
if err != nil {
t.Fatal(err)
}
if err := json.Unmarshal(j, &data); err != nil {
t.Fatal(err)
}
if len(data.Da... | 43,676 |
https://github.com/lobo-death/django_local_library/blob/master/catalog/migrations/0002_auto_20210112_1856.py | Github Open Source | Open Source | CC0-1.0 | null | django_local_library | lobo-death | Python | Code | 82 | 423 | # Generated by Django 3.1.5 on 2021-01-12 18:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('catalog', '0001_initial'... | 45,536 |
https://github.com/zhenlei520/RequestLog/blob/master/src/RequestLog/Internal/RequestLogBuilder.Default.cs | Github Open Source | Open Source | MIT | 2,022 | RequestLog | zhenlei520 | C# | Code | 138 | 499 | // Copyright (c) zhenlei520 All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using RequestLog.Configuration;
using RequestLog.Extension.Model;
namespace RequestL... | 5,780 |
https://github.com/antleblanc/manager/blob/master/packages/manager/modules/pci/src/projects/project/storages/databases/database/service-integration/add/add.controller.js | Github Open Source | Open Source | BSD-3-Clause | 2,022 | manager | antleblanc | JavaScript | Code | 84 | 443 | export default class {
/* @ngInject */
constructor($translate, DatabaseService) {
this.DatabaseService = DatabaseService;
this.$translate = $translate;
}
$onInit() {
this.trackDashboard(`service_integration::add_${this.engineName}`, 'page');
}
cancel() {
this.trackDashboard(`service_integr... | 26,756 |
https://github.com/theflyingjets/Chris-s_Toolkit_PowerShell/blob/master/Toolkit/WhoAmI.ps1 | Github Open Source | Open Source | MIT | null | Chris-s_Toolkit_PowerShell | theflyingjets | PowerShell | Code | 165 | 514 | #Title: System Info
#Purpose: Give you the details of System Info
#Function: Write To Host System Information
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
$computerSystem = Get-CimInstance CIM_ComputerSystem
$computerBIOS = Get-CimInstance CIM_BIOSElement
$computerOS = Get-CimInstance CIM_OperatingSyst... | 39,706 |
https://github.com/zstars/weblabdeusto/blob/master/client/src/es/deusto/weblab/client/experiments/dummy/ui/ButtonListener.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | weblabdeusto | zstars | Java | Code | 135 | 455 | /*
* Copyright (C) 2005 onwards University of Deusto
* All rights reserved.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution.
*
* This software consists of contributions made by many individuals,
* listed below:
*
* Author: Pablo Orduña <pabl... | 15,523 |
https://github.com/GarciaLab/mRNADynamics/blob/master/src/deprecated/fitASingleTraceManual_actionResponse.m | Github Open Source | Open Source | MIT | 2,021 | mRNADynamics | GarciaLab | MATLAB | Code | 535 | 1,426 | % FitASingleTraceManual - this should be merged with the function
% FitInitialSlope above in the future.
function [frameIndex,Coefficients,ErrorEstimation,numberOfFramesUsedForFit] = ...
fitASingleTraceManual(currentParticle,Particles,Spots,currentChannel,...
schnitzcells,ElapsedTime,nuclearCycleBoundaries,corr... | 12,035 |
https://github.com/Calytic/Oxide.Ext.Discord/blob/master/Oxide.Ext.Discord/Entities/Messages/MessageInteraction.cs | Github Open Source | Open Source | MIT | 2,022 | Oxide.Ext.Discord | Calytic | C# | Code | 105 | 334 | using Newtonsoft.Json;
using Oxide.Ext.Discord.Entities.Interactions;
using Oxide.Ext.Discord.Entities.Interactions.ApplicationCommands;
using Oxide.Ext.Discord.Entities.Users;
namespace Oxide.Ext.Discord.Entities.Messages
{
/// <summary>
/// Represents a <a href="https://discord.com/developers/docs/interactio... | 3,976 |
https://github.com/kambria-platform/kambria-wallet/blob/master/wallet/ethereum/skin/establishConnection/mew.js | Github Open Source | Open Source | MIT | 2,021 | kambria-wallet | kambria-platform | JavaScript | Code | 154 | 518 | import React, { Component } from 'react';
var { MEW } = require('capsule-core-js');
// Setup CSS Module
import classNames from 'classnames/bind';
import styles from '../../../static/styles/index.module.css';
var cx = classNames.bind(styles);
const STATUS = {
INIT: 'Please use MyEtherWallet application on your phon... | 9,480 |
https://github.com/KratosMultiphysics/Kratos/blob/master/applications/ConstitutiveModelsApplication/custom_python/add_custom_processes_to_python.cpp | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,023 | Kratos | KratosMultiphysics | C++ | Code | 83 | 310 | //
// Project Name: KratosPfemSolidMechanicsApplication $
// Created by: $Author: JMCarbonell $
// Last modified by: $Co-Author: $
// Date: $Date: July 2013 $
// Revision: $Revision: 0.0... | 20,360 |
https://github.com/strapdata/elassandra/blob/master/docs/reference/aggregations/pipeline/movavg-aggregation.asciidoc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-elastic-license-2018 | 2,022 | elassandra | strapdata | AsciiDoc | Code | 3,045 | 6,770 | [[search-aggregations-pipeline-movavg-aggregation]]
=== Moving Average Aggregation
ifdef::asciidoctor[]
deprecated:[6.4.0, "The Moving Average aggregation has been deprecated in favor of the more general <<search-aggregations-pipeline-movfn-aggregation,Moving Function Aggregation>>. The new Moving Function aggregatio... | 41,674 |
https://github.com/CalledByThe4ire/sedona-pug-tars/blob/master/markup/components/page-footer/page-footer.scss | Github Open Source | Open Source | MIT | null | sedona-pug-tars | CalledByThe4ire | SCSS | Code | 112 | 446 | .page-footer {
display: grid;
place-items: center;
padding-bottom: 3.5rem;
background-color: #ffffff;
@media #{$tab-desk} {
@include padding-y(initial);
}
& > * {
display: flex;
}
&__hashtag {
padding-bottom: 3.5rem;
font-size: 2.1rem;
lin... | 11,159 |
https://github.com/lxbzmy/jenkins-zh/blob/master/themes/hugo-jenkins-theme/src/node_modules/scrolldir/tests/auto/test.js | Github Open Source | Open Source | MIT | 2,021 | jenkins-zh | lxbzmy | JavaScript | Code | 26 | 90 | QUnit.test( "hello test", function(assert) {
assert.ok(1 == "1", "Passed!");
});
QUnit.test( "Is scroll intent there?", function(assert) {
assert.equal(document.querySelector('[data-scrolldir]').getAttribute('data-scrolldir'), 'down', 'there should be a scroll intent');
});
| 41,424 |
https://github.com/Shubham-Sahoo/ip_lab/blob/master/Experiment 4/Exp-04-Grp-16/code/test.cpp | Github Open Source | Open Source | MIT | 2,021 | ip_lab | Shubham-Sahoo | C++ | Code | 2,372 | 7,917 | /*
Task: Frequency domain Filtering
Things to do:
1. Design frequency domain filters using C++
2. Implement sliders to select the image, filter, cutoff size
3. Apply the required algorithm according to outputs from the slider
4. Display the input image and the output image.
################ Slider Desgin #########... | 26,100 |
https://github.com/lorewing/lorewing/blob/master/application/views/admincms/common/inc_assets.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | lorewing | lorewing | PHP | Code | 198 | 1,176 | <!-- Bootstrap -->
<?php echo add_style(ACTIVE_TEMPLATE.'bootstrap/css/bootstrap')?>
<?php echo add_style(CSS_PATH.'themes/default')?>
<?php echo add_style(ACTIVE_TEMPLATE.'bootstrap/css/bootstrap-responsive')?>
<!-- Full Calender -->
<?php echo add_style(JS_PATH.'fullcalendar/fullcalendar/fullcalendar')?>
<!-- Bootstr... | 30,087 |
https://github.com/cryptocompress/CryptoCompress/blob/master/test/CryptoCompress/WebService/TwitterTest.php | Github Open Source | Open Source | MIT | 2,018 | CryptoCompress | cryptocompress | PHP | Code | 117 | 650 | <?php
use \CryptoCompress\WebService\Yahoo\Weather,
\CryptoCompress\WebService\Twitter,
\CryptoCompress\Http\Curl\Connection,
\CryptoCompress\Http\Curl\Pool,
\CryptoCompress\Http\Curl\Response,
\CryptoCompress\Http\Curl\Request\Get,
\CryptoCompress\Http\Curl\Request\Post;
class TwitterTest extends \PHPUnit_Fram... | 39,760 |
https://github.com/SDA-SE/sda-dropwizard-commons/blob/master/sda-commons-server-trace/src/test/java/org/sdase/commons/server/trace/test/TraceTokenTestApp.java | Github Open Source | Open Source | MIT | 2,023 | sda-dropwizard-commons | SDA-SE | Java | Code | 79 | 420 | package org.sdase.commons.server.trace.test;
import io.dropwizard.Application;
import io.dropwizard.Configuration;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
import javax.ws.rs.GET;
import javax.ws.rs.OPTIONS;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.c... | 10,695 |
https://github.com/lionel8/reacttemple/blob/master/src/polyfill.js | Github Open Source | Open Source | MIT | 2,020 | reacttemple | lionel8 | JavaScript | Code | 7 | 26 | import setprototypeof from 'setprototypeof';
Object.setPrototypeOf = setprototypeof; | 8,855 |
https://github.com/Neron-X5/shipment-manager/blob/master/src/components/app/style.scss | Github Open Source | Open Source | MIT | null | shipment-manager | Neron-X5 | SCSS | Code | 46 | 186 | @import '../../configs/style/variable.scss';
.header {
display: flex;
align-items: center;
justify-content: center;
height: 100px;
font-size: 2rem;
font-weight: 600;
color: $colorFontSecondary;
border-bottom: 1px solid $colorFontPrimary;
background-image: -o-radial-gradient(
... | 23,897 |
https://github.com/SwipeInc/prerender-docker/blob/master/jacques-deploy.sh | Github Open Source | Open Source | Apache-2.0 | null | prerender-docker | SwipeInc | Shell | Code | 47 | 426 | #! /bin/bash
VERSION=2.7.0
aws ecr get-login-password --region eu-west-1 --profile dstv-aws-master | docker login --username AWS --password-stdin 240247221724.dkr.ecr.eu-west-1.amazonaws.com
docker-compose build
docker tag prerender-docker_prerender_server:latest 240247221724.dkr.ecr.eu-west-1.amazonaws.com/prerende... | 17,816 |
https://github.com/TianXie1999/selective-inference/blob/master/selectinf/randomized/tests/sandbox/test_cv_glmnet.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | selective-inference | TianXie1999 | Python | Code | 84 | 374 | import numpy as np
import regreg.api as rr
from ...algorithms.cv_glmnet import CV_glmnet
from ...tests.instance import gaussian_instance
def test_cv_glmnet():
np.random.seed(2)
n, p = 3000, 1000
X, y, beta, nonzero, sigma = gaussian_instance(n=n, p=p, s=30, rho=0., sigma=1)
loss = rr.glm.gaussian(X,y)... | 52,609 |
https://github.com/hkhetawat/Cetus/blob/master/src/cetus/hir/PragmaAnnotation.java | Github Open Source | Open Source | Artistic-1.0, ANTLR-PD | 2,021 | Cetus | hkhetawat | Java | Code | 793 | 2,126 | package cetus.hir;
import java.util.Collection;
import java.util.regex.Pattern;
import java.util.Map;
import java.util.LinkedHashMap;
import java.util.List;
/**
* PragmaAnnotation is used for annotations of pragma type.
*/
public class PragmaAnnotation extends Annotation {
private static final long serialVersion... | 46,874 |
https://github.com/alansun2/mapper-generator-javafx/blob/master/mapper-generator-javafx-core/src/main/java/com/alan344/utils/TreeUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | mapper-generator-javafx | alansun2 | Java | Code | 58 | 191 | package com.alan344.utils;
import javafx.scene.control.TreeItem;
/**
* @author :AlanSun
* @date :2019/8/8 22:27
*/
public class TreeUtils {
/**
* 把 content 包装成 TreeItem,然后放入 parent
*
* @param content 需要封装的内容
* @param parent 外层
* @return content 被封装后 TreeItem
*/
public static... | 37,799 |
https://github.com/ba-st/Willow-Bootstrap/blob/master/source/Willow-Bootstrap-4/Bootstrap4SplitButtonDropdownBuilder.class.st | Github Open Source | Open Source | MIT | 2,020 | Willow-Bootstrap | ba-st | null | Spoken | 189 | 556 | Class {
#name : #Bootstrap4SplitButtonDropdownBuilder,
#superclass : #Bootstrap4DropdownBuilder,
#instVars : [
'mainButtonBinding'
],
#category : #'Willow-Bootstrap-4-WebViews'
}
{ #category : #building }
Bootstrap4SplitButtonDropdownBuilder >> buildApplying: aComponentCommand [
^ BootstrapSplitButtonWebView
... | 20,466 |
https://github.com/avesus/frontpanel-ws/blob/master/samples/browser/assets/js/sample.js | Github Open Source | Open Source | MIT | 2,020 | frontpanel-ws | avesus | JavaScript | Code | 383 | 1,122 | 'use strict';
$(window).on('load',function(){
$(window).on('error', function(evt) {
log('Run-time error: ' + JSON.stringify(evt));
return false;
});
function log(text) {
$('#logWindow').
append(document.createTextNode(text)).
append(document.createElement('b... | 2,693 |
https://github.com/tinalabs/react-tinacms-i18n/blob/master/packages/react-tinacms-i18n/src/i18nClient/ReactLocalizationAPI.ts | Github Open Source | Open Source | MIT | 2,021 | react-tinacms-i18n | tinalabs | TypeScript | Code | 20 | 48 | import { I18nClient } from './i18nClient';
/**
* @deprecated Please use the i18nClient instead
*/
export const ReactLocalizationAPI = I18nClient;
| 21,695 |
https://github.com/sravani-m/Web-Application-Security-Framework/blob/master/frontend/node_modules/bootstrap-vue/es/mixins/listen-on-root.js | Github Open Source | Open Source | MIT | 2,019 | Web-Application-Security-Framework | sravani-m | JavaScript | Code | 224 | 501 | "use strict";
exports.__esModule = true;
exports.default = void 0;
/**
* Issue #569: collapse::toggle::state triggered too many times
* @link https://github.com/bootstrap-vue/bootstrap-vue/issues/569
*/
// @vue/component
var _default = {
methods: {
/**
* Safely register event listeners on the root Vue n... | 5,503 |
https://github.com/wyaneva/gpu-fsm-validation-artifacts/blob/master/data/input-execution/fsm37-262144-gpu-pt-s-8192.raw | Github Open Source | Open Source | Apache-2.0 | 2,021 | gpu-fsm-validation-artifacts | wyaneva | Raw token data | Code | 827 | 3,730 | SANITY CHECK!
FSM_INPUTS_WITH_OFFSETS = 0
FSM_INPUTS_COAL_CHAR = 1
FSM_INPUTS_COAL_CHAR4 = 0
Device: Tesla K40m
Compute units: 15
Work-group size: 1024
Local memory size (in bytes): 49152
Global memory size (in bytes): 11996954624
Global memory cache size (in bytes): 245760
Compute overlap: 1
Version: OpenCL 1.... | 41,857 |
https://github.com/riQQ/DirectN/blob/master/DirectN/DirectN/Generated/IPersistPropertyBag2.cs | Github Open Source | Open Source | MIT | 2,019 | DirectN | riQQ | C# | Code | 58 | 257 | // c:\program files (x86)\windows kits\10\include\10.0.18362.0\um\ocidl.h(6190,5)
using System;
using System.Runtime.InteropServices;
namespace DirectN
{
[Guid("22f55881-280b-11d0-a8a9-00a0c90c2004"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public partial interface IPersistPropertyBag2
{
... | 6,515 |
https://github.com/expo/expo/blob/master/packages/expo-modules-core/android/src/main/java/expo/modules/interfaces/permissions/Permissions.java | Github Open Source | Open Source | MIT, BSD-3-Clause, Apache-2.0 | 2,023 | expo | expo | Java | Code | 248 | 702 | package expo.modules.interfaces.permissions;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import expo.modules.core.Promise;
public interface Permissions {
static void getPermissionsWithPermissionsManager(Permissions permissionsManager, final Promise promise, String... permissions) {
... | 38,321 |
https://github.com/nhuanhoangduc/magento-2-vietnamese-language-pack/blob/master/app/code/Smartwave/Dailydeals/Controller/Adminhtml/Dailydeal/Delete.php | Github Open Source | Open Source | MIT | null | magento-2-vietnamese-language-pack | nhuanhoangduc | PHP | Code | 117 | 552 | <?php
namespace Smartwave\Dailydeals\Controller\Adminhtml\Dailydeal;
class Delete extends \Smartwave\Dailydeals\Controller\Adminhtml\Dailydeal
{
/**
* execute action
*
* @return \Magento\Backend\Model\View\Result\Redirect
*/
public function execute()
{
$resultRedirect = $this->r... | 19,875 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.