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/andrzejgrabowski/riot-android/blob/master/vector/src/main/java/im/vector/VectorApp.java
Github Open Source
Open Source
Apache-2.0
null
riot-android
andrzejgrabowski
Java
Code
2,913
9,503
/* * Copyright 2014 OpenMarket Ltd * Copyright 2017 Vector Creations Ltd * Copyright 2018 New Vector Ltd * Copyright 2019 New Vector Ltd * * 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 a...
43,816
https://github.com/vlktomas/mantine/blob/master/src/mantine-dates/src/components/DateRangePicker/stories/DateRangePicker.story.tsx
Github Open Source
Open Source
MIT
2,022
mantine
vlktomas
TypeScript
Code
152
423
import React from 'react'; import { storiesOf } from '@storybook/react'; import { MantineProvider, TextInput } from '@mantine/core'; import { DateRangePicker } from '../DateRangePicker'; storiesOf('@mantine/dates/DateRangePicker/stories', module) .add('First day of week sunday', () => ( <div style={{ padding: 40...
38,243
https://github.com/fgarcia-student/react-punk-client/blob/master/src/state/entities/beer/actions/SetPage.js
Github Open Source
Open Source
MIT
2,019
react-punk-client
fgarcia-student
JavaScript
Code
18
42
import BeerTypes from "../types"; export const SetPage = (page) => { return { page, type: BeerTypes.SetPage } }
26,665
https://github.com/sealuzh/PerformanceHat/blob/master/cw-feedback-eclipse-performance/src/eu/cloudwave/wp5/feedback/eclipse/performance/extension/basic/prediction/block/PredictionHeader.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
PerformanceHat
sealuzh
Java
Code
34
156
package eu.cloudwave.wp5.feedback.eclipse.performance.extension.basic.prediction.block; import java.util.Collection; import java.util.Collections; import com.google.common.collect.Lists; import eu.cloudwave.wp5.feedback.eclipse.performance.extension.processor.PredictionNodeHeader; public class PredictionHeader impl...
32,627
https://github.com/jackprogramsjp/CPP-Simple-Math-Interpreter/blob/master/interpreter.cpp
Github Open Source
Open Source
MIT
2,021
CPP-Simple-Math-Interpreter
jackprogramsjp
C++
Code
131
651
#include <string> #include <cmath> #include "nodes.h" #include "values.h" #include "interpreter.h" namespace Interpreter { Values::Number Interpreter::visit(Nodes::Node *node) { switch (node->node_type) { case Nodes::NumberNode: return Values::Number(node->value); c...
13,295
https://github.com/PSeitz/assert_contains_cli/blob/master/src/bin/assert_contains_not.rs
Github Open Source
Open Source
MIT
null
assert_contains_cli
PSeitz
Rust
Code
33
124
use std::env; use std::io::{self, Read}; use std::process; fn main() { let args: String = env::args().skip(1).collect::<Vec<String>>().join(" "); let mut buffer = String::new(); io::stdin().read_to_string(&mut buffer).unwrap(); if buffer.contains(&args) { eprintln!("error: {:?} found", args); ...
16,755
https://github.com/syamimhazmi/syamim/blob/master/backend/models/JcfmUnder18Search.php
Github Open Source
Open Source
BSD-3-Clause
2,016
syamim
syamimhazmi
PHP
Code
215
857
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use backend\models\JcfmUnder18; /** * JcfmUnder18Search represents the model behind the search form about `backend\models\JcfmUnder18`. */ class JcfmUnder18Search extends JcfmUnder18 { /** * @inheritdoc */ ...
48,189
https://github.com/SocialGouv/emjpm/blob/master/packages/hasura/migrations/default/1624376095159_alter_table_public_lb_update_log_add_column_table/up.sql
Github Open Source
Open Source
Apache-2.0
2,022
emjpm
SocialGouv
SQL
Code
8
23
alter table "public"."lb_update_log" add column "table" text null;
43,938
https://github.com/scala-steward/firrtl/blob/master/src/test/scala/firrtlTests/annotationTests/UnrecognizedAnnotationSpec.scala
Github Open Source
Open Source
Apache-2.0
2,020
firrtl
scala-steward
Scala
Code
549
2,065
// SPDX-License-Identifier: Apache-2.0 package firrtlTests.annotationTests import firrtl.FileUtils import firrtl.annotations._ import firrtl.passes.memlib.ReplSeqMemAnnotation import firrtl.stage.FirrtlMain import firrtl.testutils.FirrtlFlatSpec import firrtl.transforms.BlackBoxInlineAnno import logger.Logger import ...
29,107
https://github.com/Cambricon/cnnl-example/blob/master/include/gen_case.h
Github Open Source
Open Source
Apache-2.0
2,022
cnnl-example
Cambricon
C
Code
426
1,545
/************************************************************************* * Copyright (C) 2021 Cambricon. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT...
40,581
https://github.com/hughevans/proxy_ping/blob/master/lib/proxy_ping_controller.rb
Github Open Source
Open Source
MIT
2,016
proxy_ping
hughevans
Ruby
Code
19
51
class ProxyPingController < ApplicationController include ExemptFromLogging session :off, :only => 'ping' def ping render :text => 'pong' end end
14,668
https://github.com/libris/definitions/blob/master/source/musicnotation.ttl
Github Open Source
Open Source
Apache-2.0
2,022
definitions
libris
Turtle
Code
199
867
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix sdo: <http://schema.org/> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix : <https://id.kb.se/vocab/> . @base <https://id.kb.se/term/rda/musnotation/> . @prefix rdafmn: <http://rdaregistry.i...
29,458
https://github.com/JetBrains/intellij-community/blob/master/python/helpers/typeshed/stubs/redis/redis/commands/graph/path.pyi
Github Open Source
Open Source
Apache-2.0, MIT
2,023
intellij-community
JetBrains
Python
Code
57
166
from typing import Any class Path: append_type: Any def __init__(self, nodes, edges) -> None: ... @classmethod def new_empty_path(cls): ... def nodes(self): ... def edges(self): ... def get_node(self, index): ... def get_relationship(self, index): ... def first_node(self): ... d...
30,337
https://github.com/LucaFranceschini/RML/blob/master/monitor/deep_subdict.pl
Github Open Source
Open Source
Apache-2.0
2,019
RML
LucaFranceschini
Perl
Code
109
326
:- module('deep_subdict', [deep_subdict/2]). % three cases: dictionaries, lists and others % if the first dict is empty we're done deep_subdict(_{}, D) :- is_dict(D). % dictionaries deep_subdict(D1, D2) :- % ensure they're dicts is_dict(D1), is_dict(D2), !, % take a pair out from the subdict dict_pairs(D1, _, ...
41,946
https://github.com/houhlin/APDPlat/blob/master/APDPlat_Module/src/main/resources/web/platform/js/search_apdplat.js
Github Open Source
Open Source
Apache-2.0
2,020
APDPlat
houhlin
JavaScript
Code
54
384
var SearchForm=new Ext.Panel({ id:"searchForm", layout:"hbox", border:false, bodyStyle:"background-color: transparent;", style:"margin-top:-15px", layoutConfig:{ align:"top", pack:"center" }, defaults:{ margins:{ top:0, left:2, bottom:0, right:0 } }, items:[{ id:"searchContent", xtype...
41,632
https://github.com/0xd5A1/cstable-contracts/blob/master/contracts/interfaces/ICSTToken.sol
Github Open Source
Open Source
MIT
null
cstable-contracts
0xd5A1
Solidity
Code
20
73
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ICSTToken is IERC20 { function mint(address to, uint256 amount) external; }
9,116
https://github.com/RadioCooperativa/ms-comun-cooperativa/blob/master/common/configDb.js
Github Open Source
Open Source
MIT
2,019
ms-comun-cooperativa
RadioCooperativa
JavaScript
Code
60
213
'use strict' //urls for database secrets const userSecret = process.env.KV_SQL_SERVER_USER; const passwordSecret = process.env.KV_SQL_SERVER_PASSWORD; const dbSecret = process.env.KV_SQL_SERVER_BD; const hostSecret = process.env.KV_SQL_SERVER_HOST; const mysql = require('mysql2/promise'); module.exports = { nam...
43,802
https://github.com/lukegv/Capito/blob/master/res/components/start.js
Github Open Source
Open Source
MIT
null
Capito
lukegv
JavaScript
Code
486
1,671
// Defines a component to show a changelog item Vue.component('item', { props: ['name'], template: '\ <li class="list-group-item" role="button" @click="select(name)" @mouseenter="hover(true)" @mouseleave="hover(false)">\ {{name}}\ <button v-if="hovered" type="button" class="btn btn-danger btn-xs space pull-ri...
19,588
https://github.com/AdventureT/TrbMultiTool/blob/master/TrbMultiTool/TrbMultiTool/Shaders/texture.frag
Github Open Source
Open Source
MIT
2,021
TrbMultiTool
AdventureT
GLSL
Code
49
125
//Fragment shader #version 110 uniform sampler2D ColorTable; //256 x 1 pixels uniform sampler2D MyIndexTexture; varying vec2 TexCoord; void main() { //What color do we want to index? vec4 myindex = texture2D(MyIndexTexture, TexCoord); //Do a dependency texture read vec4 texel = texture2D(ColorTable, myinde...
29,468
https://github.com/tiduslaugh/centurion/blob/master/src/centurion/input/haptic_constant.hpp
Github Open Source
Open Source
MIT
null
centurion
tiduslaugh
C++
Code
176
474
#ifndef CENTURION_HAPTIC_CONSTANT_HEADER #define CENTURION_HAPTIC_CONSTANT_HEADER #include <SDL2/SDL.h> #include "haptic_effect.hpp" namespace cen { /// \addtogroup input /// \{ /** * \class haptic_constant * * \brief Represents a haptic effect that applies a constant force in some direction. * * \note See th...
42,241
https://github.com/korECM/SportsHistory/blob/master/Model/WorldSoccer.ts
Github Open Source
Open Source
MIT
2,022
SportsHistory
korECM
TypeScript
Code
42
169
export type WorldSoccerLeague = | "epl" | "primera" | "bundesliga" | "seria" | "ligue1" | "champs" | "europa" | "facup" | "carlingcup" | "copadelrey"; export const WorldSoccerLeagueArray : WorldSoccerLeague[] = [ "epl", "primera", "bundesliga", "seria", "ligue1", "champs", "europa", ...
35,634
https://github.com/dbermond/libmysofa/blob/master/src/hrtf/reader.c
Github Open Source
Open Source
BSD-3-Clause
null
libmysofa
dbermond
C
Code
976
3,461
/* Copyright 2016 Christian Hoene, Symonics GmbH */ #include <ctype.h> #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../config.h" #include "../hdf/reader.h" #include "mysofa.h" #include "mysofa_export.h" /* checks file address. * NULL is an invalid a...
43,324
https://github.com/realityforge/galdr/blob/master/processor/src/test/fixtures/subsystem/bad_input/com/example/on_deactivate/ReturnsValueOnDeactivateSubSystem.java
Github Open Source
Open Source
Apache-2.0
2,020
galdr
realityforge
Java
Code
28
114
package com.example.on_deactivate; import galdr.annotations.GaldrSubSystem; import galdr.annotations.OnDeactivate; import galdr.annotations.Processor; @GaldrSubSystem public abstract class ReturnsValueOnDeactivateSubSystem { @OnDeactivate String onDeactivate() { return null; } @Processor final void r...
644
https://github.com/bountysource/core/blob/master/app/models/tracker_person_relation.rb
Github Open Source
Open Source
MIT
2,021
core
bountysource
Ruby
Code
90
281
# == Schema Information # # Table name: tracker_person_relations # # id :integer not null, primary key # tracker_id :integer not null # person_id :integer not null # can_edit :boolean default(TRUE), not null # created_at :datetime not null # updated_at :datet...
47,595
https://github.com/deadlysmiletm/ADayWithArcueid/blob/master/Assets/Paradox Engine/Graph/Scripts/Core/Nodes/NEnd.cs
Github Open Source
Open Source
MIT
null
ADayWithArcueid
deadlysmiletm
C#
Code
99
325
using System.Collections; using System.Collections.Generic; using UnityEngine; using ParadoxEngine.Utilities; [System.Serializable] public class NEnd : NTemplate { public NEnd() { input = new NodeInput(); input.inputNode = new List<NTemplate>(); } public override void InitNode() {...
43,415
https://github.com/orahul1/ngx-avatar/blob/master/src/app/app.component.spec.ts
Github Open Source
Open Source
MIT
null
ngx-avatar
orahul1
TypeScript
Code
81
274
import { HttpClientTestingModule } from '@angular/common/http/testing'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { TestBed, async } from '@angular/core/testing'; import { AppComponent } from './app.component'; import { UserService } from './user.service'; const userServiceStub = { fetchInformation: ...
25,676
https://github.com/glow-protocol/glow-contracts/blob/master/contracts/distributor/src/contract.rs
Github Open Source
Open Source
Apache-2.0
2,022
glow-contracts
glow-protocol
Rust
Code
767
3,147
#[cfg(not(feature = "library"))] use cosmwasm_bignumber::{Decimal256, Uint256}; use cosmwasm_std::entry_point; use crate::state::{read_config, store_config, Config}; use cosmwasm_std::{ attr, to_binary, Binary, CanonicalAddr, CosmosMsg, Deps, DepsMut, Env, MessageInfo, Response, StdError, StdResult, Uint128, ...
7,515
https://github.com/NVIDIA/NVFlare/blob/master/nvflare/private/fed/app/simulator/simulator.py
Github Open Source
Open Source
Apache-2.0
2,023
NVFlare
NVIDIA
Python
Code
255
758
# Copyright (c) 2022, NVIDIA CORPORATION. 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 required by appli...
50,763
https://github.com/vti/object-db/blob/master/lib/ObjectDB/Meta.pm
Github Open Source
Open Source
Artistic-1.0
2,017
object-db
vti
Perl
Code
1,318
3,835
package ObjectDB::Meta; use strict; use warnings; use mro; our $VERSION = '3.28'; require Storable; require Carp; use List::Util qw(first); use ObjectDB::Meta::RelationshipFactory; my %OBJECTS; sub find_or_register_meta { my $class = shift; my ($meta_class, @args) = @_; return $OBJECTS{$meta_class} |...
41,216
https://github.com/eversteeg/faralley-ui-kit/blob/master/src/app/__tests__/components/atoms/Colors.test.tsx
Github Open Source
Open Source
MIT
null
faralley-ui-kit
eversteeg
TypeScript
Code
60
168
import { colorKeys } from '../../../styles/theming/colorKeys'; import Colors from '../../../components/atoms/Colors/Colors'; import React from 'react'; import { render } from 'enzyme'; import { themeBasic } from '../../../styles/theming/themes/basic'; import { ThemeProvider } from 'styled-components'; describe('test c...
3,197
https://github.com/bulentgucuk/DBA-Scripts-1/blob/master/SSRS/SubscriptionFailures.sql
Github Open Source
Open Source
MIT
2,022
DBA-Scripts-1
bulentgucuk
SQL
Code
200
493
-- -- Queries the catalog and the schedules to identify -- subscriptions that have failed during the last 24 hours -- SELECT e.path , d.description , laststatus , eventtype , LastRunTime FROM dbo.ReportSchedule a JOIN ( SELECT * FROM msdb.dbo.sysjobs b WHERE TRY_CAST...
41,234
https://github.com/novakge/project-parsers/blob/master/data/mmlib50/J506_2.mm
Github Open Source
Open Source
MIT
2,021
project-parsers
novakge
Objective-C++
Code
1,397
2,909
jobs (incl. supersource/sink ): 52 RESOURCES - renewable : 2 R - nonrenewable : 2 N - doubly constrained : 0 D ************************************************************************ PRECEDENCE RELATIONS: jobnr. #modes #successors successors 1 1 18 2 3 4 5 6 7 8 9 10 11 13 1...
22,140
https://github.com/Fa-v/EventPoints/blob/master/src/components/Details.js
Github Open Source
Open Source
MIT
2,019
EventPoints
Fa-v
JavaScript
Code
38
92
import React, {Component} from 'react'; import Detail from './Detail'; import Action from './Action'; import Social from './Social'; class Details extends Component { render() { return ( <div className="Details"> <Detail/> <Action/> <Social/> </div> ); } } export defau...
45,486
https://github.com/hissummer-mockserver/mockserer/blob/master/src/main/java/com/hissummer/mockserver/mgmt/service/MockRuleManagerServiceImpl.java
Github Open Source
Open Source
BSD-2-Clause
2,020
mockserer
hissummer-mockserver
Java
Code
1,144
4,421
package com.hissummer.mockserver.mgmt.service; import java.util.Map; import org.bson.Document; import org.bson.json.JsonMode; import org.bson.json.JsonWriterSettings; import org.bson.json.JsonWriterSettings.Builder; import org.bson.types.ObjectId; import org.springframework.beans.factory.annotation.Autowired; import o...
21,388
https://github.com/arif25169/netizen/blob/master/components/tabview/TabView.js
Github Open Source
Open Source
MIT
null
netizen
arif25169
JavaScript
Code
709
2,321
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.TabView = exports.TabPanel = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable...
746
https://github.com/mankeyl/elasticsearch/blob/master/modules/lang-expression/src/test/java/org/elasticsearch/script/expression/ExpressionTermsSetQueryTests.java
Github Open Source
Open Source
Apache-2.0
null
elasticsearch
mankeyl
Java
Code
237
880
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
27,048
https://github.com/OscarLlamas6/tytusx/blob/master/20211SVAC/G11/BACK/xml/scripts/typescript/Elemento.ts
Github Open Source
Open Source
MIT
2,021
tytusx
OscarLlamas6
TypeScript
Code
61
241
import { Atributo } from "./Atributo"; import { Entorno } from "./Entorno" export class Elemento{ identificador:string; identificador2:string; texto:string; listaAtributos:Array<Atributo>; listaElementos: Array<Elemento>; linea: number; columna: number; entorno: Entorno; constructo...
51,048
https://github.com/benjaclaessens/pyGAPS/blob/master/tests/cli/test_cli.py
Github Open Source
Open Source
MIT
2,021
pyGAPS
benjaclaessens
Python
Code
267
1,119
import os import subprocess import pytest import pygaps def capture(command, **extra): proc = subprocess.Popen( command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **extra, ) out, err = proc.communicate() return out, err, proc.returncode @pytest.mark.cli class ...
14,131
https://github.com/prettyhe/alpha-coding4j/blob/master/coding-common/src/main/java/com/alpha/coding/common/utils/xls/CellValueEvaluator.java
Github Open Source
Open Source
Apache-2.0
2,023
alpha-coding4j
prettyhe
Java
Code
65
245
package com.alpha.coding.common.utils.xls; import org.apache.poi.ss.usermodel.Cell; import com.alpha.coding.bo.base.Tuple; /** * CellValueEvaluator * * @version 1.0 * Date: 2022/3/22 */ public interface CellValueEvaluator { int CELL_TYPE_NONE = -1; int CELL_TYPE_NUMERIC = 0; int CELL_TYPE_STRING = ...
9,421
https://github.com/Evil1991/bitrixdock/blob/master/www/html/bitrix/modules/bizproc/install/components/bitrix/bizproc.wizards.log/templates/.default/lang/ru/template.php
Github Open Source
Open Source
MIT
null
bitrixdock
Evil1991
PHP
Code
61
314
<? $MESS ['BPWC_WLCT_NEW'] = "Новая заявка"; $MESS ['BPWC_WLCT_VARS'] = "Переменные бизнес-процесса"; $MESS ['BPWC_WLCT_BP'] = "Бизнес-процесс"; $MESS ['BPWC_WLCT_F_NAME'] = "Название"; $MESS ['BPWC_WLCT_F_STATUS'] = "Статус"; $MESS ['BPWC_WLCT_F_DATE'] = "Дата"; $MESS ['BPWC_WLCT_F_TYPE'] = "Тип"; $MESS ['BPWC_WLCT_F_...
26,022
https://github.com/AlhonGelios/AO/blob/master/org/apache/xmlbeans/SchemaTypeElementSequencer.java
Github Open Source
Open Source
Apache-2.0
null
AO
AlhonGelios
Java
Code
15
58
package org.apache.xmlbeans; import javax.xml.namespace.QName; public interface SchemaTypeElementSequencer { boolean next(QName var1); boolean peek(QName var1); }
18,501
https://github.com/dtavana/FBU-TwitterClient/blob/master/app/src/main/java/com/codepath/apps/restclienttemplate/activities/DetailsActivity.java
Github Open Source
Open Source
MIT
null
FBU-TwitterClient
dtavana
Java
Code
409
1,809
package com.codepath.apps.restclienttemplate.activities; import androidx.appcompat.app.AppCompatActivity; import androidx.core.content.ContextCompat; import android.content.Intent; import android.content.res.ColorStateList; import android.os.Bundle; import android.util.Log; import android.view.View; import com.code...
36,833
https://github.com/Qredit/desktop-wallet/blob/master/src/domains/plugin/pages/PluginManager/PluginManager.test.tsx
Github Open Source
Open Source
MIT
2,023
desktop-wallet
Qredit
TSX
Code
1,676
9,690
/* eslint-disable @typescript-eslint/require-await */ import { Contracts } from "@payvo/sdk-profiles"; import userEvent from "@testing-library/user-event"; import { ipcRenderer } from "electron"; import { createMemoryHistory } from "history"; import nock from "nock"; import { LaunchPluginService, PluginController } fro...
9,968
https://github.com/lamiajarin/internship.portal/blob/master/resources/views/backend/contents/report.blade.php
Github Open Source
Open Source
MIT
null
internship.portal
lamiajarin
PHP
Code
118
656
@extends('backend.masterfile1') @section('main') <div class="section__content section__content--p30"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <form class="form-inline" action="{{route('admin_report')}}"> ...
5,404
https://github.com/mraikero-01/UptimerBot-v1.0.1/blob/master/commands/Giveaway/reroll.js
Github Open Source
Open Source
Apache-2.0
null
UptimerBot-v1.0.1
mraikero-01
JavaScript
Code
150
488
const ms = require('ms'); const config = require("../../config.json") module.exports = { name: "greroll", description: "Rerolls a giveaway.", usage: "", category: "Giveaways", accessableby: "Admins", aliases: [], // To add custom aliases just type ["alias1", "alias2"]. run: async (client, me...
533
https://github.com/Maxize/LuaPractice/blob/master/practice/stack/mystack.lua
Github Open Source
Open Source
Apache-2.0
null
LuaPractice
Maxize
Lua
Code
127
313
require("object"); Stack = class(); Stack.defaultStack = function(self) size = 0; array = {}; for k = 1, 50 do array[k] = 0; end end Stack.ctor = function(self, length) size = 0; array = {}; for k = 1, length do array[k] = 0; end end Stack.isEmpty = function(self) return size == 0; end Stack.pop = fu...
21,916
https://github.com/mrc-ide/naomi1/blob/master/data-raw/programme.R
Github Open Source
Open Source
MIT
2,020
naomi1
mrc-ide
R
Code
415
1,102
library(tidyverse) library(here) devtools::load_all() data(mwi_area_hierarchy) #' ## Malawi HIV Programme data #' #' Data sources from Integrated Quarterly Reporting spreadsheets available via: #' https://www.hiv.health.gov.mw/index.php/our-documents #' #' Data are provided by the Ministry of Health, Malawi with th...
21,093
https://github.com/kqarlos/burger/blob/master/public/assets/js/script.js
Github Open Source
Open Source
MIT
2,021
burger
kqarlos
JavaScript
Code
150
406
$(function () { $("#add").on("click", addToList); $(".cart").on("click", addToCart); $(".del").on("click", deleteItem); // Creates a new item and sends it to the server. Reloads Page function addToList() { var item = { item: $("#newItem").val().trim(), done: false ...
16,895
https://github.com/DynamicTreesTeam/DynamicTrees-ThaumcraftAddons/blob/master/src/main/java/maxhyper/dynamictreesthaumicbases/trees/TBTreeGoldenOak.java
Github Open Source
Open Source
MIT
null
DynamicTrees-ThaumcraftAddons
DynamicTreesTeam
Java
Code
157
865
package maxhyper.dynamictreesthaumicbases.trees; import com.ferreusveritas.dynamictrees.systems.dropcreators.DropCreatorSeed; import com.ferreusveritas.dynamictrees.systems.featuregen.FeatureGenFruit; import com.ferreusveritas.dynamictrees.trees.Species; import com.ferreusveritas.dynamictrees.trees.TreeFamily; import ...
26,378
https://github.com/caisq/tfjs-layers-1/blob/master/scripts/publish-npm.sh
Github Open Source
Open Source
Apache-2.0, MIT
2,019
tfjs-layers-1
caisq
Shell
Code
172
350
# Copyright 2018 Google LLC # # Use of this source code is governed by an MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT. # ============================================================================= # Before you run this script, do: # 1) Update the version in p...
4,806
https://github.com/sarthak-marwaha/foam2/blob/master/src/foam/nanos/controller/Memento.js
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
foam2
sarthak-marwaha
JavaScript
Code
533
1,462
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.controller', name: 'Memento', constants: [ { name: 'SEPARATOR', value: ':'}, { name: 'PARAMS_BEGIN', value: '{'}, { name: 'PARAMS_END', va...
15,442
https://github.com/tricknotes/emblem.js/blob/master/lib/emblem.js
Github Open Source
Open Source
MIT
null
emblem.js
tricknotes
JavaScript
Code
18
74
var Emblem; this.Emblem = {}; Emblem = this.Emblem; Emblem.VERSION = "0.2.6"; module.exports = Emblem; require('./parser'); require('./compiler'); require('./preprocessor'); require('./emberties');
4,864
https://github.com/PolibudaInfo/diem/blob/master/dmCorePlugin/lib/view/image/dmImage.php
Github Open Source
Open Source
MIT, BSD-3-Clause
2,021
diem
PolibudaInfo
PHP
Code
7
16
<?php class dmImage extends sfImage { }
42,276
https://github.com/Atri10/Leet-code---Atri_Patel/blob/master/invert-binary-tree/invert-binary-tree.py
Github Open Source
Open Source
MIT
2,021
Leet-code---Atri_Patel
Atri10
Python
Code
17
69
class Solution: def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if root: root.left,root.right = self.invertTree(root.right),self.invertTree(root.left) return root return None
31,484
https://github.com/dj1109/paypal-checkout-components/blob/master/src/globals.js
Github Open Source
Open Source
Apache-2.0
2,019
paypal-checkout-components
dj1109
JavaScript
Code
38
137
/* @flow */ import { FUNDING } from '@paypal/sdk-constants/src'; import type { FundingEligibilityType } from './types'; export function getFundingEligibility() : FundingEligibilityType { return __paypal_checkout__.serverConfig.fundingEligibility; } export function getRememberedFunding() : Array<$Values<typeof F...
26,542
https://github.com/PatilShreyas/plaid/blob/master/dribbble/src/main/java/io/plaidapp/dribbble/dagger/DribbbleSearchComponent.kt
Github Open Source
Open Source
Apache-2.0
2,019
plaid
PatilShreyas
Kotlin
Code
128
306
/* * Copyright 2019 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
43,513
https://github.com/joshuarubin/rubix-lightline.vim/blob/master/autoload/rubix/lightline.vim
Github Open Source
Open Source
MIT
2,021
rubix-lightline.vim
joshuarubin
Vim Script
Code
360
1,348
scriptencoding utf-8 function! rubix#lightline#mode() abort if s:is_filetype_mode_filetype() return toupper(&filetype) endif return lightline#mode() endfunction function! rubix#lightline#crypt() abort if exists('+key') && !empty(&key) return '' endif return '' endfunction function! rubix#light...
1,606
https://github.com/lu1198373615/myDigitalClock/blob/master/data_base.vhd
Github Open Source
Open Source
MIT
2,019
myDigitalClock
lu1198373615
VHDL
Code
713
3,344
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; entity data_base is port( clk : in std_logic; key_1 : in std_logic; key_2 : in std_logic; pointer : in std_logic_vector(3 downto 0); reset ...
40,884
https://github.com/rafapaivadeandrade/Professors/blob/master/mobile/src/routes/AppStack.js
Github Open Source
Open Source
MIT
null
Professors
rafapaivadeandrade
JavaScript
Code
156
528
import React, { useState } from "react"; import { NavigationContainer } from "@react-navigation/native"; import { createStackNavigator } from "@react-navigation/stack"; import StudyTabs from "./StudyTabs"; import Landing from "../pages/Landing"; import GiveClasses from "../pages/GiveClasses"; import OnBoarding from ".....
49,691
https://github.com/TharlesClaysson/Python-Basico/blob/master/segundoModulo/PYTHON - DODO/0.4_list-f-c-retorno-c-parametro(TERMINADO)/3.py
Github Open Source
Open Source
MIT
null
Python-Basico
TharlesClaysson
Python
Code
52
129
def aumentoSalario(VP, S): converPorcent = VP / 100 valorAumento = S * converPorcent aumentoS = S + valorAumento return aumentoS def main(): S = float(input('Informe o salário: ')) VP = int(input('Informe o valor de porcentagem de aumento que o salário vai ter: ')) print(S,'reais mais aumen...
32,633
https://github.com/shireeshbhat/topobench/blob/master/src/main/java/ch/ethz/topobench/graph/traffic/StrideTraffic.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
topobench
shireeshbhat
Java
Code
311
729
/* ******************************************************* * Released under the MIT License (MIT) --- see LICENSE * Copyright (c) 2014 Ankit Singla, Sangeetha Abdu Jyothi, * Chi-Yao Hong, Lucian Popa, P. Brighten Godfrey, * Alexandra Kolla, Simon Kassing * ******************************************************** *...
47,271
https://github.com/KissKissBankBank/kitten/blob/master/src/components/molecules/overlay/index.js
Github Open Source
Open Source
MIT
2,022
kitten
KissKissBankBank
JavaScript
Code
424
1,740
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.Overlay = exports.OPEN_OVERLAY_EVENT = exports.CLOSE_OVERLAY_EVENT = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutPro...
40,023
https://github.com/haiiliin/pyabaqus/blob/master/src/abaqus/Load/SurfaceTraction.py
Github Open Source
Open Source
MIT
2,023
pyabaqus
haiiliin
Python
Code
1,980
3,566
import typing from abaqusConstants import * from .Load import Load from ..Region.Region import Region class SurfaceTraction(Load): """The SurfaceTraction object defines surface traction on a region. The SurfaceTraction object is derived from the Load object. Attributes ---------- name: str ...
42,181
https://github.com/themeeman/ProAvalon/blob/master/src/gameplay/avalonBot/roles/merlin.js
Github Open Source
Open Source
MIT
2,022
ProAvalon
themeeman
JavaScript
Code
197
452
class Merlin { constructor(thisRoom) { this.thisRoom = thisRoom; this.role = 'Merlin'; this.alliance = 'Resistance'; this.description = 'Knows the identity of the spies.'; this.orderPriorityInOptions = 100; this.test = function () { // The following lines running successfully shows th...
50,203
https://github.com/robholden/Snow-Capture/blob/master/Frontend/Desktop/src/app/shared/shared.module.ts
Github Open Source
Open Source
MIT
null
Snow-Capture
robholden
TypeScript
Code
117
332
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; import { FeaturesModule } from '@app/features/features.module'; import { INJ_DEVICE, INJ_PLATFORM, INJ_STORAGE, INJ_TOAST } fr...
42,416
https://github.com/tmandry/rust_life/blob/master/life/src/ndgame.rs
Github Open Source
Open Source
MIT
null
rust_life
tmandry
Rust
Code
310
853
// Original example code taken from rust-ndarray project (MIT licensed). use ndarray::prelude::*; pub const INPUT: &'static [u8] = include_bytes!("life.txt"); //const INPUT: &'static [u8] = include_bytes!("lifelite.txt"); pub type BoardArray = Array2<u8>; #[derive(Clone, Debug)] pub struct Board { pub arr: Boar...
25,546
https://github.com/openLuat/LuatOS/blob/master/components/u8g2/u8g2.h
Github Open Source
Open Source
MIT
2,023
LuatOS
openLuat
C
Code
20,000
153,259
/* u8g2.h Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/) Copyright (c) 2016, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must r...
19,345
https://github.com/HeRedBo/laravel_vue_itf/blob/master/app/Models/admin/StudentContacts.php
Github Open Source
Open Source
MIT
null
laravel_vue_itf
HeRedBo
PHP
Code
27
104
<?php namespace App\Models\admin; use Illuminate\Database\Eloquent\Model; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; class StudentContacts extends Model implements Transformable { use TransformableTrait; protected $fillable = []; protected $table = '...
30,509
https://github.com/google-business-communications/java-rcsbusinessmessaging/blob/master/com/google/api/services/rcsbusinessmessaging/v1/model/DialogflowEvent.java
Github Open Source
Open Source
Apache-2.0
2,021
java-rcsbusinessmessaging
google-business-communications
Java
Code
846
1,763
/* * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under t...
43,371
https://github.com/findersee/rctelemetry/blob/master/sw/Src/stm32f3xx_hal_msp.c
Github Open Source
Open Source
MIT
null
rctelemetry
findersee
C
Code
2,949
11,059
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : stm32f3xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. ****************************...
11,427
https://github.com/fmidev/smartmet-plugin-wms/blob/master/wms/Symbols.cpp
Github Open Source
Open Source
MIT
null
smartmet-plugin-wms
fmidev
C++
Code
176
485
#include "Symbols.h" #include "Config.h" #include "Hash.h" #include <macgyver/Exception.h> #include <spine/HTTP.h> #include <string> namespace SmartMet { namespace Plugin { namespace Dali { // ---------------------------------------------------------------------- /*! * \brief Initialize from JSON */ // ------------...
239
https://github.com/MisnikovRoman/XcodeTemplates/blob/master/MVC(MVP) module/___FILEBASENAME___ViewController.swift
Github Open Source
Open Source
MIT
null
XcodeTemplates
MisnikovRoman
Swift
Code
149
515
// // ___FILENAME___ // ___PROJECTNAME___ // // Created ___FULLUSERNAME___ on ___DATE___ from template MVC(MVP) module // Copyright © ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. // import UIKit // MARK: - Протокол взаимодействия protocol I___VARIABLE_productName:identifier___Presenter: AnyObject { } ...
12,069
https://github.com/JetBrains/intellij-community/blob/master/java/java-tests/testData/refactoring/turnRefsToSuper/anonymousWithTypeArguments/after/Clazz.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
50
112
interface IntF { } interface Factory<E extends IntF> { E create(); void save(E obj); static class helper { static Factory<IntF> get2() { return (Factory)new Factory<IntF>() { public IntF create() { return null; } public void save(IntF obj) { } ...
5,588
https://github.com/borisbutenko/storefront/blob/master/src/assets/sass/app.sass
Github Open Source
Open Source
Apache-2.0
null
storefront
borisbutenko
Sass
Code
16
52
@import "variables" @import "colors" @import "fonts" @import "iefix" @import "layout" @import "tooltip" @import "animation" @import "grid"
5,651
https://github.com/HDI-Project/fhub_core/blob/master/ballet/mlprimitives/__init__.py
Github Open Source
Open Source
MIT
2,022
fhub_core
HDI-Project
Python
Code
302
817
import pathlib from copy import deepcopy from typing import Optional import numpy as np from ballet.encoder import EncoderPipeline, make_robust_encoder from ballet.eng import BaseTransformer from ballet.pipeline import FeatureEngineeringPipeline from ballet.project import Project from ballet.util.mod import import_mo...
42,816
https://github.com/felipeMurilloUrbina/facturasiweb-front/blob/master/src/app/admin/documentos/cotizacion/cotizacion.service.ts
Github Open Source
Open Source
MIT
null
facturasiweb-front
felipeMurilloUrbina
TypeScript
Code
204
777
import { Injectable } from '@angular/core'; import { Http, Headers, URLSearchParams, RequestOptions, Request, RequestMethod, Response } from '@angular/http'; import { Router } from '@angular/router'; import { ToasterService } from 'angular2-toaster'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; imp...
41,665
https://github.com/RichardChiang/platypush/blob/master/platypush/backend/google/fit.py
Github Open Source
Open Source
MIT
2,022
platypush
RichardChiang
Python
Code
298
1,114
import datetime import time from platypush.backend import Backend from platypush.context import get_plugin from platypush.message.event.google.fit import GoogleFitEvent from platypush.utils import camel_case_to_snake_case class GoogleFitBackend(Backend): """ This backend will listen for new Google Fit events...
11,186
https://github.com/Telenav/kivakit-extensions/blob/master/kivakit-microservice/src/main/java/com/telenav/kivakit/microservice/internal/protocols/rest/plugins/jetty/openapi/reader/PrimitiveReader.java
Github Open Source
Open Source
Apache-2.0
2,022
kivakit-extensions
Telenav
Java
Code
145
529
package com.telenav.kivakit.microservice.internal.protocols.rest.plugins.jetty.openapi.reader; import com.telenav.kivakit.kernel.language.reflection.Type; import io.swagger.v3.oas.models.media.Schema; public class PrimitiveReader { /** * Populates the given schema object with a type and format if the type pa...
42,182
https://github.com/thani-sh/kommando/blob/master/go.mod
Github Open Source
Open Source
MIT
2,021
kommando
thani-sh
Go Module
Code
4
21
module github.com/thani-sh/kommando go 1.16
30,359
https://github.com/intj-t/openvmsft/blob/master/WRK-V1.2/fx/src/net/system/net/socketpermission.cs
Github Open Source
Open Source
Intel
null
openvmsft
intj-t
C#
Code
4,008
10,948
//------------------------------------------------------------------------------ // <copyright file="SocketPermission.cs" company="Microsoft"> // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // ...
5,532
https://github.com/chaeschpi/cloudstack.net/blob/master/src/CloudStack.Net/Generated/ListLunsOnFiler.cs
Github Open Source
Open Source
Apache-2.0
2,021
cloudstack.net
chaeschpi
C#
Code
87
349
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Threading.Tasks; using Newtonsoft.Json; namespace CloudStack.Net { public class ListLunsOnFilerRequest : APIRequest { public ListLunsOnFilerRequest() : base("listLunsOnFiler") {} /// <summary> ...
2,392
https://github.com/amruth006/adf-samples-master/blob/master/src/RequireAtLeastThreeCharactersInSelectivelyRequiredFieldWithStartsWithOper/Model/src/test/model/common/EmpViewSDOImpl.java
Github Open Source
Open Source
UPL-1.0
2,022
adf-samples-master
amruth006
Java
Code
207
680
/* Copyright 2010, 2017, Oracle and/or its affiliates. All rights reserved. */ package test.model.common; import org.eclipse.persistence.sdo.SDODataObject; public class EmpViewSDOImpl extends SDODataObject implements EmpViewSDO { public static final int START_PROPERTY_INDEX = 0; public static final int END_PR...
33,562
https://github.com/chaitraliw/mws_frappe/blob/master/frappe/core/doctype/communication/test_communication.py
Github Open Source
Open Source
MIT
2,020
mws_frappe
chaitraliw
Python
Code
114
583
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_records = frappe.get_test_records('Communication') class TestCommunication(unittest.TestCase): def test_email(self): valid_email_list = ["Full Name <fu...
9,789
https://github.com/iranee/qnap-nps/blob/master/shared/web/login.php
Github Open Source
Open Source
MIT
2,022
qnap-nps
iranee
PHP
Code
208
861
<?php $pwd = exec("cat $(getcfg 'npc' Install_Path -f '/etc/config/qpkg.conf')/conf/npc-config.json | jq -r '.pwd'"); session_start(); if(@$_POST['password'] == $pwd){ $_SESSION['login'] = md5($pwd); } if($_SERVER['QUERY_STRING'] == "logout"){ $_SESSION['login'] = ""; header("location: " . $_SERVER['PHP_SELF']); exit()...
35,977
https://github.com/Friscas/ui5-cli/blob/master/lib/cli/commands/create.js
Github Open Source
Open Source
Apache-2.0
null
ui5-cli
Friscas
JavaScript
Code
195
724
const {exec} = require("child_process"); const fs = require("fs"); const prompts = require("prompts"); const rimraf = require("rimraf"); const clone = require("git-clone"); const cliProgress = require("cli-progress"); const createCommand = { command: "create <dir-name>", describe: "Generates a OpenUI5 boilerplate t...
13,296
https://github.com/dfahritdinov/simple-flow/blob/master/src/it/scala/com/fakhritdinov/simpleflow/KafkaPersistenceSpec.scala
Github Open Source
Open Source
Apache-2.0
null
simple-flow
dfahritdinov
Scala
Code
135
458
package com.fakhritdinov.simpleflow import cats.effect.IO import com.fakhritdinov.KafkaSpec import com.fakhritdinov.kafka.{Topic, TopicPartition} import org.apache.kafka.common.serialization.Serdes import org.scalatest.flatspec._ import org.scalatest.matchers._ import scala.concurrent.duration._ class KafkaPersisten...
12,525
https://github.com/marmelab/gql-profiler/blob/master/src/reporters/html/index.js
Github Open Source
Open Source
MIT
2,019
gql-profiler
marmelab
JavaScript
Code
56
152
import fs from 'fs'; import path from 'path'; import _ from 'lodash'; import memoryReporter from '../memory'; export default (baseReporter = memoryReporter) => { const reporter = baseReporter(); const template = fs.readFileSync(path.resolve(__dirname, './base.html'), { encoding: 'utf-8' }); const compiled ...
16,195
https://github.com/thx/magix-inspector/blob/master/tmpl/snippets/graphics.js
Github Open Source
Open Source
MIT
2,021
magix-inspector
thx
JavaScript
Code
1,946
5,959
//#snippet; //#exclude(loader) let Graphics = { '@{captureItmes}'() { let g = Graphics; g.list = []; delete g['@{view.last}']; UI['@{onMousemove}'] = e => { let loop, one, dis; if (g['@{view.last}']) { one = g['@{view.last}']; d...
37,409
https://github.com/kellydavid/Kastle/blob/master/src/main/scala/com/tenable/library/kafkaclient/client/standard/consumer/EventActionable.scala
Github Open Source
Open Source
Apache-2.0
null
Kastle
kellydavid
Scala
Code
107
458
package com.tenable.library.kafkaclient.client.standard.consumer import cats.instances.try_._ import cats.instances.either._ import cats.syntax.foldable._ import cats.syntax.applicativeError._ import cats.{ApplicativeError, Foldable, Show} import com.tenable.library.kafkaclient.client.standard.consumer.actions.Process...
49,481
https://github.com/dannycoates/nps/blob/master/src/__mocks__/readline-sync.js
Github Open Source
Open Source
MIT
2,019
nps
dannycoates
JavaScript
Code
16
46
const mock = {} module.exports = { keyInYN: jest.fn(() => { return Boolean(mock.keyInYNReturn) }), mock, }
38,036
https://github.com/CertifaiAI/Classifai_FrontEnd/blob/master/src/components/image-labelling/image-labelling-footer/image-labelling-footer.component.ts
Github Open Source
Open Source
Apache-2.0
2,021
Classifai_FrontEnd
CertifaiAI
TypeScript
Code
252
747
/** * @license * Use of this source code is governed by Apache License 2.0 that can be * found in the LICENSE file at https://github.com/CertifaiAI/Classifai_FrontEnd/blob/main/LICENSE */ import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import { ImageProps } from...
49,142
https://github.com/exepulveda/superflexPy/blob/master/superflexpy/framework/unit.py
Github Open Source
Open Source
Apache-2.0
2,020
superflexPy
exepulveda
Python
Code
1,335
3,611
""" Copyright 2020 Marco Dal Molin et al. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
29,178
https://github.com/DanielPascualSenties/Scala/blob/master/Exercises/Chapter3/removeDuplicates.scala
Github Open Source
Open Source
MIT
null
Scala
DanielPascualSenties
Scala
Code
14
52
import scala.collection.mutable.ArrayBuffer object removeDuplicates { def removeDuplicates(a:ArrayBuffer[Int]): ArrayBuffer[Int] = { return a.distinct } }
5,986
https://github.com/schaefferdstudio/tiny-yolo-opencv-opencl-implementation/blob/master/tiny-yolo-opencv-opencl-implemenation/PreparingLayer.cpp
Github Open Source
Open Source
Apache-2.0
2,018
tiny-yolo-opencv-opencl-implementation
schaefferdstudio
C++
Code
164
682
#include "PreparingLayer.h" using namespace cv; using namespace sd; PreparingLayer::PreparingLayer(int imageSize, int filterDepth, int prevImageDepth) :Layer(imageSize, filterDepth, prevImageDepth) { } PreparingLayer::~PreparingLayer() { } int PreparingLayer::init(FILE *fp) { int returnCode = 0; initGPU(); re...
26,851
https://github.com/tursics/SaveTheFish/blob/master/js/index.js
Github Open Source
Open Source
MIT
null
SaveTheFish
tursics
JavaScript
Code
764
2,508
/*jslint browser: true*/ /*global $,THREE,HeroObject,PlasticObject,FishObject,updateGameDisplay,showStartGame,showGameOver,createLandscapeFloors,createMountain,createSpotlights */ var PLANE_WIDTH = 50, PLANE_LENGTH = 1000, PADDING = PLANE_WIDTH / 5 * 2, POWERUP_COUNT = 10, FISH_COUNT = 10, PLASTIC_COUNT = 0, PLA...
1,401
https://github.com/ooooo-youwillsee/leetcode/blob/master/lcof/lcof_067/cpp_067/Solution1.h
Github Open Source
Open Source
MIT
2,022
leetcode
ooooo-youwillsee
C++
Code
116
298
// // Created by ooooo on 2020/4/27. // #ifndef CPP_067__SOLUTION1_H_ #define CPP_067__SOLUTION1_H_ #include <iostream> using namespace std; class Solution { public: int strToInt(string str) { int i = 0; for (; i < str.size() && str[i] == ' '; i++) {} bool flag = true; if (str[i] == '-' || str[i]...
43,044
https://github.com/b20vineeth/8102lov/blob/master/src/main/java/net/xin/web/usermanage/UserManage.java
Github Open Source
Open Source
Apache-2.0
null
8102lov
b20vineeth
Java
Code
239
1,208
package net.xin.web.usermanage; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import javax.cry...
49,967
https://github.com/ViennaNovoFlop/ViennaNovoFlop-dev/blob/master/app/oxs/ext/demag.cc
Github Open Source
Open Source
TCL, SWL, MIT, X11, BSD-3-Clause
null
ViennaNovoFlop-dev
ViennaNovoFlop
C++
Code
6,787
27,215
/* FILE: demag.cc -*-Mode: c++-*- * * Average H demag field across rectangular cells. This is a modified * version of the simpledemag class, which uses symmetries in the * interaction coefficients to reduce memory usage. * * The formulae used are reduced forms of equations in A. J. Newell, * W. Willi...
2,832
https://github.com/sojern/baqman/blob/master/go.mod
Github Open Source
Open Source
MIT
2,020
baqman
sojern
Go Module
Code
27
191
module baqman go 1.15 require ( code.cloudfoundry.org/bytefmt v0.0.0-20200131002437-cf55d5288a48 github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 github.com/gorilla/sessions v1.2.1 github.com/onsi/ginkgo v1.14.1 // indirect github.com/onsi/gomega v1.10.2 // indirect golang.org/x/oauth2 v0.0.0-2...
50,360
https://github.com/DevWars/devwars-api-client/blob/master/endpoints/search.js
Github Open Source
Open Source
MIT
2,021
devwars-api-client
DevWars
JavaScript
Code
320
793
const Endpoint = require("./endpoint"); module.exports = class Search extends Endpoint { /** * Creates a new instance of the search class. * @param {AxiosInstance} client The axios client to be used to communicate with the api. * @param {string} path Any additional appended path (e.g /users) */ constru...
10,124