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/kITerE/managarm/blob/master/posix/subsystem/src/pts.hpp
Github Open Source
Open Source
MIT
2,022
managarm
kITerE
C++
Code
15
58
#pragma once #include "device.hpp" namespace pts { std::shared_ptr<UnixDevice> createMasterDevice(); std::shared_ptr<FsLink> getFsRoot(); } // namespace pts
45,065
https://github.com/nielsenlu2/xssnake-3/blob/master/server/game/server_items.js
Github Open Source
Open Source
MIT
2,021
xssnake-3
nielsenlu2
JavaScript
Code
40
125
'use strict'; /*** * @param {xss.level.Level} level * @param {xss.room.ServerPlayerRegistry} players * @constructor */ xss.game.ServerItems = function(level, players) { this.level = level; this.players = players; }; xss.game.ServerItems.prototype = { destruct: function() { this.level = null; ...
44,256
https://github.com/b-cube/bcube-triplestore/blob/master/ttl/56/567420e081569e3b7b8c291ded15028079938b7f_triples.ttl
Github Open Source
Open Source
MIT
null
bcube-triplestore
b-cube
Turtle
Code
293
1,811
@prefix bcube: <http://purl.org/BCube/#> . @prefix bibo: <http://purl.org/ontology/bibo/#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix dcat: <http://www.w3.org/TR/vocab-dcat/#> . @prefix dcterms: <http://purl.org/dc/terms/> . @prefix esip: <http://purl.org/esip/#> . @prefix foaf: <http://xmlns.com/foaf/0...
26,303
https://github.com/flamecloud/ArmadilloJava/blob/master/src/test/data/expected/Arma.histc(Mat(hilbert(5,2)),Row({-10,-5,0.5,10}),1).mat
Github Open Source
Open Source
MIT
2,015
ArmadilloJava
flamecloud
Unity3D Asset
Code
20
26
0 0 2 0 0 1 1 0 0 2 0 0 0 2 0 0 0 2 0 0
37,480
https://github.com/ckrack/ispindel-public-server/blob/master/src/Modules/Formula/SpecificGravity.php
Github Open Source
Open Source
BSD-3-Clause
2,020
ispindel-public-server
ckrack
PHP
Code
176
395
<?php /* * This file is part of the hydrometer public server project. * * @author Clemens Krack <info@clemenskrack.com> */ namespace App\Modules\Formula; /** * Formulas for specific gravity. */ class SpecificGravity { /** * the value in specific gravity. */ protected $value; /** * Y...
964
https://github.com/zhanglong11/cim6d-construction-thee-web/blob/master/src/views/patrol/patrolClock/index.vue
Github Open Source
Open Source
MIT
null
cim6d-construction-thee-web
zhanglong11
Vue
Code
142
737
<template> <div class="container"> <!-- 工具栏 start --> <div class="tooltips"> <el-form ref="form" :model="filterForm" inline> <el-form-item prop="keyword"> <el-input v-model="filterForm.keyword" placeholder="打卡地点/打卡人" /> </el-form-item> <el-form-item label="打卡时间"> ...
16,144
https://github.com/zxgbuynow/ondate/blob/master/application/shop/data_table/ShopValueTable.php
Github Open Source
Open Source
Apache-2.0
2,020
ondate
zxgbuynow
PHP
Code
178
579
<?php /** * ShopValue数据模型 */ class ShopValueTable { // 数据表模型配置 public $config = [ 'name' => 'shop_value', 'title' => '分类扩展属性数据表', 'search_key' => '', 'add_button' => 1, 'del_button' => 1, 'search_button' => 1, 'check_all' => 1, 'list_row' => 20, 'addon' =>...
15,048
https://github.com/dpolivaev/Agora/blob/master/softwerkskammer/lib/persistence/persistence.js
Github Open Source
Open Source
MIT
null
Agora
dpolivaev
JavaScript
Code
659
1,902
'use strict'; var conf = require('simple-configure'); var async = require('async'); var ourDB; var loggers = require('winston').loggers; var logger = loggers.get('transactions'); var scriptLogger = loggers.get('scripts'); var CONFLICTING_VERSIONS = conf.get('beans').get('constants').CONFLICTING_VERSIONS; var DBSTATE =...
6,896
https://github.com/GameDevEducation/DevToolkit_PlayerPresenceShader/blob/master/Assets/Systems/Player Presence/Shaders/PresenceOutput.shader
Github Open Source
Open Source
MIT
null
DevToolkit_PlayerPresenceShader
GameDevEducation
GLSL
Code
181
576
Shader "Presence/Output" { Properties { _PresenceInputTexture ("Presence Input", 2D) = "black" {} _PresenceBuildRate ("Build Rate", Range(0, 5)) = 0.1 _PresenceDecayRate ("Decay Rate", Range(0, 5)) = 0.1 } SubShader { Tags { "RenderType"="Opaque" } LOD 100 ...
3,350
https://github.com/xukmin/react-exploration/blob/master/react-quickly/Menu/js/script.js
Github Open Source
Open Source
Apache-2.0
null
react-exploration
xukmin
JavaScript
Code
10
42
let dataUrl = './menus.json'; ReactDOM.render(React.createElement(Menu, { 'data-url': dataUrl }), document.getElementById('content'));
7,406
https://github.com/Cyberheavenskeet/gfycat-android-sdk/blob/master/gfycat-core/src/main/java/com/gfycat/core/contentmanagement/UserOwnedContentManagerImpl.java
Github Open Source
Open Source
Apache-2.0
2,019
gfycat-android-sdk
Cyberheavenskeet
Java
Code
496
1,942
/* * Copyright (c) 2015-present, Gfycat, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
15,122
https://github.com/marcinswiniarski20/hls4ml/blob/master/hls4ml/utils/example_models.py
Github Open Source
Open Source
Apache-2.0
2,020
hls4ml
marcinswiniarski20
Python
Code
227
747
from urllib.request import urlretrieve from .config import create_config import pprint import json def fetch_example_model(model_name): """ Download an example model from github repo to working directory, and return the corresponding configuration: https://github.com/hls-fpga-machine-learning/example-mode...
10,402
https://github.com/fxmorin/Client_AATool/blob/master/src/main/java/ca/fxco/client_aatool/mixin/ClientAdvancementManager_saveMixin.java
Github Open Source
Open Source
MIT
2,022
Client_AATool
fxmorin
Java
Code
259
1,130
package ca.fxco.client_aatool.mixin; import ca.fxco.client_aatool.ClientAATool; import com.google.common.base.Charsets; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonElement; import net.minecraft.SharedConstants; import net.minecraft....
12,340
https://github.com/zhmu/ananas/blob/master/external/gcc-12.1.0/gcc/testsuite/gfortran.dg/dec_union_6.f90
Github Open Source
Open Source
LGPL-2.1-only, FSFAP, LGPL-3.0-only, GPL-3.0-only, GPL-2.0-only, GCC-exception-3.1, LGPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain
2,022
ananas
zhmu
Fortran Free Form
Code
201
400
! { dg-do run } ! { dg-options "-fdec-structure" } ! ! sub0 and sub1 test a regression where calling gfc_use_derived from ! gfc_find_component on the structure type symbol being parsed caused the ! symbol to be freed and swapped for the previously seen type symbol, leaving ! dangling pointers and causing all sorts of m...
16,989
https://github.com/st-js/st-js/blob/master/generator/src/test/java/org/stjs/generator/writer/inlineFunctions/InlineFunctions6.java
Github Open Source
Open Source
Apache-2.0
2,021
st-js
st-js
Java
Code
17
54
package org.stjs.generator.writer.inlineFunctions; public class InlineFunctions6 implements FunctionInterface { @Override public void $invoke(int arg) { // } }
35,852
https://github.com/small-stone-group/sle-admin/blob/master/import2.cfm
Github Open Source
Open Source
MIT
null
sle-admin
small-stone-group
ColdFusion
Code
385
2,605
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Import Data</title> <link rel="stylesheet" type="text/css" href="cs...
45,175
https://github.com/alaigov/eao-public/blob/master/functional-tests/src/test/groovy/pages/app/ContactPage.groovy
Github Open Source
Open Source
Apache-2.0
2,018
eao-public
alaigov
Groovy
Code
39
101
package pages.app import geb.Page import modules.CommonLinkModule class ContactPage extends Page { static url = "/contact" static at = { pageTitle.text().equals("Connect with us...") } static content = { pageTitle { $("app-contact div.hero-banner h1") } commonLink { module(CommonLinkModule) } } }
35,525
https://github.com/mrimsh/KPFU-Kinect-Labs/blob/master/Assets/Models/L1.meta
Github Open Source
Open Source
Apache-2.0
2,014
KPFU-Kinect-Labs
mrimsh
Unity3D Asset
Code
8
43
fileFormatVersion: 2 guid: fd236eeae1dc52642a055729a84cb9c7 folderAsset: yes DefaultImporter: userData:
13,269
https://github.com/ghas-results/ALIA/blob/master/robot/common/Grounding/jhcSoundFcn.cpp
Github Open Source
Open Source
Apache-2.0
2,020
ALIA
ghas-results
C++
Code
564
1,306
// jhcSoundFcn.cpp : sound effect output for ALIA system // // Written by Jonathan H. Connell, jconnell@alum.mit.edu // /////////////////////////////////////////////////////////////////////////// // // Copyright 2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not us...
46,012
https://github.com/atlas-trips/atlas/blob/master/server/db/models/activity.js
Github Open Source
Open Source
MIT
null
atlas
atlas-trips
JavaScript
Code
64
212
const Sequelize = require('sequelize'); const db = require('../db'); const Activity = db.define('activity', { location: { type: Sequelize.STRING, allowNull: false }, name: { type: Sequelize.STRING, allowNull: false }, description: { type: Sequelize.TEXT }, date: { type: Sequelize....
27,936
https://github.com/maoxiezhao/Vulkan-Test/blob/master/modules/core/platform/fiber.h
Github Open Source
Open Source
MIT
2,022
Vulkan-Test
maoxiezhao
C
Code
76
207
#pragma once #include "core\common.h" // Fiber is only available in win32 namespace VulkanTest { namespace Fiber { #ifdef CJING3D_PLATFORM_WIN32 using Handle = void*; constexpr Handle INVALID_HANDLE = nullptr; using JobFunc = void(__stdcall *)(void*); #else using Handle = U32; constexpr Handle IN...
42,450
https://github.com/eengineergz/Lambda-Resource-Static-Assets/blob/master/4-assets/loadashes6/lodash/fp/complement.js
Github Open Source
Open Source
MIT
2,021
Lambda-Resource-Static-Assets
eengineergz
JavaScript
Code
1
11
module.exports=require("./negate");
36,521
https://github.com/isabella232/wireless-media-drive/blob/master/nimbus_source/005_avahi/004_avahi-0.6.31/avahi-core/probe-sched.c
Github Open Source
Open Source
Apache-2.0
2,021
wireless-media-drive
isabella232
C
Code
986
3,733
/*** This file is part of avahi. avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. avahi is distributed in the hop...
30,726
https://github.com/darkwoolf10/symfony_blog/blob/master/src/WoolfBundle/Entity/Likes.php
Github Open Source
Open Source
MIT
2,018
symfony_blog
darkwoolf10
PHP
Code
98
375
<?php namespace WoolfBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity() * @ORM\Table(name="likes") */ class Likes { /** * @var int * * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(...
6,559
https://github.com/tombongantuk/heroku/blob/master/resources/views/article/edit.blade.php
Github Open Source
Open Source
MIT
null
heroku
tombongantuk
PHP
Code
69
391
@extends('layouts.master') @section('content') <h3>Edit Article</h3> <form action={{route('articel.update',$article->id)}} method="put" class="form-horizontal" role="form"> {{csrf_field()}} <div class="form-group"> <label for="title" class="col-lg 3 control-label">Ttile</lab...
31,517
https://github.com/containers/podman/blob/master/cmd/podman/images/unmount.go
Github Open Source
Open Source
Apache-2.0
2,023
podman
containers
Go
Code
246
770
package images import ( "errors" "fmt" "github.com/containers/podman/v4/cmd/podman/common" "github.com/containers/podman/v4/cmd/podman/registry" "github.com/containers/podman/v4/cmd/podman/utils" "github.com/containers/podman/v4/pkg/domain/entities" "github.com/spf13/cobra" "github.com/spf13/pflag" ) var ( ...
37,456
https://github.com/oreyes1991/metaflux/blob/master/lib/metaviews/index.js
Github Open Source
Open Source
MIT
2,021
metaflux
oreyes1991
JavaScript
Code
25
69
const { MetaComponent } = require('./meta-component'); const { MetaContainer } = require('./meta-container'); const { MetaShadowComponent } = require('./meta-shadow-component'); module.exports = { MetaComponent, MetaContainer, MetaShadowComponent };
43,339
https://github.com/CleberPeter/core/blob/master/daemon/tests/test_config_services.py
Github Open Source
Open Source
BSD-2-Clause
2,022
core
CleberPeter
Python
Code
591
2,547
from unittest import mock import pytest from core.config import Configuration from core.configservice.base import ( ConfigService, ConfigServiceBootError, ConfigServiceMode, ) from core.emulator.enumerations import ConfigDataTypes from core.errors import CoreCommandError, CoreError TEMPLATE_TEXT = "echo ...
4,649
https://github.com/ivanHomeless/design-patterns/blob/master/app/Http/Controllers/CreationalPattensController.php
Github Open Source
Open Source
MIT
null
design-patterns
ivanHomeless
PHP
Code
418
2,130
<?php namespace App\Http\Controllers; use App\DesignPatterns\Behavioral\Strategy\SalaryManager; use App\DesignPatterns\Creational\AbastractFactory\GuiKitFactory; use App\DesignPatterns\Creational\Builder\BlogPostBuilder; use App\DesignPatterns\Creational\Builder\BlogPostManager; use App\DesignPatterns\Creational\Fa...
9,809
https://github.com/agavrilov76/javalin/blob/master/javalin/src/main/java/io/javalin/plugin/openapi/OpenApiHandler.kt
Github Open Source
Open Source
Apache-2.0
2,019
javalin
agavrilov76
Kotlin
Code
116
503
package io.javalin.plugin.openapi import io.javalin.Javalin import io.javalin.core.PathParser import io.javalin.core.event.HandlerMetaInfo import io.javalin.core.util.Header import io.javalin.http.Context import io.javalin.http.Handler import io.javalin.plugin.openapi.annotations.ContentType import io.javalin.plugin.o...
39,705
https://github.com/algo-data-platform/PredictorService/blob/master/thirdparty/proxygen/proxygen/lib/utils/test/ZlibTests.cpp
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0
2,021
PredictorService
algo-data-platform
C++
Code
369
1,671
/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
25,855
https://github.com/georgediepiriye/BlogNet/blob/master/database/seeders/PostSeeder.php
Github Open Source
Open Source
MIT
2,021
BlogNet
georgediepiriye
PHP
Code
106
251
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class PostSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('posts')->insert([ [ ...
42,638
https://github.com/ruffkat/ci-maven-plugin/blob/master/src/main/java/tools/bestquality/maven/util/PatternConverter.java
Github Open Source
Open Source
Apache-2.0
null
ci-maven-plugin
ruffkat
Java
Code
31
125
package tools.bestquality.maven.util; import org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter; import java.util.regex.Pattern; public class PatternConverter extends AbstractBasicConverter { @Override public boolean canConvert(Class<?> type) { return Pattern....
17,085
https://github.com/taosut/ContactBookCQRS/blob/master/ContactBookCQRS.Application/AutoMapper/DomainToViewModelProfile.cs
Github Open Source
Open Source
MIT
2,020
ContactBookCQRS
taosut
C#
Code
31
119
using System; using System.Collections.Generic; using System.Text; using AutoMapper; using ContactBookCQRS.Application.ViewModels; using ContactBookCQRS.Domain.Aggregates; namespace ContactBookCQRS.Application.AutoMapper { public class DomainToViewModelProfile : Profile { public DomainToViewModelProfi...
14,313
https://github.com/serlo/frontend/blob/master/src/serlo-editor/plugins/spoiler/renderer.tsx
Github Open Source
Open Source
Apache-2.0
2,023
frontend
serlo
TSX
Code
116
373
import clsx from 'clsx' import { useState } from 'react' import { tw } from '@/helper/tw' export interface SpoilerRendererProps { title: JSX.Element content: JSX.Element openOverwrite?: boolean } export function SpoilerRenderer({ title, content, openOverwrite, }: SpoilerRendererProps) { const [open, se...
15,479
https://github.com/fleur-js/fleur/blob/master/packages/testing/src/index.spec.tsx
Github Open Source
Open Source
MIT
2,022
fleur
fleur-js
TSX
Code
464
1,294
import * as React from 'react' import Fleur, { action, operation, reducerStore, selector } from '@fleur/fleur' import { useStore, useFleurContext } from '@fleur/react' import { mockFleurContext } from './mockFleurContext' import { useCallback, useEffect } from 'react' import { fireEvent, render } from '@testing-library...
9,871
https://github.com/vince-refiti/Dolphin/blob/master/Core/Object Arts/Dolphin/System/Win32/HttpServer/WinHttpServer.HTTP_LOG_FIELDS_DATA.cls
Github Open Source
Open Source
MIT
2,023
Dolphin
vince-refiti
Apex
Code
1,972
6,885
"Filed out from Dolphin Smalltalk"! WinHttpServer.HttpServerStructure subclass: #'WinHttpServer.HTTP_LOG_FIELDS_DATA' instanceVariableNames: '' classVariableNames: '' imports: #() classInstanceVariableNames: '' classConstants: { '_HTTP_LOG_FIELDS_DATA_Size' -> 16r5C. '_OffsetOf_ClientIp' -> 16r24. '_Of...
11,287
https://github.com/miguelgds/hangman/blob/master/src/main/java/hangman/StreamGameNotifications.java
Github Open Source
Open Source
MIT
2,020
hangman
miguelgds
Java
Code
102
339
package hangman; import java.io.Closeable; import java.io.OutputStream; import java.io.PrintStream; import java.util.Objects; public final class StreamGameNotifications implements GameNotifications, Closeable { private final PrintStream output; public StreamGameNotifications(OutputStream output){ th...
31,221
https://github.com/flytesoft-software/capacitor-persistent-notification/blob/master/android/src/main/java/com/flytesoft/persistent/notification/PersistentNotification.java
Github Open Source
Open Source
MIT
2,022
capacitor-persistent-notification
flytesoft-software
Java
Code
921
3,175
package com.flytesoft.persistent.notification; import android.app.Activity; import android.app.AlarmManager; import android.app.Application; import android.app.PendingIntent; import android.content.ComponentCallbacks; import android.content.ComponentName; import android.content.Context; import android.content.Intent; ...
25,517
https://github.com/racerxdl/twitchled/blob/master/wimatrix/topics.go
Github Open Source
Open Source
Apache-2.0
2,020
twitchled
racerxdl
Go
Code
71
335
package wimatrix // MQTT Topics const ( MQTTWimatrixMsg = "_msg" MQTTWiMatrixSetBrightness = "_brightness" MQTTWiMatrixSetBGBrightness = "_bgbrightness" MQTTWiMatrixSetBGColor = "_bgcolor" MQTTWiMatrixSetTextColor = "_textcolor" MQTTWiMatrixSetMode = "_mode" MQTTWiMatrixSetSpeed ...
3,189
https://github.com/FEX-Emu/FEX/blob/master/unittests/ASM/Primary/Pause.asm
Github Open Source
Open Source
MIT
2,023
FEX
FEX-Emu
Assembly
Code
31
57
%ifdef CONFIG { } %endif ; Set rcx to an absurd number just incase something terrible occurs since pause = `rep nop` mov rcx, -1 ; Just ensure execution. pause hlt
27,223
https://github.com/hamasang/Choice_MoonGoon/blob/master/app/src/main/java/com/gms/moongoon/choice_moongoon/FirstUserInfo.java
Github Open Source
Open Source
MIT, Unlicense
null
Choice_MoonGoon
hamasang
Java
Code
345
1,530
package com.gms.moongoon.choice_moongoon; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.PersistableBundle; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widg...
14,266
https://github.com/mankeyl/elasticsearch/blob/master/docs/reference/ml/anomaly-detection/apis/update-datafeed.asciidoc
Github Open Source
Open Source
Apache-2.0
null
elasticsearch
mankeyl
AsciiDoc
Code
419
1,797
[role="xpack"] [[ml-update-datafeed]] = Update {dfeeds} API [subs="attributes"] ++++ <titleabbrev>Update {dfeeds}</titleabbrev> ++++ Updates certain properties of a {dfeed}. [[ml-update-datafeed-request]] == {api-request-title} `POST _ml/datafeeds/<feed_id>/_update` [[ml-update-datafeed-prereqs]] == {api-prereq-...
17,278
https://github.com/timfel/netbeans/blob/master/ide/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java
Github Open Source
Open Source
Apache-2.0
2,022
netbeans
timfel
Java
Code
1,179
3,663
/* * 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 licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
38,265
https://github.com/JFAquinoPando/place-my-order/blob/master/node_modules/done-serve/lib/proto/response.js
Github Open Source
Open Source
0BSD
2,021
place-my-order
JFAquinoPando
JavaScript
Code
246
780
const cookie = require("cookie"); const mime = require("send").mime; const sign = require('cookie-signature').sign; const charsetRegExp = /;\s*charset\s*=/; function header(field, val) { if(arguments.length === 2) { var value = Array.isArray(val) ? val.map(String) : String(val); // add charset to content-t...
12,992
https://github.com/fmagin/networkx-stubs/blob/master/networkx-stubs/algorithms/approximation/vertex_cover.pyi
Github Open Source
Open Source
BSD-3-Clause
2,023
networkx-stubs
fmagin
Python
Code
13
32
from _typeshed import Incomplete def min_weighted_vertex_cover(G, weight: Incomplete | None = None): ...
1,150
https://github.com/pacobabs/reduce-devtools-extension/blob/master/examples/vanilla-counter/src/index.js
Github Open Source
Open Source
MIT
2,020
reduce-devtools-extension
pacobabs
JavaScript
Code
121
359
import { wrapWithDevtools, initDevtools, } from "reduce-devtools-extension"; // store let store = { count: 0, }; const dispatch = (action) => document.dispatchEvent(new CustomEvent("action", { detail: action })); initDevtools(store, dispatch); const reducer = wrapWithDevtools((state, action) => { switch ...
29,891
https://github.com/longshilin/GeekServer/blob/master/GeekServer.App/Demo/Bag/DemoBagComp.cs
Github Open Source
Open Source
MIT
2,021
GeekServer
longshilin
C#
Code
35
129
using MongoDB.Bson.Serialization.Attributes; using MongoDB.Bson.Serialization.Options; namespace Geek.Server.Demo { public class DemoBagState : DBState { [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfDocuments)] public StateMap<int, long> ItemMap { get; set; } = new StateMap<int, long...
48,072
https://github.com/IsidroGH/Sondasplorer/blob/master/Sondasplorer/src/sondas/inspector/probes/delta/ServletCpuProbeFactory.java
Github Open Source
Open Source
MIT
2,014
Sondasplorer
IsidroGH
Java
Code
66
232
package sondas.inspector.probes.delta; import java.io.DataInputStream; import java.io.IOException; import sondas.dispatcher.inspector.IDeltaNodeFactory; import sondas.inspector.ITrace; import sondas.inspector.StringsCache; import sondas.inspector.delta.IGlobalStats; public class ServletCpuProbeFactory implements IDe...
29,945
https://github.com/metux/chromium-suckless/blob/master/ui/message_center/notification_delegate_views.cc
Github Open Source
Open Source
BSD-3-Clause
2,017
chromium-suckless
metux
C++
Code
47
123
// Copyright 2016 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 "ui/message_center/notification_delegate.h" #include "ui/views/view.h" namespace message_center { std::unique_ptr<views::View> NotificationDel...
14,889
https://github.com/signhuwei/node-jvt/blob/master/includes/win/ia32/API/GESS/PeerSDK_PeerLog.h
Github Open Source
Open Source
Apache-2.0
2,019
node-jvt
signhuwei
C
Code
138
369
#pragma once #ifndef PEERSDK_PROTECT #pragma message("please include PeerSDK.h instead of me") #endif /** * @brief Represents a system log. */ class PEERSDK_API PeerLog { PEERSDK_DECLARE_IMPL() public: /** @name Constructors */ //@{ /** * @private */ PeerLog(); /** * @privat...
41,408
https://github.com/mikomokaru-jpn/Win_Cs_WordSeacher/blob/master/WordSeacher/SearchSettings.cs
Github Open Source
Open Source
MIT
null
Win_Cs_WordSeacher
mikomokaru-jpn
C#
Code
476
1,437
using System; using System.Collections.Generic; using System.Linq; using System.Diagnostics; namespace WordSeacher { public enum Target { Text = 1, Excel = 2, Word = 3 }; public enum SearchOption { AND = 1, OR = 2, AsiS = 3 }; public enum CharCode { UTF8 = 1, SJIS = 2 }; class SearchSettings { ...
49,106
https://github.com/mariogeiger/pytorch_sparse/blob/master/torch_sparse/saint.py
Github Open Source
Open Source
MIT
2,022
pytorch_sparse
mariogeiger
Python
Code
61
231
from typing import Tuple import torch from torch_sparse.tensor import SparseTensor def saint_subgraph(src: SparseTensor, node_idx: torch.Tensor ) -> Tuple[SparseTensor, torch.Tensor]: row, col, value = src.coo() rowptr = src.storage.rowptr() data = torch.ops.torch_sparse.saint_subgrap...
30,079
https://github.com/quadstudio/service-site/blob/master/src/Site/Filters/Mounter/MounterSortFilter.php
Github Open Source
Open Source
MIT
null
service-site
quadstudio
PHP
Code
28
101
<?php namespace QuadStudio\Service\Site\Filters\Mounter; use QuadStudio\Repo\Filters\OrderByFilter; class MounterSortFilter extends OrderByFilter { /** * @return array */ public function defaults(): array { return [ 'mounters.created_at' => 'DESC' ]; } }
1,047
https://github.com/ColbyCommunications/gatsby-starter-docz-netlifycms/blob/master/src/gatsby-theme-docz/tailwind.config.js
Github Open Source
Open Source
MIT
null
gatsby-starter-docz-netlifycms
ColbyCommunications
JavaScript
Code
72
291
module.exports = { future: { // removeDeprecatedGapUtilities: true, // purgeLayersByDefault: true, }, purge: ["./src/**/*.js"], theme: { fontFamily: { sans: ["libre-franklin", "sans-serif"], }, fontSize: { header: "2.5rem", xs: ".75rem", sm: ".875rem", base: "1r...
21,567
https://github.com/dwiyatci/generator-c8y/blob/master/generators/plugin/templates/widget/main.html.ejs
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,019
generator-c8y
dwiyatci
EJS
Code
6
26
<<%= widgetHtmlTagName %> config="child.config"></<%= widgetHtmlTagName %>>
28,745
https://github.com/p-lindberg/unity-node-editor/blob/master/Test Case/TestObjectDerived1.cs
Github Open Source
Open Source
MIT
2,021
unity-node-editor
p-lindberg
C#
Code
20
58
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "Scriptable Objects/Test Object Derived 1")] public class TestObjectDerived1 : ScriptableObject { }
3,247
https://github.com/davidpham5/weathers/blob/master/app/models/Location.js
Github Open Source
Open Source
MIT
null
weathers
davidpham5
JavaScript
Code
74
240
const axios = require('axios'); var Location = function(location) { var self = this; // var loc; var encodedAddress = encodeURIComponent(location); //var encodedAddress = encodeURIComponent(argv.address); var geocodeURL = `http://maps.googleapis.com/maps/api/geocode/json?address=${encodedAddress}`; ...
10,699
https://github.com/ZiweiNiexiaoer/DeepSplines/blob/master/scripts/check_batch_norm.py
Github Open Source
Open Source
MIT
2,021
DeepSplines
ZiweiNiexiaoer
Python
Code
129
506
#!/usr/bin/env python3 import argparse from project import Project from manager import Manager if __name__ == "__main__": # parse arguments parser = argparse.ArgumentParser(description='Check maximum mean, standard deviation ' 'of batch norm layers.', ...
45,801
https://github.com/CogitoNTNU/bombots/blob/master/main_multi.py
Github Open Source
Open Source
MIT
2,021
bombots
CogitoNTNU
Python
Code
191
501
import sys import pygame as pg from bombots.environment import Bombots from templates.agent_random import RandomAgent from templates.agent_rulebased import RuleBasedAgent # For Travis if '--novid' in sys.argv: import os os.environ["SDL_VIDEODRIVER"] = "dummy" def main(): cell_scale = 16 pg.init() ...
13,477
https://github.com/venkataseshaiahudatha/shopapp-android/blob/master/app/src/main/java/com/shopapp/ui/account/contract/SignInContract.kt
Github Open Source
Open Source
Apache-2.0
2,018
shopapp-android
venkataseshaiahudatha
Kotlin
Code
86
360
package com.shopapp.ui.account.contract import com.shopapp.domain.interactor.account.SignInUseCase import com.shopapp.domain.validator.FieldValidator import com.shopapp.ui.base.contract.BaseLcePresenter import com.shopapp.ui.base.contract.BaseLceView import javax.inject.Inject interface SignInView : BaseLceView<Unit>...
16,112
https://github.com/bacca87/great2/blob/master/Great/Utils/Notifications/Great2NotificationActivator.cs
Github Open Source
Open Source
MIT
2,019
great2
bacca87
C#
Code
60
205
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace Great2 { // The GUID CLSID must be unique to your app. Create a new GUID if copying this code. [ClassInterface(ClassInterfaceType.None)] [ComS...
35,118
https://github.com/INOS-soft/pbi/blob/master/modules10/sysutils/munin-master/scripts/post-install.sh
Github Open Source
Open Source
MIT
2,021
pbi
INOS-soft
Shell
Code
24
110
#!/bin/sh sed -i.bak "s,/usr/bin/perl,${PBI_PROGDIRPATH}/bin/perl,g" ${PBI_PROGDIRPATH}/share/munin/munin-* #Make the log file directory if [ ! -d /var/log/munin ]; then echo "Creating directory: /var/log/munin/" mkdir /var/log/munin/ fi
17,435
https://github.com/Peartes/omega/blob/master/ui/src/utils/eventEmitter.ts
Github Open Source
Open Source
Apache-2.0
2,022
omega
Peartes
TypeScript
Code
96
329
import { EventEmitter as Emitter } from "eventemitter3"; export class AccountUpdateEvent { static type = "AccountUpdate"; id: string; constructor(id: string) { this.id = id; } } export class MarketUpdateEvent { static type = "MarketUpdate"; ids: Set<string>; constructor(ids: Set<string>) { this....
3,619
https://github.com/DANCEcollaborative/PSI/blob/master/Sources/Runtime/Microsoft.Psi/Persistence/IndexEntry.cs
Github Open Source
Open Source
MIT
null
PSI
DANCEcollaborative
C#
Code
292
450
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. namespace Microsoft.Psi.Persistence { using System; /// <summary> /// Structure describing a position in a data file. /// </summary> /// <remarks> /// This structure is used in two places: the inde...
4,026
https://github.com/atul-vyshnav/2021_IBM_Code_Challenge_StockIT/blob/master/src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzdjf.java
Github Open Source
Open Source
Apache-2.0
2,021
2021_IBM_Code_Challenge_StockIT
atul-vyshnav
Java
Code
47
159
package com.google.android.gms.internal.ads; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ public final class zzdjf implements zzeoy<String> { private final zzdiy zzgzp; public zzdjf(zzdiy zzdiy) { this.zzgzp = zzdiy; } public final /* synthetic */ Object get() { ...
5,206
https://github.com/morecar/azure-libraries-for-java/blob/master/azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/fluentcore/arm/implementation/Manager.java
Github Open Source
Open Source
MIT
2,022
azure-libraries-for-java
morecar
Java
Code
93
246
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.resources.fluentcore.arm.implementation; import com.microsoft.azure.management.resources.fluentcore.model.HasIn...
3,417
https://github.com/raudiez/goalsdb/blob/master/resources/views/lofc/junctions/modify.blade.php
Github Open Source
Open Source
MIT
null
goalsdb
raudiez
PHP
Code
131
748
@extends('layouts.app') @section('content') <ol class="breadcrumb"> <li><a href="{{ url('/') }}">Inicio</a></li> <li>LOFC</li> <li>{{$season_name}}</li> <li><a href="{{url('lofc/competitions/'.$season_id)}}">Competiciones</a></li> <li>{{$competition->name}}</li> <li>Modificar cruce</li> </ol> <div class="p...
36,327
https://github.com/T0xicK0ala/Continuous-Learning/blob/master/go/workspace/src/github.com/t0xick0ala/firstapp/array.go
Github Open Source
Open Source
MIT
null
Continuous-Learning
T0xicK0ala
Go
Code
151
441
package main import ( "fmt" ) func arr() { // grades := [3]int{97, 85, 93} grades := [...]int{97, 85, 93} // any size var students [3]string // printf will give a result like "students [ ]" students[0] = "Lisa" students[1] = "Lisa2" students[2] = "Lisa3" fmt.Printf("%v\n", grades) fmt.Printf("%v\n", stude...
34,017
https://github.com/scnerd/miniutils/blob/master/miniutils/__init__.py
Github Open Source
Open Source
MIT
2,020
miniutils
scnerd
Python
Code
37
112
from .caching import CachedProperty, LazyDictionary, FileCached, file_cached_decorator from .magic_contract import magic_contract from .opt_decorator import optional_argument_decorator from .progress_bar import progbar, parallel_progbar, iparallel_progbar from .py2_wrap import MakePython2 from .timing import timed_call...
25,227
https://github.com/antkmsft/azure-sdk-for-go/blob/master/sdk/resourcemanager/trafficmanager/armtrafficmanager/zz_generated_models_serde.go
Github Open Source
Open Source
MIT
null
azure-sdk-for-go
antkmsft
Go
Code
599
2,192
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
4,744
https://github.com/fujaba/fulib.org/blob/master/services/apps/assignments/src/moss/moss.controller.ts
Github Open Source
Open Source
MIT
2,023
fulib.org
fujaba
TypeScript
Code
131
439
import {Controller, Param, Put} from '@nestjs/common'; import {MossService} from "./moss.service"; import {AssignmentAuth} from "../assignment/assignment-auth.decorator"; import {AssignmentService} from "../assignment/assignment.service"; import {SearchService} from "../search/search.service"; import {NotFound, notFoun...
22,317
https://github.com/Luiz-Monad/typescript-converter/blob/master/src/Converter/CSharp/Converters/MethodDeclarationConverter.cs
Github Open Source
Open Source
MIT
2,022
typescript-converter
Luiz-Monad
C#
Code
97
481
using System; using System.Diagnostics; using System.Collections.Generic; using System.Text; using Newtonsoft.Json.Linq; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using TypeScript.Syntax; namespace TypeScript.Converter.CSharp { public class Metho...
26,570
https://github.com/TAGC/Stravaig.Extensions.Configuration.Diagnostics/blob/master/src/Stravaig.Extensions.Configuration.Diagnostics.Tests/FluentOptions/FluentOptionsFuncObfuscatorExtensionsTests.cs
Github Open Source
Open Source
MIT
null
Stravaig.Extensions.Configuration.Diagnostics
TAGC
C#
Code
76
337
using System; using NUnit.Framework; using Shouldly; using Stravaig.Extensions.Configuration.Diagnostics.FluentOptions; using Stravaig.Extensions.Configuration.Diagnostics.Obfuscators; namespace Stravaig.Extensions.Configuration.Diagnostics.Tests.FluentOptions { [TestFixture] public class FluentOptionsFuncObfu...
28,957
https://github.com/viaict/viaduct/blob/master/app/extensions.py
Github Open Source
Open Source
MIT
2,018
viaduct
viaict
Python
Code
99
379
from authlib.flask.oauth2 import AuthorizationServer from flask_babel import Babel from flask_caching import Cache from flask_cors import CORS from flask_debugtoolbar import DebugToolbarExtension from flask_jsglue import JSGlue from flask_login import LoginManager from flask_sqlalchemy import SQLAlchemy from raven.cont...
45,794
https://github.com/LeonBaudouin/Influencets/blob/master/src/Controllers/PositionOverTime.ts
Github Open Source
Open Source
MIT
2,019
Influencets
LeonBaudouin
TypeScript
Code
137
412
import { StateObjectInterface } from '../Core/Abstract/State/StateObjectInterface' import { PositionState } from '../Core/Abstract/State/BaseStates' import { AbstractController } from '../Core/Abstract/Controller/AbstractController' import { Point } from '../Core/CustomTypes/Point' type SizeState = StateObjectInterfac...
41,332
https://github.com/webex/components/blob/master/src/components/adaptive-cards/context/adaptive-card-context.js
Github Open Source
Open Source
MIT
2,023
components
webex
JavaScript
Code
12
34
import React from 'react'; const AdaptiveCardContext = React.createContext({}); export {AdaptiveCardContext as default};
48,595
https://github.com/sekko27/didi-decorators/blob/master/lib/modules/didi-commons/test/metadata/ClassMetadataSetterTest.ts
Github Open Source
Open Source
MIT
null
didi-decorators
sekko27
TypeScript
Code
201
690
import {ClassMetadataSetter} from "../../lib/metadata/ClassMetadataSetter.ts"; import { assertEquals, assertStrictEquals } from "std/testing/asserts.ts"; const METADATA_KEY = "metadataKey"; interface A_MD { id: number; } Deno.test("instance should be strict equals to that the deserializer returns", () => { c...
37,410
https://github.com/methylium/NuGetGallery/blob/master/tests/NuGetGallery.FunctionalTests/WebTestExtensions/ValidationRuleFindHeaderText.cs
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,021
NuGetGallery
methylium
C#
Code
78
237
using Microsoft.VisualStudio.TestTools.WebTesting; using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Text; using System.Threading.Tasks; namespace NuGetGallery.FunctionTests.Helpers { /// <summary> /// Validation rule for matching text in response headers. ...
33,101
https://github.com/ScalablyTyped/Distribution/blob/master/o/openfin/src/main/scala/typings/openfin/global.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
181
517
package typings.openfin import typings.jquery.JQuery import typings.openfin.GoldenLayout.Config import typings.std.Element import typings.std.HTMLElement import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} ob...
50,370
https://github.com/gwendalg/home-assistant/blob/master/homeassistant/components/garage_door/wink.py
Github Open Source
Open Source
MIT
2,018
home-assistant
gwendalg
Python
Code
92
324
""" Support for Wink garage doors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/garage_door.wink/ """ from homeassistant.components.garage_door import GarageDoorDevice from homeassistant.components.wink import WinkDevice DEPENDENCIES = ['wink'] def...
34,061
https://github.com/lookman999/e-psm/blob/master/database/migrations/2022_01_17_120325_create_meetingsv_table.php
Github Open Source
Open Source
MIT
null
e-psm
lookman999
PHP
Code
55
206
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMeetingsvTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('meetingsv', f...
20,352
https://github.com/d3sformal/panda/blob/master/src/main/gov/nasa/jpf/abstraction/PredicateConsolePublisher.java
Github Open Source
Open Source
Apache-2.0
null
panda
d3sformal
Java
Code
1,155
3,796
/* * Copyright (C) 2006, United States Government as represented by the * Administrator of the National Aeronautics and Space Administration * (NASA). All rights reserved. * * Copyright (C) 2015, Charles University in Prague. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ...
21,600
https://github.com/techedge-group/aurora-cli/blob/master/src/templates/packages/back/common/src/@apps/common/administrative-area-level-1/application/delete/delete-administrative-areas-level-1.command-handler.spec.ts
Github Open Source
Open Source
MIT
null
aurora-cli
techedge-group
TypeScript
Code
99
400
import { Test, TestingModule } from '@nestjs/testing'; // custom items import { DeleteAdministrativeAreasLevel1CommandHandler } from './delete-administrative-areas-level-1.command-handler'; import { DeleteAdministrativeAreasLevel1Command } from './delete-administrative-areas-level-1.command'; import { DeleteAdministra...
45,203
https://github.com/Anhmike/CardGeneratorANKI/blob/master/CardGenerator3/gtk-gui/CardGenerator.Page0.cs
Github Open Source
Open Source
MIT
2,013
CardGeneratorANKI
Anhmike
C#
Code
241
1,078
// This file has been generated by the GUI designer. Do not modify. namespace CardGenerator { public partial class Page0 { private global::Gtk.VBox vbox5; private global::Gtk.Label label9; private global::Gtk.Button bnNewDB; private global::Gtk.Button bnLoadDB; private global::Gtk.Label labelFile; prote...
40,889
https://github.com/imaegoo/hexo-theme-icarus/blob/master/source/js/imaegoo/highlight.js/11.7.0/lib/languages/clean.js
Github Open Source
Open Source
MIT
2,023
hexo-theme-icarus
imaegoo
JavaScript
Code
96
428
/* Language: Clean Author: Camil Staps <info@camilstaps.nl> Category: functional Website: http://clean.cs.ru.nl */ /** @type LanguageFn */ function clean(hljs) { const KEYWORDS = [ "if", "let", "in", "with", "where", "case", "of", "class", "instance", "otherwise", "impleme...
43,149
https://github.com/DriveWorks/Labs-Integration-Example/blob/master/DriveWorks.Integration.Example/SolidWorks/GenerationConditions/MassGenerationCondition.vb
Github Open Source
Open Source
MIT
2,021
Labs-Integration-Example
DriveWorks
Visual Basic
Code
230
712
Imports System.Runtime.InteropServices Imports DriveWorks.Components Imports DriveWorks.Components.Tasks Imports DriveWorks.Forms.DataModel Imports DriveWorks.SolidWorks Imports DriveWorks.SolidWorks.Generation Imports DriveWorks.SolidWorks.Generation.Proxies Imports SolidWorks.Interop.sldworks Namespace SolidWorks ...
810
https://github.com/vmikunovs/exchange_rates/blob/master/templates/exchange/index.html.twig
Github Open Source
Open Source
Apache-2.0
null
exchange_rates
vmikunovs
Twig
Code
17
41
{% block body %} {% if form %} {{ include('exchange/form.html.twig') }} {% endif %} {% endblock %}
679
https://github.com/Feynman1999/Number-Theory-in-Programming-Competition/blob/master/code07/random-algo-modsqr.cpp
Github Open Source
Open Source
MIT
2,022
Number-Theory-in-Programming-Competition
Feynman1999
C++
Code
24
127
//求解x^2 \equiv -1 (mod p) //O(log p) ll ran(ll n){ assert(n%4==1); srand(time(0)); for(;;){ ll a=rand()*rand()%(n-1)+1; ll b=fast_exp(a,(n-1)/4,n); if(b*b%n==n-1) return b<=(n-1)/2 ? b:n-b; } }
95
https://github.com/samirans89/wcm-io-qa-galenium/blob/master/modules/galen/src/test/java/io/wcm/qa/glnm/galen/specs/GalenSpecRunTest.java
Github Open Source
Open Source
Apache-2.0
2,020
wcm-io-qa-galenium
samirans89
Java
Code
330
1,177
/* * #%L * wcm.io * %% * Copyright (C) 2019 wcm.io * %% * 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 ap...
28,048
https://github.com/darlyhellen/oto/blob/master/Flower/src/com/hellen/presenter/FlatBufferPresenter.java
Github Open Source
Open Source
Apache-2.0
null
oto
darlyhellen
Java
Code
252
995
/**上午11:17:35 * @author zhangyh2 * FlatBufferPresenter.java * TODO */ package com.hellen.presenter; import java.nio.ByteBuffer; import android.content.Context; import android.view.View; import android.widget.TextView; import com.google.gson.Gson; import com.hellen.bean.flatmodel.People; import com.hellen.bean.fl...
31,605
https://github.com/khoironi14/gaji/blob/master/application/views/edit_barang.php
Github Open Source
Open Source
MIT
null
gaji
khoironi14
PHP
Code
49
244
<div class="container"> <div class="col-md-6"> <form action="<?php echo base_url('Barang/edit_barang') ?>" method="post"> <input type="hidden" name="id" value="<?=$edit['id_barang']?>"> <label> Nama Barang</label> <input type="text" name="nama_barang" value="<?=$edit['nama_barang']?>" class="form-control" required="">...
11,281
https://github.com/ArtemBaranovsky/LearnVue2/blob/master/resources/js/core/Form.js
Github Open Source
Open Source
MIT
null
LearnVue2
ArtemBaranovsky
JavaScript
Code
176
585
import Errors from "./Errors"; class Form { constructor(data) { // this.data = data this.orignalData = data // better this.data.name or form.name for (let field in data) { this[field] = data.field; } this.errors = new Errors(); } data() { ...
36,616
https://github.com/GiantCowFilms/Blend-Exchange/blob/master/client/Components/Blend/DeleteBlendForm.vue
Github Open Source
Open Source
Apache-2.0
2,022
Blend-Exchange
GiantCowFilms
Vue
Code
142
505
<template> <div> <form name="deleteBlend" v-on:submit.prevent="submit(deletion,null,form)"> <ajax-error input="reason"></ajax-error> <textarea v-model="deletion.reason" placeholder="Please provide a reason for the removal of this file" style="width: 100%;" rows="4"> </tex...
2,844
https://github.com/Herly-tech/HerlyTech/blob/master/Herly/thread_testV2.py
Github Open Source
Open Source
MIT
null
HerlyTech
Herly-tech
Python
Code
22
96
import threading from threading import current_thread class Mythread(threading.Thread): def run(self): print(current_thread().getName(), 'start') print('run') print(current_thread().getName, 'stop') t1 = Mythread() t1.start() t1.join() print(current_thread().getName(), 'end')
34,481
https://github.com/atbashEE/octopus-jwt-support/blob/master/impl/src/main/java/be/atbash/ee/security/octopus/nimbus/jose/crypto/impl/ContentCryptoProvider.java
Github Open Source
Open Source
Apache-2.0
2,019
octopus-jwt-support
atbashEE
Java
Code
740
2,747
/* * Copyright 2017-2020 Rudy De Busscher (https://www.atbash.be) * * 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 requir...
22,543
https://github.com/kamilk08/BookLoversClient/blob/master/src/app/modules/bookcases/store/bookcases/bookcase.selectors.ts
Github Open Source
Open Source
MIT
null
BookLoversClient
kamilk08
TypeScript
Code
204
567
import { createSelector } from '@ngrx/store'; import { bookcaseModuleState, BookcaseModuleState } from '..'; import { BookcasesState } from './bookcase.reducer'; const bookcasesState = createSelector(bookcaseModuleState, (state: BookcaseModuleState) => { if (state) return state.bookcasesState; return undefined; }...
50,141
https://github.com/wayfinder/Wayfinder-Server/blob/master/Server/Shared/XML/src/XMLTreeFormatter.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
Wayfinder-Server
wayfinder
C++
Code
640
1,459
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
20,670
https://github.com/khuezy/terraform-aws-next-js/blob/master/packages/runtime/test/integration/postinstall/postinstall.js
Github Open Source
Open Source
Apache-2.0
2,022
terraform-aws-next-js
khuezy
JavaScript
Code
51
215
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); // Some packages like Prisma rely on the `NOW_BUILDER` environment variable // to determine if the build is running with the Vercel builder // Prisma: https://github.com/prisma/prisma/blob/1d0045fe60dc1992173f3f5be84b24129f0d45a3/src/package...
12,566
https://github.com/vanms1989/Stocks/blob/master/src/LewisFam.Stocks/StocksUtil.Events.cs
Github Open Source
Open Source
MIT
2,021
Stocks
vanms1989
C#
Code
11
30
namespace LewisFam.Stocks { public static partial class StocksUtil { } }
36,883