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/Shofiul-Alam/magento-app/blob/master/src/setup/src/Magento/Setup/Test/Unit/Model/Cron/JobFactoryTest.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, AFL-2.1, AFL-3.0, OSL-3.0, MIT | 2,019 | magento-app | Shofiul-Alam | PHP | Code | 337 | 2,239 | <?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Setup\Test\Unit\Model\Cron;
use Magento\Backend\Console\Command\CacheDisableCommand;
use Magento\Backend\Console\Command\CacheEnableCommand;
use Magento\Setup\Console\Command\MaintenanceDisableComm... | 6,911 |
https://github.com/sigemp/domino-ui/blob/master/domino-ui/src/main/java/org/dominokit/domino/ui/datatable/plugins/RowClickPlugin.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | domino-ui | sigemp | Java | Code | 53 | 276 | package org.dominokit.domino.ui.datatable.plugins;
import org.dominokit.domino.ui.datatable.DataTable;
import org.dominokit.domino.ui.datatable.TableRow;
import org.dominokit.domino.ui.utils.DominoElement;
import org.jboss.gwt.elemento.core.EventType;
public class RowClickPlugin<T> implements DataTablePlugin<T> {
... | 47,717 |
https://github.com/tootsweet/react_native_sdk/blob/master/test/lib/ios/AdjustSdkTest/ASTCommandListener.h | Github Open Source | Open Source | MIT | 2,022 | react_native_sdk | tootsweet | C | Code | 37 | 100 | //
// ASTCommandListener.h
// Adjust SDK Test
//
// Created by Abdullah Obaied (@obaied) on 20th February 2018.
// Copyright © 2018 Adjust GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ATLTestLibrary.h"
@interface ASTCommandListener : NSObject<AdjustCommandDelegate>
@end
| 11,400 |
https://github.com/EasyDynamics/oscal-rest-service/blob/master/oscal-object-service/src/main/java/com/easydynamics/oscal/service/RepositoryConfig.java | Github Open Source | Open Source | MIT | 2,022 | oscal-rest-service | EasyDynamics | Java | Code | 21 | 85 | package com.easydynamics.oscal.service;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Spring configuration class for repositories.
*/
@Configuration
@ComponentScan("com.easydynamics.oscal.data")
public class RepositoryConfig {
}
| 21,269 |
https://github.com/Surya-98/Snapcuit/blob/master/NGSpice/ngspice-30/src/spicelib/devices/nbjt2/nbt2init.h | Github Open Source | Open Source | MIT | null | Snapcuit | Surya-98 | C | Code | 32 | 109 | #ifndef _NBJT2INIT_H
#define _NBJT2INIT_H
extern IFparm NBJT2pTable[ ];
extern IFparm NBJT2mPTable[ ];
extern char *NBJT2names[ ];
extern int NBJT2pTSize;
extern int NBJT2mPTSize;
extern int NBJT2nSize;
extern int NBJT2iSize;
extern int NBJT2mSize;
#endif
| 1,352 |
https://github.com/somushivam1991/Personal-Angular-Ui/blob/master/client/modules/shared/core/services/text-value-pair.service.ts | Github Open Source | Open Source | Apache-2.0 | 2,016 | Personal-Angular-Ui | somushivam1991 | TypeScript | Code | 211 | 563 | /// <reference path="../../../../../typings/lib.d.ts" />
/// <reference path="../../../../../typings/app.d.ts" />
namespace shared.services {
export class TextValuePairService {
/**
* Gets the text of the text-value pair in a text-value pair array whose value is equal
* to the specified v... | 5,577 |
https://github.com/tcdorg/sonarscratch-checker/blob/master/content/src/test/java/sonarscratch/checker/test/TestException.java | Github Open Source | Open Source | MIT | null | sonarscratch-checker | tcdorg | Java | Code | 53 | 113 | /**
* sonarscratch.checker project
* Copyright (c) tcdorg community. All rights reserved.
* Licensed under the MIT License. See LICENSE.txt in the project root for license information.
*/
package sonarscratch.checker.test;
public class TestException extends Exception {
private static final long serialVersionU... | 48,698 |
https://github.com/chrisrayrayne/yatzy/blob/master/src/ch/chrisrayrayne/game/Yathzee.java | Github Open Source | Open Source | Apache-2.0 | null | yatzy | chrisrayrayne | Java | Code | 21 | 74 | package ch.chrisrayrayne.game;
public class Yathzee {
public static void main(String[] args) {
Game g = new BeginnerGame();
g.init(Game.RULESET_YATZHEE);
g.play();
}
}
| 20,913 |
https://github.com/EunoiaGames/Eunoia-Dev/blob/master/Eunoia-Engine/Res/Shaders/GLSL-450/3D/Deferred/BloomThreshold.glsl | Github Open Source | Open Source | Apache-2.0 | null | Eunoia-Dev | EunoiaGames | GLSL | Code | 106 | 300 | #EU_Vertex
#version 450
layout(location = 0) in vec2 Pos;
void main()
{
gl_Position = vec4(Pos, 0.0, 1.0);
}
#EU_Fragment
#version 450
layout (input_attachment_index = 0, set = 0, binding = 0) uniform subpassInput Input;
layout(location = 0) out vec4 OutColor;
layout(set = 1, binding = 0) uniform ThresholdBuffer... | 28,922 |
https://github.com/simplerr/UtopianEngine/blob/master/source/utopian/core/ScriptExports.cpp | Github Open Source | Open Source | MIT | 2,022 | UtopianEngine | simplerr | C++ | Code | 240 | 1,159 | #include "core/ScriptExports.h"
#include "core/AssetLoader.h"
#include "core/components/Actor.h"
#include "core/components/CRenderable.h"
#include "core/components/CTransform.h"
#include "core/renderer/Renderer.h"
#include "core/Log.h"
#include "utility/Common.h"
namespace Utopian
{
PerlinNoise<float> ScriptExports... | 31,907 |
https://github.com/newbeginningxzm/WeChatChoosen/blob/master/app/src/main/java/com/bupt/paragon/wechatchoosen/adapter/NewsListAdapter.java | Github Open Source | Open Source | Apache-2.0 | null | WeChatChoosen | newbeginningxzm | Java | Code | 51 | 221 | package com.bupt.paragon.wechatchoosen.adapter;
import android.content.Context;
import com.bupt.paragon.wechatchoosen.model.News;
import java.util.List;
/**
* Created by Paragon on 2016/5/28.
*/
public class NewsListAdapter<T> extends MultiItemCommonAdapter<T>{
private NewsConverter mConveter;
public News... | 45,661 |
https://github.com/dregnaught/brew-printer/blob/master/src/main/java/com/frank/brewprinter/controller/BrewsApi.java | Github Open Source | Open Source | MIT | 2,021 | brew-printer | dregnaught | Java | Code | 168 | 786 | package com.frank.brewprinter.controller;
import java.awt.print.PrinterException;
import java.util.List;
import java.util.Optional;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
i... | 18,419 |
https://github.com/zybbigpy/VaspCZ/blob/master/vtstscripts-939/neighbors.pl | Github Open Source | Open Source | MIT | 2,022 | VaspCZ | zybbigpy | Perl | Code | 252 | 842 | #!/usr/bin/env perl
#;-*- Perl -*-
# Calculates the distance, with periodic boundary conditions,
# from a specific atom to all other atoms in the file.
use FindBin qw($Bin);
use lib "$Bin";
use Vasp;
# variables needed by the script
@args = @ARGV;
@args==2 || die "usage: neighbor.pl <POSCAR filename> <central atom>... | 20,007 |
https://github.com/alessandrofrancesconi/ebl/blob/master/ebl/core/js_src/state/state.js | Github Open Source | Open Source | MIT | 2,018 | ebl | alessandrofrancesconi | JavaScript | Code | 134 | 342 | // These two object contain information about the state of Ebl
var GlobalState = Base.extend({
constructor: function() {
this.isAdmin = false;
this.authToken = null;
this.docTitle = null;
this.container = null;
// default config
this.config = {
t... | 34,229 |
https://github.com/LoongYou/Wanda/blob/master/com4j-20120426-2/samples/excel/build/src/office/PickerResult.java | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Wanda | LoongYou | Java | Code | 532 | 1,512 | package office ;
import com4j.*;
@IID("{000C03E4-0000-0000-C000-000000000046}")
public interface PickerResult extends office._IMsoDispObj {
// Methods:
/**
* <p>
* Getter method for the COM property "Id"
* </p>
* @return Returns a value of type java.lang.String
*/
@DISPID(1) //= 0x1. The runti... | 19,645 |
https://github.com/gbif/portal16/blob/master/app/controllers/sitemaps/pager.js | Github Open Source | Open Source | CC-BY-3.0, Apache-2.0 | 2,023 | portal16 | gbif | JavaScript | Code | 216 | 701 | 'use strict';
let apiConfig = rootRequire('app/models/gbifdata/apiConfig'),
querystring = require('querystring'),
request = rootRequire('app/helpers/request'),
_ = require('lodash');
module.exports = {
installation: {intervals: getInstallationIntervals, list: getInstallationList},
dataset: {interva... | 7,130 |
https://github.com/StefanV-Neurony/first-puppy/blob/master/resources/views/despre.blade.php | Github Open Source | Open Source | MIT | null | first-puppy | StefanV-Neurony | PHP | Code | 345 | 1,024 | @extends('layouts.app')
@section('content')
<div class="about-section">
<h1>Despre noi</h1>
<p>
Drumul acesta frumos pe de o parte, dar foarte greu pe de alta parte a debutat in momentul cand am adoptat un catel de pe internet pe nume Leon. La scurt timp, am gasit in fata blocului, o mam... | 745 |
https://github.com/Irsalhamdi/vocasia-web/blob/master/app/Models/CommentModel.php | Github Open Source | Open Source | MIT | null | vocasia-web | Irsalhamdi | PHP | Code | 150 | 483 | <?php
namespace App\Models;
use CodeIgniter\Model;
class CommentModel extends Model
{
protected $DBGroup = 'default';
protected $table = 'comment';
protected $primaryKey = 'id';
protected $useAutoIncrement = true;
protected $insertID = 0;
... | 25,740 |
https://github.com/Quansight/graphql-schema-org/blob/master/src/targetUrl.js | Github Open Source | Open Source | BSD-3-Clause | 2,021 | graphql-schema-org | Quansight | JavaScript | Code | 24 | 53 | import datatypes from './datatype'
export default {
type: datatypes['Url'],
description: 'The URL of a node in an established educational framework.',
name: 'Target Url',
}
| 22,743 |
https://github.com/mehdi2960/Digika/blob/master/resources/views/livewire/home/product/buybox/review.blade.php | Github Open Source | Open Source | MIT | null | Digika | mehdi2960 | PHP | Code | 783 | 3,766 | <div class="c-content-expert js-product-tab-content is-active" id="expert_review"
data-method="expert_review">
<article>
<div class="o-box__header"><span
class="o-box__title">نقد و بررسی تخصصی</span><span
class="o-box__header-desc">Nokia 3310 (2017) Dual SIM Mobile Phone... | 5,996 |
https://github.com/newlysoft/mt0-oauth2/blob/master/src/main/java/com/hw/aggregate/user/AppBizUserApplicationService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | mt0-oauth2 | newlysoft | Java | Code | 182 | 919 | package com.hw.aggregate.user;
import com.hw.aggregate.pending_user.AppPendingUserApplicationService;
import com.hw.aggregate.user.command.AppCreateBizUserCommand;
import com.hw.aggregate.user.command.AppForgetBizUserPasswordCommand;
import com.hw.aggregate.user.command.AppResetBizUserPasswordCommand;
import com.hw.ag... | 31,235 |
https://github.com/positive-js/tslint-config/blob/master/src/walker.ts | Github Open Source | Open Source | MIT | 2,021 | tslint-config | positive-js | TypeScript | Code | 97 | 320 | import * as Lint from 'tslint';
import * as ts from 'typescript';
export abstract class AbstractReturnStatementWalker<T> extends Lint.AbstractWalker<T> {
public walk(sourceFile: ts.SourceFile) {
const cb = (node: ts.Node): void => {
if (node.kind === ts.SyntaxKind.ReturnStatement) {
... | 39,075 |
https://github.com/honeyimholm/three.js/blob/master/src/core/UniformsGroup.d.ts | Github Open Source | Open Source | MIT | 2,022 | three.js | honeyimholm | TypeScript | Code | 50 | 124 | import { EventDispatcher } from './EventDispatcher';
import { Uniform } from './Uniform';
export class UniformsGroup extends EventDispatcher {
constructor();
name: string;
dynamic: boolean;
uniforms: Uniform[];
add( uniform: Uniform ): this;
clone(): UniformsGroup;
copy( source: UniformsGroup ): this;
dispo... | 25,102 |
https://github.com/ResurrectionRemix/Resurrection_packages_apps_Settings/blob/master/src/com/android/settings/fuelgauge/AdvancedPowerUsageDetail.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Resurrection_packages_apps_Settings | ResurrectionRemix | Java | Code | 858 | 3,466 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 42,088 |
https://github.com/Hekku2/k-lan-playlist-user-service/blob/master/src/handlers/user-handler.js | Github Open Source | Open Source | MIT | null | k-lan-playlist-user-service | Hekku2 | JavaScript | Code | 95 | 363 | var userOperations = require('../db/user-operations.js');
exports.list = function(req, res) {
var query = userOperations.users();
var success = function(result) {
res.json(result);
};
var error = function(){
res.sendStatus(500);
};
query.then(success).caught(error);
};... | 29,123 |
https://github.com/WigWagCo/alljoyn/blob/master/alljoyn/alljoyn_core/alljoyn_android/alljoyn/src/org/alljoyn/bus/alljoyn/AllJoynService.java | Github Open Source | Open Source | 0BSD | 2,018 | alljoyn | WigWagCo | Java | Code | 282 | 819 | /*
* Copyright (c) 2010-2011, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWA... | 39,940 |
https://github.com/wingchen/elasticsearch-hadoop/blob/master/spark/src/main/scala/org/elasticsearch/spark/sql/RowValueReader.scala | Github Open Source | Open Source | Apache-2.0 | null | elasticsearch-hadoop | wingchen | Scala | Code | 89 | 342 | package org.elasticsearch.spark.sql
import scala.collection.JavaConverters.asScalaBufferConverter
import scala.collection.mutable.ArrayBuffer
import scala.collection.mutable.LinkedHashMap
import org.elasticsearch.hadoop.cfg.Settings
import org.elasticsearch.hadoop.serialization.SettingsAware
import org.elasticsearch.... | 196 |
https://github.com/civic-eagle/bobsled/blob/master/docker/upload.sh | Github Open Source | Open Source | MIT | 2,022 | bobsled | civic-eagle | Shell | Code | 13 | 52 | #!/bin/sh
set -e
docker build -t jamesturk/bobsled-forever -f Dockerfile.forever .
docker push jamesturk/bobsled-forever
| 15,516 |
https://github.com/iootclab/openjdk/blob/master/openjdk11/test/jdk/tools/jar/multiRelease/data/test05/v9/version/Extra.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | openjdk | iootclab | Java | Code | 24 | 54 | package version;
public class Extra {
public int getVersion() {
return 9;
}
protected void doNothing() {
}
private void anyName() {
}
}
| 23,726 |
https://github.com/0xc14m1z/git-timesheet/blob/master/lib/graph/index.js | Github Open Source | Open Source | MIT | 2,018 | git-timesheet | 0xc14m1z | JavaScript | Code | 14 | 35 | const draw = require("./draw")
const save = require("./save")
module.exports = {
draw,
save
}
| 49,711 |
https://github.com/brandonhudson/onesignal-php-api/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | onesignal-php-api | brandonhudson | Ignore List | Code | 6 | 33 | /.idea
/vendor
phpunit.xml
composer.lock
.php_cs.cache
.phpunit.result.cache
| 30,606 |
https://github.com/promaster171019/angular-aisel/blob/master/frontend/web/app/Aisel/Page/controllers/page.js | Github Open Source | Open Source | MIT | null | angular-aisel | promaster171019 | JavaScript | Code | 82 | 199 | 'use strict';
/**
* This file is part of the Aisel package.
*
* (c) Ivan Proskuryakov
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @name AiselPage
* @description ...
*/
define(['app'], function (app) {
a... | 15,998 |
https://github.com/richtermark/MEDTrip---Healthcareabroad/blob/master/src/HealthCareAbroad/AdminBundle/Resources/views/AdminUserRole/index.html.twig | Github Open Source | Open Source | MIT | null | MEDTrip---Healthcareabroad | richtermark | Twig | Code | 155 | 558 | {% extends 'AdminBundle::layout.html.twig' %}
{% set selectedTab = 'settings'%}
{% set user_typeLabel = getClassLabel('user_type') %}
{% block content %}
<div class="span3">
{% include 'AdminBundle:Widgets:settingsTasks.html.twig'%}
</div>
<div id="content" class="span9">
<!-- start page-heading -... | 38,461 |
https://github.com/hafron/dokuwiki-plugin-bez/blob/master/ctl/start.php | Github Open Source | Open Source | MIT | 2,017 | dokuwiki-plugin-bez | hafron | PHP | Code | 405 | 1,749 | <?php
/** @var action_plugin_bez $this */
use \dokuwiki\plugin\bez;
if ($this->model->get_level() < BEZ_AUTH_USER) {
throw new bez\meta\PermissionDeniedException();
}
class Timeline {
protected $timeline = array();
protected function datetime($iso8601) {
$timestamp = strtotime($iso8601);
... | 17,633 |
https://github.com/georgeholt1/epoch-generate-particles-files/blob/master/epoch_generate_particles_files/generate_3d.py | Github Open Source | Open Source | MIT | null | epoch-generate-particles-files | georgeholt1 | Python | Code | 364 | 977 | # Author: George K. Holt
# License: MIT
# Version: 0.1
"""
Part of EPOCH Generate Particles Files.
This generates particle data by sampling a 3-dimensional number density
distribution.
"""
import numpy as np
try:
from distributions.d3 import number_density_3d
except ImportError:
raise SystemExit("Failed to im... | 26,835 |
https://github.com/prisma-korea/prisma-engines/blob/master/libs/datamodel/core/tests/attributes/postgres_indices/cockroachdb.rs | Github Open Source | Open Source | Apache-2.0 | 2,020 | prisma-engines | prisma-korea | Rust | Code | 527 | 2,215 | use crate::{common::*, with_header, Provider};
#[test]
fn array_field_default_ops() {
let dml = indoc! {r#"
model A {
id Int @id
a Int[]
@@index([a], type: Gin)
}
"#};
let schema = with_header(dml, Provider::Cockroach, &["cockroachDb"]);
let schema = p... | 3,651 |
https://github.com/joyskmathew/hooka/blob/master/test/server/logPrinter/create.spec.js | Github Open Source | Open Source | MIT | 2,022 | hooka | joyskmathew | JavaScript | Code | 32 | 130 | import create from '../../../src/server/logPrinter/create';
describe('logPrinter create', () => {
it('should expose the logger API', () => {
const logger = create('example');
const methods = Object.keys(logger);
expect(methods.length).toBe(4);
expect(methods).toContain('log');
... | 28,502 |
https://github.com/ShaoNianL/danyuan-application/blob/master/src/main/resources/static/pages/softm/dic/index.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | danyuan-application | ShaoNianL | JavaScript | Code | 1,124 | 5,449 |
//验证
function userAddFormValidator(){
$('#dicName_add_form').bootstrapValidator({
message : '验证失败消息',
feedbackIcons : {/* 输入框不同状态,显示图片的样式 */
valid : 'glyphicon glyphicon-ok',
invalid : 'glyphicon glyphicon-remove',
validating : 'glyphicon glyphicon-refresh'
},
fields : {... | 39,358 |
https://github.com/bmbarker90/Semantic-UI-React/blob/master/docs/src/examples/views/Item/Content/ItemExampleDescriptions.js | Github Open Source | Open Source | MIT | null | Semantic-UI-React | bmbarker90 | JavaScript | Code | 111 | 363 | import React from 'react'
import { Item } from 'semantic-ui-react'
const description = [
'Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their',
'tiny stature, and even others for their massive size.',
].join(' ')
const ItemExampleDescriptions = () =>... | 2,470 |
https://github.com/srahmani786/Projects/blob/master/Python/flappy_bird/snowy_bird_final.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | Projects | srahmani786 | Python | Code | 412 | 1,710 | import pygame ,sys ,random
def draw_floor():
screen.blit(floor_surface,(floor_x_pos,250))
screen.blit(floor_surface,(floor_x_pos + 400,250))
def create_pipe():
random_pipe_pos = random.choice(pipe_height) #create random heighted pipes from defined list
new_pipe = pipe_surface.get_rect(midtop =(400,ran... | 10,690 |
https://github.com/Knh238/BookMarker/blob/master/client/components/SampleSeries.js | Github Open Source | Open Source | MIT | null | BookMarker | Knh238 | JavaScript | Code | 131 | 512 | import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import Card from '@material-ui/core/Card'
import CardActionArea from '@material-ui/core/CardActionArea'
import CardActions from '@material-ui/core/CardActions'
import CardContent from '@material-ui/core/CardContent'
import ... | 7,062 |
https://github.com/donavon/lambdog-server/blob/master/__tests__/applyMiddleware.test.js | Github Open Source | Open Source | MIT | 2,020 | lambdog-server | donavon | JavaScript | Code | 148 | 401 | import { applyMiddleware } from '../src/applyMiddleware';
describe('applyMiddleware', () => {
const args = {
event: {},
};
it('resolves when middleware calls next()', async () => {
const sampleMiddleware = (req, res, next) => {
req.count = (req.count || 0) + 1;
next();
};
await apply... | 32,112 |
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/advertising/install/components/bitrix/advertising.banner/templates/nivo/lang/en/.parameters.php | Github Open Source | Open Source | MIT | 2,020 | bitrixdock | Evil1991 | PHP | Code | 47 | 220 | <?
$MESS["ADV_NIVO_EFFECT"] = "Slide change effect";
$MESS["ADV_NIVO_EFFECT_RANDOM"] = "random";
$MESS["ADV_NIVO_CYCLING"] = "Auto advance";
$MESS["ADV_NIVO_INTERVAL"] = "Slide advance speed (msec)";
$MESS["ADV_NIVO_PAUSE"] = "Pause on hover";
$MESS["ADV_NIVO_SPEED"] = "Animation length (msec.)";
$MESS["ADV_NIVO_JQUERY... | 13,434 |
https://github.com/FredAss/OpenResKit-Danger-Android/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,016 | OpenResKit-Danger-Android | FredAss | Ignore List | Code | 4 | 16 | .classpath
bin/
libs/
.settings/
| 8,191 |
https://github.com/pjlorenzo/fluentassertions.ioc.ninject/blob/master/src/FluentAssertions.Ioc.Ninject.Sample/SampleModule.cs | Github Open Source | Open Source | Apache-2.0 | 2,019 | fluentassertions.ioc.ninject | pjlorenzo | C# | Code | 51 | 298 | using FluentAssertions.Ioc.Samples.Core;
using FluentAssertions.Ioc.Samples.Core.Providers;
using FluentAssertions.Ioc.Samples.Data;
using Ninject.Extensions.Conventions;
using Ninject.Modules;
namespace FluentAssertions.Ioc.Ninject.Sample
{
public class SampleModule : NinjectModule
{
public override ... | 15,016 |
https://github.com/Devalent/facial-recognition-service/blob/master/app/store/recognition/index.ts | Github Open Source | Open Source | MIT | null | facial-recognition-service | Devalent | TypeScript | Code | 371 | 1,058 | import { createSlice } from '@reduxjs/toolkit';
import randomColor from 'randomcolor';
import config from '../../config';
import { changeState } from '../demo';
export type Room = {
id:string;
connection:string;
};
export type Recognition = {
x:number;
y:number;
width:number;
height:number;
image:stri... | 28,566 |
https://github.com/davegurnell/validation/blob/master/shared/src/main/scala/io/underscore/validation/ValidationResultImplicits.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | validation | davegurnell | Scala | Code | 93 | 262 | package io.underscore.validation
trait ValidationResultImplicits {
implicit class SeqValidationResultOps(results: Seq[ValidationResult]) {
def hasErrors: Boolean =
results exists (_.isError)
def hasWarnings: Boolean =
results exists (_.isWarning)
def errors: Seq[ValidationResult] =
re... | 32,590 |
https://github.com/HLSW/DeltaEngine/blob/master/Logging/Tests/NetworkLoggerWithLogServiceTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | DeltaEngine | HLSW | C# | Code | 104 | 301 | using System;
using System.Threading;
using DeltaEngine.Core;
using DeltaEngine.Mocks;
using DeltaEngine.Networking.Tcp;
using NUnit.Framework;
namespace DeltaEngine.Logging.Tests
{
public class NetworkLoggerWithLogServiceTests
{
//ncrunch: no coverage start
[Test, Ignore]
public static void LogToRealLogServe... | 22,675 |
https://github.com/jliottard/OthelloGame/blob/master/src/InterfacePlayer.java | Github Open Source | Open Source | MIT | null | OthelloGame | jliottard | Java | Code | 15 | 37 |
public interface InterfacePlayer {
public Position getPosition();
public CellContent getColor();
public void setPosition(Position p);
}
| 28,382 |
https://github.com/fadilatur11/newscrawl/blob/master/resources/views/home/index.blade.php | Github Open Source | Open Source | MIT | null | newscrawl | fadilatur11 | PHP | Code | 231 | 1,260 | <x-headerhome />
<div class="view view-main view-init ios-edges" data-url="/">
<!-- navbar -->
<div class="page page-home">
<div class="page-content">
<!-- navbar top -->
<div class="navbar-top">
<div class="container">
<div class="row">
... | 10,161 |
https://github.com/bivas/pygradle/blob/master/pygradle-plugin/src/main/groovy/com/linkedin/gradle/python/util/internal/ExecutablePathUtils.java | Github Open Source | Open Source | Apache-2.0, Python-2.0 | 2,016 | pygradle | bivas | Java | Code | 185 | 404 | /*
* Copyright 2016 LinkedIn Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 4,395 |
https://github.com/AlexSwensen/pi-gen-auto/blob/master/export-image/00-allow-rerun/00-run.sh | Github Open Source | Open Source | BSD-3-Clause | 2,022 | pi-gen-auto | AlexSwensen | Shell | Code | 13 | 61 | #!/bin/bash -e
if [ ! -x "${ROOTFS_DIR}/usr/bin/qemu-arm-static" ]; then
cp /usr/bin/qemu-arm-static "${ROOTFS_DIR}/usr/bin/"
fi
| 50,821 |
https://github.com/Lizamil/Trello_QA21_LMil/blob/master/trello_web/src/test/java/trello_tests/manager/UserHelper.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | Trello_QA21_LMil | Lizamil | Java | Code | 103 | 514 | package trello_tests.manager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import java.io.File;
public class UserHelper extends HelperBase {
public UserHelper(WebDriver driver) {
super(driver);
}
public void clickOnAvatar() {
click(By.cssSelector(".js-open-header-... | 9,334 |
https://github.com/mogul/cg-provision/blob/master/scripts/bootstrap/destroy-02-bootstrap-concourse.sh | Github Open Source | Open Source | CC0-1.0 | 2,020 | cg-provision | mogul | Shell | Code | 116 | 506 | #!/bin/bash
#
# This script is used to really destroy everything in step 2
# including the volume that has postgres on it so that there
# is no state getting in the way.
#
set -eux
az=$(aws ec2 describe-availability-zones | jq -r '.AvailabilityZones[0].ZoneName')
# Collect AWS variables
bosh interpolate \
./bosh/v... | 30,060 |
https://github.com/kzvd4729/Problem-Solving/blob/master/codeforces/A - Dreamoon Likes Coloring/Wrong answer on test 53 (2).cpp | Github Open Source | Open Source | MIT | 2,022 | Problem-Solving | kzvd4729 | C++ | Code | 83 | 457 | /****************************************************************************************
* @author: kzvd4729 created: Apr/13/2020 10:54
* solution_verdict: Wrong answer on test 53 language: GNU C++14
* run... | 2,525 |
https://github.com/mwiebe/dynd-python/blob/master/dynd/src/numpy_type_interop.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | dynd-python | mwiebe | C++ | Code | 1,301 | 5,795 | //
// Copyright (C) 2011-16 DyND Developers
// BSD 2-Clause License, see LICENSE.txt
//
// This header defines some functions to
// interoperate with numpy
//
#include "numpy_type_interop.hpp"
#if DYND_NUMPY_INTEROP
#include <dynd/types/struct_type.hpp>
#include <numpy/arrayscalars.h>
using namespace std;
PyArray... | 12,541 |
https://github.com/R-N/sistem_gaji_vue_thrift/blob/master/frontend/src/components/overlay/LoadingOverlay.vue | Github Open Source | Open Source | MIT | null | sistem_gaji_vue_thrift | R-N | Vue | Code | 162 | 619 | <template>
<v-overlay :value="busy">
<v-container
class="fill-height"
fluid
>
<v-row
align="center"
justify="center"
class="flex-column"
>
<v-progress-circular indeterminate :size="circleSize">
<refresh-button icon large v-if="mayRefresh"/>
</v-progress-circular>
</v-row>
... | 48,340 |
https://github.com/eval-apply/Gauche/blob/master/lib/srfi-143.scm | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Gauche | eval-apply | Scheme | Code | 8 | 28 | ;; srfi-143 became scheme.fixnum
(define-module srfi-143 (extend scheme.fixnum))
| 12,248 |
https://github.com/gravicle/hacker/blob/master/Models/MappableArrayOfManagedObjects.swift | Github Open Source | Open Source | MIT | 2,020 | hacker | gravicle | Swift | Code | 63 | 168 | import Mapper
import CoreData
extension Mapper {
func from<T: JSONDecodable>(_ field: String, in context: NSManagedObjectContext) throws -> [T] {
let value = try self.JSONFromField(field)
guard let JSON = value as? [NSDictionary] else {
throw MapperError.typeMismatchError(field: field,... | 43,416 |
https://github.com/bloXroute-Labs/bxcommon/blob/master/test/unit/utils/test_limited_size_set.py | Github Open Source | Open Source | MIT | 2,022 | bxcommon | bloXroute-Labs | Python | Code | 76 | 389 | from bxcommon.test_utils.abstract_test_case import AbstractTestCase
from bxcommon.utils.limited_size_set import LimitedSizeSet
class LimitedSizeSetTest(AbstractTestCase):
def setUp(self) -> None:
self.sut = LimitedSizeSet(5)
for i in range(5):
self.sut.add(i)
def test_contains(se... | 30,072 |
https://github.com/devcafe-latte/deadbolt/blob/master/src/model/middlewares.ts | Github Open Source | Open Source | MIT | null | deadbolt | devcafe-latte | TypeScript | Code | 179 | 461 | import { Request, Response } from 'express';
import container from './DiContainer';
import { hasProperties } from './helpers';
// Injects _user and _indentifier into request.params
export const userMiddleware = async (req: Request, res: Response, next: Function) => {
if (req.body) {
const body = req.body;
c... | 14,454 |
https://github.com/jpmckinney/multi_mail/blob/master/lib/multi_mail/postmark/message.rb | Github Open Source | Open Source | MIT | 2,020 | multi_mail | jpmckinney | Ruby | Code | 211 | 733 | module MultiMail
module Message
# @see http://developer.postmarkapp.com/developer-build.html#message-format
class Postmark < MultiMail::Message::Base
attr_accessor :mailboxhash, :messageid, :tag
# Returns the message headers in Postmark format.
#
# @return [Array<Hash>] the message he... | 39,870 |
https://github.com/alavit-d/mod1/blob/master/ground.js | Github Open Source | Open Source | MIT | null | mod1 | alavit-d | JavaScript | Code | 477 | 1,668 | var ImprovedNoise = function () {
var p = [151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,
23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,
174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,11... | 15,264 |
https://github.com/yonashub/karrot-frontend/blob/master/src/activities/api/activities.js | Github Open Source | Open Source | MIT | 2,022 | karrot-frontend | yonashub | JavaScript | Code | 354 | 1,192 | import axios, { parseCursor } from '@/base/api/axios'
import { convert as convertConversation } from '@/messages/api/conversations'
import { absoluteURL } from '@/utils/absoluteURL'
import { toFormData, underscorizeKeys } from '@/utils/utils'
export default {
async create (activity) {
return convert((await axio... | 2,221 |
https://github.com/Ultrawipf/actools/blob/master/AcTools.Render/Kn5SpecificForward/Materials/Kn5MaterialSimpleAtNm.cs | Github Open Source | Open Source | MS-PL | 2,022 | actools | Ultrawipf | C# | Code | 74 | 289 | using AcTools.Render.Base;
using AcTools.Render.Base.Objects;
using AcTools.Render.Kn5Specific.Materials;
using AcTools.Render.Kn5Specific.Textures;
using JetBrains.Annotations;
namespace AcTools.Render.Kn5SpecificForward.Materials {
public class Kn5MaterialSimpleAtNm : Kn5MaterialSimple {
private IRendera... | 7,462 |
https://github.com/EMSL-NMR-EPR/Ruby-Bruker-TopSpin-Library/blob/master/lib/bruker/top_spin.rb | Github Open Source | Open Source | ECL-2.0 | 2,019 | Ruby-Bruker-TopSpin-Library | EMSL-NMR-EPR | Ruby | Code | 23 | 135 | module Bruker
###
# Bruker TopSpin
#
# @see https://www.bruker.com/products/mr/nmr/nmr-software/software/topspin/overview.html
module TopSpin
autoload :PeakList, 'bruker/top_spin/peak_list'
autoload :Shifts, 'bruker/top_spin/shifts'
autoload :T1Peaks, 'bruker/top_spin/t1_peaks'
end
end
| 617 |
https://github.com/anarh/demo-scss-npm-module/blob/master/test/index.js | Github Open Source | Open Source | MIT | 2,017 | demo-scss-npm-module | anarh | JavaScript | Code | 16 | 51 | 'use strict';
var test = require('tape');
test('base:function:test', function (t) {
t.ok(typeof test === 'function');
t.end();
});
| 38,579 |
https://github.com/taiki-e/portable-atomic/blob/master/src/imp/interrupt/avr.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | portable-atomic | taiki-e | Rust | Code | 111 | 411 | // Adapted from https://github.com/Rahix/avr-device.
#[cfg(not(portable_atomic_no_asm))]
use core::arch::asm;
#[inline]
pub(super) fn is_enabled() -> bool {
let sreg: u8;
unsafe {
#[cfg(not(portable_atomic_no_asm))]
asm!("in {},0x3F", out(reg) sreg, options(nomem, nostack, preserves_flags));
... | 13,536 |
https://github.com/caryll/node-tin/blob/master/lib/libcff/charstring-il.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | node-tin | caryll | C | Code | 2,283 | 7,860 | #include "charstring-il.h"
#include "table/glyf.h"
// Glyph building
static void ensureThereIsSpace(cff_CharstringIL *il) {
if (il->free) return;
il->free = 0x100;
RESIZE(il->instr, il->length + il->free);
}
void il_push_operand(cff_CharstringIL *il, double x) {
ensureThereIsSpace(il);
il->instr[il->length].type... | 28,807 |
https://github.com/cnr-isti-vclab/nexus/blob/master/src/nxsbuild/meshstream.cpp | Github Open Source | Open Source | MIT | 2,022 | nexus | cnr-isti-vclab | C++ | Code | 792 | 2,618 | /*
Nexus
Copyright(C) 2012 - Federico Ponchio
ISTI - Italian National Research Council - Visual Computing Lab
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at ... | 3,932 |
https://github.com/WikiWatershed/gwlf-e/blob/master/test/unittests/test_StreamFlow.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | gwlf-e | WikiWatershed | Python | Code | 85 | 506 | import numpy as np
from .VariableUnitTest import VariableUnitTest
from gwlfe.MultiUse_Fxns.Discharge import StreamFlow
class TestStreamFlow(VariableUnitTest):
def test_StreamFlow(self):
z = self.z
np.testing.assert_array_almost_equal(
StreamFlow.StreamFlow_f(z.NYrs, z.DaysMonth, z.Te... | 40,376 |
https://github.com/antonpolishko/google-research/blob/master/drawtext/wikispell/data/th.dev.bottom_50_pct.tsv | Github Open Source | Open Source | Apache-2.0, CC-BY-4.0 | 2,023 | google-research | antonpolishko | TSV | Code | 9,171 | 25,412 | จาระบี จ า ร ะ บ ี
การเทศน์ ก า ร เ ท ศ น ์
ชลิตา ช ล ิ ต า
ไอซียู ไ อ ซ ี ย ู
การปิดสวิตช์ ก า ร ป ิ ด ส ว ิ ต ช ์
ต้มยำกุ้ง ต ้ ม ย ำ ก ุ ้ ง
พืชใบเลี้ยงคู่ พ ื ช ใ บ เ ล ี ้ ย ง ค ู ่
อาบูจา อ า บ ู จ า
ตะบองเพชร ต ะ บ อ ง เ พ ช ร
หญิงงามเมือง ห ญ ิ ง ง า ม เ ม ื อ ง
เบนิน เ บ น ิ น
การละเว้น ก า ร ล ะ เ ว ้ น
เฃ้า ... | 26,908 |
https://github.com/b-cube/bcube-triplestore/blob/master/ttl/7c/7c66f702ae48f75b3df90d3dba4f869cafb4dc5a_triples.ttl | Github Open Source | Open Source | MIT | null | bcube-triplestore | b-cube | Turtle | Code | 403 | 1,847 | @prefix bcube: <http://purl.org/BCube/#> .
@prefix bibo: <http://purl.org/ontology/bibo/#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcat: <http://www.w3.org/TR/vocab-dcat/#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix esip: <http://purl.org/esip/#> .
@prefix foaf: <http://xmlns.com/foaf/0... | 41,266 |
https://github.com/JamesYang-7/MyRenderer/blob/master/src/sphere.cpp | Github Open Source | Open Source | MIT | 2,022 | MyRenderer | JamesYang-7 | C++ | Code | 228 | 642 | #include "sphere.h"
bool Sphere::hit(const Ray& ray, double t_min, double t_max, HitRecord& rec) const {
double root = 0;
// Solve t^2*d.*d + 2*t*(o-c).*d + (o-c).*(o-c)-R^2 = 0
double eps = 0;
Vec3 oc = ray.origin() - center;
double b = dot(oc, ray.direction());
double delta = b * b - dot(oc, oc) + radius * rad... | 3,900 |
https://github.com/tylde/emblem-ui/blob/master/packages/data/src/components/Table/Table.tsx | Github Open Source | Open Source | MIT | 2,020 | emblem-ui | tylde | TypeScript | Code | 48 | 152 | import React from 'react';
import {EmblemUITheme, useTheme} from '@emblem-ui/styles';
import {StyledTable} from './Table.styles';
interface Table extends React.HTMLAttributes<HTMLDivElement> {
children: React.ReactNode;
}
const Table: React.FC<Table> = ({
children,
...otherProps
}) => {
const theme: EmblemUIT... | 35,836 |
https://github.com/sumanth712bs/aws-toolkit-jetbrains/blob/master/jetbrains-core/src/software/aws/toolkits/jetbrains/ui/ProgressPanel.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-toolkit-jetbrains | sumanth712bs | Kotlin | Code | 142 | 527 | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.ui
import com.intellij.openapi.progress.util.AbstractProgressIndicatorExBase
import com.intellij.openapi.wm.ex.ProgressIndicatorEx
import com.intellij.ui.components... | 35,151 |
https://github.com/piller-imre/notte/blob/master/models.py | Github Open Source | Open Source | MIT | null | notte | piller-imre | Python | Code | 148 | 483 | import json
from app import db
class Note(db.Model):
"""A note about an information item"""
__tablename__ = 'notes'
id = db.Column(db.Integer, primary_key=True)
location = db.Column(db.String, nullable=None)
description = db.Column(db.String)
tags = db.Column(db.String)
def to_dict(self... | 7,091 |
https://github.com/eqillibrium/top-app-api/blob/master/src/page/page.controller.ts | Github Open Source | Open Source | MIT | null | top-app-api | eqillibrium | TypeScript | Code | 187 | 732 | import {
Body,
Controller,
Delete,
Get,
HttpCode,
NotFoundException,
Param,
Patch,
Post, UseGuards,
UsePipes, ValidationPipe
} from '@nestjs/common';
import { PageModel } from './page.model';
import { FindPageDto } from './dto/find-page.dto';
import { PageService } from './page.s... | 6,725 |
https://github.com/marklogic/java-client-api/blob/master/ml-development-tools/src/test/java/com/marklogic/client/test/gradle/EndpointProxiesGenTaskTest.java | Github Open Source | Open Source | Apache-2.0, EPL-1.0, Classpath-exception-2.0, LGPL-2.1-or-later, LGPL-2.1-only, LicenseRef-scancode-mit-old-style, OFL-1.1, BSD-4-Clause, LicenseRef-scancode-rsa-1990, BSD-3-Clause, JSON, CC-BY-4.0, LicenseRef-scancode-mit-no-advert-export-control, LicenseRef-scancode-generic-cla, LicenseRef-scancode-free-unknown, WTFP... | 2,023 | java-client-api | marklogic | Java | Code | 469 | 2,002 | /*
* Copyright (c) 2022 MarkLogic Corporation
*
* 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 ... | 373 |
https://github.com/HighEncryption/SyncPro/blob/master/SyncPro.UI/Dialogs/EncryptionSettingsDialogViewModel.cs | Github Open Source | Open Source | MIT | 2,022 | SyncPro | HighEncryption | C# | Code | 277 | 960 | namespace SyncPro.UI.Dialogs
{
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Cryptography.X509Certificates;
using System.Windows.Input;
using SyncPro.UI.Framework;
using SyncPro.UI.Framework.MVVM;
public class EncryptionSettingsDialogViewModel : ViewModelBas... | 47,987 |
https://github.com/kagawa23/openui5/blob/master/src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v4/mirrored-task-circle-2.js | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,022 | openui5 | kagawa23 | JavaScript | Code | 101 | 476 | sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "mirrored-task-circle-2";
const pathData = "M62 255q-6 1-11-3.5T45 241q-1-7 3.5-11.5T60 224h57q-1-1-2-1.5t-2-1.5q-13-6-30-17t-32-26.5-25-36T16 96t8-43.5 21.5-30T75 5.5 108 0h14q6 0 11 4.5t5 11.5... | 40,468 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/团800-团购大全-6.1.2(越狱应用)_headers/QSStrings.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 60 | 272 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSObject.h>
@interface QSStrings : NSObject
{
}
+ (id)decodeBase64WithString:(id)arg1;
+ (id)encodeBase64WithData... | 31,133 |
https://github.com/jackass0528/FirebaseUI-Android/blob/master/internal/lint/src/main/java/com/firebaseui/lint/LintIssueRegistry.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,018 | FirebaseUI-Android | jackass0528 | Kotlin | Code | 24 | 84 | package com.firebaseui.lint
import com.android.tools.lint.client.api.IssueRegistry
/**
* Registry for custom FirebaseUI lint checks.
*/
class LintIssueRegistry : IssueRegistry() {
override fun getIssues() = listOf(NonGlobalIdDetector.NON_GLOBAL_ID)
}
| 40,957 |
https://github.com/hexiaoyuan/log4cplus/blob/master/src/ndc.cxx | Github Open Source | Open Source | Apache-2.0 | 2,020 | log4cplus | hexiaoyuan | C++ | Code | 738 | 2,444 | // Module: Log4CPLUS
// File: ndc.cxx
// Created: 6/2001
// Author: Tad E. Smith
//
//
// Copyright 2001-2015 Tad E. Smith
//
// 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
//
// h... | 36,981 |
https://github.com/Astroleander/codash/blob/master/src/code/leetcode/array.209.minimum-size-subarray-sum.medium/solution.slide_window.ts | Github Open Source | Open Source | MIT | null | codash | Astroleander | TypeScript | Code | 133 | 338 | import { Solution } from '@/pojo/Solution';
function minSubArrayLen(s: number, nums: number[]): number {
let p_low = 0, p_high = -1;
let sum = 0, count = 0;
let result_low= -1, result_high = Infinity;
const len = nums.length;
while (p_low < len) {
console.log(nums.slice(p_low, p_high + 1), sum)
if (... | 30,416 |
https://github.com/Donkemezuo/9square/blob/master/9squareApp/Controllers/DetailViewController.swift | Github Open Source | Open Source | MIT | null | 9square | Donkemezuo | Swift | Code | 481 | 1,595 | //
// DetailViewController.swift
// 9squareApp
//
// Created by Donkemezuo Raymond Tariladou on 2/14/19.
// Copyright © 2019 EnProTech Group. All rights reserved.
//
import UIKit
class DetailViewController: UIViewController {
private let detailView = DetailView()
private var venue: VenueStruct!
p... | 44,788 |
https://github.com/annaone/quickstart-nubeva-tlsdecrypt/blob/master/docs/partner_editable/_settings.adoc | Github Open Source | Open Source | Apache-2.0 | null | quickstart-nubeva-tlsdecrypt | annaone | AsciiDoc | Code | 31 | 142 | :quickstart-project-name: quickstart-nubeva-tlsdecrypt
:partner-product-name: Nubeva TLS Decrypt
:partner-product-short-name: TLS Decrypt
:partner-company-name: Nubeva
:doc-month: June
:doc-year: 2021
:partner-contributors: Erik Freeland, {partner-company-name}
:quickstart-contributors: Dylan Owen, Amazon Web Services
... | 12,066 |
https://github.com/pablo-parra/hey/blob/master/src/main/java/utils/impl/NotificationManagerImpl.java | Github Open Source | Open Source | MIT | null | hey | pablo-parra | Java | Code | 372 | 1,451 | package utils.impl;
import java.awt.AWTException;
import java.awt.Image;
import java.awt.MenuItem;
import java.awt.PopupMenu;
import java.awt.SystemTray;
import java.awt.Toolkit;
import java.awt.TrayIcon;
import java.awt.TrayIcon.MessageType;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
im... | 4,132 |
https://github.com/rising-anti-malware-team/lame/blob/master/python/lame.mt.scanner.py | Github Open Source | Open Source | CNRI-Python, Info-ZIP, 0BSD | 2,022 | lame | rising-anti-malware-team | Python | Code | 618 | 2,412 | import os
import sys
# import thread
import threading
import time
from lame import *
def format_bstring(bstr, CodePage=None):
if 3 == sys.version_info.major:
if CodePage is None:
return bstr.decode()
else:
return bstr.decode(CodePage)
else:
return bstr
class la... | 24,733 |
https://github.com/beru/oglsc/blob/master/lib/texenv.c | Github Open Source | Open Source | Artistic-2.0 | 2,013 | oglsc | beru | C | Code | 331 | 1,384 | /*
** -------------------------------------------------------------------------
** Vincent SC 1.0 Rendering Library
**
** Texture Environment Functions
**
** Copyright (C) 2008 Vincent Pervasive Media Technologies, LLC.
**
** Licensed under the Artistic License 2.0.
** -------------------------------------------------... | 28,430 |
https://github.com/MatthiasZepper/CoCo-SciLifeLab-Commute/blob/master/talk/data/mapedgesmap.js | Github Open Source | Open Source | MIT | null | CoCo-SciLifeLab-Commute | MatthiasZepper | JavaScript | Code | 13 | 191 | export const datamapedgesmap = `
.vx0,.vx1,edge_,.vx0_x,.vx0_y,.vx1_x,.vx1_y,zmn
155926,5642911845,r163bRnuX2,17.9903194,59.2968574,17.9905155,59.2968533,37
5642911845,159027,ImXOAjOwR4,17.9905155,59.2968533,17.991698,59.2968287,38.5
159027,2207882121,xqe7oUs9QU,17.991698,59.2968287,17.991879,59.2968129,40
`;
export d... | 12,430 |
https://github.com/cofoundry-cms/cofoundry/blob/master/src/Cofoundry.Domain/Domain/Pages/Queries/SearchPageRenderSummariesQuery.cs | Github Open Source | Open Source | MIT | 2,023 | cofoundry | cofoundry-cms | C# | Code | 201 | 369 | namespace Cofoundry.Domain;
/// <summary>
/// Search page data returning the PageRenderSummary projection, which is
/// a lighter weight projection designed for rendering to a site when the
/// templates, region and block data is not required. The query is
/// version-sensitive and defaults to returning published v... | 25,453 |
https://github.com/chuckwondo/iter-tools/blob/master/src/test/$wrap/wrap.d.ts | Github Open Source | Open Source | MIT | 2,022 | iter-tools | chuckwondo | TypeScript | Code | 75 | 181 | /**
* @generated-from ./$wrap.d.ts
* This file is autogenerated from a template. Please do not edit it directly.
* To rebuild it from its template use the command
* > npm run generate
* More information can be found in CONTRIBUTING.md
*/
import { Wrappable, IterableIterator } from '../../types/iterable';
declar... | 12,456 |
https://github.com/greekwelfaresa/idempiere-test/blob/master/au.org.greekwelfaresa.idempiere.test.assertj/src/au/org/greekwelfaresa/idempiere/test/assertj/ad_process/AD_ProcessAssert.java | Github Open Source | Open Source | Apache-2.0 | null | idempiere-test | greekwelfaresa | Java | Code | 59 | 231 | /** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.ad_process;
import javax.annotation.Generated;
import org.compiere.model.X_AD_Process;
/** Generated assertion class for AD_Process
* @author idempiere-test model assertion generator
* @version Release 6.2 - $Id:... | 18,781 |
https://github.com/byrcoder/sps/blob/master/src/url/sps_url.cpp | Github Open Source | Open Source | MIT | 2,022 | sps | byrcoder | C++ | Code | 637 | 1,894 | /*****************************************************************************
MIT License
Copyright (c) 2021 byrcoder
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includin... | 32,841 |
https://github.com/atptro/alibabacloud-sdk/blob/master/vod-20170321/java/src/main/java/com/aliyun/vod20170321/models/DescribeVodDomainBpsDataRequest.java | Github Open Source | Open Source | Apache-2.0 | null | alibabacloud-sdk | atptro | Java | Code | 66 | 257 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.vod20170321.models;
import com.aliyun.tea.*;
public class DescribeVodDomainBpsDataRequest extends TeaModel {
@NameInMap("OwnerId")
public Long ownerId;
@NameInMap("DomainName")
public String domainName;
@NameInMap("StartTi... | 14,935 |
https://github.com/boid-com/eosdac-client/blob/master/src/components/controls/vote-delegation.vue | Github Open Source | Open Source | MIT | 2,021 | eosdac-client | boid-com | Vue | Code | 364 | 1,490 | <template>
<div v-if="getAccountName && wpcats.length">
<!-- <div class="bg-bg1 round-borders shadow-4 q-pa-md q-mb-md">
My Category Delegations
</div> -->
<!-- {{ getCatDelegations }} -->
<div
class="relative-position bg-bg1 bg-logo q-pa-md round-borders shadow-4"
>
<div class="... | 27,063 |
https://github.com/booleancoercion/computercraft/blob/master/quarry.lua | Github Open Source | Open Source | MIT | 2,021 | computercraft | booleancoercion | Lua | Code | 1,030 | 2,347 | --[[
quarry.lua - a simple quarry script.
The turtle running this script must satisfy the following conditions:
* there must be a chest behind the turtle in which it will put
the collected goods
* there must be a chest to the right of the turtle from which it
will draw fuel
... | 51,098 |
https://github.com/feeday/feeday.github.io/blob/master/py/rmf999.py | Github Open Source | Open Source | MIT, Apache-2.0 | 2,023 | feeday.github.io | feeday | Python | Code | 33 | 201 | import os
import glob
# 获取当前文件夹名
current_folder = os.path.basename(os.getcwd())
# 获取当前文件夹下的所有文件
files = glob.glob('*')
# 对文件名进行升序排序
files.sort()
# 遍历文件列表,对每个文件执行重命名操作
for i, file in enumerate(files):
# 获得新文件名
new_file_name = f"{current_folder}_{str(i+1).zfill(3)}{os.path.splitext(file)[1]}"
# 执行重命名操作
... | 30,273 |
https://github.com/RoydeZomer/Soccer-Visualisation-/blob/master/Judge.java | Github Open Source | Open Source | MIT | null | Soccer-Visualisation- | RoydeZomer | Java | Code | 514 | 1,531 | import processing.core.*;
import processing.*;
import java.util.*;
public class Judge {
private float GAME_DURATION = 60 * 90;
private float ROBOT_TAKEN_OUTSIDE_TIME = GAME_DURATION;
private float BALL_OUTSIDE_TIME_LIMIT = GAME_DURATION;
private GameController controller;
private GameSimulator simulator;
... | 2,160 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.