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/gyn/exercism/blob/master/go/sum-of-multiples/sum_of_multiples.go
Github Open Source
Open Source
BSD-2-Clause
2,017
exercism
gyn
Go
Code
54
109
package summultiples const testVersion = 2 // SumMultiples works out the sum value func SumMultiples(limt int, vec ...int) int { sum := 0 for i := 0; i < limt; i++ { for _, v := range vec { if i%v == 0 { sum += i break } } } return sum }
19,440
https://github.com/913AliceHincu/Assignment02-03/blob/master/cmake-build-debug/CMakeFiles/a23_913AliceHincu.dir/cmake_clean.cmake
Github Open Source
Open Source
Xnet, X11
2,022
Assignment02-03
913AliceHincu
CMake
Code
25
344
file(REMOVE_RECURSE "CMakeFiles/a23_913AliceHincu.dir/domain/offer.c.o" "CMakeFiles/a23_913AliceHincu.dir/dynamic_array/dynamic_array.c.o" "CMakeFiles/a23_913AliceHincu.dir/main.c.o" "CMakeFiles/a23_913AliceHincu.dir/repo/repo_offer.c.o" "CMakeFiles/a23_913AliceHincu.dir/service/offer_service.c.o" "CMakeFil...
10,799
https://github.com/awoods/ocfl-py/blob/master/tests/test_digest.py
Github Open Source
Open Source
MIT
null
ocfl-py
awoods
Python
Code
109
1,168
"""Digest tests.""" import unittest import sys from ocfl.digest import file_digest, digest_regex, normalized_digest class TestAll(unittest.TestCase): """TestAll class to run tests.""" def test_file_digest__empty(self): """Test file_digest method with empty file.""" self.assertEqual(file_diges...
21,404
https://github.com/wheatdog/comma/blob/master/flake.nix
Github Open Source
Open Source
MIT
null
comma
wheatdog
null
Spoken
80
246
{ description = "Comma runs software without installing it"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let comma = nixpkgs.legacyPackag...
28,098
https://github.com/alexjones999/starter-public-edition-4/blob/master/platform/common/config/autoload_classes.php
Github Open Source
Open Source
MIT
2,022
starter-public-edition-4
alexjones999
PHP
Code
45
143
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | Auto-load Classes in PHP5 Way - A Location Map | | An example: | $autoload['classes'] = array( | 'Markdownify' => COMMONPATH.'third_party/markdownify/markdownify.php'...
10,681
https://github.com/manzar96/soft_eng_ntua/blob/master/front/src/app/interfaces/create-shop-response.ts
Github Open Source
Open Source
MIT
2,021
soft_eng_ntua
manzar96
TypeScript
Code
19
55
export class CreateShopResponse { address: string; id: number; lat: number; lng: number; name: string; tags: string[]; withdrawn: boolean; }
762
https://github.com/alexica3000/x-music/blob/master/webroot/app/Http/Livewire/Admin/Tracks/TracksList.php
Github Open Source
Open Source
MIT
null
x-music
alexica3000
PHP
Code
26
94
<?php namespace App\Http\Livewire\Admin\Tracks; use Livewire\Component; /** * Class TracksList * @package App\Http\Livewire\Admin\Tracks */ class TracksList extends Component { public function render() { return view('livewire.admin.tracks.tracks-list'); } }
53,808
https://github.com/yuanyuan-deng/RDM-osf.io/blob/master/addons/iqbrims/client.py
Github Open Source
Open Source
Apache-2.0
null
RDM-osf.io
yuanyuan-deng
Python
Code
2,416
10,062
# -*- coding: utf-8 -*- import datetime import json import logging import os import string from framework.exceptions import HTTPError from website.util.client import BaseClient from addons.iqbrims import settings logger = logging.getLogger(__name__) _user_settings_cache = {} class IQBRIMSAuthClient(BaseClient): ...
13,339
https://github.com/MC-JY/aws-sdk-java/blob/master/aws-java-sdk-core/src/test/java/com/amazonaws/retry/internal/RetryModeResolverTest.java
Github Open Source
Open Source
Apache-2.0
2,022
aws-sdk-java
MC-JY
Java
Code
349
1,326
/* * Copyright 2010-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
31,501
https://github.com/chrislopresto/ember-reveal-js/blob/master/tests/dummy/app/components/presentation-listing/template.hbs
Github Open Source
Open Source
MIT
2,016
ember-reveal-js
chrislopresto
null
Spoken
20
160
<h1>Presentations</h1> <ul> <li> {{#link-to 'presentations.demo'}} <h2>Reveal.js Demo</h2> {{reveal-embedded-presentation url='/presentations/demo'}} {{/link-to}} </li> <li> {{#link-to 'presentations.tacos'}} <h2>Tacos</h2> {{reveal-embedded-presentation url='/presentations/ta...
39,401
https://github.com/ge-semtk/semtk/blob/master/athenaService/src/main/java/com/ge/research/semtk/services/athena/AthenaProperties.java
Github Open Source
Open Source
MIT, Apache-2.0, BSD-3-Clause
2,023
semtk
ge-semtk
Java
Code
195
526
/** ** Copyright 2020 General Electric Company ** ** ** 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...
34,028
https://github.com/EuPathDB-Infra/WDKClient/blob/master/Client/src/Views/Basket/BasketPane.tsx
Github Open Source
Open Source
Apache-2.0
null
WDKClient
EuPathDB-Infra
TypeScript
Code
98
302
import React from 'react'; import {makeClassNameHelper, wrappable} from 'wdk-client/Utils/ComponentUtils'; import './BasketPane.scss'; const cx = makeClassNameHelper('BasketPane'); interface Props { emptyBasket: () => void; saveBasketToStrategy: () => void; /** Result panel */ children: React.ReactNode; } fu...
44,676
https://github.com/ollejoha/SevenSegmentClockNrf_2021/blob/master/OpenScad/AcrylCasing/stl_files/Old files/sidePanel.nc
Github Open Source
Open Source
MIT
null
SevenSegmentClockNrf_2021
ollejoha
null
Spoken
1,028
4,190
( Made using CamBam - http://www.cambam.co.uk ) ( sidePanel 1/31/2021 11:32:24 PM ) ( T2 : 2.0 ) ( CUTVIEWER ) ( FROM/0,0,5 ) ( Select dummy tool to avoid warnings ) ( TOOL/MILL,1,0,20.0,0 ) ( STOCK/BLOCK,180.0,100.0,4.0,90.0,50.0,4.0 ) G21 G90 G91.1 G64 G40 G0 Z3.0 ( T2 : 2.0 ) ( Tool Taper coming soon ) ( TOOL/MILL,2...
40,232
https://github.com/AndreiD/XHipster/blob/master/src/main/java/xhipster/form/ProgrammingLanguagesForm.java
Github Open Source
Open Source
Apache-2.0
null
XHipster
AndreiD
Java
Code
52
158
package xhipster.form; import javax.validation.constraints.Size; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.NotBlank; @Data @AllArgsConstructor @NoArgsConstructor public class ProgrammingLanguagesForm { @NotBlank @Size(min = 5...
28,027
https://github.com/luzkenin/PlasterTemplates/blob/master/FullModuleTemplateFromBlog/tests/Regression.Tests.ps1
Github Open Source
Open Source
MIT
2,019
PlasterTemplates
luzkenin
PowerShell
Code
31
108
$projectRoot = Resolve-Path "$PSScriptRoot\.." $moduleRoot = Split-Path (Resolve-Path "$projectRoot\*\*.psd1") $moduleName = Split-Path $moduleRoot -Leaf Import-Module (Join-Path $moduleRoot "$moduleName.psm1") -force Describe "Regression tests" -Tag Build { Context "Github Issues" { } }
2,582
https://github.com/wmtiger/28bars/blob/master/28bars_egret/src/game/fightgrid/FightGridStartup.ts
Github Open Source
Open Source
BSD-3-Clause
null
28bars
wmtiger
TypeScript
Code
32
159
module fg { export class FightGridStartup extends ssp.ModuleStartup { registerNet(): void { } registerUi(): void { ui.register(cst.ui.FIGHT_GRID, fg.FightGridScreen); } startup(): void { this.moduleProxy = FightGridProxy.inst; this.moduleProxy.setServer(cfg.hallServer, dat.hallServerInfoVO); ...
17,782
https://github.com/ParadigmFoundation/kosu-monorepo/blob/master/packages/kosu-wrapper-enhancements/test/kosu_token_test.ts
Github Open Source
Open Source
MIT
2,022
kosu-monorepo
ParadigmFoundation
TypeScript
Code
324
1,114
import { KosuToken } from "../src"; describe("KosuToken", () => { let kosuToken: KosuToken; before(() => { kosuToken = new KosuToken(enhancementOptions); }); describe("totalSupply", () => { it("should return the total supply of the token", async () => { await kosuToken.tot...
31,502
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/MOMO陌陌-8.7.2(越狱应用)_headers/MDHPFeedNewRecommendCell.h
Github Open Source
Open Source
MIT
2,018
Just_a_dumper
i-gaven
Objective-C
Code
110
475
// // 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 "MDHomePageFeedBaseCell.h" @class MDHPFeedLoopPictureView, MDHomePageRecommend, UIButton, UIImageView, UIView; @interface MDH...
6,285
https://github.com/Lombiq/Orchard-Archived-Links/blob/master/Views/Parts/ArchivedLink.cshtml
Github Open Source
Open Source
BSD-3-Clause
null
Orchard-Archived-Links
Lombiq
C#
Code
48
215
@{ var originalUrl = Lombiq.ArchivedLinks.Helpers.UriBuilderHelper.TryCreateUri((string)Model.OriginalUrl).ToString(); var snapshotUrl = (string)Model.SnapshotUrl; var jumpUrl = Url.Action("Index", "ArchivedLink", new { Area = "Lombiq.ArchivedLinks", OriginalUrl = Model.OriginalUrl }); } <fieldset> <o...
33,866
https://github.com/adaptris/interlok-stackify/blob/master/src/main/java/com/adaptris/stackify/stats/ProducerStatsCompiler.java
Github Open Source
Open Source
Apache-2.0
null
interlok-stackify
adaptris
Java
Code
64
198
package com.adaptris.stackify.stats; import com.adaptris.profiler.ProcessStep; import com.adaptris.profiler.StepType; public class ProducerStatsCompiler extends StatsCompiler { private static ProducerStatsCompiler instance; private static final String METRIC_NAME = "Producers"; private ProducerStatsCompiler()...
7,841
https://github.com/anyaevostinar/SymbulationEmp/blob/master/source/test/integration_test/dirty_transmission/hz_mut_rate.test.cc
Github Open Source
Open Source
MIT, BSL-1.0
2,022
SymbulationEmp
anyaevostinar
C++
Code
348
1,466
#include "../../../efficient_mode/EfficientWorldSetup.cc" TEST_CASE("Horizontal Mutation Rate Results", "[integration]"){ emp::Random random(14); SymConfigBase config; EfficientWorld world(random, &config); config.HOST_INT(-2); config.SYM_INT(-2); config.EFFICIENT_SYM(1); config.SYNERGY(2); config.MUT...
48,474
https://github.com/kernelgarden/GlobalDispatchTimer/blob/master/Assets/Scripts/GroupTask.cs
Github Open Source
Open Source
MIT
2,019
GlobalDispatchTimer
kernelgarden
C#
Code
83
303
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using Global.Timer.Utils; using UnityEngine; namespace Global.Timer { public class GroupTask : TimerJob { private List<Action> scheduledTasks; public GroupTask(IEnumerable<Action> newTasks, float executedTicks) : bas...
30,142
https://github.com/szellmann/visionaray/blob/master/test/unittests/math/simd/select.cpp
Github Open Source
Open Source
MIT
2,023
visionaray
szellmann
C++
Code
719
3,229
// This file is distributed under the MIT license. // See the LICENSE file for details. #include <cfloat> #include <limits> #include <visionaray/math/simd/simd.h> #include <gtest/gtest.h> using namespace visionaray; //------------------------------------------------------------------------------------------------...
29,012
https://github.com/JaroslawZielinski/TorahVerse-M2/blob/master/Controller/Adminhtml/Groups/Save.php
Github Open Source
Open Source
MIT
2,023
TorahVerse-M2
JaroslawZielinski
PHP
Code
263
1,145
<?php declare(strict_types=1); namespace JaroslawZielinski\TorahVerse\Controller\Adminhtml\Groups; use JaroslawZielinski\TorahVerse\Api\QuoteRepositoryInterface; use JaroslawZielinski\TorahVerse\Api\VerseRepositoryInterface; use JaroslawZielinski\TorahVerse\Model\GroupFactory; use JaroslawZielinski\TorahVerse\Model\...
2,725
https://github.com/lemonworks/tealang.github.io/blob/master/compiler/ast/declaration/NamespaceDeclaration.php
Github Open Source
Open Source
Apache-2.0
2,022
tealang.github.io
lemonworks
PHP
Code
82
188
<?php /** * This file is part of the Tea programming language project * * @author Benny <benny@meetdreams.com> * @copyright (c)2019 YJ Technology Ltd. [http://tealang.org] * For the full copyright and license information, please view the LICENSE file that was distributed with this source code. */ namespace Te...
27,806
https://github.com/mythoss/midpoint/blob/master/model/workflow-impl/src/main/java/com/evolveum/midpoint/wf/impl/processors/primary/cases/AbstractCaseStageProcessing.java
Github Open Source
Open Source
Apache-2.0
null
midpoint
mythoss
Java
Code
123
489
/* * Copyright (C) 2010-2022 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.wf.impl.processors.primary.cases; import com.evolveum.midpoint.cases.api.CaseEngineOperation; impo...
1,536
https://github.com/ShkredovDmitriy/ds-section-scroll/blob/master/src/blocks/demo-content/demo-content.scss
Github Open Source
Open Source
MIT
null
ds-section-scroll
ShkredovDmitriy
SCSS
Code
66
252
.ds-modal-demo-content { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 100%; height: 100vh; background-color: $color-white; > .ds-modal-button { margin: 0.25rem; } } .ds-section-scroll-dots { position: fixed; z-index: 2999; right: 0; top: 50%...
39,067
https://github.com/rymai/mongoid/blob/master/spec/mongoid/relations/builders_spec.rb
Github Open Source
Open Source
MIT
2,012
mongoid
rymai
Ruby
Code
239
660
require "spec_helper" describe Mongoid::Relations::Builders do describe "#build_#\{name}" do let(:person) do Person.new end context "when providing no attributes" do context "when the relation is an embeds one" do let(:name) do person.build_name end it ...
50,185
https://github.com/xiaoxiao-up/el/blob/master/eladmin-system/src/main/java/me/zhengjie/lottery/service/mapper/LotteryPlayMapper.java
Github Open Source
Open Source
Apache-2.0
null
el
xiaoxiao-up
Java
Code
34
157
package me.zhengjie.lottery.service.mapper; import me.zhengjie.base.BaseMapper; import me.zhengjie.lottery.domain.LotteryPlay; import me.zhengjie.lottery.service.dto.LotteryPlayDto; import org.mapstruct.Mapper; import org.mapstruct.ReportingPolicy; /** * @author 小小 * @date 2019-12-29 */ @Mapper(componentModel = "spri...
21,818
https://github.com/VirtusLab/ReactSphere-reactive-beyond-hype/blob/master/codebase/identity-service-tertiary-sync/src/main/scala/com/virtuslab/auctionHouse/identitySync/validation/ValidationServlet.scala
Github Open Source
Open Source
MIT
2,019
ReactSphere-reactive-beyond-hype
VirtusLab
Scala
Code
113
411
package com.virtuslab.auctionHouse.identitySync.validation import com.virtuslab.base.sync.BaseServlet import com.virtuslab.identity.{TokenValidationResponse, ValidateTokenRequest} import org.json4s.{DefaultFormats, Formats} import org.scalatra.{Ok, Unauthorized} import scala.util.Try class ValidationServlet extends ...
33,052
https://github.com/fiiSoft/fiisoft-basics/blob/master/src/Tools/Validation/SpecificationError.php
Github Open Source
Open Source
MIT
null
fiisoft-basics
fiiSoft
PHP
Code
67
207
<?php namespace FiiSoft\Tools\Validation; interface SpecificationError { const UNSPECIFIED_FIELDS = 1; const WRONG_NAME = 2; const NO_ATTRIBUTES = 3; const UNSPECIFIED_ATTRIBUTES = 4; const MISSING_ATTRIBUTE = 5; const INVALID_ENUM = 6; const TOO_LONG_ATTRIBUTE = 7; const INVALID_DATE_...
1,979
https://github.com/amalic/spring-data-semantic/blob/master/src/main/java/org/springframework/data/semantic/core/SemanticDatabase.java
Github Open Source
Open Source
Apache-2.0
2,017
spring-data-semantic
amalic
Java
Code
949
2,296
/** * Copyright (C) 2014 Ontotext AD (info@ontotext.com) * * 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...
23,710
https://github.com/Lihuaqiii/201608node/blob/master/1.es6/7.this.js
Github Open Source
Open Source
MIT
2,016
201608node
Lihuaqiii
JavaScript
Code
41
136
function Timer() { this.s1 = 0; this.s2 = 0; // 箭头函数 setInterval(() => this.s1++, 1000); // 普通函数 setInterval(function () { this.s2++; }, 1000); } var timer = new Timer(); setTimeout(() => console.log('s1: ', timer.s1), 3100);//3 setTimeout(() => console.log('s2: ', timer.s2), 3000)...
36,036
https://github.com/felixmiller/opentitan/blob/master/hw/ip/rom_ctrl/rtl/rom_ctrl_pkg.sv
Github Open Source
Open Source
Apache-2.0
2,021
opentitan
felixmiller
null
Spoken
29
77
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 `include "prim_assert.sv" package rom_ctrl_pkg; parameter int AlertFatal = 0; endpackage
44,103
https://github.com/IGNF/geoxygene-palette/blob/master/src/main/java/fr/ign/cogit/extrapalettor/ColorSequence.java
Github Open Source
Open Source
MIT
2,017
geoxygene-palette
IGNF
Java
Code
53
197
package fr.ign.cogit.extrapalettor; import java.rmi.server.UID; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class ColorSequence { int ncolors = 1; pu...
2,797
https://github.com/djmott/xtl/blob/master/docs/html/evt__vc32_8cpp.js
Github Open Source
Open Source
BSL-1.0
2,019
xtl
djmott
JavaScript
Code
20
151
var evt__vc32_8cpp = [ [ "__declspec", "evt__vc32_8cpp.html#a9f0b82980b4ddc773b3908d9e0ca4edd", null ], [ "__xtd_EventEnter", "evt__vc32_8cpp.html#af50b897e87ee37182b6ff814017fb996", null ], [ "__xtd_EventLeave", "evt__vc32_8cpp.html#aeaa8d4492d51b8ea14fea94e60a836c9", null ] ];
41,429
https://github.com/Hrodryk/zoop-php/blob/master/src/Resource/Transfers.php
Github Open Source
Open Source
MIT
2,019
zoop-php
Hrodryk
PHP
Code
646
2,431
<?php namespace Zoop\Resource; use Zoop\Helper\Filters; use Zoop\Helper\Pagination; use Requests; use stdClass; /** * Class Transfers. */ class Transfers extends ZoopResource { /** * Path bank accounts API. * * @const string */ const PATH = 'transfers'; /** * Path bank accounts API. * * @const string */ ...
4,210
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P125/P125189.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
337
1,593
#new_text=P125189 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 5(disz) 5(disz)[one] NU o.1.2 sila3 sila[unit] N o.1.3 kasz kasz[beer] N o.1.4 sig _ V o.1.5 5(disz) 5(disz)[one] NU o.1.6 sila3 sila[unit] N o.1.7 ninda ninda[bread] N o.1.8 2(disz) 2(disz)[one] NU o.1.9 sa sa[bundle] N o.1.10 szum2 szum[garlic] N o.1.11 ...
34,364
https://github.com/0xtsukino/typescript-extension-boilerplate/blob/master/src/ui/components/SwitchButton/index.tsx
Github Open Source
Open Source
MIT
2,022
typescript-extension-boilerplate
0xtsukino
TypeScript
Code
46
154
import React, {ChangeEventHandler, ReactElement} from "react"; import "./switch-button.scss"; import classNames from "classnames"; type Props = { checked?: boolean; onChange?: ChangeEventHandler<HTMLInputElement>; className?: string; } export default function SwitchButton(props: Props): ReactElement { return ...
16,599
https://github.com/alterationx10/100Showcase/blob/master/app/models/GameClip.scala
Github Open Source
Open Source
Apache-2.0
2,016
100Showcase
alterationx10
Scala
Code
471
1,818
package models import java.text.SimpleDateFormat import javax.xml.bind.DatatypeConverter import akka.actor.{ActorRef, ActorSystem} import com.google.inject.name.Named import com.google.inject.{AbstractModule, Inject, Singleton} import modules.XboxAPI import play.api.cache.CacheApi import play.api.{Configuration, Logg...
54,655
https://github.com/eduardocasas/MyWebsite/blob/master/www/symfony/web/bundles/ecl/js/backoffice/form.js
Github Open Source
Open Source
BSD-3-Clause, MIT
2,019
MyWebsite
eduardocasas
JavaScript
Code
10
73
$(document).ready(function() { $('#article_form_title').keyup(function() { $('#article_form_slug').val($('#article_form_title').val().toLowerCase().replace(/ /g, '-').replace(/ñ/g, 'n')); }); });
10,102
https://github.com/VincentBlondeau/iceberg/blob/master/Iceberg-UI.package/IceExtendedVersionBrowser.class/instance/history.st
Github Open Source
Open Source
MIT
2,018
iceberg
VincentBlondeau
null
Spoken
11
19
accessing history ^ history ifNil: [ history := self retrieveHistory ]
31,723
https://github.com/baidurom/reference/blob/master/bosp/secondary_framework.jar.out/smali/android/view/WindowOrientationListener$SensorEventListenerImpl.smali
Github Open Source
Open Source
Apache-2.0
2,014
reference
baidurom
Smali
Code
3,509
16,972
.class final Landroid/view/WindowOrientationListener$SensorEventListenerImpl; .super Ljava/lang/Object; .source "WindowOrientationListener.java" # interfaces .implements Landroid/hardware/SensorEventListener; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/view/WindowOrientat...
21,203
https://github.com/jjerome/Niski/blob/master/src/pong_game/PongPlayer.cpp
Github Open Source
Open Source
MIT
2,017
Niski
jjerome
C++
Code
112
435
#include "pong_game/PongPlayer.h" #include "pong_game/Ball.h" #include "utils/Assert.h" using namespace Niski::Pong_Game; PongPlayer::PongPlayer(PongWorld* parent, const Niski::Math::Vector2D<float>& initialPaddlePosition, const std::string& name, bool isBot) : Player(parent, name), isBot_(isBot), score_(0) { padd...
24,800
https://github.com/ghostoutfit/metaplex/blob/master/js/packages/web/src/views/intro/index.tsx
Github Open Source
Open Source
Apache-2.0
2,022
metaplex
ghostoutfit
TypeScript
Code
345
584
import React from 'react'; import { Col, Layout } from 'antd'; import Masonry from 'react-masonry-css'; import { Link } from 'react-router-dom'; import { ArtistCard } from '../../components/ArtistCard'; export const IntroView = () => ( <div className="has-dropcap"> <h2>Ages past in the land of Terra, ther...
37,087
https://github.com/LEEDONGEUN/LearningProgramming/blob/master/kankyung/kaoni/bw.kim/FormattingTest/Rock_Paper_Scissors/Program.cs
Github Open Source
Open Source
MIT
2,013
LearningProgramming
LEEDONGEUN
C#
Code
276
902
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Rock_Paper_Scissors { class Program { //enum iphone //{ // one = "가위", // two = "바위", // three = "보" //} static void M...
31,454
https://github.com/ColinClark/IntroToHadoopAndMapReduce/blob/master/indexreducer.py
Github Open Source
Open Source
Apache-2.0
null
IntroToHadoopAndMapReduce
ColinClark
Python
Code
69
210
#!/usr/bin/python import sys fantastic_total = 0 fantastically_list = [] # Loop around the data # It will be in the format key\tval for line in sys.stdin: data_mapped = line.strip().split("\t") if len(data_mapped) != 2: # Something has gone wrong. Skip this line. continue id, word = da...
22,989
https://github.com/kitboy/docker-shop/blob/master/html/ecmall/upload/eccore/model/model.base.php
Github Open Source
Open Source
MIT
2,019
docker-shop
kitboy
PHP
Code
2,970
12,291
<?php if (!defined('IN_ECM')) { exit('403 Forbidden'); } /* 模型相关常量定义 */ define('HAS_ONE', 1); //一对一关联 define('BELONGS_TO', 2); //属于关联 define('HAS_MANY', 3); //一对多关联 define('HAS_AND_BELONGS_TO_MANY', 4); //多对多关联 define('DROP_CONDITION_TRUNCATE', 'TRUNCATE...
11,422
https://github.com/Ktakuya332C/bmlib/blob/master/bmlib/bm_test.cc
Github Open Source
Open Source
MIT
2,018
bmlib
Ktakuya332C
C++
Code
273
1,745
#include "bm.h" #include "test_utils.h" void test_alloc(void) { BM bm(3, 2); } void test_adds(void) { BM bm(3, 2); check(bm.add_vis_node("node1", 0, 0.5).ok); check(bm.pparams->n_nodes == 1); check(bm.add_hid_node("node2", 0.5).ok); check(bm.pparams->n_nodes == 2); check(bm.add_hid_node("n...
12,418
https://github.com/CassGarcia/AplicProgOO/blob/master/np2/loja/src/loja/gui/ConfiguracoesGUI.java
Github Open Source
Open Source
MIT
null
AplicProgOO
CassGarcia
Java
Code
1,288
7,220
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package loja.gui; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; ...
10,929
https://github.com/domnikl/statsd-php/blob/master/tests/unit/Connection/UdpSocketTest.php
Github Open Source
Open Source
MIT
2,021
statsd-php
domnikl
PHP
Code
49
252
<?php declare(strict_types=1); namespace Domnikl\Test\Statsd\Connection; use Domnikl\Statsd\Connection\UdpSocket; use PHPUnit\Framework\TestCase; class UdpSocketTest extends TestCase { public function testInit() { $connection = new UdpSocket('localhost', 8125, 10, true); $this->assertEquals(...
8,155
https://github.com/charbeljc/soma-io/blob/master/src/somadicom/Dicom/DicomWriterFactory.cc
Github Open Source
Open Source
CECILL-B
2,021
soma-io
charbeljc
C++
Code
171
751
#ifdef SOMA_IO_DICOM #include <soma-io/Dicom/DicomWriterFactory.h> #include <soma-io/Dicom/DicomWriter.h> #include <soma-io/Dicom/DatasetModule.h> #include <soma-io/Dicom/DicomDatasetHeader.h> #include <soma-io/Container/DicomProxy.h> #else #include <Dicom/DicomWriterFactory.h> #include <Dicom/DicomWriter.h> #include <...
29,708
https://github.com/chromium/chromium/blob/master/storage/browser/blob/blob_url_loader.h
Github Open Source
Open Source
BSD-3-Clause
2,023
chromium
chromium
C++
Code
275
1,306
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_LOADER_H_ #define STORAGE_BROWSER_BLOB_BLOB_URL_LOADER_H_ #include <memory> #include <string> #include <vector> #include "base/component...
13,251
https://github.com/veluxer62/occupying/blob/master/src/main/kotlin/com/kh/api/request/SearchTrainParams.kt
Github Open Source
Open Source
Apache-2.0
2,023
occupying
veluxer62
Kotlin
Code
119
494
package com.kh.api.request import com.fasterxml.jackson.annotation.JsonProperty import com.kh.api.exception.IllegalParameterException import com.kh.deprecatedOccupying.domain.Station import com.kh.deprecatedOccupying.dto.param.SearchParams import java.time.LocalDate import java.time.LocalDateTime import java.time.Loca...
27,912
https://github.com/zsergey/TelegramCharts/blob/master/TelegramCharts/Sources/ColorScheme/DayScheme.swift
Github Open Source
Open Source
MIT
null
TelegramCharts
zsergey
Swift
Code
143
559
// // DayScheme.swift // TelegramCharts // // Created by Sergey Zapuhlyak on 3/14/19. // Copyright © 2019 @zsergey. All rights reserved. // import UIKit struct DayScheme: ColorSchemeProtocol { var background: UIColor var selectedCellView: UIView var title: UIColor var statusBar...
47,161
https://github.com/nesadkadric/CwkSocial/blob/master/CwkSocial/CwkSocial.Application/UserProfiles/Commands/DeleteUserProfile.cs
Github Open Source
Open Source
MIT
null
CwkSocial
nesadkadric
C#
Code
20
56
using MediatR; namespace CwkSocial.Application.UserProfiles.Commands { public class DeleteUserProfile : IRequest { public Guid UserProfileId { get; set; } } }
37,496
https://github.com/addy369/AnimalAI/blob/master/animalai/animalai/envs/gym/environment.py
Github Open Source
Open Source
Apache-2.0
2,020
AnimalAI
addy369
Python
Code
1,208
3,740
import logging from PIL import Image import itertools import gym import numpy as np from animalai.envs import UnityEnvironment from gym import error, spaces class UnityGymException(error.Error): """ Any error related to the gym wrapper of ml-agents. """ pass logging.basicConfig(level=logging.INFO) l...
1,498
https://github.com/lineldcosta/universal-react-boilerplate/blob/master/src/server/server.dev.js
Github Open Source
Open Source
MIT
2,017
universal-react-boilerplate
lineldcosta
JavaScript
Code
118
329
/* @flow */ import express from 'express' import path from 'path' import webpack from 'webpack' import config from '../../config/webpack.config.dev' // eslint-disable-next-line no-duplicate-imports import type { $Request, $Response } from 'express' const compiler = webpack(config) const scriptPaths = ['/bundle.js'] c...
23,785
https://github.com/avksp/pokupo_landing/blob/master/src/Pokupo/BlogBundle/Controller/Tag/ListController.php
Github Open Source
Open Source
MIT
2,016
pokupo_landing
avksp
PHP
Code
53
252
<?php namespace Pokupo\BlogBundle\Controller\Tag; use Admingenerated\PokupoBlogBundle\BaseTagController\ListController as BaseListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; /** * ListController */ class ListController extends BaseListController { ...
20,292
https://github.com/001pingfan/springBoot-shiro-vue-element-admin/blob/master/springboot-shiro/src/main/java/com/shiro/controller/UserController.java
Github Open Source
Open Source
MIT
2,021
springBoot-shiro-vue-element-admin
001pingfan
Java
Code
460
2,591
package com.shiro.controller; import com.shiro.aop.annotation.MyLog; import com.shiro.constarts.Constant; import com.shiro.pojo.SysUser; import com.shiro.service.UserService; import com.shiro.utils.JwtTokenUtil; import com.shiro.utils.Response; import com.shiro.vo.req.LoginReqVo; import com.shiro.vo.req.UserAddReqVo; ...
17,856
https://github.com/YgorMendanha/NotePad/blob/master/src/styles.js
Github Open Source
Open Source
MIT
null
NotePad
YgorMendanha
JavaScript
Code
1,190
4,482
import styled, { createGlobalStyle } from 'styled-components' import { ToastContainer } from 'react-toastify' export const GlobalStyle = createGlobalStyle` html, body { height: auto; width: 100vw; padding: 0px; margin:0px; font-family: 'Luxurious Roman'; } ::-webkit-scrollbar{ ...
34,255
https://github.com/CCMMMA/dagonstar/blob/master/dagon/dockercontainer/docker_client.py
Github Open Source
Open Source
Apache-2.0
null
dagonstar
CCMMMA
Python
Code
60
233
from fabric.api import local, env, run, settings, hide class DockerClient(object): def exec_command(self, command): with settings( hide('warnings', 'running', 'stdout', 'stderr'), warn_only=True ): res = local(command,capture=True) if not res.failed: ...
1,458
https://github.com/isghe/fabric-api/blob/master/api/src/main/java/org/hyperledger/account/color/ColoredCoinBucket.java
Github Open Source
Open Source
Apache-2.0, MIT
2,016
fabric-api
isghe
Java
Code
212
621
/** * 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 * dist...
8,041
https://github.com/viktoralex/Owlery/blob/master/test/Owlery.Tests/Services/BasicPropertiesHandler_ApplyMessageProperties.cs
Github Open Source
Open Source
MIT
2,019
Owlery
viktoralex
C#
Code
357
1,110
using System.Collections.Generic; using Microsoft.Extensions.Options; using Moq; using Owlery.Models; using Owlery.Models.Settings; using Owlery.Services; using RabbitMQ.Client; using Xunit; namespace Owlery.Tests.Services { public class BasicPropertiesHandler_ApplyMessageProperties { private IOptions<...
43,273
https://github.com/polling-repo-continua/RTTM/blob/master/kafka-parser/src/main/java/org/kafkaparser/utilities/ConfigData.java
Github Open Source
Open Source
Apache-2.0
2,020
RTTM
polling-repo-continua
Java
Code
66
183
package org.kafkaparser.utilities; import java.util.List; public class ConfigData { public static String consumerPropertiesFileName = "consumer.properties"; public static String emailPropertiesFileName = "email.properties"; public static String producerPropertiesFileName = "producer.properties"; public static S...
17,218
https://github.com/Gradziu31/luminaled/blob/master/resources/views/stare_realizacje_kopia.blade.php
Github Open Source
Open Source
MIT
null
luminaled
Gradziu31
PHP
Code
232
890
{{-- Template Name: Realizacje --}} @extends('layouts.app') @section('content') @while(have_posts()) @php the_post() @endphp <div class="container"> <div class="mb-5"> <div class="heading mt-2 mb-4"> <h2>Realizacje</h2> </div> @include('partials.content-page') <?php // check if the ...
19,882
https://github.com/Kryndex/cloudprober/blob/master/surfacers/prometheus/config.pb.go
Github Open Source
Open Source
Apache-2.0
2,018
cloudprober
Kryndex
Go
Code
465
1,560
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/google/cloudprober/surfacers/prometheus/config.proto /* Package prometheus is a generated protocol buffer package. It is generated from these files: github.com/google/cloudprober/surfacers/prometheus/config.proto It has these top-level messages:...
35,797
https://github.com/pvtinhtoannang/KHOAHOCKETOAN/blob/master/public/assets/js/tp-script.js
Github Open Source
Open Source
MIT
2,020
KHOAHOCKETOAN
pvtinhtoannang
JavaScript
Code
1,105
4,114
var KTDatatablesPermission = function () { var initTablePermission = function () { var table = $('#permission'); table.DataTable({ responsive: true, lengthMenu: [5, 10, 25, 50], pageLength: 10, language: {'lengthMenu': 'Hiển thị _MENU_',}, }); ...
34,723
https://github.com/Dooyoung-Kim/QRTracking/blob/master/SampleQRCodes/TestBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs66.cpp
Github Open Source
Open Source
MIT
null
QRTracking
Dooyoung-Kim
C++
Code
6,819
56,346
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include <limits> #include "vm/CachedCCWBase.h" #include "utils/New.h" // System.Text.RegularExpressions.RegexOptions[] struct RegexOptionsU5BU5D_t7331675FC2B3783AD45B7A664FB7365174D43C67; // Photon...
1,502
https://github.com/urswilke/rtweettree/blob/master/man/rtweettree_tbl_graph.Rd
Github Open Source
Open Source
MIT
2,021
rtweettree
urswilke
R
Code
253
1,026
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/rtweettree_tbl_graph.R \name{rtweettree_tbl_graph} \alias{rtweettree_tbl_graph} \alias{rtweettree_tbl_graph.rtweettree_data} \alias{rtweettree_tbl_graph.rtweettree_tbl_graph} \alias{rtweettree_tbl_graph.character} \title{Create a tidygraph tb...
29,604
https://github.com/annaghiraeta/web-scraping-challenge/blob/master/scrape_mars.py
Github Open Source
Open Source
MIT
null
web-scraping-challenge
annaghiraeta
Python
Code
364
1,972
#!/usr/bin/env python # coding: utf-8 from bs4 import BeautifulSoup from splinter import Browser from pprint import pprint import pymongo import pandas as pd import requests import re import time def scrape_info(): browser=Browser('chrome') mars={} # # Scraping # # NASA Mars News # pull ...
12,626
https://github.com/ALESSANDROLMENEZES/MVC-SQL-LIVE/blob/master/views/userView.js
Github Open Source
Open Source
MIT
null
MVC-SQL-LIVE
ALESSANDROLMENEZES
JavaScript
Code
256
835
const readline = require('readline'); const userController = require('../controllers/userController'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, prompt:'OHAI> ' }); rl.prompt(); rl.setMaxListeners(100); const showOptions = () => { console.table(...
43,600
https://github.com/svgbook/react-icons/blob/master/src/icons/ArrowsUpLeft.js
Github Open Source
Open Source
MIT
2,021
react-icons
svgbook
JavaScript
Code
116
615
import React, { forwardRef, Fragment } from 'react' import IconBase from '../primitives/IconBase' const renderPath = {} renderPath['outline'] = (color) => ( <Fragment> <path fill='none' d='M18,8.67,15.33,6,12.67,8.67' /> <path fill='none' d='M15.33,6v7.33a2,2,0,0,1-2,2H6' /> <path fill='none' d='M8.67,1...
19,142
https://github.com/enaenen/AntyBeety2/blob/master/x/universal_demo/smali/com/google/android/exoplayer2/util/ParsableBitArray.smali
Github Open Source
Open Source
MIT
null
AntyBeety2
enaenen
Smali
Code
967
5,203
.class public final Lcom/google/android/exoplayer2/util/ParsableBitArray; .super Ljava/lang/Object; .source "ParsableBitArray.java" # instance fields .field private bitOffset:I .field private byteLimit:I .field private byteOffset:I .field public data:[B # direct methods .method public constructor <init>()V ....
35,454
https://github.com/mehdiamar15/userapp/blob/master/dist/leaves.php
Github Open Source
Open Source
MIT
null
userapp
mehdiamar15
PHP
Code
1,109
5,977
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once ("php/mysqlmo.php"); require_once("php/process.php"); require_once ("php/user_class.php"); $user = new User($pdo); $idus = $_SESSION["iduser"]; echo $idus; ?> <?php if(isset($_SESSION['User'])) { ?> <!...
36,946
https://github.com/moto2002/superWeapon/blob/master/src/Pathfinding/LayerGridGraphUpdate.cs
Github Open Source
Open Source
MIT
null
superWeapon
moto2002
C#
Code
21
56
using System; namespace Pathfinding { public class LayerGridGraphUpdate : GraphUpdateObject { public bool recalculateNodes; public bool preserveExistingNodes = true; } }
48,459
https://github.com/PacktPublishing/Asynchronous-Android-Programming/blob/master/chapter8/src/main/java/com/packpublishing/asynchronousandroid/chapter8/TextPlainBody.java
Github Open Source
Open Source
MIT
2,023
Asynchronous-Android-Programming
PacktPublishing
Java
Code
166
384
/* * This code is part of "Asynchronous Android Programming". * * Copyright (C) 2016 Helder Vasconcelos (heldervasc@bearstouch.com) * Copyright (C) 2016 Packt Publishing * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (th...
33,458
https://github.com/cernbox/ocis-canary/blob/master/pkg/proto/v0/github.com/cernbox/ocis-canary/pkg/proto/v0/canary.pb.web.go
Github Open Source
Open Source
Apache-2.0
2,021
ocis-canary
cernbox
Go
Code
441
1,199
// Code generated by protoc-gen-microweb. DO NOT EDIT. // source: proto.proto package proto import ( "bytes" "encoding/json" "net/http" "github.com/go-chi/chi" "github.com/go-chi/render" "github.com/golang/protobuf/jsonpb" ) type webCanaryHandler struct { r chi.Router h CanaryHandler } func (h *webCanaryHa...
30,206
https://github.com/Samsung/Castanets/blob/master/chrome/browser/chromeos/policy/device_auto_update_time_restrictions_decoder.cc
Github Open Source
Open Source
BSD-3-Clause
2,021
Castanets
Samsung
C++
Code
253
961
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/policy/device_auto_update_time_restrictions_decoder.h" #include <memory> #include <string> #include <vector> #include ...
11,640
https://github.com/matyioe92/SlinkyTyped/blob/master/p/pulumi__aws/src/main/scala/typingsSlinky/pulumiAws/getAvailabilityZonesMod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
matyioe92
Scala
Code
654
2,606
package typingsSlinky.pulumiAws import typingsSlinky.pulumiAws.inputMod.GetAvailabilityZonesFilter import typingsSlinky.pulumiPulumi.invokeMod.InvokeOptions import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImpor...
21,311
https://github.com/emilkm/amfext/blob/master/tests/13015_encodeAmf3PackageObjectIntegerPropertyName.phpt
Github Open Source
Open Source
Apache-2.0
2,019
amfext
emilkm
PHP
Code
156
817
--TEST-- Encode packet object with integer property name --DESCRIPTION-- Encode an AMF3 packet an object with integer property name. --SKIPIF-- <?php if (!extension_loaded('amf')) print 'skip'; ?> --FILE-- <?php include 'amf_encoder.inc'; $encoder = new AmfEncoder(); $encoder->setAvmPlus(true); //$data = unserialize...
47,614
https://github.com/ethanyou725/vue-human/blob/master/suites/carousel/carousel.vue
Github Open Source
Open Source
MIT
2,019
vue-human
ethanyou725
Vue
Code
674
2,253
<template> <div class="mn-carousel" :class="{}" @click.prevent="onClick" @touchstart="touchStart" @touchmove="touchMove" @touchend="touchEnd"> <div class="mn-carousel-content" :style="[ { transform: translateX }, transition ]"> <slot></slot> </div> <slot name=...
24,069
https://github.com/karinebabajanyan/example2/blob/master/app/Http/Requests/Posts/PostDeleteImageRequest.php
Github Open Source
Open Source
MIT
2,020
example2
karinebabajanyan
PHP
Code
91
253
<?php namespace App\Http\Requests\Posts; use Illuminate\Foundation\Http\FormRequest; use App\Post; use App\File; class PostDeleteImageRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { ...
37,957
https://github.com/HomeIncorporated/jhipster-holistic/blob/master/gateway/src/test/java/com/enterpriseapp/gateway/web/rest/LocationResourceIT.java
Github Open Source
Open Source
MIT
null
jhipster-holistic
HomeIncorporated
Java
Code
778
3,643
package com.enterpriseapp.gateway.web.rest; import com.enterpriseapp.gateway.GatewayApp; import com.enterpriseapp.gateway.config.SecurityBeanOverrideConfiguration; import com.enterpriseapp.gateway.domain.Location; import com.enterpriseapp.gateway.repository.LocationRepository; import com.enterpriseapp.gateway.reposito...
17,532
https://github.com/finnianr/Eiffel-Loop-safe/blob/master/setup.py
Github Open Source
Open Source
MIT
2,019
Eiffel-Loop-safe
finnianr
Python
Code
125
497
# author: "Finnian Reilly" # copyright: "Copyright (c) 2001-2012 Finnian Reilly" # contact: "finnian at eiffel hyphen loop dot com" # license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)" # date: "10 Dec 2012" # revision: "0.1" from distutils.core import setup from os import path script_path = path.normpath...
42,424
https://github.com/JetBrains/kotlin/blob/master/analysis/analysis-api/testData/components/importOptimizer/analyseImports/referencesWithErrors/unusedUnresolvedImport.kt
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
kotlin
JetBrains
Kotlin
Code
13
39
package one import a.c.c.D import a.a.Foo import a.star.* fun t() { D() }
12,167
https://github.com/jackusz/flowman/blob/master/flowman-tools/src/main/scala/com/dimajix/flowman/tools/Tool.scala
Github Open Source
Open Source
Apache-2.0
null
flowman
jackusz
Scala
Code
367
1,223
/* * Copyright 2018-2019 Kaya Kupferschmidt * * 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 ...
15,664
https://github.com/Curiosity1337/tinyone/blob/master/css/style.less
Github Open Source
Open Source
MIT
null
tinyone
Curiosity1337
Less
Code
369
1,373
html, body { height: 100%; width: 100%; margin: 0; } .icon { font-size: 50px; margin-right: 30px; } .yellow { background-color: #fcdb00; .logo { font-family: 'PT Sans', sans-serif; font-size: 30pt; font-weight: bold; } .nav-menu { font-family: 'PT Sans', sans-serif; ...
27,175
https://github.com/czunker/brigade-cloudevents-gateway/blob/master/internal/cloudevents/service_test.go
Github Open Source
Open Source
Apache-2.0
null
brigade-cloudevents-gateway
czunker
Go
Code
200
838
package cloudevents import ( "context" "errors" "testing" "github.com/brigadecore/brigade/sdk/v2/core" coreTesting "github.com/brigadecore/brigade/sdk/v2/testing/core" cloudEvents "github.com/cloudevents/sdk-go/v2" "github.com/stretchr/testify/require" ) func TestNewService(t *testing.T) { s := NewService( ...
29,541
https://github.com/chm-diederichs/sha384-wasm/blob/master/sha384.wat
Github Open Source
Open Source
MIT
2,020
sha384-wasm
chm-diederichs
null
Spoken
20,000
67,511
(module (func $i32.log (import "debug" "log") (param i32)) (func $i32.log_tee (import "debug" "log_tee") (param i32) (result i32)) ;; No i64 interop with JS yet - but maybe coming with WebAssembly BigInt ;; So we can instead fake this by splitting the i64 into two i32 limbs, ;; however these are WASM functions using i3...
2,099
https://github.com/mebusy/NesDev/blob/master/core_src/nes/ppu/patternTable.go
Github Open Source
Open Source
MIT
2,022
NesDev
mebusy
Go
Code
319
705
package ppu import ( "nes/color" "nes/sprite" ) // This function draw the CHR ROM for a given pattern table into // an olc::Sprite, using a specified palette. Pattern tables consist func (self *Ppu) GetPatternTable( i int, palette int ) *sprite.Sprite { for nTileY :=0 ; nTileY < 16; nTileY++ { fo...
46,983
https://github.com/ko100v/aletta/blob/master/src/components/NotFound/NotFound.js
Github Open Source
Open Source
MIT
2,019
aletta
ko100v
JavaScript
Code
30
65
import React, { Component } from 'react' class NotFound extends Component { render() { return ( <h1>Whoops! ... There is nothing to see here...</h1> ) } } export default NotFound
52,952
https://github.com/Muamaidbengt/SeqrUs/blob/master/Seqrus.Web/Views/Risk/_A1_2017_Injection.cshtml
Github Open Source
Open Source
Apache-2.0
2,018
SeqrUs
Muamaidbengt
HTML+Razor
Code
264
631
@model Seqrus.Web.Helpers.ComplianceSettings <h2 class="page-header">A1:2017 - Injection <risk-exposure is-exposed="@Model.Injection" /></h2> <div class="seq-description"> <p>An injection vulnerability can allow an attacker to gain access to and use a system in unexpected, unintended and unusual ways.</p>...
40,089
https://github.com/wilson32190/tis/blob/master/tsearcher-dumpcenter/src/main/java/com/qlangtech/tis/common/utils/TSearcherYuntiParser.java
Github Open Source
Open Source
MIT
2,019
tis
wilson32190
Java
Code
371
954
/* * The MIT License * * Copyright (c) 2018-2022, qinglangtech Ltd * * 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, including without limitation the rights * to...
43,663
https://github.com/patmaddox/multi-methods/blob/master/features/step_definitions/multi-methods_steps.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,009
multi-methods
patmaddox
Ruby
Code
31
79
Given /^the following code$/ do |code| eval code end When /^I run$/ do |code| @result = eval code end Then /^the return should be "([^\"]*)"$/ do |expected_result| @result.to_s.should == expected_result end
24,960
https://github.com/WhippyCleric/WhipPlugins/blob/master/WhipEconomy/src/main/java/com/whippy/sponge/whipconomy/commands/PayCommand.java
Github Open Source
Open Source
Apache-2.0
null
WhipPlugins
WhippyCleric
Java
Code
201
1,023
package com.whippy.sponge.whipconomy.commands; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.spongepowered.api.entity.player.Player; import org.spongepowered.api.text.Texts; import org.spongepowered.api.text.format.TextColors; import org.spongepowered.api.util.command.CommandE...
21,667
https://github.com/toivjon/sdl2-space-invaders/blob/master/src/player_context.cpp
Github Open Source
Open Source
MIT
2,021
sdl2-space-invaders
toivjon
C++
Code
37
135
#include "player_context.h" using namespace space_invaders; PlayerContext::PlayerContext() : mLevel(1), mScore(0), mLives(3), mShotCount(0), mRelaunchTimer(0) { // ... } void PlayerContext::reset() { mLevel = 1; mScore = 0; mLives = 3; mShotCount = 0; mRelaunchTimer = 0; mAliens.clear(); mShields.cle...
31,538
https://github.com/tinayanli/tinayanli.github.io/blob/master/webadvanced/Assignment_4/js/script.js
Github Open Source
Open Source
MIT
2,017
tinayanli.github.io
tinayanli
JavaScript
Code
86
1,111
var counter = 0; var timer = 0; var blocks = ['⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️', '⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️', '⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️', '⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️', '⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️', '⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️', '⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️', '⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️', '⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️⬜️', '⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️🔳⬜️', '⬜️⬜️⬜️⬜️⬜️⬜...
15,879
https://github.com/wangsong688/jeezzf/blob/master/src/main/java/org/jeecgframework/core/extend/hqlsearch/parse/PageValueConvertRuleEnum.java
Github Open Source
Open Source
Apache-2.0
null
jeezzf
wangsong688
Java
Code
270
1,000
package org.jeecgframework.core.extend.hqlsearch.parse; import java.util.Arrays; import org.jeecgframework.core.extend.hqlsearch.parse.vo.HqlParseEnum; import org.jeecgframework.core.extend.hqlsearch.parse.vo.HqlRuleEnum; import org.jeecgframework.core.util.PropertiesUtil; import org.jeecgframework.core.util.Resource...
12,296
https://github.com/minhe7735/ReactReduxTypeScriptPokedex/blob/master/src/features/pokemon/pokemonDetailsSlice.ts
Github Open Source
Open Source
Info-ZIP
null
ReactReduxTypeScriptPokedex
minhe7735
TypeScript
Code
864
2,866
import { createSlice, PayloadAction } from "@reduxjs/toolkit"; import { AppThunk, RootState } from "../../app/store"; interface nameLink { name: string; url: string; } interface PokemonState { evolution: string[]; forms: string[]; names: { name: string; language: nameLink }[]; dexNum: { entry_...
4,498