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/sarang-apps/darshan_browser/blob/master/chrome/android/feed/core/javatests/src/org/chromium/chrome/browser/feed/library/infraintegration/SimpleStreamTest.java
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
null
darshan_browser
sarang-apps
Java
Code
336
1,494
// Copyright 2019 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. package org.chromium.chrome.browser.feed.library.infraintegration; import static com.google.common.truth.Truth.assertThat; import static org.mockito.Moc...
23,338
https://github.com/destructo570/Sushi-Unofficial-MAL-Client/blob/master/Sushi/app/src/main/java/com/destructo/sushi/enum/TopSubtype.kt
Github Open Source
Open Source
Apache-2.0
2,022
Sushi-Unofficial-MAL-Client
destructo570
Kotlin
Code
23
161
package com.destructo.sushi.enum enum class TopSubtype(val type:String) { NONE("none"), AIRING("airing"), UPCOMING("upcoming"), TV("tv"), MOVIE("movie"), OVA("ova"), SPECIAL("special"), MANGA("manga"), NOVELS("novels"), ONESHOTS("oneshots"), DOUJIN("doujin"), MANHWA("man...
32,623
https://github.com/bcgov/court-of-appeal/blob/master/web/src/components/utils/TrailOperations.ts
Github Open Source
Open Source
Apache-2.0
null
court-of-appeal
bcgov
TypeScript
Code
90
320
import { togglePage, pageStatus, prevPageStatus, nextPageStatus } from '@/components/utils/StepsPagesFunctions'; export function activatePage(order, checked, currentStep) { if( checked && prevPageStatus(order, currentStep) && !nextPageStatus(order, currentStep)|| !checked && prevPageStatus(order, currentS...
13,302
https://github.com/mfunduc/dbcomp/blob/master/Go/dbinfo.go
Github Open Source
Open Source
MIT
null
dbcomp
mfunduc
Go
Code
443
1,305
package main import ( "fmt" "github.com/jmoiron/sqlx" _ "github.com/mattn/go-sqlite3" ) type DbInfo struct { name string conn *sqlx.DB tables map[string]TableInfo } func getTableNames(conn *sqlx.DB) *[]string { var tableNames []string rows, err := conn.Queryx("SELECT name FROM sqlite_master WHERE type =...
18,663
https://github.com/djey47/tduf/blob/master/cli/src/test/java/fr/tduf/cli/tools/AllToolsTest.java
Github Open Source
Open Source
Apache-2.0
2,020
tduf
djey47
Java
Code
404
1,772
package fr.tduf.cli.tools; import com.ginsberg.junit.exit.ExpectSystemExitWithStatus; import fr.tduf.cli.common.helper.CommandHelper; import org.junit.jupiter.api.Test; import java.io.IOException; import static fr.tduf.cli.tools.CameraTool.Command.*; import static fr.tduf.cli.tools.DatabaseTool.Command.*; import sta...
32,685
https://github.com/aloktech/HerokuProject/blob/master/src/main/java/com/imos/sample/rest/RESTService.java
Github Open Source
Open Source
Apache-2.0
null
HerokuProject
aloktech
Java
Code
140
526
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.imos.sample.rest; import com.imos.sample.rest.model.BaseModel; import com.imos.sample.rest.model.DetailModel; import com.i...
10,793
https://github.com/PaulBeaudet/contact-me-gatsby/blob/master/cypress/integration/connect_call_spec.js
Github Open Source
Open Source
MIT
null
contact-me-gatsby
PaulBeaudet
JavaScript
Code
115
379
// connect_call_spec.js Copyright 2020 Paul Beaudet MIT License // Can a visitor connect with a host // NOTE this is not a fully automated test and is meant be triggered on two separate devices /// <reference types="cypress" /> const { spyOnAddEventListener, waitForAppStart, } = require('./wait_for_app'); const {...
4,805
https://github.com/IAmAdamTaylor/Static-PHP-Template/blob/master/src/css/base/_load-webfonts.scss
Github Open Source
Open Source
MIT
2,021
Static-PHP-Template
IAmAdamTaylor
SCSS
Code
12
30
/** * Load webfonts. * If using @font-face set `font-display: swap;` */
11,943
https://github.com/pajser7256/PSIML2019/blob/master/bayeslang.py
Github Open Source
Open Source
MIT
2,019
PSIML2019
pajser7256
Python
Code
220
827
import re import collections import os import io path = input() bayespath = input() # path = "C:\\Users\\pajse\\Desktop\\public\\set\\1\\corpus" # bayespath = "C:\\Users\\pajse\\Desktop\\public\\set\\1\\sequences.txt" os.chdir(path) def normalize(probs): if sum(probs)!=0: prob_factor = 1 / sum(probs) ...
9,295
https://github.com/jahanner/GreenLightning/blob/master/src/main/java/com/ociweb/gl/api/transducer/HTTPResponseListenerTransducer.java
Github Open Source
Open Source
BSD-3-Clause
null
GreenLightning
jahanner
Java
Code
14
74
package com.ociweb.gl.api.transducer; import com.ociweb.gl.api.ListenerTransducer; import com.ociweb.gl.impl.http.server.HTTPResponseListenerBase; public interface HTTPResponseListenerTransducer extends ListenerTransducer, HTTPResponseListenerBase { }
6,742
https://github.com/godocms/godocms/blob/master/src/server/controller/svgedit.js
Github Open Source
Open Source
Apache-2.0
2,022
godocms
godocms
JavaScript
Code
211
675
const Base = require('./base.js'); const fs = require('fs'); const path = require('path'); /** * @class * @apiDefine svg svg编辑器管理 */ module.exports = class extends Base { async listAction() { let { page, limit, param } = this.get(); let wsql = {}; if (param) wsql = this.parseSearch(param...
44,538
https://github.com/marmakoide/jpack/blob/master/src/org/marmakoide/numeric/functors/Cosh.java
Github Open Source
Open Source
MIT
2,021
jpack
marmakoide
Java
Code
75
174
/* Copyright (c) 2012-2018 Alexandre Devert * * JPack is free software; you can redistribute it and/or modify it under the * terms of the MIT license. See LICENSE for details. */ package org.marmakoide.numeric.functors; import org.marmakoide.numeric.UnaryFunctor; /** * The hyperbolic cosinus function as a funct...
25,430
https://github.com/yynn0408/PetClinc-Spring-practice/blob/master/src/main/java/org/springframework/samples/petclinic/owner/LogAspect.java
Github Open Source
Open Source
Apache-2.0
null
PetClinc-Spring-practice
yynn0408
Java
Code
65
328
package org.springframework.samples.petclinic.owner; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.ut...
16,477
https://github.com/AIS-Bonn/vp-suite/blob/master/vp_suite/models/precipitation_nowcasting/ef_traj_gru.py
Github Open Source
Open Source
MIT
2,022
vp-suite
AIS-Bonn
Python
Code
741
2,567
from collections import OrderedDict from vp_suite.model_blocks.traj_gru import Activation from vp_suite.model_blocks import TrajGRU from vp_suite.models.precipitation_nowcasting.ef_blocks import Encoder_Forecaster class EF_TrajGRU(Encoder_Forecaster): r""" This is a reimplementation of the Encoder-Forecaster...
31,446
https://github.com/XboxBedrock/terraplusplus/blob/master/src/main/java/io/github/terra121/letsencryptcraft/LetsEncryptAdder.java
Github Open Source
Open Source
MIT
null
terraplusplus
XboxBedrock
Java
Code
301
1,037
package io.github.terra121.letsencryptcraft; import org.apache.commons.io.IOUtils; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManagerFactory; import java.io.BufferedInputStream; import java.io.InputStream; import java.net.URL; import java.net.URLConnection; import java.nio.file.Files; import java.nio....
12,019
https://github.com/jjjjgyj/INFO5100Spring2022/blob/master/INFO5100 - Midterm/src/com/company/Camera.java
Github Open Source
Open Source
MIT
null
INFO5100Spring2022
jjjjgyj
Java
Code
64
158
package com.company; public class Camera { private Camera(){ } public String getCameraName() { return cameraName; } public void setCameraName(String cameraName) { this.cameraName = cameraName; } private static Camera instance; private static Object obj = new Objec...
18,097
https://github.com/Belins/gestionproyectos/blob/master/resources/views/proyectos/crear.blade.php
Github Open Source
Open Source
MIT
null
gestionproyectos
Belins
PHP
Code
94
461
@extends('layouts.app') @section('title', 'UD5. ORM') @section('content') <h2>Crear proyecto</h2> <form class="" action="{{route('proyectos.store')}}" method="post"> @csrf @if ($errors ->has('nombre')) <br><a class="error">{{ $errors->first('nombre') }}</a> @endif Nombre: <input type="text"...
654
https://github.com/dndayishima/dans-group-site/blob/master/styles/theme.js
Github Open Source
Open Source
MIT
null
dans-group-site
dndayishima
JavaScript
Code
16
53
export const colors = { black: "#000000", blue: "#003183", darkRed: "#9c0312", red: "#d01a12", white: "#ffffff", };
40,306
https://github.com/tuckerpo/ckong/blob/master/game.h
Github Open Source
Open Source
MIT
2,022
ckong
tuckerpo
C
Code
100
290
// -------------------------------------------------------------------------- // // C Kong // Copyright (C) 2018 Jeff Panici // All rights reserved. // // This software source file is licensed according to the // MIT License. Refer to the LICENSE file distributed along // with this source file to learn more. // // ---...
24,096
https://github.com/staglabel/apiNG/blob/master/src/aping-inputObjects.js
Github Open Source
Open Source
MIT
2,021
apiNG
staglabel
JavaScript
Code
63
180
'use strict'; angular.module('jtt_aping').service('apingInputObjects', ['apingDefaultSettings', function (apingDefaultSettings) { /** * * return new clean apiNG input object by _type and _params * * @param _type {String} * @param _params {Object} * @returns {Object} */ this.getNe...
25,853
https://github.com/zett42/PlasmaFractalGL/blob/master/_deploy.sh
Github Open Source
Open Source
MIT
2,021
PlasmaFractalGL
zett42
Shell
Code
75
217
#!/bin/bash # abort on errors set -e RED=$'\e[1;31m'; NOCOLOR=$'\e[0m' read -p "${RED}Are you sure to deploy current build to GitHub Pages (y/n)? ${NOCOLOR} " -n 1 -r echo # (optional) move to a new line if [[ $REPLY =~ ^[Yy]$ ]] then # navigate into the build output directory cd plasmafractal-gl rm -rf .git...
39,897
https://github.com/Kirishikesan/haiku/blob/master/src/system/kernel/arch/generic/generic_vm_physical_page_mapper.h
Github Open Source
Open Source
MIT
2,022
haiku
Kirishikesan
C
Code
84
402
/* * Copyright 2006-2010, Ingo Weinhold <ingo_weinhold@gmx.de>. * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef _KERNEL_GENERIC_VM_PHYSICAL_PAGE_MAPPER_H #define _KERNEL_GENERIC_VM_PHYSICAL_PAGE_MAPPER_H #include <boot/kernel_args.h> // flags for generic_get_physical_page() enum...
16,262
https://github.com/khos0019/ChartJS-Project/blob/master/src/Color.php
Github Open Source
Open Source
MIT
null
ChartJS-Project
khos0019
PHP
Code
196
549
<?php final class Color { public int $r, $g, $b; public float $a; private function __construct($r, $g, $b, $a) { $this->r = $r; $this->g = $g; $this->b = $b; $this->a = $a; } /** * * @param int $r * @param int $g * @param int $b * ...
16,054
https://github.com/janmikusch/PiRhoUtilities/blob/master/Assets/PiRhoUtilities/Editor/Elements/InspectTrigger/InspectTriggerDrawer.cs
Github Open Source
Open Source
MIT
2,022
PiRhoUtilities
janmikusch
C#
Code
83
292
using UnityEditor; using UnityEngine; using UnityEngine.UIElements; namespace PiRhoSoft.Utilities.Editor { [CustomPropertyDrawer(typeof(InspectTriggerAttribute))] class InspectTriggerDrawer : PropertyDrawer { private const string _invalidMethodWarning = "(PUITDIM) invalid method for InspectTriggerAttribute on fi...
9,727
https://github.com/wilseypa/lhf/blob/master/LHFWrapper.py
Github Open Source
Open Source
MIT
2,022
lhf
wilseypa
Python
Code
71
264
import sys import subprocess import os proc = subprocess.Popen(["/usr/bin/time", '-v', "./LHFmain/LHF", *sys.argv[1:]], stdout = subprocess.PIPE, stderr = subprocess.PIPE) stdout, stderr = proc.communicate() print(stdout.decode()) flag = False file = os.getcwd() + "/LHFstats.csv" if not os.path.isfile(file) or os.sta...
8,505
https://github.com/alexoliver12321/algebra_db/blob/master/spec/algebra_db/build/column_spec.rb
Github Open Source
Open Source
MIT
null
algebra_db
alexoliver12321
Ruby
Code
34
101
RSpec.describe AlgebraDB::Build::Column do subject { described_class.new(:table, :column) } it { should render_syntax(%("table"."column" )).with_params(be_empty) } its(:table) { should eq :table } its(:column) { should eq :column } it { should eq described_class.new(:table, :column) } end
31,860
https://github.com/ndlib/honeycomb/blob/master/config/deploy/production.rb
Github Open Source
Open Source
Apache-2.0
2,018
honeycomb
ndlib
Ruby
Code
117
244
set :rack_env, :production # Simple Role Syntax # ================== # Supports bulk-adding hosts to roles, the primary server in each group # is considered to be the first unless any hosts have the primary # property set. Don't declare `role :all`, it's a meta role. # role :web, %w{deploy@example.com} # role :app, ...
33,314
https://github.com/sebastien-bratieres/pygpstruct/blob/master/data/basenp/779.y
Github Open Source
Open Source
Apache-2.0
2,019
pygpstruct
sebastien-bratieres
null
Spoken
21
43
1 0 2 2 1 0 1 1 1 0 2 1 1 1 0 2 1 1 1 1 1
1,766
https://github.com/sibgatullah-s/featuretimeline/blob/master/src/FeatureTimeline/redux/selectors/FeatureTimelineGridViewSelector.ts
Github Open Source
Open Source
MIT
2,022
featuretimeline
sibgatullah-s
TypeScript
Code
660
2,241
import { TeamSettingsIteration } from "TFS/Work/Contracts"; import { IGridView, IGridWorkItem, IIterationDisplayOptions, IWorkItemDisplayDetails } from "../../../Common/redux/Contracts/GridViewContracts"; import { CropWorkItem, IDimension, UIStatus } from "../../../Common/redux/Contracts/types"; import { getIterationDi...
20,256
https://github.com/Oueslati-Waafa/vehicle-managment/blob/master/resources/js/components/vehicles/VehiclesList.vue
Github Open Source
Open Source
MIT
null
vehicle-managment
Oueslati-Waafa
Vue
Code
16
57
<template > <div class="container"> <h2>Vehicles Page</h2> </div> </template> <script> export default { name: 'Vehicles' } </script>
39,114
https://github.com/marco-silvestri/chest-note/blob/master/app/Http/Livewire/NoteEditor.php
Github Open Source
Open Source
MIT
null
chest-note
marco-silvestri
PHP
Code
97
395
<?php namespace App\Http\Livewire; use App\Models\Note; use Livewire\Component; class NoteEditor extends Component { public $noteId; public $title; public $content; protected $listeners = [ 'loadNote', 'refresh' => '$refresh', ]; public function mount() { $this->...
17,303
https://github.com/imujtaba8488/im_widgets/blob/master/lib/src/painters/range/range_painter.dart
Github Open Source
Open Source
BSD-3-Clause
null
im_widgets
imujtaba8488
Dart
Code
123
436
import 'package:flutter/material.dart'; import 'package:im_util/im_util.dart'; class RangePainter extends CustomPainter { final double startAngle; final double sweepAngle; final int points; final int rangeMultiplier; final TextStyle textStyle; RangePainter({ this.startAngle = 120, this.sweepAngle ...
45,136
https://github.com/charlesxu-aicoder/Recommendation-model/blob/master/layers/__init__.py
Github Open Source
Open Source
MIT
null
Recommendation-model
charlesxu-aicoder
Python
Code
30
84
import numpy as np import tensorflow as tf from tensorflow.keras.regularizers import l2 from tensorflow.keras.layers import Layer, Dense, LayerNormalization, Dropout, Embedding, Conv1D, BatchNormalization from tensorflow.keras.losses import Loss from tensorflow.keras import Model,layers
29,533
https://github.com/amerlyq/airy/blob/master/vim/_to_seize/tabs-shougo.vim
Github Open Source
Open Source
MIT
2,022
airy
amerlyq
null
Spoken
271
975
" s: Windows and buffers(High priority) "{{{ " Credits: https://github.com/Shougo/shougo-s-github " The prefix key. nnoremap [Window] <Nop> nmap s [Window] nnoremap <silent> [Window]p :<C-u>call <SID>split_nicely()<CR> nnoremap <silent> [Window]v :<C-u>vsplit<CR> nnoremap <silent> [Window]t :tabnew<CR> nnore...
13,029
https://github.com/fm612/stellar-android-wallet/blob/master/app/src/main/java/com/blockeq/stellarwallet/models/TradingPair.kt
Github Open Source
Open Source
MIT
2,021
stellar-android-wallet
fm612
Kotlin
Code
10
35
package com.blockeq.stellarwallet.models data class TradingPair(val selling: DataAsset, val buying: DataAsset)
47,061
https://github.com/WhereIsLucas/laravel-cookie-consent/blob/master/resources/lang/da/texts.php
Github Open Source
Open Source
MIT
2,022
laravel-cookie-consent
WhereIsLucas
PHP
Code
27
65
<?php return [ 'message' => 'Din oplevelse på dette websted vil blive forbedret ved at tillade cookies.', 'agree' => 'Tillad cookies', 'refuse' => 'Afvis ikke-vigtige cookies', ];
42,892
https://github.com/huyuanfeng2018/flink/blob/master/flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/dml/SqlStatementSet.java
Github Open Source
Open Source
Apache-2.0
2,019
flink
huyuanfeng2018
Java
Code
301
805
/* * 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 ...
15,430
https://github.com/TheAmeliaDeWitt/YAHoneyPot/blob/master/modules/MarchCommand/src/main/java/com/marchnetworks/device_ws/ArrayOfEvent.java
Github Open Source
Open Source
MIT
null
YAHoneyPot
TheAmeliaDeWitt
Java
Code
57
199
package com.marchnetworks.device_ws; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlAccessorType( XmlAccessType.FIELD ) @Xml...
33,389
https://github.com/GuilhermeOrtizAluno/Imobiliaria/blob/master/imobiliaria/source/Views/district/list.php
Github Open Source
Open Source
MIT
null
Imobiliaria
GuilhermeOrtizAluno
PHP
Code
271
1,278
<?php $v->layout("_view"); ?> <div class='d-flex justify-content-between align-items-center mb-3'> <h1 class='h2 m-0'>Bairro</h1> <button class='btn btn-primary' data-toggle="modal" data-target="#new"> <div class='d-flex justify-content-between align-items-center'> <i class='fas fa-plus-cir...
4,684
https://github.com/Kalpavrikshika/python_modules/blob/master/traceback_stacksummary.py
Github Open Source
Open Source
Apache-2.0
2,018
python_modules
Kalpavrikshika
Python
Code
28
97
import traceback import sys from traceback_example import call_function def f(): summary = traceback.StackSummary.extract( traceback.walk_stack(None) ) print(''.join(summary.format())) print('Calling f() directly:') f() print() print('Calling f() from 3 levels deep:') call_function(f)
17,263
https://github.com/Abdullah-AlAttar/anltk/blob/master/anltk/src/jumla.cpp
Github Open Source
Open Source
BSL-1.0
2,022
anltk
Abdullah-AlAttar
C++
Code
458
1,698
#include <anltk/anltk.hpp> #include <ostream> #include <utf8.h> namespace anltk { Harf::Harf(char32_t c) : m_c(c) { } Harf Harf::create(char32_t c) { return Harf(c); } anltk::char_t Harf::c() { return m_c; } std::ostream& operator<<(std::ostream& os, const Harf& h) { os << h.to_string(); return os; } std::stri...
13,452
https://github.com/gspeedtech/Audacity/blob/master/lib-src/libvamp/vamp-hostsdk/PluginLoader.h
Github Open Source
Open Source
CC-BY-3.0
2,017
Audacity
gspeedtech
C
Code
1,249
2,330
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Vamp An API for audio analysis and feature extraction plugins. Centre for Digital Music, Queen Mary, University of London. Copyright 2006-2007 Chris Cannam and QMUL. Permission is hereby granted, free of charge, ...
10,694
https://github.com/AirQuick/oXygen-XML-editor-xspec-support/blob/master/frameworks/xspec/src/compiler/base/util/compiler-eqname-utils.xsl
Github Open Source
Open Source
MIT
2,022
oXygen-XML-editor-xspec-support
AirQuick
null
Spoken
288
1,408
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:local="urn:x-xspec:compiler:base:util:compiler-eqname-utils:local" xmlns:x="http://www.jenitennison.com/xslt/xspec" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ...
37,421
https://github.com/davidcm86/simplemvcframework/blob/master/app/Models/Entradas.php
Github Open Source
Open Source
MIT
null
simplemvcframework
davidcm86
PHP
Code
70
230
<?php namespace Models; use Core\Model; class Entradas extends Model { function __construct(){ parent::__construct(); } public function getEntradas() { return $this->db->select('SELECT * FROM entradas order by id desc'); } public function getEntrada($id){ return $this->db->select...
15,148
https://github.com/dos1/AoC21/blob/master/day5.py
Github Open Source
Open Source
MIT
null
AoC21
dos1
Python
Code
38
217
L=[[[*map(int,v.split(','))]for v in l.split('->')]for l in open("inputday5")] r,m=lambda n,x,y:x<=n<=y or y<=n<=x,max(max(max(p)for p in l)for l in L)+1 c=lambda a,b,f,s,w:(r(a,f[0],s[0])and r(b,f[1],s[1])and(f[0]==s[0]or f[1]==s[1]or(w and abs(f[0]-a)==abs(f[1]-b)))) print(*(sum(a)for a in((sum(c(i,j,f,s,b)for f,s in...
6,796
https://github.com/ccorsano/BlipBloopBot/blob/master/Conceptoire.Twitch/EventSub/HandlerRegistration.cs
Github Open Source
Open Source
MIT
2,021
BlipBloopBot
ccorsano
C#
Code
88
311
using Conceptoire.Twitch.Model.EventSub; using System; using System.Threading.Tasks; namespace Conceptoire.Twitch.EventSub { public interface IHandlerRegistration { public bool CanHandleEvent(EventSubContext context, TwitchEventSubEvent twitchEventSubEvent); public Task OnEventSubNotification(...
1,276
https://github.com/hieucd04/Reborn/blob/master/Assets/Script/Core/Muzzle Flash/MuzzleFlash.cs
Github Open Source
Open Source
Unlicense
null
Reborn
hieucd04
C#
Code
48
178
using System.Collections; using JetBrains.Annotations; using Reborn.Common; using UnityEngine; namespace Reborn.Core { public class MuzzleFlash : PoolableObject { IEnumerator DespawnOnDeath() { var particle = GetComponent<ParticleSystem>(); while (true) { ...
41,249
https://github.com/garamlee500/fpl-discord-bot/blob/master/src/bot.py
Github Open Source
Open Source
MIT
null
fpl-discord-bot
garamlee500
Python
Code
965
3,701
import uuid import discord import requests from discord.ext import commands from discord.ext.commands import has_permissions from discord_slash import SlashCommand, SlashContext, ButtonStyle, client, ComponentContext from discord_slash.utils.manage_commands import create_choice from datetime import datetime from diff...
42,005
https://github.com/SvenRoederer/freifunk_openwifimap-html5/blob/master/script/owm_widget.js
Github Open Source
Open Source
MIT
2,021
freifunk_openwifimap-html5
SvenRoederer
JavaScript
Code
588
2,179
var OWMWidget = function (options, mapoptions, couchmapoptions) { var widget = {}; var options = L.extend({ divId: 'map', getPopupHTML: function (nodedata) {return '<strong>'+nodedata.hostname+'</strong>';}, onBboxChange: function () {} }, options); var mapoptions = L.extend({ worldCopyJump: tru...
26,770
https://github.com/kramerc/gradle-jooq-plugin/blob/master/src/main/groovy/nu/studer/gradle/jooq/JooqPlugin.groovy
Github Open Source
Open Source
Apache-2.0
2,019
gradle-jooq-plugin
kramerc
Groovy
Code
471
1,468
/** Copyright 2014 Etienne Studer Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
18,860
https://github.com/Humanise/editor/blob/master/Editor/Classes/Templates/WeblogTemplate.php
Github Open Source
Open Source
Unlicense
2,020
editor
Humanise
PHP
Code
198
697
<?php /** * @package OnlinePublisher * @subpackage Classes.Templates */ if (!isset($GLOBALS['basePath'])) { header('HTTP/1.1 403 Forbidden'); exit; } class WeblogTemplate { var $id; var $title; var $pageBlueprintId; var $groupIds; function setId($id) { $this->id = $id; } function getId() { ...
33,683
https://github.com/Timofffee/tecs.nim/blob/master/tests/test1.nim
Github Open Source
Open Source
MIT
2,022
tecs.nim
Timofffee
null
Spoken
283
1,001
import std/unittest import tecs test "Init world": var world = initWorld() check(world.maxEntityId.int == 1000) suite "Full test": setup: type PositionComponent = object entity: uint64 x: int y: int MovableTag = object var world = initWorld() # teardown...
2,144
https://github.com/jackpoz/pnpframework/blob/master/src/lib/PnP.Framework/Provisioning/Model/Teams/TeamAppCollection.cs
Github Open Source
Open Source
MIT
2,022
pnpframework
jackpoz
C#
Code
44
137
namespace PnP.Framework.Provisioning.Model.Teams { /// <summary> /// Collection of Apps for Microsoft Teams /// </summary> public partial class TeamAppCollection : BaseProvisioningTemplateObjectCollection<TeamApp> { /// <summary> /// Constructor for TeamAppCollection class /...
1,597
https://github.com/jakefleming/jui-2.0/blob/master/scss/utilities/_functions.scss
Github Open Source
Open Source
Apache-2.0, MIT
2,015
jui-2.0
jakefleming
SCSS
Code
37
84
//functions contains all basic functions //converts numbers to em @function em($target, $context: $base--num) { @return $target / $context + 0em; @if $target == 0 { @return 0; } } @function px($target) { @return $target + px; }
20,811
https://github.com/carolinalevy/PGNest/blob/master/src/login/login.service.ts
Github Open Source
Open Source
MIT
null
PGNest
carolinalevy
TypeScript
Code
91
273
import { Injectable } from '@nestjs/common'; import { Registro } from 'src/registrarse/Registro.entity'; import { Repository } from 'typeorm'; import { InjectRepository } from '@nestjs/typeorm'; @Injectable() export class LoginService { constructor( @InjectRepository(Registro) private readonly registro...
46,536
https://github.com/hutchlabs/mimosa/blob/master/app/Http/Controllers/HomeController.php
Github Open Source
Open Source
MIT
null
mimosa
hutchlabs
PHP
Code
84
275
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); $th...
41,315
https://github.com/guagnelli/reportes/blob/master/application/models/Dashboard_model.php
Github Open Source
Open Source
MIT
null
reportes
guagnelli
PHP
Code
495
2,086
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dashboard_model extends CI_Model { public function __construct() { // Call the CI_Model constructor parent::__construct(); $this->load->database(); $this->config->load('general'); $this->load->helper(...
43,973
https://github.com/dmmceldowney/musicianBlog/blob/master/app/Admin.php
Github Open Source
Open Source
MIT
2,020
musicianBlog
dmmceldowney
PHP
Code
20
59
<?php namespace App; use Illuminate\Foundation\Auth\User; use Illuminate\Database\Eloquent\Model; class Admin extends User { // TODO: create Admin Model w/ Auth. }
38,767
https://github.com/chika0906a/cteam/blob/master/resources/views/layouts/menu.blade.php
Github Open Source
Open Source
MIT
null
cteam
chika0906a
PHP
Code
136
741
<html> <head> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <title>@yield('title')</title> <style> body { color:#999; background-image: url(https://u.profitroom.pl/2018-binkowskihotel-pl/thumb/0x900/uploads/sniadanie/Binkowski_Resort_...
21,818
https://github.com/bplaat/banq/blob/master/atm-client/atm-gui/src/main/java/ml/banq/atm/AdminWriteDonePage.java
Github Open Source
Open Source
MIT
2,020
banq
bplaat
Java
Code
108
466
package ml.banq.atm; import java.awt.Component; import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JLabel; // The admin write done page public class AdminWriteDonePage extends Page { private static final long serialVersionUID = 1; public AdminWriteDonePage(String rfid_uid) { set...
23,764
https://github.com/duritong/ruby-rhn_satellite/blob/master/lib/rhn_satellite/systemgroup.rb
Github Open Source
Open Source
MIT
2,016
ruby-rhn_satellite
duritong
Ruby
Code
65
405
module RhnSatellite class Systemgroup < RhnSatellite::Connection::Base collection 'systemgroup.listAllGroups' class << self def delete(group_name) base.default_call('systemgroup.delete',group_name) end def create(group_name, description) base.default_call('systemg...
24,577
https://github.com/victor20m/java-bootcamp/blob/master/Project/src/main/java/globantProject/ShoppingCart.java
Github Open Source
Open Source
Apache-2.0
null
java-bootcamp
victor20m
Java
Code
198
908
package globantProject; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable...
34,372
https://github.com/SableWalnut/mediastore-sdk/blob/master/dist/components/Capture/CaptureForm/useInput.js
Github Open Source
Open Source
BSD-3-Clause
null
mediastore-sdk
SableWalnut
JavaScript
Code
106
389
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); var _react = require("react");...
39,805
https://github.com/antonmedv/year/blob/master/packages/2026/02/21/index.js
Github Open Source
Open Source
MIT
2,021
year
antonmedv
JavaScript
Code
6
15
module.exports = new Date(2026, 1, 21)
27,298
https://github.com/AmuletGroup/amulet-project/blob/master/firmware/bsl/driverlib/MSP430FR5xx_6xx/wdt_a.h
Github Open Source
Open Source
BSD-Source-Code
2,022
amulet-project
AmuletGroup
C
Code
404
1,064
/* --COPYRIGHT--,BSD * Copyright (c) 2013, Texas Instruments Incorporated * 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 copy...
8,213
https://github.com/paullewallencom/jbpm5-978-1-8495-1644-0/blob/master/_/6440OS_02_code/jBPM5-GOP-NodeInstance/src/main/java/com/salaboy/process/engine/structures/NodeInstance.java
Github Open Source
Open Source
Apache-2.0
null
jbpm5-978-1-8495-1644-0
paullewallencom
Java
Code
48
106
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.salaboy.process.engine.structures; /** * * @author salaboy */ public interface NodeInstance { public void setTask(Task task); public Task getTask(); public void trigger(NodeInstance from, S...
36,552
https://github.com/suarezoscar/TheOutlaw/blob/master/Assets/scripts/Behaviours/SlideBehaviour.cs
Github Open Source
Open Source
MIT
null
TheOutlaw
suarezoscar
C#
Code
209
542
using UnityEngine; using System.Collections; public class SlideBehaviour : StateMachineBehaviour { private Vector2 slideSize = new Vector2(0.5735426f, 0.6482487f); private Vector2 slideOffset = new Vector2(-0.2469969f, -0.4358759f); private Vector2 size; private Vector2 offset; private BoxColli...
14,399
https://github.com/LiangLliu/cachedemo/blob/master/cache-account/src/main/java/com/edwin/cache/account/Account.java
Github Open Source
Open Source
Apache-2.0
null
cachedemo
LiangLliu
Java
Code
37
116
package com.edwin.cache.account; import lombok.*; import javax.persistence.*; import java.io.Serializable; @Setter @Getter @AllArgsConstructor @NoArgsConstructor @Entity @Builder @Table(name = "account") public class Account implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) ...
40,834
https://github.com/winningsix/presto/blob/master/presto-main/src/main/java/com/facebook/presto/execution/SharedBufferInfo.java
Github Open Source
Open Source
Apache-2.0
null
presto
winningsix
Java
Code
359
1,214
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
2,399
https://github.com/huntertran/Wordpress-WPSupportPlus/blob/master/includes/admin/resetETReplyTicket.php
Github Open Source
Open Source
MIT
null
Wordpress-WPSupportPlus
huntertran
PHP
Code
141
928
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $wpdb; $customFields=$wpdb->get_results( "SELECT * FROM {$wpdb->prefix}wpsp_custom_fields" ); $wpsp_reply_ticket=get_option('wpsp_et_reply_ticket'); $templates=array( 'reply_by_name' => __("Reply By Name", 'wp-support-plus-responsive-...
33,001
https://github.com/lat751608899/sm2/blob/master/src/PublicKey.php
Github Open Source
Open Source
Apache-2.0
2,022
sm2
lat751608899
PHP
Code
250
911
<?php namespace Lat\Ecc; use FG\ASN1\ASNObject; use FG\ASN1\Identifier; class PublicKey { const X509_ECDSA_OID = "1.2.840.10045.2.1"; // x509 证书 oid const SECP_256SM2_OID = '1.2.156.10197.1.301'; // sm2 oid /** @var Point */ protected $point; /** * @return mixed */ public function...
8,136
https://github.com/KoichiYasuoka/spaCy-COMBO/blob/master/download/getmodels.sh
Github Open Source
Open Source
MIT
null
spaCy-COMBO
KoichiYasuoka
Shell
Code
89
805
#! /bin/sh ( while read P do curl --compressed -LO http://mozart.ipipan.waw.pl/~prybak/model_conll2018/$P done ) << 'EOF' model.af_afribooms.pkl model.ar_padt.pkl model.bg_btb.pkl model.bxr_bdt.pkl model.ca_ancora.pkl model.cs_cac.pkl model.cs_fictree.pkl model.cs_pdt.pkl model.cu_proiel.pkl model.da_ddt.pkl model....
11,130
https://github.com/JuliaSprenger/nixpy/blob/master/nixio/test/test_section.py
Github Open Source
Open Source
BSD-3-Clause
2,021
nixpy
JuliaSprenger
Python
Code
1,009
3,995
# -*- coding: utf-8 -*- # Copyright © 2014, German Neuroinformatics Node (G-Node) # # All rights reserved. # # Redistribution and use in section and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICENSE file in the root of the Project. import os import time import...
24,513
https://github.com/adriaat/quantnn/blob/master/test/test_density.py
Github Open Source
Open Source
MIT
null
quantnn
adriaat
Python
Code
1,564
5,779
""" Tests for the quantnn.density module. """ import einops as eo import numpy as np import pytest from quantnn.generic import (sample_uniform, to_array, arange, reshape, concatenate) from quantnn.densit...
36,820
https://github.com/gulige/exchange_wallet/blob/master/apps/exchange_sign/src/lib/lib_keycrypto.erl
Github Open Source
Open Source
Apache-2.0
2,022
exchange_wallet
gulige
Erlang
Code
140
555
%%%-------------------------------------- %%% @Module : lib_keycrypto %%% @Description:key加密 %%%-------------------------------------- -module(lib_keycrypto). -include_lib("exchange_common/include/common.hrl"). -export([encrypt_key/1, decrypt_key/1, rand_password/0]). -define(PASSWORD, <<0,0,0,0,0...
17,122
https://github.com/FRCTeam3840/2017-Steamworks/blob/master/src/org/usfirst/frc3840/SteamWorks2017/commands/GearPicker.java
Github Open Source
Open Source
BSD-3-Clause
null
2017-Steamworks
FRCTeam3840
Java
Code
132
380
/**************************************************************************************** * FRC 2017 Steam Works * Team 3840 (TNT) * Command Group: GearPicker * Created 02/20/17 * Description: * GearPicker...three commands in sequential but always ensure floor pick is up! * Pass in selection from OI class...
47,035
https://github.com/Tak-Man/ML-rapid-text-labeling/blob/master/baseline-classifier/utilities/dt_utilities.py
Github Open Source
Open Source
MIT
null
ML-rapid-text-labeling
Tak-Man
Python
Code
418
3,105
import pandas as pd import os pd.set_option("display.max_columns", None) def read_tweet_class_label(tweet_file, include_meta_data=True): class_label_df = pd.read_csv(tweet_file, sep="\t") if include_meta_data: base = os.path.basename(tweet_file) base_parts = str(base).split("_") if ...
18,628
https://github.com/oobujieshi/aliyun-openapi-java-sdk/blob/master/aliyun-java-sdk-sls/src/main/java/com/aliyuncs/sls/model/v20191023/GetAlertHistoriesRequest.java
Github Open Source
Open Source
Apache-2.0
null
aliyun-openapi-java-sdk
oobujieshi
Java
Code
367
1,135
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
10,331
https://github.com/likenamehaojie/Apache-Ambari-ZH/blob/master/contrib/views/files/src/main/resources/ui/app/helpers/get-value-from-columns.js
Github Open Source
Open Source
Apache-2.0
2,022
Apache-Ambari-ZH
likenamehaojie
JavaScript
Code
167
297
/** * 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...
45,817
https://github.com/zatech/slack-autoresponder/blob/master/main.py
Github Open Source
Open Source
MIT
2,021
slack-autoresponder
zatech
Python
Code
290
919
#!/usr/bin/env python import json import logging import os import threading import time from collections import defaultdict from datetime import datetime from random import choice from time import sleep import slack from requests import post from slack import RTMClient, WebClient HITS = [ 'guyz', 'hey guys',...
43,181
https://github.com/JerryX1110/VFS/blob/master/mmaction/utils/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
VFS
JerryX1110
Python
Code
38
168
from .collect_env import collect_env from .logger import get_root_logger from .misc import (add_prefix, add_suffix, get_random_string, get_shm_dir, get_thread_id, terminal_is_available, tuple_divide) from .zip_reader import ZipBackend, ZipReader __all__ = [ 'get_root_logger', 'collect_env', 'get...
27,373
https://github.com/amaurijp/BioSPA/blob/master/Modules/FilterElements.py
Github Open Source
Open Source
MIT
2,021
BioSPA
amaurijp
Python
Code
22
164
def FilterElements(SettingsDic): import MODimageVolSel import os diretorio=os.getcwd() stackList=list(range(1,SettingsDic['timePoints'] + 1)) for stackNumber in stackList: MODimageVolSel.SelectionInnerElements(diretorio, stackNum...
37,758
https://github.com/Igor-Nosatov/LaraveVueShop/blob/master/app/Http/Controllers/CommentController.php
Github Open Source
Open Source
MIT
null
LaraveVueShop
Igor-Nosatov
PHP
Code
47
173
<?php namespace App\Http\Controllers; use App\Comment; use Auth; use Illuminate\Http\Request; class CommentController extends Controller { public function store(Request $request) { $comment = new Comment([ 'name' => $request->get('name'), 'email' => $request->get('email'), 'phone'...
28,689
https://github.com/finelinePG/imagick/blob/master/resources/ImagickDemo/ControlElement/SparseColorType.php
Github Open Source
Open Source
MIT
null
imagick
finelinePG
PHP
Code
66
240
<?php namespace ImagickDemo\ControlElement; class SparseColorType extends OptionKeyElement { protected function getDefault() { return 'renderImageVoronoi'; } protected function getVariableName() { return 'sparse'; } protected function getDisplayName() { return...
33,149
https://github.com/JetBrains-Research/kotlin-code-smells-detector/blob/master/src/main/java/org/jetbrains/research/kotlincodesmelldetector/ide/ui/MoveMethodTableModel.kt
Github Open Source
Open Source
MIT
null
kotlin-code-smells-detector
JetBrains-Research
Kotlin
Code
546
2,096
package org.jetbrains.research.kotlincodesmelldetector.ide.ui import com.intellij.ui.BooleanTableCellRenderer import com.intellij.ui.JBColor import org.jetbrains.kotlin.psi.KtClassOrObject import org.jetbrains.kotlin.psi.KtElement import org.jetbrains.research.kotlincodesmelldetector.KotlinCodeSmellDetectorBundle impo...
44,345
https://github.com/ismkhamitov/blovote-android/blob/master/app/src/main/java/com/blovote/surveys/ui/monitoring/AnswersActivity.kt
Github Open Source
Open Source
Apache-2.0
2,020
blovote-android
ismkhamitov
Kotlin
Code
215
886
package com.blovote.surveys.ui.monitoring import android.content.Context import android.content.Intent import android.os.Bundle import android.widget.Toast import com.blovote.R import com.blovote.app.App import com.blovote.app.BlovoteActivity import com.blovote.surveys.data.entities.Survey import com.blovote.surveys.d...
42,017
https://github.com/matejdr/Detox/blob/master/detox/src/artifacts/instruments/SimulatorInstrumentsPlugin.test.js
Github Open Source
Open Source
MIT
null
Detox
matejdr
JavaScript
Code
81
295
const SimulatorInstrumentsPlugin = require('./SimulatorInstrumentsPlugin'); describe('SimulatorInstrumentsPlugin', () => { describe('static parseConfig(config)', () => { const parseConfig = SimulatorInstrumentsPlugin.parseConfig; const ENABLE_MODES = ['all'].map(x => [x]); const DISABLE_MO...
31,675
https://github.com/ib3g/GestionUsers/blob/master/app/Resources/views/user/edit.html.twig
Github Open Source
Open Source
MIT
null
GestionUsers
ib3g
Twig
Code
176
661
{% extends 'base.html.twig' %} {% block body %} <style> .form-group { max-width: 400px; margin: 10px auto; } input[type="submit "]:hover, input[type="submit"]:focus, input[type="submit"].active:focus, input[type="submit"].active:hover,input[type="submit"].active.hover, input[type="submit"].active.focus { color...
32,867
https://github.com/atombender/yardbird/blob/master/lib/yardbird/endpoint.rb
Github Open Source
Open Source
MIT
2,019
yardbird
atombender
Ruby
Code
103
476
require 'active_support/core_ext/object/try' module Yarddown class Endpoint attr_accessor :method, :path, :docstring, :params, :example, :example_params, :category, :status def initialize(yardoc) @yardoc = yardoc parse end def parse self...
3,028
https://github.com/allisrc/aliyun-oss-cpp-sdk/blob/master/oss_sdk_cpp/message/get_object_request.cc
Github Open Source
Open Source
Apache-2.0
null
aliyun-oss-cpp-sdk
allisrc
C++
Code
413
1,429
/* * 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 ...
26,331
https://github.com/ergum/sofia/blob/master/src/partials/map.hbs
Github Open Source
Open Source
MIT
null
sofia
ergum
null
Spoken
17
76
<div class="c-map col-md-6 order-1 order-md-0"> <h4 class="c-map__current-fires"><b>8</b> fire alarms / <b>23</b> confirmed fires </h4> <div id='map'></div> </div>
15,215
https://github.com/exafmm/pyexafmm/blob/master/setup.py
Github Open Source
Open Source
BSD-3-Clause
2,021
pyexafmm
exafmm
Python
Code
65
367
import os from setuptools import setup, find_packages HERE = os.path.abspath(os.path.dirname(__file__)) PATH_VERSION = os.path.join(HERE, 'fmm', '__version__.py') ABOUT = {} with open(PATH_VERSION, mode='r', encoding='utf-8') as f: exec(f.read(), ABOUT) requirements = [ "adaptoctree==1.3.0", "scipy==1....
31,575
https://github.com/aiswarya-ti1/bims-admin/blob/master/app/Http/Controllers/projectManagement.php
Github Open Source
Open Source
MIT
null
bims-admin
aiswarya-ti1
PHP
Code
3,901
41,406
<?php namespace App\Http\Controllers; use Illuminate\Support\Arr; //use Illuminate\Http\Request; use Request; use DateTime; class projectManagement extends Controller { public function workStart(Request $r) { $values = Request::json()->all(); $start=\DB::table('work_timeline')->insert(array('W...
5,728
https://github.com/zhiming-shen/Xen-Blanket-NG/blob/master/xen/xen-4.2.2/tools/python/xen/xend/xenstore/tests/stress_xs.py
Github Open Source
Open Source
Apache-2.0
2,018
Xen-Blanket-NG
zhiming-shen
Python
Code
290
866
# This library is free software; you can redistribute it and/or # modify it under the terms of version 2.1 of the GNU Lesser General Public # License as published by the Free Software Foundation. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied war...
21,895
https://github.com/vlori2k/WeatherApplication/blob/master/dev/weather/clear-button.ts
Github Open Source
Open Source
MIT
2,017
WeatherApplication
vlori2k
TypeScript
Code
36
114
import {Component, View, Input, Output, EventEmitter} from 'angular2/core'; @Component({ selector: 'clearButton', }) @View({ template: `<button>{{clearButton}}</button>` }) export class clearButton { @Input() label: string; @Output() click = new EventEmitter(); setText(newName: string...
7,930
https://github.com/BirWri/CS50BirWri/blob/master/flaskr/static/tinymce_5.6.2_dev/tinymce/modules/snooker/src/test/ts/browser/CopySelectedTest.ts
Github Open Source
Open Source
MIT
null
CS50BirWri
BirWri
TypeScript
Code
1,185
3,037
import { assert, UnitTest } from '@ephox/bedrock-client'; import { Arr } from '@ephox/katamari'; import { Attribute, Class, Html, InsertAll, SugarElement } from '@ephox/sugar'; import * as CopySelected from 'ephox/snooker/api/CopySelected'; interface TestData { selected: boolean; html: string; rowspan?: string; ...
39,372
https://github.com/Modafro/Travel_Agency_Desktop_App/blob/master/src/DesktopInterface/TravelExpertClasses/BookingsDB.java
Github Open Source
Open Source
MIT
2,021
Travel_Agency_Desktop_App
Modafro
Java
Code
277
1,046
//Objective: Create various queries to manipulate the database based on end-user requests package DesktopInterface.TravelExpertClasses; import DesktopInterface.TravelExpertsDB; import java.awt.print.Book; import java.sql.*; import java.time.LocalDate; import java.util.ArrayList; public class BookingsDB { //met...
25,366
https://github.com/PantelisAndrianakis/JMMOS/blob/master/src/gameserver/handlers/commands/admin/SpawnCommand.java
Github Open Source
Open Source
MIT
2,021
JMMOS
PantelisAndrianakis
Java
Code
234
945
package gameserver.handlers.commands.admin; import java.sql.Connection; import java.sql.PreparedStatement; import common.Config; import common.managers.DatabaseManager; import common.managers.LogManager; import gameserver.actor.Npc; import gameserver.actor.Player; import gameserver.data.SpawnData; import gameserver.h...
33,004
https://github.com/DBFromZero/dbf0java/blob/master/src/main/java/dbf0/socketer_server/Stubs.java
Github Open Source
Open Source
Apache-2.0
2,022
dbf0java
DBFromZero
Java
Code
329
1,067
package dbf0.socketer_server; import org.apache.commons.codec.binary.Hex; import java.io.IOException; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.Arrays; import java.util.Random; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import...
25,270
https://github.com/qiangsaili/PycharmProjects/blob/master/MyPractise02/Random_active.py
Github Open Source
Open Source
MIT
null
PycharmProjects
qiangsaili
Python
Code
140
768
#!/usr/bin/env python # encoding: utf-8 ''' @author: Sally @time: 2018/4/25 22:33 ''' import random import string import xlrd,xlwt import csv import pymysql def Random_Active(lenght,num): #创建数据库连接 conn = pymysql.connect(host='192.168.199.242', port=3306, user='root', password='iraindb10241GB', database='auto_test')...
14,838