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/kozo2/pathvisio/blob/master/modules/org.pathvisio.core/src/org/pathvisio/core/debug/Logger.java | Github Open Source | Open Source | Apache-2.0 | null | pathvisio | kozo2 | Java | Code | 548 | 1,241 | // PathVisio,
// a tool for data visualization and analysis using Biological Pathways
// Copyright 2006-2011 BiGCaT Bioinformatics
//
// 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
//
// ht... | 35,098 |
https://github.com/aileensoul/aileensoul-latest/blob/master/assets/js_20_11_2017/webpage/dashboard/cover.js | Github Open Source | Open Source | MIT | 2,017 | aileensoul-latest | aileensoul | JavaScript | Code | 1,245 | 4,767 | $('.modal-close').on('click', function () {
document.getElementById('upload-demo-one').style.display = 'none';
document.getElementById('upload-one').value = null;
$('.cr-image').attr('src', '#');
});
$( document ).on( 'keydown', function ( e ) {
if ( e.keyCode === 27 ) {
$( "#bidmodal-2" ).h... | 43,190 |
https://github.com/shindesharad71/DigiWord/blob/master/admin/categories.php | Github Open Source | Open Source | MIT | 2,018 | DigiWord | shindesharad71 | PHP | Code | 107 | 547 | <?php
$title = 'Categories';
session_start();
require_once('../inc/dbconfig.php');
if(!isset($_SESSION['username']))
{
echo '<script>setTimeout(function () { window.location.href = "../admin/login.php";}, 5);</script>';
die();
}
?>
<div class="container col-md-offset-3 col-md-6 topspace">
<div class="tex... | 47,828 |
https://github.com/hmrc/agent-authorisation-api/blob/master/app/uk/gov/hmrc/agentauthorisation/ErrorHandler.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | agent-authorisation-api | hmrc | Scala | Code | 209 | 580 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 56,893 |
https://github.com/ScalablyTyped/Distribution/blob/master/n/node/src/main/scala/typings/node/anon/TypeofURL.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 264 | 702 | package typings.node.anon
import typings.node.nodeColonbufferMod.Blob
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait TypeofURL extends StObject {
/**
* Creates a `'blob:nodedata:...'` URL ... | 26,530 |
https://github.com/autophagy/crate/blob/master/libs/dex/src/testFixtures/java/io/crate/testing/TestingRowConsumer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | crate | autophagy | Java | Code | 283 | 713 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 33,276 |
https://github.com/fcy354268003/my_account_book/blob/master/app/release/outdir/smali/androidx/core/app/NotificationCompat$BigTextStyle.smali | Github Open Source | Open Source | Apache-2.0 | 2,021 | my_account_book | fcy354268003 | Smali | Code | 223 | 1,354 | .class public Landroidx/core/app/NotificationCompat$BigTextStyle;
.super Landroidx/core/app/NotificationCompat$Style;
.source "NotificationCompat.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/core/app/NotificationCompat;
.end annotation
.annotation system Ldalvik/ann... | 13,228 |
https://github.com/SaxxonPike/roton/blob/master/Source/Roton/Emulation/Conditions/Impl/BlockedCondition.cs | Github Open Source | Open Source | ISC | 2,019 | roton | SaxxonPike | C# | Code | 61 | 234 | using System;
using Roton.Emulation.Core;
using Roton.Emulation.Data;
using Roton.Emulation.Data.Impl;
using Roton.Infrastructure.Impl;
namespace Roton.Emulation.Conditions.Impl
{
[Context(Context.Original, "BLOCKED")]
[Context(Context.Super, "BLOCKED")]
public sealed class BlockedCondition : ICondition
... | 24,627 |
https://github.com/wangzhongtian/fiberAlarmAnalyseTool/blob/master/build/02-jl_31Online_compile.sh | Github Open Source | Open Source | Unlicense | null | fiberAlarmAnalyseTool | wangzhongtian | Shell | Code | 70 | 366 | BuildSCript="julia $JULIA_DEPOT_PATH/packages/PackageCompiler/oT98U/juliac.jl " #julia 1.2
BuildSCript="julia $JULIA_DEPOT_PATH/packages/PackageCompiler/CJQcs/juliac.jl " #julia 1.3
BuildOutPath="/media/wang/34e67bec-7d42-4d87-824f-2f98672a41af/t/app/fiberproc/exec/"
BuildOutPath="/media/wang/705fc396-8c76-4812-9d0b-d1... | 30,936 |
https://github.com/Kernel-Team/lfs-pacman-systemd/blob/master/packages/blfs/dhcp/dhclient@.service | Github Open Source | Open Source | MIT | 2,019 | lfs-pacman-systemd | Kernel-Team | null | Spoken | 17 | 98 | [Unit]
Description=dhclient on %I
Wants=network.target
Before=network.target
[Service]
ExecStart=/usr/sbin/dhclient -pf /run/dhclient@%i/dhclient.pid -d %I
RuntimeDirectory=dhclient@%i
ProtectSystem=on
ProtectHome=on
[Install]
WantedBy=multi-user.target
| 33,615 |
https://github.com/patocallaghan/questionnaire-js/blob/master/original/assets/scripts/src/app/ui/map/static.js | Github Open Source | Open Source | MIT | 2,016 | questionnaire-js | patocallaghan | JavaScript | Code | 62 | 237 | /* app/ui/map/static */
define(
[
'jquery'
],
function ( $ ) {
'use strict';
var $mapMarker;
return {
init: function () {
$mapMarker = $( '.js-map-marker' );
this.initEvents();
},
initEvents: function () {
$('.js-map-marker').on('mouseenter mouseleave', this.toggleMarkerMenu);
... | 14,641 |
https://github.com/Arogancki/safety-documents-exchange/blob/master/app/src/router/shares.js | Github Open Source | Open Source | MIT | null | safety-documents-exchange | Arogancki | JavaScript | Code | 749 | 2,889 | const path = require('path')
, crateRouter = require('../helpers/createRouter')
, authenticated = require('../policies/authenticated')
, shareIncluded = require('../policies/shareIncluded')
, shareDestination = require('../policies/shareDestination')
, shareOrigin = require('../policies/shareOrigin'... | 45,973 |
https://github.com/denkmal/denkmal.org/blob/master/tests/library/Denkmal/Component/PushNotificationsTest.php | Github Open Source | Open Source | MIT | 2,018 | denkmal.org | denkmal | PHP | Code | 238 | 1,222 | <?php
class Denkmal_Component_PushNotificationsTest extends CMTest_TestCase {
public function tearDown() {
CMTest_TH::clearEnv();
}
/**
* @expectedException CM_Exception
* @expectedExceptionMessage Unknown notification endpoint
*/
public function testAjax_storePushSubscriptionU... | 17,290 |
https://github.com/gombadi/dnsseeder/blob/master/vendor/github.com/btcsuite/btcd/database/example_test.go | Github Open Source | Open Source | ISC, Apache-2.0 | 2,022 | dnsseeder | gombadi | Go | Code | 343 | 847 | // Copyright (c) 2013-2014 The btcsuite developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package database_test
import (
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/database"
_ "github.com/btcsuite/btcd/database/memdb"
"github.c... | 55,978 |
https://github.com/Skejven/aet-lighthouse-extension/blob/master/src/main/java/com/github/skejven/comparator/LighthouseComparatorFactory.java | Github Open Source | Open Source | Apache-2.0 | null | aet-lighthouse-extension | Skejven | Java | Code | 197 | 637 | /*
* aet-extensions: lighthouse
*
* Copyright (C) 2019 Maciej Laskowski
*
* 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 requi... | 27,245 |
https://github.com/sshyran/cloudfoundry-cli/blob/master/bin/i18n-checkup | Github Open Source | Open Source | Apache-2.0 | 2,016 | cloudfoundry-cli | sshyran | Shell | Code | 162 | 594 | #!/usr/bin/env bash
set -e
if [[ "$OSTYPE" == "darwin14" ]]; then
tmpdir=/tmp/i18n-checkup-$(uuidgen)
mkdir -p ${tmpdir}
else
tmpdir=$(mktemp -d)
fi
function cleanup {
rm -rf ${tmpdir}
}
trap cleanup EXIT
if [ ! $(which goi18n) ];then
echo -e "\n Installing go-i18n..."
go get github.com/nicksnyder/go-i1... | 29,684 |
https://github.com/MoltenGears/Mega-Man-Labs/blob/master/items/extra_life/extra_life.gd | Github Open Source | Open Source | MIT, CC-BY-NC-SA-3.0, CC-BY-NC-3.0, CC-BY-4.0 | 2,022 | Mega-Man-Labs | MoltenGears | GDScript | Code | 25 | 109 | extends "res://items/pick_up_base/pick_up_base.gd"
onready var _audio := $AudioStreamPlayer
func _on_picked_up_effect(body: Player) -> void:
_audio.play()
GameState.extra_life_count += 1
func queue_free() -> void:
if _audio.playing:
yield(_audio, "finished")
.queue_free()
| 16,579 |
https://github.com/LJW123/YiLianMall/blob/master/rxfamily/src/main/java/rxfamily/entity/HealthFruitListBean.java | Github Open Source | Open Source | MIT | null | YiLianMall | LJW123 | Java | Code | 64 | 235 | package rxfamily.entity;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Ray_L_Pain on 2018/1/13 0013.
*/
public class HealthFruitListBean extends BaseEntity {
@SerializedName("data")
public DataBean data;
public class DataBean {
@SerializedName("li... | 44,613 |
https://github.com/ntnthien/TwitSplit/blob/master/TwitSplit/App/View/TweetTableViewCell.swift | Github Open Source | Open Source | Apache-2.0 | 2,018 | TwitSplit | ntnthien | Swift | Code | 39 | 136 | //
// TweetTableViewCell.swift
// TwitSplit
//
import UIKit
class TweetTableViewCell: UITableViewCell {
@IBOutlet weak var avatarImageView: UIImageView!
@IBOutlet weak var contentLabel: UILabel!
@IBOutlet weak var titleLabel: UILabel!
func setup(item: Tweet) {
self.contentLabel.tex... | 14,077 |
https://github.com/svrakitin/x/blob/master/configx/koanf_env.go | Github Open Source | Open Source | Apache-2.0 | null | x | svrakitin | Go | Code | 183 | 725 | package configx
import (
"encoding/json"
"strings"
"github.com/knadh/koanf/providers/env"
"github.com/spf13/cast"
"github.com/tidwall/gjson"
"github.com/ory/x/castx"
"github.com/ory/x/jsonschemax"
)
func NewKoanfEnv(prefix string, schema []byte) (*env.Env, error) {
id, compiler, err := newCompiler(schema)
... | 3,036 |
https://github.com/Mofid-Grpc/Transiver/blob/master/GrpcClient.Console/Dispatcher.cs | Github Open Source | Open Source | MIT | 2,021 | Transiver | Mofid-Grpc | C# | Code | 149 | 454 | using BenchmarkDotNet.Attributes;
using Grpc.Core;
using Grpc.Net.Client;
using Replication;
namespace GrpcClient.Console;
public class Dispatcher
{
private const int MAX_BUFFER_SIZE = 1024 * 1024 * 1024;
private const int SIZE = 10_000;
[Benchmark]
public async Task DispatchGroup()
{
us... | 27,206 |
https://github.com/keiyow/symbol-sdk-typescript-javascript/blob/master/src/model/account/MultisigAccountInfo.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,021 | symbol-sdk-typescript-javascript | keiyow | TypeScript | Code | 351 | 791 | /*
* Copyright 2018 NEM
*
* 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 writi... | 17,003 |
https://github.com/httpRick/mtarp/blob/master/sarp_night/client/RTPool.lua | Github Open Source | Open Source | MIT | null | mtarp | httpRick | Lua | Code | 105 | 266 | screen = Vector2( guiGetScreenSize( ) )
RTPool = {}
RTPool.list = {}
function RTPool.frameStart()
for rt,info in pairs(RTPool.list) do
info.bInUse = false
end
end
function RTPool.GetUnused(x, y)
for rt,info in pairs(RTPool.list) do
if not info.bInUse and info.x == x and info.y == y then
info.bInUse = true
... | 19,593 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/n/node-pg-migrate/src/main/scala/typingsSlinky/nodePgMigrate/distTypesMod/package.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 59 | 287 | package typingsSlinky.nodePgMigrate
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
package object distTypesMod {
type Literal = js.Function1[/* v */ typingsSlinky.nodePgM... | 30,729 |
https://github.com/KazBik84/people/blob/master/spec/jobs/base_skill_rates_generator_job_spec.rb | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,017 | people | KazBik84 | Ruby | Code | 53 | 237 | require 'spec_helper'
describe BaseSkillRatesGeneratorJob do
subject { described_class.perform_async(user_id: user.id) }
let(:user) { create(:user) }
describe '#perform' do
let(:generator) do
instance_double('Skills::UserSkillRatesGenerator', call: true)
end
before do
allow(
Sk... | 35,763 |
https://github.com/Albeoris/Memoria/blob/master/Assembly-CSharp/Global/UI/UIToggled/UIToggledObjects.cs | Github Open Source | Open Source | MIT | 2,023 | Memoria | Albeoris | C# | Code | 129 | 507 | using System;
using System.Collections.Generic;
using UnityEngine;
[AddComponentMenu("NGUI/Interaction/Toggled Objects")]
public class UIToggledObjects : MonoBehaviour
{
private void Awake()
{
if (this.target != (UnityEngine.Object)null)
{
if (this.activate.Count == 0 && this.deactivate.Count == 0)
{
... | 48,338 |
https://github.com/dltxio/Monorepo-template/blob/master/packages/web-app/src/components/DropdownItem.tsx | Github Open Source | Open Source | MIT | null | Monorepo-template | dltxio | TypeScript | Code | 83 | 204 | import React, { useContext } from "react";
import { ButtonProps } from "./Button";
import Button from "./Button";
import { ThemeContext } from "./context/ThemeContext";
type Ref = typeof Button;
const DropdownItem = React.forwardRef<Ref, ButtonProps>(function DropdownItem(
props,
ref
) {
// Note: className is p... | 34,203 |
https://github.com/wangcy6/weekly_read/blob/master/code_reading/oceanbase-master/src/sql/resolver/dcl/ob_dcl_stmt.h | Github Open Source | Open Source | Apache-2.0 | null | weekly_read | wangcy6 | C | Code | 162 | 473 | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 3,764 |
https://github.com/arvimlo/reactjs-app/blob/master/src/store.js | Github Open Source | Open Source | MIT | 2,016 | reactjs-app | arvimlo | JavaScript | Code | 61 | 202 | import thunkMiddleware from "redux-thunk";
import loggerMiddleware from "redux-logger";
import {createStore, applyMiddleware, combineReducers} from "redux";
import Reducers from "./reducers";
export default function getStoreWithMiddleware() {
const logger = loggerMiddleware();
const createStoreWithMiddleware =... | 37,538 |
https://github.com/ThiagoAlves31/STONDES/blob/master/resources/views/products/lent.blade.php | Github Open Source | Open Source | MIT | 2,019 | STONDES | ThiagoAlves31 | Blade | Code | 336 | 1,662 | @extends('layout.site')
@section('title','Controle de Livros e CDs')
@section('content')
<div class="container">
<div class="row">
<div class="col-6">
<h3>Emprestar Produto</h3>
<div class="row">
<div class=".col-md"><div id="msg"></div></div>
</div>
... | 34,968 |
https://github.com/jungle-bits/pdf/blob/master/src/actions/uri.rs | Github Open Source | Open Source | MIT | 2,021 | pdf | jungle-bits | Rust | Code | 129 | 272 | use crate::{error::PdfResult, objects::Dictionary, Resolve};
/// A URI action causes a URI to be resolved
#[derive(Debug)]
pub struct UriAction {
/// The uniform resource identifier to resolve, encoded in 7-bit ASCII
// todo: perhaps ascii string as a newtype
uri: String,
/// A flag specifying whether... | 20,351 |
https://github.com/dsherret/swc/blob/master/tests/tsc-references/parser/ecmascript5/Statements/ContinueStatements/parser_continueInIterationStatement4/input.ts/es2015.2.minified/output.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,021 | swc | dsherret | JavaScript | Code | 4 | 11 | for(var i in something)continue;
| 54,664 |
https://github.com/tsingroo/dive_into_fe_in_a_simple_way/blob/master/bilibili/001_js_inheritance/inherence.js | Github Open Source | Open Source | MIT | 2,021 | dive_into_fe_in_a_simple_way | tsingroo | JavaScript | Code | 29 | 69 | function Parent() {
this.name = 'Parent Class';
}
Parent.prototype.getName = function() {
return this.name;
}
function Child() {
}
Child.prototype = new Parent();
const cc = new Child();
console.log(cc.getName()); | 25,193 |
https://github.com/antomy-gc/art-java/blob/master/application-config-extensions/src/main/java/ru/art/config/extensions/grpc/GrpcServerAgileConfiguration.java | Github Open Source | Open Source | Apache-2.0 | null | art-java | antomy-gc | Java | Code | 354 | 1,445 | /*
* ART Java
*
* Copyright 2019 ART
*
* 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 agr... | 56,671 |
https://github.com/EN-Liu/scope-http-statistics/blob/master/tools/runner/Makefile | Github Open Source | Open Source | Apache-2.0 | 2,022 | scope-http-statistics | EN-Liu | Makefile | Code | 30 | 83 | .PHONY: all clean
all: runner
runner: *.go
go get -tags netgo ./$(@D)
go build -ldflags "-extldflags \"-static\" -linkmode=external" -tags netgo -o $@ ./$(@D)
clean:
rm -rf runner
go clean ./...
| 51,133 |
https://github.com/CHN-beta/v2ray-magisk/blob/master/install.sh | Github Open Source | Open Source | MIT | null | v2ray-magisk | CHN-beta | Shell | Code | 1,100 | 2,885 | ##########################################################################################
#
# Magisk Module Installer Script
#
##########################################################################################
##########################################################################################
#
# Instru... | 36,816 |
https://github.com/ShakthiMudaliar/docker-lamp/blob/master/www/bill.php | Github Open Source | Open Source | MIT, Unlicense | 2,020 | docker-lamp | ShakthiMudaliar | PHP | Code | 141 | 553 |
<?php
session_start();
if(!isset($_SESSION['user']))
{
echo "<br>Hi guest user";
}
else{
$address=$_SESSION['Address'];
}
?>
<?php
$servername = "db";
$username = "user";
$password = "test";
$dbname = "mobile";
$conn = mysqli_connect($servername, $username, $password, $dbname);
if (!$conn) { ... | 44,422 |
https://github.com/delogic/asd/blob/master/asd-core/src/test/java/br/com/delogic/asd/exception/BusinessExceptionTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | asd | delogic | Java | Code | 165 | 640 | package br.com.delogic.asd.exception;
import org.junit.Assert;
import org.junit.Test;
public class BusinessExceptionTest extends Assert {
private BusinessException ex;
private BusinessException thrown;
@Test
public void shouldThrowException() {
givenBusinessException("Test");
whenChe... | 4,665 |
https://github.com/Yekllurt/mojangapi/blob/master/src/test/java/dev/yekllurt/mojangapi/Test.java | Github Open Source | Open Source | MIT | 2,019 | mojangapi | Yekllurt | Java | Code | 152 | 707 | package dev.yekllurt.mojangapi;
import java.util.Map;
import java.util.UUID;
import java.util.logging.Logger;
public class Test {
public static void main(String[] args) {
Logger.getGlobal().info("##### API Status #####");
MojangServiceStatus mojangServiceStatus = MojangAPI.getServicesStatus();
... | 31,492 |
https://github.com/singhaugurstech/Audio-Application/blob/master/resources/views/contact/index.blade.php | Github Open Source | Open Source | MIT | null | Audio-Application | singhaugurstech | PHP | Code | 149 | 724 | @extends('layouts.app')
@section('content')
@include('sidebar')
<main class="content">
<div class="container-fluid p-0">
<div class="mb-3">
<h1 class="h3 d-inline align-middle">{{__('contact/index.contact')}}</h1>
<a class="btn btn-danger text-white ms-2" href="{{ url('contact/create... | 15,846 |
https://github.com/lmangani/janus-gateway-js/blob/master/src/webrtc/media-devices-shim.js | Github Open Source | Open Source | MIT | 2,022 | janus-gateway-js | lmangani | JavaScript | Code | 472 | 1,494 | var Promise = require('bluebird');
var webrtc = require('webrtc-adapter');
function MediaDevicesShim() {
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Parameters
* @typedef {Object} MediaStreamConstraints
*/
/**
* @param {MediaStreamConstraints} constraints
* @returns {... | 2,087 |
https://github.com/fhirfactory/pegacorn-communicate-app-ios/blob/master/Riot/Modules/HealthServices/User Interface/Tagging/Cells/PhotographerInfoViewSmall.swift | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,021 | pegacorn-communicate-app-ios | fhirfactory | Swift | Code | 133 | 291 | //
// Copyright 2020 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 at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 53,419 |
https://github.com/ninnepinne/xliff-parser/blob/master/src/XliffUtils/CheckPipeline/CheckXliffVersion2.php | Github Open Source | Open Source | MIT | 2,021 | xliff-parser | ninnepinne | PHP | Code | 89 | 379 | <?php
namespace Matecat\XliffParser\XliffUtils\CheckPipeline;
class CheckXliffVersion2 implements CheckInterface
{
/**
* @param string $tmp
*
* @return array|void|null
*/
public function check($tmp)
{
$fileType = [];
if (isset($tmp[ 0 ])) {
preg_match('|<xl... | 56,777 |
https://github.com/jeremyd4500/Risk-of-Rain-2-Mod-Manager/blob/master/src/react/Switch.jsx | Github Open Source | Open Source | MIT | null | Risk-of-Rain-2-Mod-Manager | jeremyd4500 | null | Spoken | 46 | 191 | import React from 'react';
import PropTypes from 'prop-types';
import OnOffSwitch from 'react-switch';
const Switch = ({ checked, onChange }) => (
<OnOffSwitch
checked={checked}
checkedIcon={false}
offColor={'#b2b2b3'}
offHandleColor={'#ffffff'}
onChange={onChange}
... | 4,393 |
https://github.com/DestroyedClone/-RoR2-ProperSave/blob/master/ProperSave/Loading.cs | Github Open Source | Open Source | MIT | 2,020 | -RoR2-ProperSave | DestroyedClone | C# | Code | 262 | 901 | using Mono.Cecil.Cil;
using MonoMod.Cil;
using RoR2;
using RoR2.Networking;
using System;
using System.Collections;
using System.IO;
using PSTinyJson;
namespace ProperSave
{
public static class Loading
{
private static bool isLoading;
public static bool IsLoading
{
get => ... | 15,146 |
https://github.com/miguelarriba/proyecto_aBD/blob/master/controllers/FormularioPost.php | Github Open Source | Open Source | MIT | null | proyecto_aBD | miguelarriba | PHP | Code | 145 | 693 | <?php
include 'Form.php';
include '../models/Post.php';
include '../models/categorias.php';
class FormularioPost extends Form
{
private $categorias;
public function __construct() {
parent::__construct('formIdea');
$cat = new Categorias;
$this->categorias = $cat->getCategorias();
}
... | 16,157 |
https://github.com/blackjyn/flex-sdk/blob/master/frameworks/projects/mobiletheme/src/spark/skins/mobile/RadioButtonSkin.as | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | flex-sdk | blackjyn | null | Spoken | 624 | 2,854 | ////////////////////////////////////////////////////////////////////////////////
//
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF license... | 4,040 |
https://github.com/jimingham/llvm-project/blob/master/llvm/test/CodeGen/Thumb2/mve-intrinsics/vminq.ll | Github Open Source | Open Source | Apache-2.0 | 2,021 | llvm-project | jimingham | LLVM | Code | 851 | 2,663 | ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=thumbv8.1m.main -mattr=+mve.fp -verify-machineinstrs -o - %s | FileCheck %s
define arm_aapcs_vfpcc <16 x i8> @test_vminq_u8(<16 x i8> %a, <16 x i8> %b) local_unnamed_addr #0 {
; CHECK-LABEL: test_vminq_u8:
; CHECK: ... | 5,242 |
https://github.com/Aden-Q/leetcode/blob/master/code/1008.Construct-Binary-Search-Tree-from-Preorder-Traversal.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | leetcode | Aden-Q | Python | Code | 83 | 242 | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def bstFromPreorder(self, preorder: List[int]) -> Optional[TreeNode]:
if len(preorder) == 0:
... | 26,620 |
https://github.com/karimsla/jardin_enfant/blob/master/src/AppBundle/Repository/RemarqueRepository.php | Github Open Source | Open Source | MIT | null | jardin_enfant | karimsla | PHP | Code | 167 | 627 | <?php
namespace AppBundle\Repository;
/**
* RemarqueRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class RemarqueRepository extends \Doctrine\ORM\EntityRepository
{
public function getremarques($id)
{
$q=$this->getEntityManager()->... | 48,041 |
https://github.com/CuityMiko/growth-code/blob/master/chapter8/ci/setup.sh | Github Open Source | Open Source | MIT | 2,017 | growth-code | CuityMiko | Shell | Code | 37 | 103 | # Setup a proper path, I call my virtualenv dir "venv" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "venv" ]; then
virtualenv --distribute -p /usr/local/bin/python3.5 py35env
fi
. py35env/bin/activate
| 48,728 |
https://github.com/Lugo-Studio/Hallow/blob/master/hallow/src/engine/window/HallowWindow.cpp | Github Open Source | Open Source | MIT | null | Hallow | Lugo-Studio | C++ | Code | 125 | 567 | //
// Created by Gabriel Lugo on 3/28/2021.
//
#include "HallowWindow.hpp"
#include "application/HallowApp.hpp"
#include <stdexcept>
namespace Hallow {
HallowWindow::HallowWindow(int width, int height, std::string name)
: m_width(width), m_height(height), m_name(std::move(name)), m_glfw_window(nullptr) {
... | 55,476 |
https://github.com/dangershony/MithrilShards/blob/master/src/Lightning/Network/Protocol/Messages/IWrappedNetworkMessage.cs | Github Open Source | Open Source | MIT | 2,021 | MithrilShards | dangershony | C# | Code | 22 | 80 | using Lyn.Protocol.Common.Messages;
using MithrilShards.Core.Network.Protocol;
namespace Network.Protocol.Messages
{
public interface IWrappedNetworkMessage : INetworkMessage
{
public void SetMessage(BoltMessage messageBase);
public BoltMessage GetMessage();
}
} | 5,368 |
https://github.com/hankduan/firefoxExtension/blob/master/addon-sdk-1.17/test/addons/unsafe-content-script/main.js | Github Open Source | Open Source | MIT | 2,021 | firefoxExtension | hankduan | JavaScript | Code | 197 | 581 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { create: makeFrame } = require("sdk/frame/utils");
const { window } = require("sdk/addon/wind... | 51,885 |
https://github.com/mushan0x0/postcss-px2units/blob/master/test/test.js | Github Open Source | Open Source | MIT | null | postcss-px2units | mushan0x0 | JavaScript | Code | 369 | 1,238 | var postcss = require('postcss')
var expect= require('chai').expect
var plugin = require('../')
function test (input, output, opts, done) {
postcss([plugin(opts)])
.process(input, {from: undefined})
.then((result) => {
expect(result.css).to.eql(output);
expect(result.warnings()).to.be.empty;
... | 32,975 |
https://github.com/bolt/core/blob/master/src/Widget/WidgetInterface.php | Github Open Source | Open Source | MIT | 2,023 | core | bolt | PHP | Code | 125 | 350 | <?php
declare(strict_types=1);
namespace Bolt\Widget;
use Bolt\Extension\ExtensionInterface;
/**
* Every widget must implement this interface.
*/
interface WidgetInterface
{
public function getName(): string;
/**
* @return string[] from Bolt\Widget\Injector\Target constants enum
*/
public f... | 51,481 |
https://github.com/techvraksh/caseX/blob/master/index.js | Github Open Source | Open Source | MIT | null | caseX | techvraksh | JavaScript | Code | 73 | 275 | module.exports = {
toUpperCase: (text) => {
return text.toUpperCase();
},
toLowerCase: (text) => {
return text.toLowerCase();
},
toPascalCase: (text) => {
return text
.replace(new RegExp(/[^\w\s]/, "g"), "")
.replace(
new RegExp(/\s+(.)(\w+)/, "g"),
($1, $2, $3) => `${$... | 5,459 |
https://github.com/eugeniu1994/Stereo-Camera-LiDAR-calibration/blob/master/camera_models/_utils.py | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, CC0-1.0 | 2,021 | Stereo-Camera-LiDAR-calibration | eugeniu1994 | Python | Code | 151 | 568 | from typing import List, Optional
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
def draw3d_arrow(
arrow_location: np.ndarray,
arrow_vector: np.ndarray,
head_length: float = 0.3,
alpha: float = 1.0,
color: Optional[str] = None,
name: Optional[str] =... | 8,407 |
https://github.com/gafiatulin/codewars/blob/master/src/7 kyu/SumRecursively.hs | Github Open Source | Open Source | MIT | 2,019 | codewars | gafiatulin | Haskell | Code | 27 | 76 | -- Get list sum recursively
-- https://www.codewars.com/kata/57a84137cf1fa5f9f80000d6
module SumRecursively where
sumR :: [Int] -> Int
sumR [] = 0
sumR (x: xs) = x + sumR xs
| 7,925 |
https://github.com/rylynn6318/SE4/blob/master/include/core/SharedData.hpp | Github Open Source | Open Source | MIT | null | SE4 | rylynn6318 | C++ | Code | 31 | 113 | #pragma once
#include "EngineConfig.h"
#include <any>
#include <map>
#include <string>
namespace se4 {
class SharedData {
public:
auto getSharedData(SharedDataID key)const->std::any;
auto setSharedData(SharedDataID key, std::any data)->void;
private:
std::map<SharedDataID, std::any> sharedData;
};
} | 53,905 |
https://github.com/JetBrains/intellij-community/blob/master/plugins/kotlin/j2k/new/tests/testData/newJ2k/rawGenerics/kt-540.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | intellij-community | JetBrains | Java | Code | 30 | 72 | //file
package demo;
import java.util.List;
import java.util.ArrayList;
class Test {
void main() {
List<String> common = new ArrayList<String>();
List raw = new ArrayList<String>();
List superRaw = new ArrayList();
}
} | 44,565 |
https://github.com/deivedwilliam/pacmanRU/blob/master/Player.c | Github Open Source | Open Source | MIT | 2,017 | pacmanRU | deivedwilliam | C | Code | 59 | 200 | #include "Player.h"
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include "Screen.h"
ptrPlayer newPlayer(TypeCharacter type, SDL_Rect rect,
SDL_Surface* color, int speed)
{
ptrPlayer player = NULL;
player = (ptrPlayer)malloc(sizeof(Player));
if(player == NULL)
return NULL;
player->speed = s... | 2,726 |
https://github.com/elmiko/oshinko-rest/blob/master/vendor/github.com/openshift/origin/test/extended/builds/proxy.go | Github Open Source | Open Source | Apache-2.0 | 2,016 | oshinko-rest | elmiko | Go | Code | 151 | 659 | package builds
import (
"fmt"
g "github.com/onsi/ginkgo"
o "github.com/onsi/gomega"
buildapi "github.com/openshift/origin/pkg/build/api"
exutil "github.com/openshift/origin/test/extended/util"
)
var _ = g.Describe("[builds][Slow] the s2i build should support proxies", func() {
defer g.GinkgoRecover()
var (
... | 46,848 |
https://github.com/AlexGenK/Consumers_cabinet_LTKE/blob/master/app/helpers/admin/filling_en_certificates_helper.rb | Github Open Source | Open Source | MIT | null | Consumers_cabinet_LTKE | AlexGenK | Ruby | Code | 5 | 21 | module Admin::FillingEnCertificatesHelper
include Admin::CsvHelper
end
| 21,238 |
https://github.com/pdelre/dotfiles/blob/master/npm-tools/install.sh | Github Open Source | Open Source | MIT | 2,023 | dotfiles | pdelre | Shell | Code | 49 | 117 | #!/bin/sh
#
# NPM Tools
if test ! $(which catj)
then
npm install -g catj
fi
if test ! $(which gnomon)
then
npm install -g gnomon
fi
if test ! $(which markdownlint)
then
npm install -g markdownlint-cli
fi
if test ! $(which watchman-processor)
then
npm install -g watchman-processor
fi
| 10,772 |
https://github.com/karroffel/Idris2-boot/blob/master/dist/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,020 | Idris2-boot | karroffel | Makefile | Code | 37 | 136 | include config.mk
CFLAGS += -Wno-unused-variable -Wno-unused-label
.PHONY: idris2 clean
all: idris2
idris2: idris2.c
$(MAKE) -C rts
$(CC) $(CFLAGS) idris2.c -o idris2 -I rts -L rts -lidris_rts $(GMP_LIB_DIR) -lgmp -lm
clean:
$(MAKE) -C rts clean
rm -f idris2
| 510 |
https://github.com/tangxiangbo/ZGLiveClient/blob/master/SFLiveLib/ServerApi/Models/SFNotificationModel.h | Github Open Source | Open Source | MIT | null | ZGLiveClient | tangxiangbo | C | Code | 108 | 314 | //
// SFNotificationModel.h
// StarFactory
//
// Created by Lee, Bo on 16/6/1.
// Copyright © 2016年 Joygo. All rights reserved.
//
#import <Mantle/Mantle.h>
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, NotificationType)
{
NTLive = 1,
NTCapital = 2,
NTFilm = 3,
NTText = 4,
};
@i... | 56,117 |
https://github.com/NoShotz/ElDorito/blob/master/libs/cppnetlib/include/boost/network/uri/directives/user_info.hpp | Github Open Source | Open Source | BSL-1.0 | 2,020 | ElDorito | NoShotz | C++ | Code | 91 | 331 | // Copyright (c) Glyn Matthews 2011, 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __BOOST_NETWORK_URI_DIRECTIVES_USER_INFO_INC__
#define __BOOST_NETWORK_URI_DIRECTIVES_USE... | 21,439 |
https://github.com/pyhoneybot/honeybot/blob/master/src/honeybot/plugins/downloaded/blackjack/poker_assets/deck.py | Github Open Source | Open Source | MIT | 2,023 | honeybot | pyhoneybot | Python | Code | 238 | 759 | """ deck class """
# pylint: disable=E1601, W0612
import random
import card
class Deck:
"""deck class"""
colors = ["C", "D", "H", "S"]
figures = ["2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K", "A"]
i = 0
for color in colors:
for figure in figures:
locals()["... | 4,262 |
https://github.com/tvdias/meotv/blob/master/src/smali/androidx/room/Index.smali | Github Open Source | Open Source | MIT | 2,020 | meotv | tvdias | Smali | Code | 71 | 225 | .class public interface abstract annotation Landroidx/room/Index;
.super Ljava/lang/Object;
.source "Index.java"
# interfaces
.implements Ljava/lang/annotation/Annotation;
# annotations
.annotation system Ldalvik/annotation/AnnotationDefault;
value = .subannotation Landroidx/room/Index;
name = ""
... | 31,285 |
https://github.com/chenshunlin/how-to-check-sign/blob/master/demo/app/src/main/java/top/gtf35/besttersigncheck/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | how-to-check-sign | chenshunlin | Java | Code | 286 | 1,347 | package top.gtf35.besttersigncheck;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.Application;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Signature;
import android.os.Build;
import android.os.... | 48,750 |
https://github.com/maxwelldb/postgres-operator/blob/master/operator/cluster/rmdata.go | Github Open Source | Open Source | Apache-2.0 | null | postgres-operator | maxwelldb | Go | Code | 313 | 1,076 | // Package cluster holds the cluster CRD logic and definitions
// A cluster is comprised of a primary service, replica service,
// primary deployment, and replica deployment
package cluster
/*
Copyright 2019 Crunchy Data Solutions, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use... | 10,348 |
https://github.com/getmetamapper/metamapper/blob/master/www/src/context/UserContext/context.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | metamapper | getmetamapper | JavaScript | Code | 32 | 78 | import React from "react"
const defaultState = {
refreshUser: () => true,
currentUser: null,
currentWorkspace: null,
myWorkspaces: [],
}
const { Provider, Consumer } = React.createContext(defaultState)
export { Provider, Consumer, defaultState }
| 14,453 |
https://github.com/MAATTECHNOLOGIE/meneyaEntreprise/blob/master/database/migrations/2021_04_15_113821_create_acces_offres_table.php | Github Open Source | Open Source | MIT | null | meneyaEntreprise | MAATTECHNOLOGIE | PHP | Code | 60 | 214 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAccesOffresTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('acces_offre... | 40,030 |
https://github.com/azzdinemj/edu-crmclub/blob/master/educrm-model/src/main/java/com/wuxue/model/SysMenuButton.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | edu-crmclub | azzdinemj | Java | Code | 199 | 547 | package com.wuxue.model;
public class SysMenuButton extends SysMenuButtonKey {
private String caption;
public String getCaptionEng() {
return captionEng;
}
public void setCaptionEng(String captionEng) {
this.captionEng = captionEng;
}
private String captionEng;
private S... | 32,660 |
https://github.com/cyclosproject/ng-openapi-gen/blob/master/templates/index.handlebars | Github Open Source | Open Source | MIT | 2,023 | ng-openapi-gen | cyclosproject | null | Spoken | 46 | 161 | export { {{configurationClass}} } from './{{{configurationFile}}}';
export { {{baseServiceClass}} } from './{{{baseServiceFile}}}';
export { {{requestBuilderClass}} } from './{{{requestBuilderFile}}}';
export { {{responseClass}} } from './{{{responseFile}}}';
export { {{moduleClass}} } from './{{{moduleFile}}}';
{{#mod... | 55,818 |
https://github.com/ezgikaysi/koding/blob/master/go/src/github.com/crowdmob/goamz/dynamodb/dynamo_query_builder_test.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | koding | ezgikaysi | Go | Code | 442 | 1,839 | package dynamodb
import (
"bytes"
"encoding/json"
"github.com/crowdmob/goamz/aws"
"github.com/crowdmob/goamz/dynamodb/dynamizer"
"reflect"
"testing"
)
func TestDynamoQuery(t *testing.T) {
region := aws.Region{DynamoDBEndpoint: "http://127.0.0.1:8000"}
auth := aws.Auth{AccessKey: "DUMMY_KEY", SecretKey: "DUMMY... | 10,587 |
https://github.com/johnsmithsss/starfallen/blob/master/src/proj.win32/MapBox.cpp | Github Open Source | Open Source | MIT | 2,021 | starfallen | johnsmithsss | C++ | Code | 374 | 1,816 | #include"MapBox.h"
#include"cocos2d\cocos\2d\CCTMXTiledMap.h"
bool MapBox::RandomMap(int n)
{
MapBlockNumber = n*n;
EdgeNumber = n;
MapBlockNumber = 0;
for(int i=0;i<n;i++)
for (int j = 0; j < n; j++)
{
MapBlockNumber++;
if (i == 0 && j == 0)
{
int rand=random(0, 1);
std::string Path = St... | 52,699 |
https://github.com/ligerbolt/libsacloud/blob/master/sacloud/database_status_test.go | Github Open Source | Open Source | Apache-2.0 | null | libsacloud | ligerbolt | Go | Code | 208 | 1,089 | package sacloud
import (
"encoding/json"
"testing"
"github.com/stretchr/testify/assert"
)
var databaseStatusJSON = `
{
"Status": "up",
"DBConf": {
"version": {
"lastmodified": "2017-06-28 14:02:34 +0900",
"commithash": "ea15c88152d0c37df9ffe9ffda45500024f1f1a0",
... | 14,132 |
https://github.com/phyllist/ULTRA/blob/master/ultra/ranking_model/MTLBiasTowerDNN.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | ULTRA | phyllist | Python | Code | 663 | 2,691 | from __future__ import print_function
from __future__ import absolute_import
import os
import sys
import tensorflow as tf
from ultra.ranking_model import BaseRankingModel
from ultra.ranking_model import ActivationFunctions
import ultra.utils
class MTLBiasTowerDNN(BaseRankingModel):
"""The deep neural network mode... | 25,170 |
https://github.com/davidhuser/dhis2-core/blob/master/dhis-2/dhis-support/dhis-support-hibernate/src/main/java/org/hisp/dhis/config/HibernateConfig.java | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dhis2-core | davidhuser | Java | Code | 485 | 1,432 | /*
* Copyright (c) 2004-2021, University of Oslo
* 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 retain the above copyright notice, this
* list of cond... | 56,548 |
https://github.com/tungstenfabric/tf-controller/blob/master/src/vnsw/agent/pkt/test/test_pkt.cc | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | tf-controller | tungstenfabric | C++ | Code | 733 | 3,907 | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include "base/os.h"
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <io/event_manager.h>
#include <base/task.h>
#include <cmn/agent_cmn.h>
#include <cmn/stats_types.h>
#include "oper/operdb_init.h"
#include "co... | 37,790 |
https://github.com/chendouble/midpoint/blob/master/model/report-impl/src/main/java/com/evolveum/midpoint/report/impl/ReportNodeUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | midpoint | chendouble | Java | Code | 569 | 1,667 | /*
* Copyright (c) 2010-2018 Evolveum
*
* 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 agre... | 6,185 |
https://github.com/wanderingThroughSpaceAndTime/HaxBall/blob/master/src/src/variables.cpp | Github Open Source | Open Source | MIT | null | HaxBall | wanderingThroughSpaceAndTime | C++ | Code | 96 | 307 | #include "variables.h"
#include <string>
#include "mysignal.h"
#include "gamelobby.h"
gamelobby *main_object;
bool host ;
int mincounter;
int maxgoal;
bool mess;
bool disco =false;
vector<QString> vecmessages;
string my_message;
bool name_set=false;
int myportnum;
bool Aipresent;
int Ai_team;
bool singleplayer = false... | 52,199 |
https://github.com/carlosdaniiel07/nest-clean-architecture/blob/master/src/application/usecases/customer/find-customers.usecase.ts | Github Open Source | Open Source | MIT | null | nest-clean-architecture | carlosdaniiel07 | TypeScript | Code | 47 | 146 | import { Inject } from '@nestjs/common';
import { Customer } from '~/domain/entities';
import { ICustomerRepository } from '~/domain/repositories';
import { IFindCustomersUsecase } from '~/domain/usecases';
export class FindCustomersUsecase implements IFindCustomersUsecase {
constructor(
@Inject(ICustomerReposit... | 9,852 |
https://github.com/OrangeKicker1/cfxnes/blob/master/app/src/client/components/toolbar/Toolbar.jsx | Github Open Source | Open Source | MIT | 2,022 | cfxnes | OrangeKicker1 | null | Spoken | 66 | 227 | import React from 'react';
import PropTypes from 'prop-types';
import {Theme} from '../../enums';
import {ButtonGroup} from '../common';
import ToolButton from './ToolButton';
import connect from './connect';
import './Toolbar.css';
const Toolbar = ({theme, onThemeSwitch, children}) => (
<div className="toolbar">
... | 38,442 |
https://github.com/zeerorg/faas/blob/master/gateway/requests/requests.go | Github Open Source | Open Source | MIT | 2,021 | faas | zeerorg | Go | Code | 413 | 888 | // Copyright (c) Alex Ellis 2017. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Package requests package provides a client SDK or library for
// the OpenFaaS gateway REST API
package requests
// CreateFunctionRequest create a function in ... | 38,698 |
https://github.com/quanblackhat/swmportal/blob/master/src/main/java/com/lctech/swm/domain/Uses.java | Github Open Source | Open Source | Apache-2.0 | null | swmportal | quanblackhat | Java | Code | 265 | 821 | package com.lctech.swm.domain;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
/**
* The persistent class for the uses database table.
*
*/
@Entity
public class Uses implements Serializable {
private static final long serialVersi... | 20,720 |
https://github.com/kunpengcompute/devkit-vscode-plugin/blob/master/workspace/projects/sys/src-com/app/tuninghelper/tuninghelper-analysis/tuninghelper-task-detail/process-perf/domain/resp-process-list.type.ts | Github Open Source | Open Source | Apache-2.0 | null | devkit-vscode-plugin | kunpengcompute | TypeScript | Code | 36 | 105 | export type RespProcessInfo = {
pid: string;
cpu: string;
iowait: string;
sys: string;
user: string;
};
export type RespProcessList = {
optimization: {
data: {
sys: Array<RespProcessInfo>;
app: Array<RespProcessInfo>;
};
info: string;
status: number;
};
};
| 188 |
https://github.com/bregananta/binary-static/blob/master/src/javascript/binary/pages/trade/purchase.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | binary-static | bregananta | JavaScript | Code | 139 | 562 | /*
* Purchase object that handles all the functions related to
* contract purchase response
*/
var Purchase = (function () {
'use strict';
var display = function (details) {
var receipt = details['buy'],
container = document.getElementById('contract_confirmation_container'),
... | 44,856 |
https://github.com/kripa432/Panoply/blob/master/case-studies/tor/src/TorEnclave/or/circuitbuild.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | Panoply | kripa432 | C++ | Code | 8,340 | 26,843 | /* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2013, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file circuitbuild.c
* \brief The actual details of building circuits... | 42,870 |
https://github.com/msiplab/SaivDr/blob/master/examples/icassp2019/+support/SurfaceExtractionSystem.m | Github Open Source | Open Source | BSD-2-Clause | 2,023 | SaivDr | msiplab | MATLAB | Code | 103 | 366 | classdef SurfaceExtractionSystem < ...
saivdr.degradation.linearprocess.AbstLinearSystem %#codegen
%SURFACEEXTRACTIONSYSTEM Surface extraction process
%
% Requirements: MATLAB R2015b
%
% Copyright (c) 2018, Shogo MURAMATSU
%
% All rights reserved.
%
% Contact address: Shog... | 5,704 |
https://github.com/isabella232/yt-support/blob/master/lib/yt/support/version.rb | Github Open Source | Open Source | MIT | 2,018 | yt-support | isabella232 | Ruby | Code | 27 | 69 | module Yt
# Provides common functionality to all Yt gems.
module Support
# @return [String] the SemVer-compatible gem version.
# @see http://semver.org
VERSION = '0.1.4'
end
end
| 16,927 |
https://github.com/Whitebimmer/pascalnide/blob/master/libCompiler/src/main/java/com/js/interpreter/runtime_value/operators/pointer/AddressEval.java | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,017 | pascalnide | Whitebimmer | Java | Code | 209 | 657 | /*
* Copyright (c) 2017 Tran Le Duy
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 55,240 |
https://github.com/vmeta42/neodata/blob/master/indc-front/src/components/Canvas/htmlNode.ts | Github Open Source | Open Source | Apache-2.0 | null | neodata | vmeta42 | TypeScript | Code | 136 | 437 | import { HtmlNodeModel, HtmlNode } from '@logicflow/core'
class ZHModel extends HtmlNodeModel {
setAttributes() {
this.text.editable = false // 禁止节点文本编辑
// 设置节点宽高和锚点
const width = 36
const height = 36
this.width = width
this.height = height
this.anchorsOffset = [
[width / 2, 0],
... | 29,275 |
https://github.com/Piotrekol/osu/blob/master/osu.Game.Tests/Visual/Navigation/TestEFToRealmMigration.cs | Github Open Source | Open Source | MIT | 2,022 | osu | Piotrekol | C# | Code | 221 | 729 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Linq;
using System.Runtime.InteropServices;
using NUnit.Framework;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Game.Bea... | 26,437 |
https://github.com/Rohit484/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/sesv2Mod/EmailTemplateContent.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Rohit484 | Scala | Code | 179 | 621 | package typings.awsSdk.sesv2Mod
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait EmailTemplateContent extends js.Object {
/**
* The HTML body of the email.
*/
var Html: js.UndefOr[EmailTe... | 35,188 |
https://github.com/CenterForOpenScience/ember-share/blob/master/app/components/section-related-agents/template.hbs | Github Open Source | Open Source | Apache-2.0 | 2,022 | ember-share | CenterForOpenScience | null | Spoken | 7 | 34 | {{#inline-list items=data as |agent|}}
{{link-to-agent agent=agent}}
{{/inline-list}}
| 14,497 |
https://github.com/fabbricaTOP/example_vivox_windows_integration/blob/master/ModulateVivoxWrapper/ModulateVivoxWrapper.h | Github Open Source | Open Source | MIT | 2,020 | example_vivox_windows_integration | fabbricaTOP | C++ | Code | 212 | 1,123 | #pragma once
#define _CRT_SECURE_NO_DEPRECATE
#define WINVER 0x0601
#define _WIN32_WINNT 0x0601
#include <string>
#include <msclr\marshal_cppstd.h>
#include "../ModulateVivoxLibrary/ModulateVivoxLibrary.h"
using namespace System;
namespace ModulateVivoxWrapper {
std::string undo_windows_system_string(String^ wind... | 19,822 |
https://github.com/MaciejMilanski/GGA/blob/master/ProblemSzpitali/ProblemSzpitali/Program.cs | Github Open Source | Open Source | MIT | null | GGA | MaciejMilanski | C# | Code | 259 | 927 | using System;
using System.Collections.Generic;
using System.Linq;
using MoreLinq;
namespace ProblemSzpitali
{
class Program
{
static void Main(string[] args)
{
var points = DataReader.GetPoints();
List<Point> result = new List<Point>();
//for (int i = 0; i... | 13,524 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.