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/gaybro8777/TagBot/blob/master/github/go.mod | Github Open Source | Open Source | MIT | 2,019 | TagBot | gaybro8777 | Go Module | Code | 25 | 157 | module github
go 1.12
require (
github.com/aws/aws-lambda-go v1.10.0
github.com/aws/aws-sdk-go v1.19.34
github.com/bradleyfalzon/ghinstallation v0.1.2
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/google/go-github/v25 v25.0.2
github.com/pkg/errors v0.8.1
github.com/stretchr/testify v1.... | 18,275 |
https://github.com/salesforce/lwc/blob/master/packages/@lwc/synthetic-shadow/src/faux-shadow/shadow-root.ts | Github Open Source | Open Source | MIT | 2,023 | lwc | salesforce | TypeScript | Code | 1,939 | 5,651 | /*
* Copyright (c) 2023, Salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import {
ArrayFilter,
assign,
create,
defineProperty,
globalThis,
isNull,
isTrue,
... | 34,575 |
https://github.com/jenidarnold/txra/blob/master/resources/views/events/gallery.blade.php | Github Open Source | Open Source | MIT | null | txra | jenidarnold | PHP | Code | 838 | 4,579 | @extends('layouts.event')
@section('style')
<style type="text/css">
</style>
@stop
@section('event_content')
<!-- -->
<section>
<div class="container">
<ul id="portfolio_filter" class="nav nav-pills margin-bottom-60">
<li class="filter active"><a data-filter="*" href="#">All</a></li>
... | 22,405 |
https://github.com/shekhr/CodeChef/blob/master/Factorial.java | Github Open Source | Open Source | MIT | 2,018 | CodeChef | shekhr | Java | Code | 43 | 171 | import java.util.Scanner;
class Factorial {
static int result(int res){
res=res/5;
if(res/5!=0){
res= res+result(res);
}
return res;
}
public static void main(String args[]){
int times=0;
Scanner c= new Scanner(System.in);
try{
times=c.nextInt();
while (times!=0) {
int num=c.nextInt();
Syste... | 11,075 |
https://github.com/dividio/projectfootball/blob/master/trunk/ProjectFootball/src/editor/CEditorUtils.h | Github Open Source | Open Source | Zlib | null | projectfootball | dividio | C | Code | 246 | 677 | /*
* Copyright (C) 2012 - Ikaro Games www.ikarogames.com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
*... | 13,515 |
https://github.com/gxrwes/MCRPGSERVER/blob/master/MinecraftServer/work/decompile-e0c6d16a/net/minecraft/server/commands/ItemCommands.java | Github Open Source | Open Source | MIT | null | MCRPGSERVER | gxrwes | Java | Code | 1,092 | 5,788 | package net.minecraft.server.commands;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.builder... | 16,383 |
https://github.com/cdkd123/pure/blob/master/src/com/mygame/pure/core/MicroRecruitSettings.java | Github Open Source | Open Source | Unlicense | 2,016 | pure | cdkd123 | Java | Code | 76 | 285 | package com.mygame.pure.core;
import android.content.Context;
import android.content.SharedPreferences;
public class MicroRecruitSettings extends AppSettings {
private static final String SHARED_PREFERENCES_NAME = "pmway.settings";
private final SharedPreferences mGlobalPreferences;
public MicroRecruitSettings(... | 18,993 |
https://github.com/mquaker/Scheduler/blob/master/Project/Scheduler/SchedulerLib/Ashkatchap/Scheduler/Collections/ThreadSafeRingBuffer.cs | Github Open Source | Open Source | MIT | 2,018 | Scheduler | mquaker | C# | Code | 316 | 882 | using Ashkatchap.Scheduler.Logging;
using System.Runtime.InteropServices;
using System.Threading;
namespace Ashkatchap.Scheduler.Collections {
/// <summary>
/// Implementation of the Disruptor pattern
/// </summary>
/// <typeparam name="T">the type of item to be stored</typeparam>
internal class ThreadSafeRingBuf... | 29,015 |
https://github.com/jhchang-lanl/Draco/blob/master/src/c4/test/tstparallel_unit_test.cc | Github Open Source | Open Source | BSD-3-Clause-Open-MPI | 2,022 | Draco | jhchang-lanl | C++ | Code | 76 | 233 | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file c4/test/tstparallel_unit_test.cc
* \author Kent Grimmett Budge
* \date Tue Nov 6 13:19:40 2018
* \brief Test the test function for parallel case.
* \note Copyright (C) 2018 TRIAD, LLC. All right... | 1,289 |
https://github.com/PrimoDev23/Roslynator/blob/master/src/Tests/Tests.Common/Testing/CSharp/AbstractCSharpCompilerDiagnosticFixVerifier.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Roslynator | PrimoDev23 | C# | Code | 223 | 709 | // Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Mi... | 8,680 |
https://github.com/int-brain-lab/ibllib/blob/master/brainbox/examples/docs_load_video.py | Github Open Source | Open Source | MIT | 2,022 | ibllib | int-brain-lab | Python | Code | 429 | 832 | """
Get video frames and metadata
===================================
Video frames and meta data can be loaded using the ibllib.io.video module, which contains
functions for loading individual or groups of frames efficiently. The video may be streamed
remotely or loaded from a local file. In these examples a remote U... | 25,517 |
https://github.com/hdm/mac-tracker/blob/master/data/js/70/b3/d5/00/d0/00.36.js | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,021 | mac-tracker | hdm | JavaScript | Code | 7 | 62 | macDetailCallback("70b3d500d000/36",[{"a":"Technoparkstrasse 1 Zurich Zurich CH 8005","o":"Scrona AG","d":"2017-08-20","t":"add","s":"ieee","c":"CH"}]);
| 2,925 |
https://github.com/Wasserwecken/HelpingHands/blob/master/Athene/Lib.Visuals/Window/GameCamera.cs | Github Open Source | Open Source | MIT | null | HelpingHands | Wasserwecken | C# | Code | 405 | 1,028 | using System.Diagnostics;
using System.Timers;
using OpenTK;
using OpenTK.Graphics.OpenGL;
using Lib.Tools;
namespace Lib.Visuals.Window
{
public class GameCamera
{
/// <summary>
/// Sets the delay and smooth movement of the camera. 1 is direct movement. if higher, more delay
/// </summar... | 22,936 |
https://github.com/1373006963lxd/community/blob/master/src/main/java/life/lxd/community/dto/FileDTO.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | community | 1373006963lxd | Java | Code | 27 | 70 | package life.lxd.community.dto;
import lombok.Data;
/**
* Created by codedrinker on 2019/6/26.
*/
@Data
public class FileDTO {
private int success;
private String message;
private String url;
}
| 42,683 |
https://github.com/shivaluma/shivaluma.tech/blob/master/src/components/posts.js | Github Open Source | Open Source | RSA-MD | null | shivaluma.tech | shivaluma | JavaScript | Code | 54 | 179 | import React from "react"
const Posts = ({ title, children }) => {
return (
<div className="container mt-12 mb-16">
<div>
<div className="pl-6 text-2xl font-extrabold border-l-4 border-gray-500 Muli">
{title}
</div>
{/* <button className="px-3 py-1 ml-5 text-xs font-semibo... | 2,268 |
https://github.com/alexter42/SWITCH-1/blob/master/src/imports/api/schema/mutation.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | SWITCH-1 | alexter42 | JavaScript | Code | 77 | 229 | const mutation = `
input UserProfileInput {
firstName: String!
lastName: String!
street: String!
postalNumber: Int!
city: String!
birthday: Date!
phoneMobile: String
hometown: String
regionalOffice: String
}
input File {
name: String!
type: String!
size: Int!
b... | 6,278 |
https://github.com/wwb0709/My_Example/blob/master/GDC2012-walzer/TweeJump-X/tweejump-android/tweejump/android/jni/helloworld/Android.mk | Github Open Source | Open Source | MIT | 2,013 | My_Example | wwb0709 | Makefile | Code | 47 | 321 | LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
LOCAL_SRC_FILES := main.cpp
LOCAL_STATIC_LIBRARIES := png_static_prebuilt
LOCAL_STATIC_LIBRARIES += xml2_static_prebuilt
LOCAL_STATIC_LIBRARIES += jpeg_static_prebuilt
LOCAL_STATIC_LIBRARIES += curl_stat... | 21,601 |
https://github.com/GaLaPyPy/leetcode-solutions/blob/master/Algorithms/132.palindrome-partitioning-ii/palindrome-partitioning-ii-2.py | Github Open Source | Open Source | MIT | 2,021 | leetcode-solutions | GaLaPyPy | Python | Code | 54 | 153 | class Solution(object):
def minCut(self, s):
"""
:type s: str
:rtype: int
"""
if not s:
print 0
cut = [i - 1 for i in xrange(1 + len(s))]
for i in xrange(1 + len(s)):
for j in xrange(i):
# s[j:i] is palindrome
... | 26,242 |
https://github.com/bopopescu/geard/blob/master/pkg/ssh-public-key/certs.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | geard | bopopescu | Go | Code | 1,198 | 3,349 | // Copyright 2012 The Go 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 ssh
import (
"time"
)
// These constants from [PROTOCOL.certkeys] represent the algorithm names
// for certificate types supported by this package.
c... | 39,488 |
https://github.com/waruqi/NazaraEngine/blob/master/src/ShaderNode/Widgets/OutputEditor.hpp | Github Open Source | Open Source | BSD-3-Clause-Clear, Apache-2.0, MIT | 2,022 | NazaraEngine | waruqi | C++ | Code | 67 | 336 | #pragma once
#ifndef NAZARA_SHADERNODES_OUTPUTEDITOR_HPP
#define NAZARA_SHADERNODES_OUTPUTEDITOR_HPP
#include <ShaderNode/ShaderGraph.hpp>
#include <QtWidgets/QWidget>
#include <optional>
class QLabel;
class QListWidget;
class QVBoxLayout;
class OutputEditor : public QWidget
{
public:
OutputEditor(ShaderGraph& g... | 29,133 |
https://github.com/raychanks/card-flipping-game/blob/master/src/services/gameService.js | Github Open Source | Open Source | MIT | null | card-flipping-game | raychanks | JavaScript | Code | 459 | 1,375 | const CORRECT_SCORE = 5;
const INCORRECT_SCORE = -1;
const colors = [
'blue',
'green',
'red',
'yellow',
'orange',
'brown',
'gray',
'pink',
];
/*
{
color: Color,
isSelected: boolean,
isRemoved: boolean,
}
*/
function generateCells() {
const cells = [];
for (const color of colors... | 7,098 |
https://github.com/AndroPlus-org/EfsTools/blob/master/EfsTools/Qualcomm/QcdmCommands/Requests/Efs/EfsReadDirectoryCommandRequest.cs | Github Open Source | Open Source | MIT | 2,022 | EfsTools | AndroPlus-org | C# | Code | 68 | 273 | using System;
using EfsTools.Qualcomm.QcdmCommands.Attributes;
namespace EfsTools.Qualcomm.QcdmCommands.Requests.Efs
{
[QcdmCommand(QcdmCommand.SubsysCmd)]
[QcdmSubSystemCommand(QcdmSubSystem.Efs, (ushort) QcdmEfsCommand.EfsReadDir)]
internal class EfsReadDirectoryCommandRequest : BaseSubSystemCommandRequ... | 42,743 |
https://github.com/Medycation/acute-select/blob/master/test/src/HelloWorld.js | Github Open Source | Open Source | MIT | 2,015 | acute-select | Medycation | JavaScript | Code | 11 | 24 | function helloWorld() {
return "Hey Hello world! Are you there?";
} | 23,514 |
https://github.com/miladsssh/condoManagement/blob/master/app/Cygnus/Repo/Condominium/CondoRepoInterface.php | Github Open Source | Open Source | MIT | null | condoManagement | miladsssh | PHP | Code | 135 | 356 | <?php
/**
* Created by PhpStorm.
* User: miladsssh
* Date: 1/18/15
* Time: 11:34 AM
*/
namespace Cygnus\Repo\Condominium;
use Cygnus\Repo\User\User;
/**
* Interface CondoRepoInterface
* @package Cygnus\Repo\Condominium
*/
interface CondoRepoInterface
{
/**
* Register a New Condo
*
* @param ... | 11,715 |
https://github.com/terracorra/BroadcastPlugin/blob/master/Broadcast/Config.cs | Github Open Source | Open Source | MIT | 2,021 | BroadcastPlugin | terracorra | C# | Code | 500 | 1,385 | namespace BroadcastPlugin
{
using Exiled.API.Enums;
using Exiled.API.Interfaces;
using System.Collections.Generic;
using System.ComponentModel;
using BroadcastPlugin.ConfigObjects;
public class Config : IConfig
{
public bool IsEnabled { get; set; } = true;
public List<ConfigChaos> ChaosEntrance { get; set;... | 5,571 |
https://github.com/sunnnnn/yii2-nifty/blob/master/basic/views/site/index.php | Github Open Source | Open Source | MIT | null | yii2-nifty | sunnnnn | PHP | Code | 48 | 172 | <?php
use yii\helpers\Html;
$this->registerJs('$(function(){$(".default-page-head").remove();$(".default-page-content").attr("id", null);})');
$this->title = Yii::t('app/menu', 'home');
?>
<div id="page-head">
<div class="pad-all text-center">
<h3>Welcome back to the Dashboard.</h3>
<p1>Scroll down... | 41,980 |
https://github.com/SurfaceTemp/ISTI-POST/blob/master/write_conversion_file.R | Github Open Source | Open Source | CC0-1.0 | 2,015 | ISTI-POST | SurfaceTemp | R | Code | 61 | 260 | write_conversion_file <-
function(x=NA) {
settings = read_software_settings()
conversionDirFileName = paste(settings$baseDir, "data", "level1.txt", sep=.Platform$file.sep)
if( is.na(x) ) {
dir = c("d1", "d2", "d3")
dataFile = c("", "", "")
filename_of_conversion_function = c("convert_d1_sl... | 32,662 |
https://github.com/stefan2718/personal-website/blob/master/src/pages/index.tsx | Github Open Source | Open Source | MIT | null | personal-website | stefan2718 | TypeScript | Code | 191 | 685 | import React from 'react'
import Helmet from 'react-helmet'
import { Link, graphql } from 'gatsby'
import HomePageLayout from '../components/HomePageLayout'
import BlogSummary from '../components/BlogSummary'
import { IGatsbyProps } from '../util/interfaces';
import LabRoutes from '../components/LabRoutes';
class Hom... | 37,402 |
https://github.com/ThierryGoubier/OSProcess/blob/master/CommandShell-UI.package/ExternalCommandShell.class/instance/cliShell..st | Github Open Source | Open Source | MIT | 2,016 | OSProcess | ThierryGoubier | null | Spoken | 11 | 27 | accessing
cliShell: anObject
"Set the value of cliShell"
cliShell := anObject | 45,871 |
https://github.com/apple/swift/blob/master/test/Serialization/default_silfunction_deserializationfrom_stdlib.swift | Github Open Source | Open Source | Apache-2.0, Swift-exception | 2,023 | swift | apple | Swift | Code | 100 | 426 | // FIXME: depends on brittle stdlib implementation details
// XFAIL: *
// RUN: %target-swift-frontend %s -emit-sil -O -o - -sil-debug-serialization | %FileCheck %s
// CHECK-DAG: sil public_external [transparent] @_TFsoi1pU__FT3lhsGVs13UnsafeMutablePointerQ__3rhsSi_GS_Q__ : $@convention(thin) <T> (UnsafeMutablePointer<... | 20,498 |
https://github.com/alvarobfdev/logApi/blob/master/app/RestApiModels/User.php | Github Open Source | Open Source | MIT | null | logApi | alvarobfdev | PHP | Code | 41 | 116 | <?php
namespace App\RestApiModels;
use Moloquent;
/**
* Created by PhpStorm.
* User: alvarobanofos
* Date: 23/5/16
* Time: 11:44
*/
class User extends Moloquent
{
public static $obligatory_post_fields = [
"name", "surname"
];
public static $optional_post_fields = [
"company"
];
} | 52,049 |
https://github.com/gskbyte/GSKStretchyHeaderView/blob/master/Example/GSKStretchyHeaderView/GSKSpotyLikeHeaderView.m | Github Open Source | Open Source | MIT | 2,022 | GSKStretchyHeaderView | gskbyte | Objective-C | Code | 298 | 1,531 | #import "GSKSpotyLikeHeaderView.h"
#import "UIView+GSKLayoutHelper.h"
#import <GSKStretchyHeaderView/GSKGeometry.h>
#import <Masonry/Masonry.h>
static const CGSize kUserImageSize = {.width = 64, .height = 64};
@interface GSKSpotyLikeHeaderView ()
@property (nonatomic) UIImageView *backgroundImageView;
@property (non... | 40,508 |
https://github.com/gcarroll/unitime/blob/master/JavaSource/org/unitime/timetable/onlinesectioning/solver/CheckAssignmentAction.java | Github Open Source | Open Source | Apache-2.0 | null | unitime | gcarroll | Java | Code | 1,071 | 4,539 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 49,926 |
https://github.com/stephenfuqua/IbaMonitoring/blob/master/IbaMonitoring/App_Code/PresenterFactory.cs | Github Open Source | Open Source | Apache-2.0 | 2,015 | IbaMonitoring | stephenfuqua | C# | Code | 50 | 198 | using IbaMonitoring.Presenters;
using IbaMonitoring.Views;
using Microsoft.Practices.Unity;
using System;
namespace IbaMonitoring.App_Code
{
public class PresenterFactory : IPresenterFactory
{
private readonly IUnityContainer _iocContainer;
public PresenterFactory(IUnityContainer iocContaine... | 33,048 |
https://github.com/technyon/nuki_hub/blob/master/lib/WebServer/src/hardware/WifiEthClient.cpp | Github Open Source | Open Source | MIT | 2,022 | nuki_hub | technyon | C++ | Code | 108 | 480 | #include "WifiEthClient.h"
WifiEthClient::WifiEthClient(WiFiClient *wifiClient)
: _wifiClient(wifiClient)
{
}
WifiEthClient::~WifiEthClient()
{
_wifiClient = nullptr;
}
uint8_t WifiEthClient::connected()
{
return _wifiClient->connected();
}
int WifiEthClient::setTimeout(uint32_t seconds)
{
return _wifi... | 20,309 |
https://github.com/wjk/OmniBase/blob/master/Pod/Classes/OBPostLoader.h | Github Open Source | Open Source | MIT | 2,016 | OmniBase | wjk | C | Code | 166 | 360 | // Copyright 1997-2005, 2009-2010 Omni Development, Inc. All rights reserved.
//
// This software may only be used and reproduced according to the
// terms in the file OmniSourceLicense.html, which should be
// distributed with this project and can also be found at
// <http://www.omnigroup.com/developer/sourcecode/sou... | 18,096 |
https://github.com/marxy/Qualitis/blob/master/appconn/src/main/java/com/webank/wedatasphere/dss/appconn/qualitis/utils/Sha256Utils.java | Github Open Source | Open Source | Apache-2.0 | null | Qualitis | marxy | Java | Code | 168 | 390 | /*
* Copyright 2019 WeBank
* 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, ... | 24,484 |
https://github.com/ibnuhabibie/automa/blob/master/src/components/newtab/workflow/WorkflowDataColumns.vue | Github Open Source | Open Source | MIT | 2,021 | automa | ibnuhabibie | Vue | Code | 218 | 748 | <template>
<div class="flex mb-4">
<ui-input
v-model.lowercase="state.query"
autofocus
placeholder="Search or add column"
class="mr-2 flex-1"
@keyup.enter="addColumn"
@keyup.esc="$emit('close')"
/>
<ui-button variant="accent" @click="addColumn">Add</ui-button>
</div>
... | 15,641 |
https://github.com/MikeJi/hostboot/blob/master/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdRing.H | Github Open Source | Open Source | Apache-2.0 | 2,015 | hostboot | MikeJi | C | Code | 488 | 1,084 | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/hwpf/hwp/mvpd_accessors/getMBvpdRing.H $ */
/* ... | 36,490 |
https://github.com/kangdongmandoo/Document-Test/blob/master/script/view.js | Github Open Source | Open Source | MIT | 2,021 | Document-Test | kangdongmandoo | JavaScript | Code | 644 | 3,218 | const announce = document.getElementById("announce");
const welcome = document.getElementById("welcome");
const intro = document.getElementById("intro");
const me = document.getElementById("me");
const projects = document.getElementById("projects");
const projectsTheme = document.getElementById("projects-theme");
const... | 24,493 |
https://github.com/zhanglong11/vue-manage/blob/master/src/views/design/approval/lib/auditStatus.js | Github Open Source | Open Source | MIT | null | vue-manage | zhanglong11 | JavaScript | Code | 36 | 101 | export default [
{ label: '审核中', value: 1, color: '#eac80d' },
{ label: '审核通过', value: 2, color: '#009944' },
{ label: '驳回', value: 3, color: '#f54d4d' },
{ label: '未知', value: null, color: '#aaaaaa' }
]
| 36,514 |
https://github.com/egraba/vbox_openbsd/blob/master/VirtualBox-5.0.0/src/VBox/GuestHost/OpenGL/util/threads.c | Github Open Source | Open Source | MIT | 2,015 | vbox_openbsd | egraba | C | Code | 667 | 2,157 | /* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include <stdio.h>
#include "cr_threads.h"
#include "cr_error.h"
/* perror() messages */
#define INIT_TSD_ERROR "InitTSD: failed to allocate key"
#define FREE_TSD_... | 42,407 |
https://github.com/PowerMeMobile/fsharp/blob/master/src/fsharp/fsi/fsi.fs | Github Open Source | Open Source | Apache-2.0 | null | fsharp | PowerMeMobile | null | Spoken | 10,654 | 30,750 | //----------------------------------------------------------------------------
//
// Copyright (c) 2002-2011 Microsoft Corporation.
//
// This source code is subject to terms and conditions of the Apache License, Version 2.0. A
// copy of the license can be found in the License.html file at the root of this distribut... | 13,949 |
https://github.com/larryRishi/algorithm004-05/blob/master/Week 6/id_390/LeetCode_51_390.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | algorithm004-05 | larryRishi | Java | Code | 241 | 824 | //n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。
//
//
//
// 上图为 8 皇后问题的一种解法。
//
// 给定一个整数 n,返回所有不同的 n 皇后问题的解决方案。
//
// 每一种解法包含一个明确的 n 皇后问题的棋子放置方案,该方案中 'Q' 和 '.' 分别代表了皇后和空位。
//
// 示例:
//
// 输入: 4
//输出: [
// [".Q..", // 解法 1
// "...Q",
// "Q...",
// "..Q."],
//
// ["..Q.", // 解法 2
// "Q...",
// "...Q",
//... | 52,356 |
https://github.com/wilsonify/music21-tools/blob/master/publications/misc2010.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | music21-tools | wilsonify | Python | Code | 625 | 2,008 | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name: misc2010.py
# Purpose: demos from 2010
#
# Authors: Michael Scott Cuthbert
#
# Copyright: Copyright © 2010 Michael Scott Cuthbert and the music21 Project
# License: LGPL or BSD, see... | 35,122 |
https://github.com/aminehadefdev/binaire/blob/master/bin/cli.ts | Github Open Source | Open Source | ISC | 2,021 | binaire | aminehadefdev | JavaScript | Code | 182 | 619 | #!/usr/bin/env node
const [,, ...args] = (process.argv)
const version:string = require('../package.json').version
const converter = require('../index').default
const arrayArguments: Array<string> = [
"--version",
"-cdtb",
"-cbtd",
"-cstb",
"--help"
]
//--vertion
if(args.includes(arrayArguments[0]))... | 27,881 |
https://github.com/RobbWatershed/GalleryCherry/blob/master/app/src/main/java/me/devsaki/hentoid/parsers/content/HellpornoContent.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | GalleryCherry | RobbWatershed | Java | Code | 216 | 835 | package me.devsaki.hentoid.parsers.content;
import androidx.annotation.NonNull;
import org.jsoup.nodes.Element;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
import me.devsaki.hentoid.database.domains.Attribute;
import me.devsaki.hentoid.database.domains.AttributeMap;
import m... | 31,800 |
https://github.com/mrcao20/McQuickBoot/blob/master/McLogQt/include/McLog/Appender/impl/McRollingFileAppender.h | Github Open Source | Open Source | MIT | 2,020 | McQuickBoot | mrcao20 | C | Code | 283 | 675 | /*
* MIT License
*
* Copyright (c) 2021 mrcao20
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 6,789 |
https://github.com/ArielMant0/betri/blob/master/Type-BezierTriangleMesh/ObjectTypes/BezierTriangleMesh/boundVol/SimpleOptimizer.cc | Github Open Source | Open Source | BSD-3-Clause | 2,020 | betri | ArielMant0 | C++ | Code | 1,227 | 3,562 | // Copyright (c) 2019, the boundingmesh authors
// 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
/... | 27,858 |
https://github.com/Symplicity/subdivision-list/blob/master/data/en/php/subdivisions_TZ.php | Github Open Source | Open Source | MIT | 2,018 | subdivision-list | Symplicity | PHP | Code | 229 | 704 | <?php return array (
'TZ-01' => array('name' => 'Arusha', 'level' => 'region'),
'TZ-02' => array('name' => 'Dar es Salaam', 'level' => 'region'),
'TZ-03' => array('name' => 'Dodoma', 'level' => 'region'),
'TZ-04' => array('name' => 'Iringa', 'level' => 'region'),
'TZ-05' => array('name' => 'Kagera', 'level' =... | 10,690 |
https://github.com/teerasanqq/code-editor/blob/master/plugins/cordova-plugin-system/www/plugin.js | Github Open Source | Open Source | MIT | 2,022 | code-editor | teerasanqq | JavaScript | Code | 48 | 177 | window.system = {
getWebviewInfo: function (onSuccess, onFail) {
cordova.exec(onSuccess, onFail, "System", "get-webkit-info", []);
},
clearCache: function (onSuccess, onFail) {
cordova.exec(onSuccess, onFail, "System", "clear-cache", []);
},
enableFullScreen: function (onSuccess, onFail) {
cordova... | 204 |
https://github.com/volovikov/leda/blob/master/leda/components/Tooltip/theme.ts | Github Open Source | Open Source | MIT | 2,022 | leda | volovikov | TypeScript | Code | 30 | 95 | /* eslint-disable key-spacing */
export const defaultTooltipTheme = {
tooltip: 'tooltip',
top: 'tooltip top',
left: 'tooltip left',
right: 'tooltip right',
bottom: 'tooltip bottom',
wrapper: 'tool... | 10,751 |
https://github.com/rohitsakala/cf-operator/blob/master/pkg/kube/controllers/boshdeployment/controller.go | Github Open Source | Open Source | Apache-2.0 | null | cf-operator | rohitsakala | Go | Code | 140 | 565 | package boshdeployment
import (
"go.uber.org/zap"
corev1 "k8s.io/api/core/v1"
"sigs.k8s.io/controller-runtime/pkg/controller"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
"sigs.k8s.io/controller-runtime/pkg/handler"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/p... | 12,233 |
https://github.com/andreaTP/keycloak-quickstarts/blob/master/user-storage-simple/src/test/java/org/keycloak/quickstart/page/ConsolePage.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | keycloak-quickstarts | andreaTP | Java | Code | 47 | 216 | package org.keycloak.quickstart.page;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import static org.jboss.arquillian.graphene.Graphene.waitAjax;
/**
* @author <a href="mailto:bruno@abstractj.org">Bruno Oliveira</a>
*/
public class ConsolePage {
@FindBy(id = "user-name")
... | 31,716 |
https://github.com/changyubiao/practice-front-note/blob/master/JavaScript/001_day/js/myjs.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | practice-front-note | changyubiao | JavaScript | Code | 1 | 12 | alert('今天天气真好!') | 34,972 |
https://github.com/gdochadipa/praktikum/blob/master/resources/views/layout/admin/product_categories.blade.php | Github Open Source | Open Source | MIT | null | praktikum | gdochadipa | PHP | Code | 116 | 596 | @extends('components.admin.app_dash')
@section('title')
Product Categories
@endsection
@section('nav-categories')
active
@endsection
@section('content')
<div class="content">
@include('components.notification')
<div class="container-fluid">
<div class="row">
<div class="c... | 35,878 |
https://github.com/filipw/Strathweb.CacheOutput/blob/master/src/WebApi.OutputCache.Core/Constants.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Strathweb.CacheOutput | filipw | C# | Code | 40 | 101 | namespace WebApi.OutputCache.Core
{
public sealed class Constants
{
public const string ContentTypeKey = ":response-ct";
public const string EtagKey = ":response-etag";
public const string GenerationTimestampKey = ":response-generationtimestamp";
public const string CustomHeader... | 10,756 |
https://github.com/AmberThrall/lalrrb/blob/master/lib/lalrrb/lexer.rb | Github Open Source | Open Source | MIT | null | lalrrb | AmberThrall | Ruby | Code | 498 | 1,595 | # frozen_string_literal: true
module Lalrrb
TextPosition = Struct.new(:offset, :text) do
def line
text[..offset].count("\n") + 1
end
def column
offset - text[..offset].rindex("\n").to_i + 1
end
def to_i
offset
end
def to_s
"#{line}:#{column}"
end
end
cl... | 11,256 |
https://github.com/AiursoftWeb/Infrastructures/blob/master/src/Infrastructure/Warpgate.SDK/Models/AddressModels/ViewMyRecordsAddressModel.cs | Github Open Source | Open Source | MIT | 2,022 | Infrastructures | AiursoftWeb | C# | Code | 26 | 79 | using System.ComponentModel.DataAnnotations;
namespace Aiursoft.Warpgate.SDK.Models.AddressModels
{
public class ViewMyRecordsAddressModel
{
[Required]
public string AccessToken { get; set; }
public string Tag { get; set; }
}
}
| 51,841 |
https://github.com/TimScriptov/javaide/blob/master/app/src/main/java/proguard/classfile/instruction/ConstantInstruction.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | javaide | TimScriptov | Java | Code | 881 | 2,387 | /*
* ProGuard -- shrinking, optimization, obfuscation, and preverification
* of Java bytecode.
*
* Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publ... | 32,431 |
https://github.com/petercranmer/PersistentConnectionMonitor/blob/master/PersistentConnectionMonitor.Lib/IPersistentConnectionFactory.cs | Github Open Source | Open Source | BSD-3-Clause | null | PersistentConnectionMonitor | petercranmer | C# | Code | 11 | 38 | namespace PersistentConnectionMonitor.Lib
{
public interface IPersistentConnectionFactory
{
IPersistentConnection CreateConnection();
}
}
| 47,677 |
https://github.com/xiaowanzi123good/adversarial-polyglots/blob/master/scripts/translate_xnli.py | Github Open Source | Open Source | Apache-2.0 | null | adversarial-polyglots | xiaowanzi123good | Python | Code | 222 | 883 | import os
from transformers import (
MarianMTModel,
MarianTokenizer,
)
import json, argparse
from tqdm import tqdm
parser = argparse.ArgumentParser()
parser.add_argument("--data", "-d", default=None, type=str, required=True,
help="The input data file, e.g., 'data/XNLI/test.tsv'.")
parser.ad... | 37,975 |
https://github.com/Hang-Hu/ECollaboration-Web/blob/master/src/main/java/com/general/param/tutor/ProjectToUpdateParam.java | Github Open Source | Open Source | MIT | 2,019 | ECollaboration-Web | Hang-Hu | Java | Code | 183 | 522 | package com.general.param.tutor;
import java.util.ArrayList;
//putProject
public class ProjectToUpdateParam extends GlobalParam {
private String projectToken;
private String transactionToken;
private String title;
private String detail;
private int teamMax;
private int memberMin;
private int memberMax;
priva... | 2,117 |
https://github.com/Esri/dynamic-situational-awareness-qt/blob/master/Vehicle/VehicleStyles.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | dynamic-situational-awareness-qt | Esri | C++ | Code | 179 | 418 | /*******************************************************************************
* Copyright 2012-2018 Esri
*
* 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.o... | 3,472 |
https://github.com/kuraga/Web-Project-Smart-Boilerplate-2015/blob/master/api/helper.rb | Github Open Source | Open Source | MIT | 2,017 | Web-Project-Smart-Boilerplate-2015 | kuraga | Ruby | Code | 86 | 308 | module Helper
def get_state
substances_num = 1000 # 1 + 2 + 2*20 + 40*20 # система, в ней 2 зала, в каждом зале по 20 стоек с 20-ю серверами в каждой
state = (1..substances_num).inject({}) do |state, substance_id|
state[substance_id] = {
id: substance_id.to_s,
type: case substance_id... | 34,434 |
https://github.com/tinic/ledstickler/blob/master/artnet.cpp | Github Open Source | Open Source | MIT | null | ledstickler | tinic | C++ | Code | 241 | 884 | #include "./artnet.h"
#include "./color.h"
#include "./fixture.h"
#include <iterator>
#include <vector>
namespace ledstickler {
static constexpr color_convert<uint8_t> convert;
std::vector<std::vector<uint8_t>> create_artnet_output_packets(const fixture &f) {
std::vector<std::vector<uint8_t>> packets;
// h... | 31,942 |
https://github.com/PlanetxGear/PIC32MX_USBMSC_Driver_sample/blob/master/USB_Driver_sample.X/vSCSI_32.c | Github Open Source | Open Source | MIT | null | PIC32MX_USBMSC_Driver_sample | PlanetxGear | C | Code | 1,948 | 6,634 | /***************************************************************************//**
* @file vSCSI_32.c
* @brief SCSI COMAND CONTROLLER.
* it's designed to work in concert with vUSBMSC.
* @author hiroshi murakami
* @date 20190728
*
* This software is released under the MIT License, see LICENSE.md
****************... | 23,463 |
https://github.com/sora0077/iTunesKit/blob/master/MyPlayground.playground/Contents.swift | Github Open Source | Open Source | MIT | null | iTunesKit | sora0077 | Swift | Code | 147 | 609 | //: Playground - noun: a place where people can play
import UIKit
import iTunesKit
import APIKit
import XCPlayground
enum Error: APIKitErrorType {
case Unknown
static func networkError(error: ErrorType) -> Error {
return .Unknown
}
static func validationError(error: ErrorType) ... | 16,108 |
https://github.com/yy-nm/redisclienttool/blob/master/redisclient/command.cpp | Github Open Source | Open Source | MIT | 2,018 | redisclienttool | yy-nm | C++ | Code | 324 | 1,129 |
#include "command.h"
#include <sstream>
using namespace redis_client;
const std::string Command::kRedisCommand_Array_Prefix = "*";
const std::string Command::kRedisCommand_String_Prefix = "$";
const std::string Command::kRedisCommand_Split = "\r\n";
Command::Command()
{
}
redis_client::Command::Command(Command... | 41,444 |
https://github.com/GloryWong/studio/blob/master/src/lib/path.ts | Github Open Source | Open Source | MIT | null | studio | GloryWong | TypeScript | Code | 52 | 132 | import { join } from 'path';
class Path {
#root = '';
set ROOT(val: string) {
this.#root = val;
}
get ROOT(): string {
return this.#root;
}
get STORAGE(): string {
return join(this.#root, '.storage');
}
get LOG_DIR(): string {
return join(this.#root, '.log');
}
}
const path = new... | 361 |
https://github.com/hasktorch/hasktorch/blob/master/experimental/gradually-typed/test/Torch/GraduallyTyped/NN/Transformer/GBlockSpec.hs | Github Open Source | Open Source | BSD-3-Clause | 2,023 | hasktorch | hasktorch | Haskell | Code | 426 | 1,136 | {-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -v2 #-}
module Torch.GraduallyTyped.NN.Transformer.GBlockSpec where
import Control.Monad.State (evalStateT)
import qualified Data.... | 31,841 |
https://github.com/up201806330/Armour-Game/blob/master/Assets/Scripts/Drawer/DrawerController.cs | Github Open Source | Open Source | MIT | null | Armour-Game | up201806330 | C# | Code | 282 | 1,111 | using System;
using System.Collections.Generic;
using System.Linq;
using Body;
using Body.BodyType;
using PartCompleteMenu;
using UnityEngine;
using Object = UnityEngine.Object;
using Random = UnityEngine.Random;
namespace Drawer
{
public class DrawerController : MonoBehaviour
{
public static DrawerCo... | 37,133 |
https://github.com/polarityio/shodan-enterprise/blob/master/src/refreshInternetDb/downloadCompressedDatabase.js | Github Open Source | Open Source | MIT | null | shodan-enterprise | polarityio | JavaScript | Code | 127 | 426 | const fs = require('fs');
const request = require('request');
const { COMPRESSED_DB_FILEPATH } = require('../constants');
const { getFileSizeInGB } = require('../dataTransformations');
const { setLocalStorageProperty } = require('./localStorage');
const { shouldSkipCompressedDatabaseDownload } = require('./fileChecks'... | 35,270 |
https://github.com/leonwanghui/graphengine/blob/master/src/ge/single_op/stream_resource.cc | Github Open Source | Open Source | Apache-2.0, LGPL-2.1-only, MPL-1.0, MPL-2.0-no-copyleft-exception, GPL-2.0-only, BSD-3-Clause, AGPL-3.0-only, MPL-1.1, MPL-2.0, MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | graphengine | leonwanghui | C++ | Code | 429 | 1,321 | /**
* Copyright 2019-2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 28,835 |
https://github.com/Statev7/SoccerAPI/blob/master/SoccerAPI/Common/SoccerAPI.Common/Constants/GlobalConstants.cs | Github Open Source | Open Source | MIT | null | SoccerAPI | Statev7 | C# | Code | 100 | 283 | namespace SoccerAPI.Common.Constants
{
public static class GlobalConstants
{
public const string USER_ROLE_NAME = "User";
public const string USER_EMAIL = "user@user.com";
public const string USER_PASSWORD = "User";
public const string USER_FIRST_NAME = "userFistName";
p... | 12,478 |
https://github.com/SagarPaul007/weather-app-nodejs/blob/master/src/app.js | Github Open Source | Open Source | MIT | null | weather-app-nodejs | SagarPaul007 | JavaScript | Code | 221 | 793 | const request = require('request')
const path = require('path')
const express = require('express')
const hbs = require('hbs')
const app = express()
const port = process.env.PORT || 3000
const publicPath = path.join(__dirname, '../public')
app.set('view engine', 'hbs')
app.set('views', path.join(__dirname, '../templa... | 24,113 |
https://github.com/helori/laravel-cms/blob/master/src/Models/Admin.php | Github Open Source | Open Source | MIT | 2,017 | laravel-cms | helori | PHP | Code | 54 | 195 | <?php
namespace Helori\LaravelCms\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Helori\LaravelCms\Notifications\AdminResetPassword as ResetPasswordNotification;
//use Laravel\Scout\Searchable;
class Admin extends Authenticatable
{
use Notifiable; //... | 5,184 |
https://github.com/gribdesbois/ganister-test-react/blob/master/vite-project/dmPatcher/fixDatamodelIds.js | Github Open Source | Open Source | MIT | null | ganister-test-react | gribdesbois | JavaScript | Code | 91 | 360 | const fs = require('fs');
const datamodelMethods = require('../api/middlewares/datamodelMethods');
const coreDmFile = './build/ganisterDatamodel.json';
const customDmFile = './build/datamodel.json';
const checkDmFile = './test/assets/5-check.json';
let coreDm = {};
let customDm = {};
fs.readFile(coreDmFile, { encoding... | 10,434 |
https://github.com/lhfei/cloud-doc/blob/master/Pipeline/DolphineScheduler/dag-scheduler/sql/sql/upgrade/2.0.0_schema/mysql/dolphinscheduler_ddl.s | Github Open Source | Open Source | Apache-2.0 | 2,023 | cloud-doc | lhfei | null | Spoken | 2,194 | 6,744 | /*
* 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 may ... | 7,449 |
https://github.com/valnoc/Demo-VK-Challenge/blob/master/VKMC_valeriy_bezuglyy/Layers/Application/AppDelegate.swift | Github Open Source | Open Source | MIT | null | Demo-VK-Challenge | valnoc | Swift | Code | 114 | 362 | //
// AppDelegate.swift
// VKMC_valeriy_bezuglyy
//
// Created by Valeriy Bezuglyy on 09/11/2018.
// Copyright © 2018 Valeriy Bezuglyy. All rights reserved.
//
import UIKit
import VKSdkFramework
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
var appFactor... | 13,735 |
https://github.com/xiren/Play2-Demo/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,015 | Play2-Demo | xiren | Ignore List | Code | 15 | 54 | logs
target
bin
/.idea
/.idea_modules
/.classpath
/.project
/.settings
/.cache
/.history
/RUNNING_PID
.cache-main
.cache-tests
.log
activator* | 15,767 |
https://github.com/cianmj/nrc/blob/master/BLAS_routines/test.f | Github Open Source | Open Source | MIT | 2,013 | nrc | cianmj | null | Spoken | 6 | 29 | write(6,*) dble( (3.d0,4.d0) )
stop
end
| 17,631 |
https://github.com/tlienart/Surrogates.jl/blob/master/test/GEK.jl | Github Open Source | Open Source | MIT | 2,020 | Surrogates.jl | tlienart | Julia | Code | 118 | 488 | using Surrogates
#1D
n = 10
lb = 0.0
ub = 5.0
x = sample(n,lb,ub,SobolSample())
f = x-> x^2
y1 = f.(x)
der = x->2*x
y2 = der.(x)
y = vcat(y1,y2)
my_gek = GEK(x,y,lb,ub)
val = my_gek(2.0)
std_err = std_error_at_point(my_gek,1.0)
add_point!(my_gek,2.5,2.5^2)
#ND
n = 10
d = 2
lb = [0.0,0.0]
ub = [5.0,5.0]
x = sample(n,... | 28,035 |
https://github.com/thanhbobo/Du_an_demo/blob/master/app/Http/Controllers/SlideController.php | Github Open Source | Open Source | MIT | null | Du_an_demo | thanhbobo | PHP | Code | 154 | 710 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Slide;
class SlideController extends Controller
{ public function getDanhsach()
{
$slide = Slide::all();
return view('Admin.Slide.danhsach',['slide'=>$slide]);
}
public function getSua($id)
{
$slide = Slide::... | 8,236 |
https://github.com/vivint-smarthome/tower-hawk/blob/master/server/src/main/java/org/towerhawk/monitor/reader/CheckWatcher.java | Github Open Source | Open Source | Apache-2.0 | null | tower-hawk | vivint-smarthome | Java | Code | 355 | 1,169 | package org.towerhawk.monitor.reader;
import lombok.extern.slf4j.Slf4j;
import org.towerhawk.monitor.MonitorService;
import org.towerhawk.spring.config.Configuration;
import javax.inject.Inject;
import javax.inject.Named;
import java.io.IOException;
import java.nio.file.*;
import java.util.HashMap;
import java.util.M... | 43,021 |
https://github.com/shosti/ruby-jperf/blob/master/lib/ruby-jperf.rb | Github Open Source | Open Source | MIT | 2,014 | ruby-jperf | shosti | Ruby | Code | 12 | 65 | module RubyJperf
autoload :Version, 'ruby-jperf/version'
autoload :Configuration, 'ruby-jperf/configuration'
autoload :Runner, 'ruby-jperf/runner'
end
| 19,529 |
https://github.com/andikabahari/pdmulyatani/blob/master/application/helpers/format_rupiah_helper.php | Github Open Source | Open Source | MIT | null | pdmulyatani | andikabahari | PHP | Code | 10 | 33 | <?php
function format_rupiah($value)
{
return number_format($value, 2, ',', '.');
} | 3,864 |
https://github.com/typebytes/ngx-template-streams/blob/master/projects/ngx-template-streams/schematics/src/ng-add/version-names.ts | Github Open Source | Open Source | MIT | 2,019 | ngx-template-streams | typebytes | TypeScript | Code | 5 | 17 | export const ngxBuildPlusVersion = '^8.0.3';
| 19,632 |
https://github.com/jbforth4/foodsaving-frontend/blob/master/client/app/components/landingPage/_landingPageMap/_groupPopup/groupPopup.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,017 | foodsaving-frontend | jbforth4 | JavaScript | Code | 25 | 85 | import angular from "angular";
import uiRouter from "angular-ui-router";
import groupPopupComponent from "./groupPopup.component";
let groupPopupModule = angular.module("groupPopup", [
uiRouter
])
.component("groupPopup", groupPopupComponent)
.name;
export default groupPopupModule;
| 35,243 |
https://github.com/netarrow/Microsoft-Teams-Samples/blob/master/samples/tab-graph-toolkit/csharp/TabGraphToolkit/clientapp/src/index.tsx | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | Microsoft-Teams-Samples | netarrow | TSX | Code | 93 | 366 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { Providers } from '@microsoft/mgt-element';
import { TeamsMsal2Provider } from '@microsoft/mgt-teams-msal2-provider';
import * as MicrosoftTeams from "@microsoft/teams-js";
import { Route, BrowserRouter } from 'reac... | 48,741 |
https://github.com/CMS-TMTT/cmssw/blob/master/RecoTauTag/TauTagTools/xml/MVAConfigBuilder.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | cmssw | CMS-TMTT | Python | Code | 174 | 529 | #!/usr/bin/env python
"""
MVAConfigBuilder.py
Author: Evan K. Friis, UC Davis friis@physics.ucdavis.edu
Usage: Any objects with file type [name].mvac will be turned into [name].xml with the correct format
A configuration script to automate changes in available MVA input variables (for the PhysicsTools/MVAComputer f... | 24,024 |
https://github.com/dimagi/commcare-hq/blob/master/corehq/apps/hqadmin/management/commands/delete_related_cases.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | commcare-hq | dimagi | Python | Code | 257 | 961 | import sys
from django.core.management import BaseCommand
import csv
from corehq.apps.receiverwrapper.util import get_app_version_info
from corehq.apps.users.util import cached_owner_id_to_display
from corehq.form_processor.models import CommCareCase, XFormInstance
class Command(BaseCommand):
help = "Delete al... | 13,313 |
https://github.com/avaio-vrn/template-system/blob/master/app/assets/javascripts/ckeditor/plugins/oembed/lang/ru.js | Github Open Source | Open Source | MIT | null | template-system | avaio-vrn | JavaScript | Code | 83 | 256 | CKEDITOR.plugins.setLang('oembed', 'ru', {
title : "Внедрить медиа-контент (Фото, Видео и т.д.)",
button : "Внедрить медиа-контент с различных сайтов",
pasteUrl : "Вставьте ссылку на страницы с медиа-контентом (e.g. YouTube, Flickr, Qik, Vimeo, Hulu, Viddler, MyOpera, etc.)",
width : "Макс. ширина:",
... | 3,581 |
https://github.com/ndvalkov/TelerikAcademy2016/blob/master/Homework/DSA/EXAM_day2/ExamDay2/Problem1/Solution.cs | Github Open Source | Open Source | MIT | null | TelerikAcademy2016 | ndvalkov | C# | Code | 773 | 2,261 | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Problem1
{
class Solution
{
private static int nodesVisited = 0;
private static int exitRow;
private static int exitCol;
private stat... | 37,744 |
https://github.com/vanncho/DatabasesAdvancedHibernate/blob/master/midtermExam/src/main/java/app/services/PlanetService.java | Github Open Source | Open Source | MIT | null | DatabasesAdvancedHibernate | vanncho | Java | Code | 21 | 92 | package app.services;
import app.entities.planets.Planet;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface PlanetService {
void create(Planet planet);
Planet findPlanetByName(String name);
List<Planet> findWithNoTeleportedPeople();
}
| 15,044 |
https://github.com/lechium/tvOS135Headers/blob/master/usr/libexec/teslad/CCDDeviceUploadRetrieveRequestTypesRequest.h | Github Open Source | Open Source | MIT | 2,020 | tvOS135Headers | lechium | C | Code | 48 | 163 | //
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Jun 10 2020 10:03:13).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import "CCDDeviceUploadRequest.h"
@interface CCDDeviceUploadRetrieveRequestTypesRequest : CCDDeviceUploadRequest
{
}
- (id)endpointPath; // IMP=... | 43,508 |
https://github.com/promtom/CharacterPlanner/blob/master/resources/views/konten/karakter/add.blade.php | Github Open Source | Open Source | MIT | null | CharacterPlanner | promtom | PHP | Code | 169 | 813 | @extends('layouts.main')
@section('title', 'Character')
@section('animeted', 'bounce')
@section('subtitle', 'Add Character')
@section('content')
<div class="page-inner mt-2">
<div class="container">
<div class="row">
<div class="col">
<div class="card">
... | 20,286 |
https://github.com/TeaCult/Energy-Sink-and-AFM/blob/master/E-Sink and AFM Mathematica Codes/sdk_graphingAndExporting.nb | Github Open Source | Open Source | BSD-3-Clause | null | Energy-Sink-and-AFM | TeaCult | Mathematica | Code | 1,640 | 8,310 | (* Content-type: application/mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 7.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 145, 7]
NotebookDataLength[ 24121,... | 2,350 |
https://github.com/sitedata/checklyhq.com/blob/master/site/content/samples/puppeteer/basic-browser-waiting.js | Github Open Source | Open Source | MIT | 2,021 | checklyhq.com | sitedata | JavaScript | Code | 30 | 118 | const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto('https://danube-store.herokuapp.com/')
await page.click('#login')
await page.waitForSelector('#n-email')
await page.type('#n-email', 'user@example.com')
awa... | 42,924 |
https://github.com/Looxoor/qw4z1bot/blob/master/src/handlers/inputHandler.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | qw4z1bot | Looxoor | JavaScript | Code | 135 | 431 | import * as jeeves from '../services/jeeves';
import * as bone from '../services/bone';
import * as martinez from '../services/martinez';
import * as bronas from '../services/bronas';
import * as boegivar from '../services/boegivar';
import * as tourettes from '../services/tourettes';
export function handleBoegivar(bo... | 34,123 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.