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/OfficeDev/Interop-TestSuites/blob/master/FileSyncandWOPI/Source/Common/ONESTORE/OtherStructures/PropertyID.cs | Github Open Source | Open Source | MIT | 2,023 | Interop-TestSuites | OfficeDev | C# | Code | 541 | 1,295 | namespace Microsoft.Protocols.TestSuites.MS_ONESTORE
{
using Common;
using System;
using System.Collections.Generic;
/// <summary>
/// This class is used to represent a PropertyID.
/// </summary>
public class PropertyID
{
/// <summary>
/// Gets or sets the value of id f... | 10,372 |
https://github.com/bytecodealliance/wasmtime/blob/master/winch/src/filetests.rs | Github Open Source | Open Source | LLVM-exception, Apache-2.0 | 2,023 | wasmtime | bytecodealliance | Rust | Code | 68 | 240 | use std::process::Command;
use anyhow::Result;
use clap::Parser;
#[derive(Parser, Debug)]
pub struct Options {
/// Passes extra arguments to `cargo test --package winch-filetests`. For example, to run a single
/// test, use `-- --test-threads 1 --test single_test_name`.
#[clap(last = true, value_parser)]
... | 32,516 |
https://github.com/Death-123/ZenScript/blob/master/client/extension.ts | Github Open Source | Open Source | MIT | null | ZenScript | Death-123 | TypeScript | Code | 239 | 704 | import * as path from 'path';
import { ExtensionContext, workspace } from 'vscode';
import {
LanguageClient,
LanguageClientOptions,
ServerOptions,
TransportKind,
} from 'vscode-languageclient';
import {
CommandHistoryEntryAdd,
CommandHistoryEntryGet,
} from './command/historyEntry';
import { CommandOpenFile... | 18,405 |
https://github.com/Straivers/shiny/blob/master/src/paint.rs | Github Open Source | Open Source | MIT | null | shiny | Straivers | Rust | Code | 44 | 113 | use crate::color::Color;
#[derive(Clone, Copy)]
pub struct Paint {
pub handle: u64,
}
impl Paint {
pub(crate) fn new(handle: u64) -> Self {
Paint { handle }
}
}
#[derive(Clone, Debug, Default, Hash, PartialEq)]
pub struct PaintConfig {
pub fill_color: Color,
pub stroke_color: Color,
}
| 14,228 |
https://github.com/TrompoGames/Ejecta/blob/master/Source/Ejecta/EJCanvas/2D/EJCanvasPattern.h | Github Open Source | Open Source | MIT | 2,023 | Ejecta | TrompoGames | Objective-C | Code | 74 | 241 | // The CanvasPattern is a simple wrapper around EJTexture. Actual rendering of a
// pattern is handled in EJCanvasContext2D by the pushPatternedRect method.
#import <Foundation/Foundation.h>
#import "EJTexture.h"
#import "EJCanvasContext2D.h"
typedef enum {
kEJCanvasPatternNoRepeat = 0,
kEJCanvasPatternRepeatX = 1,... | 9,046 |
https://github.com/BMDSoftware/X/blob/master/utils/upload.py | Github Open Source | Open Source | MIT | 2,019 | X | BMDSoftware | Python | Code | 88 | 212 | #!/usr/bin/env python
#
# The XBUILD uploader.
#
# (c) 2012 The XTK Developers <dev@goXTK.com>
#
import sys
from _core import *
#
# entry point
#
if __name__ == "__main__":
entrypoint = Entrypoint( description='Upload build and test results of ' + SOFTWARE_SHORT + ' to the public dashboard.' )
# add submission... | 38,468 |
https://github.com/highfield/SimpleExpressionParser2/blob/master/SimpleExpressionParser2/Expression/Tokens/OperationTokens.cs | Github Open Source | Open Source | MIT | null | SimpleExpressionParser2 | highfield | C# | Code | 1,652 | 5,239 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
/**
* Tabella delle priorità
* Vedi: https://www.tutorialspoint.com/csharp/csharp_operators_precedence.htm
*
* Prio Category Operator
* ------------------------... | 34,472 |
https://github.com/alex-bes/docker-python3/blob/master/Dockerfile | Github Open Source | Open Source | MIT | 2,016 | docker-python3 | alex-bes | Dockerfile | Code | 95 | 337 | FROM logicify/centos7
MAINTAINER "Dmitry Berezovsky <dmitry.berezovsky@logicify.com>"
ENV APPLICATION_DIR="/srv/application"
# Install required packages
RUN yum -y install python34 python-virtualenv postgresql-devel gcc python34-devel \
libtiff-devel libjpeg-devel libzip-devel freetype-devel lcms2-devel libwebp-dev... | 50,151 |
https://github.com/lfritz/clwrapper/blob/master/test/needsclcontext.h | Github Open Source | Open Source | BSL-1.0, MIT | 2,014 | clwrapper | lfritz | C++ | Code | 33 | 86 | #pragma once
#include "needscldevice.h"
class ClContext;
// Superclass for test fixtures that need a ClContext object.
class NeedsClContext : public NeedsClDevice {
protected:
ClContext * c;
NeedsClContext();
virtual ~NeedsClContext();
virtual void SetUp();
};
| 31,563 |
https://github.com/shivral/cf/blob/master/0000/30/35a.cpp | Github Open Source | Open Source | Unlicense | 2,021 | cf | shivral | C++ | Code | 68 | 190 | #include <iostream>
int main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
unsigned x;
std::cin >> x;
unsigned g[3] = { 1, 2, 3 };
for (size_t i = 0; i < 3; ++i) {
unsigned a, b;
std::cin >> a >> b;
std::swap(g[a-1], g[b-1]);
}
for... | 47,174 |
https://github.com/anoduck/fbcrawl/blob/master/fbcrawl/items.py | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,021 | fbcrawl | anoduck | Python | Code | 2,483 | 7,893 | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.loader.processors import TakeFirst, Join, MapCompose
from datetime import datetime, timedelta
import requests
def comments_strip(string, lo... | 19,631 |
https://github.com/domohuhn/mutation-test/blob/master/lib/mutation-test.dart | Github Open Source | Open Source | BSD-3-Clause | null | mutation-test | domohuhn | Dart | Code | 947 | 2,526 | /// Copyright 2021, domohuhn.
/// License: BSD-3-Clause
/// See LICENSE for the full text of the license
import 'dart:io';
import 'mutations.dart';
import 'test-runner.dart';
import 'errors.dart';
import 'configuration.dart';
import 'report-format.dart';
import 'builtin-rules.dart';
import 'mutation-progress-bar.da... | 13,224 |
https://github.com/samperson1997/Trillionaire/blob/master/Trillionaire/web/js/strategy/editor.js | Github Open Source | Open Source | MIT | 2,018 | Trillionaire | samperson1997 | JavaScript | Code | 75 | 467 | window.onload = init;
function init() {
//初始化对象
editor = ace.edit("code");
//设置风格和语言
theme = "xcode"
language = "python"
editor.setTheme("ace/theme/" + theme);
editor.session.setMode("ace/mode/" + language);
//字体大小
editor.setFontSize("50%");
//设置只读(true时只读,用于展示代码)
editor.... | 30,205 |
https://github.com/open-mmlab/mmdeploy/blob/master/csrc/mmdeploy/apis/java/native/mmdeploy_Context.cpp | Github Open Source | Open Source | Apache-2.0 | 2,023 | mmdeploy | open-mmlab | C++ | Code | 112 | 662 | #include "mmdeploy_Context.h"
#include <numeric>
#include "mmdeploy/apis/c/mmdeploy/common.h"
#include "mmdeploy/apis/c/mmdeploy/executor.h"
#include "mmdeploy/apis/c/mmdeploy/model.h"
#include "mmdeploy/apis/java/native/common.h"
#include "mmdeploy/core/logger.h"
jlong Java_mmdeploy_Context_create(JNIEnv *env, jobj... | 1,871 |
https://github.com/BU-LINC-3/banggooseok-flutter/blob/master/banggooseok/lib/repository/banggooseok/repository.dart | Github Open Source | Open Source | Apache-2.0 | 2,021 | banggooseok-flutter | BU-LINC-3 | Dart | Code | 95 | 550 | import 'dart:io';
import 'package:banggooseok/repository/banggooseok/model.dart';
import 'package:retrofit/retrofit.dart';
import 'package:dio/dio.dart';
part 'repository.g.dart';
@RestApi(baseUrl: 'http://34.64.218.185:8080/')
abstract class BanggooseokRepository {
factory BanggooseokRepository({String baseUrl... | 53,869 |
https://github.com/cms-sw/cmssw/blob/master/SimDataFormats/GeneratorProducts/src/GenEventInfoProduct.cc | Github Open Source | Open Source | Apache-2.0 | 2,023 | cmssw | cms-sw | C++ | Code | 187 | 1,131 | #include <functional>
#include <numeric>
using std::ptrdiff_t;
#include <HepMC/GenEvent.h>
#include <HepMC/WeightContainer.h>
#include <HepMC/PdfInfo.h>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
using namespace edm;
using na... | 25,872 |
https://github.com/protocode-community/project-protocode-dashboard/blob/master/main.js | Github Open Source | Open Source | CC-BY-4.0 | null | project-protocode-dashboard | protocode-community | JavaScript | Code | 171 | 777 | // Random Background Unsplash API
fetch(`https://source.unsplash.com/1920x1080/?tech,programming`)
// .then(res => res.json())
.then(data => {
console.log(data)
document.body.style.background = `linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
rgba(0,0,0,0.3) url(${data.url}) cen... | 47,807 |
https://github.com/Vichukano/job4j/blob/master/middle/chapter_2/springmvc/src/main/java/ru/job4j/restapplication/WebAppInit.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | job4j | Vichukano | Java | Code | 92 | 451 | package ru.job4j.restapplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springf... | 20,755 |
https://github.com/vincent-winner/toolset/blob/master/image/src/main/java/io/vincentwinner/toolset/image/testui/menuitem/filter/blur/MedianBlurMenuItem.java | Github Open Source | Open Source | Apache-2.0 | null | toolset | vincent-winner | Java | Code | 181 | 779 | package io.vincentwinner.toolset.image.testui.menuitem.filter.blur;
import io.vincentwinner.toolset.image.filter.blur.MedianBlur;
import io.vincentwinner.toolset.image.testui.ImageViewPanel;
import io.vincentwinner.toolset.image.testui.TestFrame;
import org.bytedeco.opencv.opencv_core.Mat;
import javax.swing.*;
impor... | 31,268 |
https://github.com/fmisha1150/blockset-walletkit/blob/master/WalletKitSwift/WalletKitDemo/Source/SummaryViewController.swift | Github Open Source | Open Source | MIT | 2,021 | blockset-walletkit | fmisha1150 | Swift | Code | 725 | 2,369 | //
// SummaryViewController.swift
// CoreDemo
//
// Created by Ed Gamble on 7/26/18.
// Copyright © 2018-2019 Breadwallet AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
//
import UIKit
i... | 31,339 |
https://github.com/trogers-twilio/plugin-park-multi-call-handling/blob/master/src/services/TaskService.js | Github Open Source | Open Source | MIT | 2,020 | plugin-park-multi-call-handling | trogers-twilio | JavaScript | Code | 578 | 1,717 | import { Actions, Notifications } from '@twilio/flex-ui';
import ConferenceService from './ConferenceService';
import FlexState from '../states/FlexState';
import utils from '../utils/utils';
import {
SegmentTypes,
SidPrefixes,
TransferModes,
CustomNotifications
} from '../utils/enums';
class TaskService {
/... | 51,151 |
https://github.com/jsravn/nixfiles/blob/master/modules/services/printers.nix | Github Open Source | Open Source | MIT | 2,020 | nixfiles | jsravn | null | Spoken | 76 | 250 | { config, options, pkgs, lib, ... }:
with lib; {
options.modules.services.printers = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.services.printers.enable {
services.printing.enable = true;
services.printing.drivers = with pkgs; [ brlase... | 26,289 |
https://github.com/penzance/canvas-data-tools/blob/master/data_client/src/main/java/edu/harvard/data/client/canvas/tables/DiscussionTopicDim.java | Github Open Source | Open Source | MIT | 2,015 | canvas-data-tools | penzance | Java | Code | 652 | 2,025 | // This file was generated on 29-10-2015 01:16:10. Do not manually edit.
// This class is based on Version 1.0.0 of the Canvas Data schema
package edu.harvard.data.client.canvas.tables;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.csv.CSVRecord;
impor... | 18,658 |
https://github.com/zachwood0s/Factoprint/blob/master/js/InputManager.ts | Github Open Source | Open Source | MIT | 2,018 | Factoprint | zachwood0s | TypeScript | Code | 223 | 865 | import {Point} from "./Utils"
const enum KeyBindings{
MoveRight = 68,
MoveLeft = 65,
MoveUp = 87,
MoveDown = 83,
LineSnap = 16,
ToggleMenu = 69,
DropItem = 81,
Rotate = 82,
}
class InputManager{
private static keys: boolean[] = [];
static readonly mouse_position: Point = new Po... | 7,188 |
https://github.com/mallymal777/Proton/blob/master/lsteamclient/struct_converters_147.cpp | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,021 | Proton | mallymal777 | C++ | Code | 3,960 | 17,948 | #include "steam_defs.h"
#pragma push_macro("__cdecl")
#undef __cdecl
#include "steamworks_sdk_147/steam_api.h"
#include "steamworks_sdk_147/isteamgameserver.h"
#include "steamworks_sdk_147/isteamnetworkingsockets.h"
#include "steamworks_sdk_147/isteamgameserverstats.h"
#include "steamworks_sdk_147/isteamgamecoordinator... | 23,231 |
https://github.com/tharangar/k8s-webserver/blob/master/webserver/app-moe/sql/Archive/3.5.x/3.5.6/POCOR-2997/rollback.sql | Github Open Source | Open Source | Apache-2.0 | 2,019 | k8s-webserver | tharangar | SQL | Code | 29 | 88 | -- delete new table
DROP TABLE `staff_training_needs`;
-- rename back the backup table
ALTER TABLE `z_2997_staff_training_needs`
RENAME TO `staff_training_needs` ;
-- db_patches
DELETE FROM `db_patches` WHERE `issue` = 'POCOR-2997'; | 41,880 |
https://github.com/Dashon/VP_heroku/blob/master/app/Services/Cashier.php | Github Open Source | Open Source | MIT | null | VP_heroku | Dashon | PHP | Code | 329 | 1,460 | <?php
namespace App\Services;
use App\Donation;
use App\Notifications\Donation\CanceledRecurringDonation;
use App\Notifications\Donation\NewOneTimeDonation;
use App\Notifications\Donation\NewRecurringDonation;
use App\Notifications\Donation\NewRoundUpDonation;
use App\Notifications\Donation\PausedRecurringDonation;
u... | 18,905 |
https://github.com/jsastriawan/wsman-mei-library/blob/master/MEIClient/AMTHIClient/Include/GetDNSSuffixCommand.h | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,020 | wsman-mei-library | jsastriawan | C++ | Code | 144 | 610 | /* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2010-2019 Intel Corporation
*/
/*++
@file: GetDNSSuffixCommand.h
--*/
#ifndef __GET_DNS_SUFFIX_COMMAND_H__
#define __GET_DNS_SUFFIX_COMMAND_H__
#include "AMTHICommand.h"
#include "AmtAnsiString.h"
namespace Intel
{
namespace MEI_Client
{
namespace ... | 6,088 |
https://github.com/zooniverse/panoptes-cli/blob/master/panoptes_cli/commands/workflow.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | panoptes-cli | zooniverse | Python | Code | 488 | 1,943 | import yaml
import click
from panoptes_cli.scripts.panoptes import cli
from panoptes_client import Workflow
@cli.group()
def workflow():
"""Contains commands for managing workflows."""
pass
@workflow.command()
@click.argument('workflow-id', required=False, type=int)
@click.option(
'--project-id',
... | 43,759 |
https://github.com/youngytj/LuBan/blob/master/luban.infrastructure.abs/src/main/java/org/tianjyan/luban/infrastructure/abs/ILBApp.java | Github Open Source | Open Source | MIT | 2,019 | LuBan | youngytj | Java | Code | 16 | 55 | package org.tianjyan.luban.infrastructure.abs;
import android.content.Context;
public interface ILBApp {
Context getContext();
String getSetting(SettingKey key, String defaultValue);
}
| 27,195 |
https://github.com/KerryL/eBirdDataProcessor/blob/master/src/bestObservationTimeEstimator.cpp | Github Open Source | Open Source | MIT | null | eBirdDataProcessor | KerryL | C++ | Code | 829 | 2,729 | // File: bestObservationTimeEstimator.cpp
// Date: 12/4/2017
// Auth: K. Loux
// Desc: Object for estimating best observation times based on observation history.
// Local headers
#include "bestObservationTimeEstimator.h"
#include "kernelDensityEstimation.h"
// Standard C++ headers
#include <algorithm>
#include <c... | 169 |
https://github.com/microsoft/BotFramework-Composer/blob/master/Composer/packages/adaptive-form/src/utils/getHiddenProperties.ts | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,023 | BotFramework-Composer | microsoft | TypeScript | Code | 68 | 180 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { UIOptions } from '@bfc/extension-client';
export const globalHiddenProperties = ['$kind', '$id', '$copy', '$designer', 'id', 'disabled'];
export const getHiddenProperties = (uiOptions: UIOptions, value: any) => {
const hiddenProper... | 12,960 |
https://github.com/reginaldosoares/hackmenu/blob/master/src/main/java/com/example/application/views/crud/CrudView.java | Github Open Source | Open Source | Unlicense | null | hackmenu | reginaldosoares | Java | Code | 155 | 864 | package com.example.application.views.crud;
import com.example.application.data.entity.Group;
import com.example.application.data.entity.User;
import com.example.application.data.service.GroupService;
import com.example.application.service.UserService;
import com.example.application.views.MainLayout;
import com.vaadin... | 1,806 |
https://github.com/svalgaard/macports-ports/blob/master/emulators/virtualbox/files/patch-vde.diff | Github Open Source | Open Source | BSD-3-Clause | 2,021 | macports-ports | svalgaard | null | Spoken | 95 | 349 | --- configure.orig 2011-08-15 19:38:16.000000000 -0500
+++ configure 2011-08-15 19:38:16.000000000 -0500
@@ -2605,7 +2605,7 @@
fi
# VDE
-if [ "$OS" = "linux" -o "$OS" = "freebsd" ]; then
+if [ "$OS" = "linux" -o "$OS" = "freebsd" -o "$OS" = "darwin" ]; then
if [ $WITH_VDE -eq 1 ]; then
cnf_append "VBOX_WITH... | 30,961 |
https://github.com/PaleSC2/nova-core/blob/master/lib/constants.js | Github Open Source | Open Source | MIT | 2,020 | nova-core | PaleSC2 | JavaScript | Code | 42 | 118 | /**
* @fileOverview Nova constants.
* @author <a href="mailto:paleciop@gmail.com">Pablo Alecio</a>
*/
'use strict';
/**
* Exports a frozen object with the project constants.
* @module lib/constants
* @type {Object}
*/
module.exports = Object.freeze({
NAME: 'name',
BLANK: '',
DOT: '.',
JS_EXT: '.js'
});
| 35,229 |
https://github.com/JakeHedman/firetree/blob/master/src/parser/nodes/Expression.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | firetree | JakeHedman | JavaScript | Code | 234 | 632 | import { slice } from 'ramda'
import { findIdentifier } from '../../ast'
import { NodeTypes } from '../../constants'
import generateTokenList from '../../generator/generateTokenList'
import parseNextNode from '../util/parseNextNode'
import testNextNode from '../util/testNextNode'
const Expression = {
identify: (con... | 14,669 |
https://github.com/YeGuangjun/eagle-oj-api/blob/master/eagle-oj-web/src/main/java/com/eagleoj/web/service/impl/GroupUserServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | eagle-oj-api | YeGuangjun | Java | Code | 307 | 1,361 | package com.eagleoj.web.service.impl;
import com.eagleoj.web.controller.exception.WebErrorException;
import com.eagleoj.web.dao.GroupUserMapper;
import com.eagleoj.web.entity.GroupEntity;
import com.eagleoj.web.entity.GroupUserEntity;
import com.eagleoj.web.entity.UserEntity;
import com.eagleoj.web.postman.TaskQueue;
... | 50,075 |
https://github.com/Hilsonxhero/digicourse/blob/master/modules/Course/src/Rules/ValidTeacher.php | Github Open Source | Open Source | MIT | 2,021 | digicourse | Hilsonxhero | PHP | Code | 89 | 242 | <?php
namespace Course\Rules;
use Illuminate\Contracts\Validation\Rule;
use User\Repositories\UserRepo;
class ValidTeacher implements Rule
{
/**
* Create a new rule instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Determine if the validati... | 42,356 |
https://github.com/philburk/listenup/blob/master/src/com/softsynth/dsp/SignalProcessor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | listenup | philburk | Java | Code | 76 | 142 | package com.softsynth.dsp;
/**
* A module in a signal processing chain.
*
* @author (C) 2003 Phil Burk, All Rights Reserved
*/
public interface SignalProcessor
{
/**
* Process data and pass it to the next modules in the chain.
* @param data
* @param offset
* @param numSamples
*/
public void write( fl... | 53,837 |
https://github.com/21TORR/prismic-api/blob/master/src/Command/PrismicTypesMigrateCommand.php | Github Open Source | Open Source | MIT | 2,021 | prismic-api | 21TORR | PHP | Code | 104 | 438 | <?php declare(strict_types=1);
namespace Torr\PrismicApi\Command;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Torr\Cli\Command\CommandHelper;
use Torr\Cli... | 10,080 |
https://github.com/lillobillo/completion/blob/master/net/csharp/csharp_test.go | Github Open Source | Open Source | MIT, Unlicense | 2,021 | completion | lillobillo | Go | Code | 166 | 544 | package csharp
import (
"github.com/quarnster/completion/util"
"io/ioutil"
"os"
"strings"
"testing"
)
const testdata = "../testdata/"
func TestParse(t *testing.T) {
if f, err := os.Open(testdata); err != nil {
t.Fatal(err)
} else if fi, err := f.Readdir(-1); err != nil {
t.Fatal(err)
} else {
for i := ... | 53,922 |
https://github.com/HDRUK/gateway-web/blob/master/src/components/Dimmer/Dimmer.test.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | gateway-web | HDRUK | JavaScript | Code | 50 | 123 | import { render } from '@testing-library/react';
import Dimmer from './Dimmer';
let wrapper;
describe('Given the Alert component', () => {
describe('When it is rendered', () => {
beforeEach(() => {
wrapper = render(<Dimmer>Content</Dimmer>, {
wrapper: Providers,
});... | 24,582 |
https://github.com/juliomrqz/scrits/blob/master/scrits/categories/views.py | Github Open Source | Open Source | MIT, Apache-2.0 | 2,020 | scrits | juliomrqz | Python | Code | 61 | 170 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.views.generic import DetailView
from ..articles.models import Article
from .models import Category
class CategoryDetailView(DetailView):
model = Category
context_object_name = 'category'
def get_context_data(self, **kwargs):
... | 35,051 |
https://github.com/sleepy-monax/skift/blob/master/include/devices/bga.h | Github Open Source | Open Source | MIT | 2,018 | skift | sleepy-monax | C | Code | 99 | 494 | #pragma once
#include "types.h"
#define VBE_DISPI_BANK_ADDRESS 0xA0000
#define VBE_DISPI_BANK_SIZE_KB 64
#define VBE_DISPI_MAX_XRES 1024
#define VBE_DISPI_MAX_YRES 768
#define VBE_DISPI_IOPORT_INDEX 0x01CE
#define VBE_DISPI_IOPORT_DATA 0x01CF
#define VBE_D... | 49,366 |
https://github.com/JiriValasek/Animate/blob/master/docs/Documentation/namespace_trajectory.js | Github Open Source | Open Source | MIT | 2,022 | Animate | JiriValasek | JavaScript | Code | 25 | 206 | var namespace_trajectory =
[
[ "TrajectoryCommand", "class_trajectory_1_1_trajectory_command.html", "class_trajectory_1_1_trajectory_command" ],
[ "TrajectoryPanel", "class_trajectory_1_1_trajectory_panel.html", "class_trajectory_1_1_trajectory_panel" ],
[ "TrajectoryProxy", "class_trajectory_1_1_trajectory... | 45,214 |
https://github.com/goranch/ExoPlayer/blob/master/library/rtsp/src/main/java/com/google/android/exoplayer2/source/rtsp/UdpDataSourceRtpDataChannelFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | ExoPlayer | goranch | Java | Code | 338 | 776 | /*
* Copyright 2021 The Android Open Source Project
*
* 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 applica... | 34,209 |
https://github.com/jiayaozhang/CS-370-Mesh-Processing/blob/master/killing field/cmake-build-debug/src/OpenMesh/Core/CMakeFiles/OpenMeshCoreStatic.dir/cmake_clean_target.cmake | Github Open Source | Open Source | MIT | null | CS-370-Mesh-Processing | jiayaozhang | CMake | Code | 3 | 23 | file(REMOVE_RECURSE
"libOpenMeshCored.a"
)
| 40,053 |
https://github.com/vinodkumar1991/examspace/blob/master/no1exam/backend/modules/quiz/views/QuizSettings.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | examspace | vinodkumar1991 | PHP | Code | 452 | 2,200 | <link rel="stylesheet" href="<?php echo Yii::getAlias('@asset').'/plugins/select2/css/select2.css'; ?>">
<section class="content-header">
<h1>Quiz Settings</h1>
<!-- Need To Implement :: START -->
<ol class="breadcrumb">
<li><a href="<?php ?>"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a href="#">Exampl... | 50,810 |
https://github.com/ZackStrater/cheML/blob/master/src/cheml/fragments.py | Github Open Source | Open Source | MIT | null | cheML | ZackStrater | Python | Code | 2,835 | 8,096 |
from src.smiles_to_structure import convert_to_structure, MoleculeStructure, Fragment
from collections import Counter
from termcolor import cprint
from src.fragments_library import special_cases, biomolecules, peptide_amino_acids, heterocycles, \
common_aromatic_heterocycles, generalized_heterocycles, arenes, func... | 49,917 |
https://github.com/tpavels/Breakout/blob/master/src/github/tpavels/breakout/entities/Paddle.java | Github Open Source | Open Source | MIT | 2,011 | Breakout | tpavels | Java | Code | 294 | 883 | package github.tpavels.breakout.entities;
import github.tpavels.constants.Constants;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Toolkit;
import java.awt.geom.RoundRectangle2D;
public class Paddle {
private static final int BOTTON_GAP = 15;
private static final do... | 11,761 |
https://github.com/Youssef1313/dotnet/blob/master/tests/CommunityToolkit.Mvvm.UnitTests/Test_Messenger.cs | Github Open Source | Open Source | MIT | 2,023 | dotnet | Youssef1313 | C# | Code | 2,462 | 11,542 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading;
... | 502 |
https://github.com/venosov/realtimetalksentiment/blob/master/index.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | realtimetalksentiment | venosov | JavaScript | Code | 240 | 806 | const vision = require('@google-cloud/vision')();
const storage = require('@google-cloud/storage')();
const BigQuery = require('@google-cloud/bigquery');
exports.newSentimentStatus = function (event, callback) {
const file = event.data;
if (file.resourceState === 'not_exists') {
console.log(`File ${file.name... | 2,836 |
https://github.com/TheAlgorithms/Python/blob/master/searches/jump_search.py | Github Open Source | Open Source | MIT | 2,023 | Python | TheAlgorithms | Python | Code | 254 | 612 | """
Pure Python implementation of the jump search algorithm.
This algorithm iterates through a sorted collection with a step of n^(1/2),
until the element compared is bigger than the one searched.
It will then perform a linear search until it matches the wanted number.
If not found, it returns -1.
https://en.wikipedia... | 49,176 |
https://github.com/computableai/computableai.github.io/blob/master/pelicanconf.py | Github Open Source | Open Source | MIT | 2,020 | computableai.github.io | computableai | Python | Code | 273 | 971 | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = 'the Computable AI authors'
SITENAME = 'Computable AI'
SITEURL = 'http://localhost:8000'
SITESUBTITLE = 'A Machine Intelligence Blog'
DESCRIPTION = 'Computable AI is a machine intelligence blog from a handful of DRL practi... | 45,474 |
https://github.com/AllNamesRTaken/GoodCore/blob/master/src/__tests__/UriTest.ts | Github Open Source | Open Source | MIT | 2,019 | GoodCore | AllNamesRTaken | TypeScript | Code | 87 | 421 | /**
* @jest-environment jsdom
*/
import { Uri } from "../lib/Uri";
describe("Uri",
() => {
beforeAll(() => {
window.history.pushState({}, "Test Title", "/path/page.html?arg1=1&arg2=2");
});
test("Uri is populated",
() => {
let uri = new Uri();
expect(uri.hostName).toBe("domain.com");
expect... | 40,635 |
https://github.com/josephwecker/zml/blob/master/code/src/zss_parser.erl | Github Open Source | Open Source | MIT | 2,014 | zml | josephwecker | Erlang | Code | 1,929 | 7,063 | -module(zss_parser).
-export([parse/1, combine_dups/1]).
-define(CSS_LEN_TYPES,
["%","em","ex","px","in","cm","mm","pt","pc"]).
-define(E_FLUSH(Tok),
case script_var(lists:reverse(TAcc)) of
nothing ->
tokenize_expression(T, LN, break, [], [Tok | Acc]);
{str, S} ->
S2 = inject_variables(S),
... | 44,794 |
https://github.com/thejoe8495/gizmofort.connector.erpnext/blob/master/Libs/GizmoFort.Connector.ERPNext/ERPTypes/Employment_type/ERPEmployment_type.cs | Github Open Source | Open Source | MIT | 2,020 | gizmofort.connector.erpnext | thejoe8495 | C# | Code | 70 | 276 | using GizmoFort.Connector.ERPNext.PublicTypes;
using GizmoFort.Connector.ERPNext.WrapperTypes;
using System.ComponentModel;
namespace GizmoFort.Connector.ERPNext.ERPTypes.Employment_type
{
public class ERPEmployment_type : ERPNextObjectBase
{
public ERPEmployment_type() : this(new ERPObject(DocType.Empl... | 41,853 |
https://github.com/arookas/ippc/blob/master/directive.hpp | Github Open Source | Open Source | MIT | 2,021 | ippc | arookas | C++ | Code | 59 | 196 |
// ========================================================================== //
#ifndef INCLUDE_DIRECTIVE_HPP
#define INCLUDE_DIRECTIVE_HPP
// -------------------------------------------------------------------------- //
#include <functional>
#include <string_view>
// ---------------------------------------------... | 24,736 |
https://github.com/geoffdutton/iterable-api/blob/master/lib/api.js | Github Open Source | Open Source | MIT | 2,023 | iterable-api | geoffdutton | JavaScript | Code | 333 | 1,152 |
module.exports = [
{
resource: 'lists',
methods: ['get', 'post', 'delete'],
actions: [
{
name: 'getUsers',
method: 'get'
},
{
name: 'subscribe',
method: 'post'
},
{
name: 'unsubscribe',
method: 'post'
}
]
},
{
... | 34,043 |
https://github.com/prisma-capacity/spring-cqs/blob/master/src/main/java/eu/prismacapacity/spring/cqs/CqsConfiguration.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | spring-cqs | prisma-capacity | Java | Code | 180 | 633 | /*
* Copyright © 2020 PRISMA European Capacity Platform GmbH
*
* 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... | 17,976 |
https://github.com/brapifra/-Programaci-n-II-Project/blob/master/src/main/Ventana.java | Github Open Source | Open Source | MIT | null | -Programaci-n-II-Project | brapifra | Java | Code | 603 | 2,148 | package main;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.DefaultRowSorter;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import... | 26,078 |
https://github.com/AlfinePutraPerdana/SINGO/blob/master/resources/js/components/ngo/dokumentasi/Revisi_artikel.vue | Github Open Source | Open Source | MIT | 2,021 | SINGO | AlfinePutraPerdana | Vue | Code | 162 | 791 | <template>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Ubah Artikel</h1>
</div>
<div class="col-sm-6">
... | 14,100 |
https://github.com/pschen/extensions/blob/master/projects/extensions/split/_split-theme.import.scss | Github Open Source | Open Source | MIT | 2,021 | extensions | pschen | SCSS | Code | 8 | 27 | @forward 'split-theme' hide theme;
@forward 'split-theme' as mtx-split-*;
| 10,631 |
https://github.com/dev-experience/Xtz.StronglyTyped/blob/master/src/Xtz.StronglyTyped.SourceGenerator/IDataExtractor.cs | Github Open Source | Open Source | MIT | 2,021 | Xtz.StronglyTyped | dev-experience | C# | Code | 29 | 106 | using System.Collections.Generic;
using Microsoft.CodeAnalysis;
namespace Xtz.StronglyTyped.SourceGenerator
{
public interface IDataExtractor
{
IReadOnlyCollection<string> Log { get; }
bool BuildWorkItem(
SemanticModel semanticModel,
SyntaxReceiver receiver,
... | 16,931 |
https://github.com/snapcache/snapcache/blob/master/plugins/prehooks.js | Github Open Source | Open Source | MIT | 2,019 | snapcache | snapcache | JavaScript | Code | 58 | 198 | 'use strict';
var _log = require('debug')('firebase-server');
function presave(next,path,data,callback){
var newData = data;
// we can perform presave operations here such as manipulating data before saving
_log("prehooks - presave");
_log(newData);
next(path,newData,callback);
}
function predelete(next,path... | 7,891 |
https://github.com/theclue/facebook.S4/blob/master/man/facebook.formatFbDate.Rd | Github Open Source | Open Source | MIT | 2,018 | facebook.S4 | theclue | R | Code | 91 | 218 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatFbDate.R
\name{formatFbDate}
\alias{formatFbDate}
\title{Convert a Facebook datetime string into a valid R datetime}
\usage{
formatFbDate(datestring, format = "datetime")
}
\arguments{
\item{datestring}{The date to convert in the charac... | 47,358 |
https://github.com/observatorium/thanos-receive-controller/blob/master/jsonnet/thanos-receive-controller-mixin/dashboards/dashboards.libsonnet | Github Open Source | Open Source | Apache-2.0 | 2,023 | thanos-receive-controller | observatorium | null | Spoken | 352 | 1,748 | local g = (import 'grafana-builder/grafana.libsonnet');
{
local thanos = self,
receiveController+:: {
dashboard: {
selector: std.join(', ', thanos.dashboard.selector + ['job="$job"']),
receiveSelector: thanos.receiveController.receiveSelector,
aggregator: std.join(', ', thanos.dashboard.aggre... | 16,777 |
https://github.com/twglhk/COMP3500/blob/master/Lab2/src/academy/pocu/comp3500/lab2/LinkedList.java | Github Open Source | Open Source | MIT | null | COMP3500 | twglhk | Java | Code | 446 | 1,325 | package academy.pocu.comp3500.lab2;
import academy.pocu.comp3500.lab2.datastructure.Node;
import javax.swing.plaf.IconUIResource;
public final class LinkedList {
public LinkedList() {
}
public static Node append(final Node rootOrNull, final int data) {
var newNode = new Node(data);
if (r... | 44,081 |
https://github.com/Ahatornn/clforms/blob/master/Examples/Elements/WindowApp/Forms/MainMenuForm.Designer.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | clforms | Ahatornn | C# | Code | 428 | 1,436 | using System;
using System.Linq;
using ClForms.Common;
using ClForms.Common.Grid;
using ClForms.Core;
using ClForms.Elements;
using ClForms.Elements.Menu;
using ClForms.Themes;
namespace WindowApp.Forms
{
public partial class MainMenuForm
{
private void InitializeComponent()
{
panel... | 3,381 |
https://github.com/karlson35/python_training/blob/master/test/test_phones.py | Github Open Source | Open Source | Apache-2.0 | null | python_training | karlson35 | Python | Code | 167 | 1,075 | __author__ = 'Igor Nikolaev'
import re
from random import randrange
def test_phones_on_home_page(app):
contact_from_home_page = app.contact.get_contact_list()[0]
contact_from_edit_page = app.contact.get_contact_info_from_edit_page(0)
assert contact_from_home_page.all_phones_from_home_page == merge_phones... | 9,121 |
https://github.com/AquaticMasteryProductions/Robinhood-Api-Java/blob/master/src/test/java/com/ampro/robinhood/RobinhoodAssertions.java | Github Open Source | Open Source | MIT | 2,018 | Robinhood-Api-Java | AquaticMasteryProductions | Java | Code | 78 | 297 | package com.ampro.robinhood;
import static org.junit.Assert.assertEquals;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
public final class RobinhoodAssertions {
private RobinhoodAssertions() {}
public static void assertDateTimeEquals(int year, int month, int day,
... | 38,610 |
https://github.com/DanielFedatto/point-of-sale/blob/master/modules/gerador/config/gerador.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | point-of-sale | DanielFedatto | PHP | Code | 26 | 88 | <?php
defined('SYSPATH') or die('No direct script access.');
return array(
// Application defaults
'default' => array(
'view' => 'gerador/basic',
'urlForm' => 'gerador/classes/kohana/gerador/salvar',
'urlUpload' => 'upload/'
),
);
| 44,867 |
https://github.com/CMiller3/GradientLoadingBar/blob/master/Example/GradientLoadingBar/NavigationBarExampleViewController.swift | Github Open Source | Open Source | MIT | 2,021 | GradientLoadingBar | CMiller3 | Swift | Code | 137 | 513 | //
// NavigationBarExampleViewController.swift
// GradientLoadingBar_Example
//
// Created by Felix Mau on 29.08.18.
// Copyright © 2018 Felix Mau. All rights reserved.
//
import UIKit
import GradientLoadingBar
class NavigationBarExampleViewController: UIViewController {
// MARK: - Config
private enum Co... | 22,258 |
https://github.com/swethakann/nrtsearch/blob/master/src/main/java/com/yelp/nrtsearch/server/backup/ArchiverImpl.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,020 | nrtsearch | swethakann | Java | Code | 1,510 | 4,666 | /*
* Copyright 2020 Yelp Inc.
*
* 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... | 3,076 |
https://github.com/AndreasWBartels/imagen/blob/master/modules/core/src/main/java/org/eclipse/imagen/operator/ColorQuantizerDescriptor.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | imagen | AndreasWBartels | Java | Code | 1,607 | 4,281 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 49,142 |
https://github.com/paritytech/substrate/blob/master/primitives/runtime/src/runtime_logger.rs | Github Open Source | Open Source | Apache-2.0, GPL-3.0-or-later, Classpath-exception-2.0, GPL-1.0-or-later, GPL-3.0-only | 2,023 | substrate | paritytech | Rust | Code | 379 | 1,019 | // This file is part of Substrate.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// 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.a... | 25,840 |
https://github.com/telekom/telements/blob/master/packages/components-sketch/views/card-interactive.hbs | Github Open Source | Open Source | MIT | 2,020 | telements | telekom | null | Spoken | 322 | 1,645 | {{!--
Scale https://github.com/telekom/scale
Copyright (c) 2021 Egor Kirpichev and contributors, Deutsche Telekom AG
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
--}}
{... | 8,066 |
https://github.com/ScRiPt1337/Teardrop-androbotnet/blob/master/Teardroid_Payload/smali/com/google/android/material/snackbar/SnackbarManager.smali | Github Open Source | Open Source | MIT | 2,022 | Teardrop-androbotnet | ScRiPt1337 | Smali | Code | 1,159 | 8,046 | .class Lcom/google/android/material/snackbar/SnackbarManager;
.super Ljava/lang/Object;
.source "SnackbarManager.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/material/snackbar/SnackbarManager$SnackbarRecord;,
Lcom/google/android/material/sn... | 16,265 |
https://github.com/iancmcc/bingo/blob/master/codecs/errors.go | Github Open Source | Open Source | MIT | 2,022 | bingo | iancmcc | Go | Code | 113 | 208 | package codecs
import "errors"
var (
// ErrInvalidTarget is returned when the target is not a pointer.
ErrInvalidTarget = errors.New("must pass a pointer to decode a value to")
// ErrUnknownType is returned when the type is unknown.
ErrUnknownType = errors.New("unknown type")
// ErrByteSliceSize is returned when... | 30,811 |
https://github.com/ThatsMrTalbot/goldilocks/blob/master/pkg/dashboard/assets/js/main.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | goldilocks | ThatsMrTalbot | JavaScript | Code | 46 | 172 | if (!Object.values) {
Object.values = function (obj) {
return Object.keys(obj).map(function (key) {
return obj[key];
})
}
}
$(function () {
$('.card .resource-info .name').on('click', function (e) {
$(this).parents('.resource-info').toggleClass('expanded');
});
var expandMatch = window.lo... | 17,679 |
https://github.com/UrbanRuralSystems/ur-scape/blob/master/Assets/Tools/Planning/Prefabs/SummaryPanelSelected.prefab | Github Open Source | Open Source | MIT, BSD-3-Clause, MS-PL, libtiff | 2,022 | ur-scape | UrbanRuralSystems | Unity3D Asset | Code | 1,869 | 8,449 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1171360896750878
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 224128497743406748}
- component: {fileID: 4600713... | 30,399 |
https://github.com/cfvbaibai/CardFantasy/blob/master/workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/WeightedRandomizer.java | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,020 | CardFantasy | cfvbaibai | Java | Code | 162 | 448 | package cfvbaibai.cardfantasy;
import java.util.ArrayList;
import java.util.List;
public class WeightedRandomizer <T> {
private class Range {
private int weight;
private T obj;
public int getWeight() {
return weight;
}
public T getObj() {
return obj;... | 40,662 |
https://github.com/brightsoftdev/BDToastAlert/blob/master/BDToastAlert/BDToastAlert/BDToastAlert/UILabel+Extension.m | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-3-Clause | 2,012 | BDToastAlert | brightsoftdev | Objective-C | Code | 139 | 577 | //
// UILabel+Extension.m
// Photosophia
//
// Created by Nor Oh on 5/19/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "UILabel+Extension.h"
#import <QuartzCore/QuartzCore.h>
@implementation UILabel (Extension)
+ (UIView *)framedLabelWithText:(NSString *)text textAttributes:(NSDictio... | 40,468 |
https://github.com/Valmach/Android-Tensorflow-Lite-Intelligent-Visual-Mobile/blob/master/Section02/ios/packt/RunModelViewController.mm | Github Open Source | Open Source | MIT | 2,021 | Android-Tensorflow-Lite-Intelligent-Visual-Mobile | Valmach | Objective-C++ | Code | 491 | 1,500 | // Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | 30,029 |
https://github.com/gilmant30/Worksafe-Project/blob/master/Worksafe/assets/js/new_competition.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,014 | Worksafe-Project | gilmant30 | JavaScript | Code | 249 | 738 | function validateForm() {
var from = document.forms["createComp"]["from"].value;
var to = document.forms["createComp"]["to"].value;
var ans = document.forms["createComp"]["num_answers"].value;
var question = document.forms["createComp"]["num_questions_per_day"].value;
//check if from date is nu... | 39,333 |
https://github.com/googleapis/google-api-php-client-services/blob/master/src/Contentwarehouse/ShingleInfoPerDocData.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | google-api-php-client-services | googleapis | PHP | Code | 190 | 442 | <?php
/*
* Copyright 2014 Google Inc.
*
* 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 t... | 20,943 |
https://github.com/ecds/readux/blob/master/apps/export/tests/test_github.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | readux | ecds | Python | Code | 308 | 1,777 | from django.test import TestCase
import httpretty
from apps.users.tests.factories import UserFactory, SocialAccountFactory, SocialAppFactory, SocialTokenFactory
from apps.export.github import GithubApi, GithubApiException, GithubAccountNotFound
class TestGithubApi(TestCase):
def setUp(self):
self.user = Us... | 42,067 |
https://github.com/dominic-simplan/cordova-plugin-purchase/blob/master/src/js/platforms/android-productdata.js | Github Open Source | Open Source | Unlicense | null | cordova-plugin-purchase | dominic-simplan | JavaScript | Code | 235 | 796 | (function () {
"use strict";
// {
// "purchaseToken":"tokenabc",
// "developerPayload":"mypayload1",
// "packageName":"com.example.MyPackage",
// "purchaseState":0, [0=purchased, 1=canceled, 2=refunded]
// "orderId":"12345.6789",
// "purchaseTime":1382517909216,... | 29,702 |
https://github.com/reapit/foundations/blob/master/packages/foundations-ts-definitions/types/platform-schema.ts | Github Open Source | Open Source | MIT | 2,022 | foundations | reapit | TypeScript | Code | 20,000 | 28,323 | /** * The details specific to applicants with a marketingMode of buying */ export interface ApplicantBuyingModel { /** * The lower bound of the applicant's budget */ priceFrom?: number // int32 /** * The upper bound of the applicant's budget */ priceTo?: number // int32 } /** * Representation of the physical address of... | 3,847 |
https://github.com/clubajax/advanced-react/blob/master/app/util/goto.js | Github Open Source | Open Source | MIT | 2,018 | advanced-react | clubajax | JavaScript | Code | 19 | 51 | import createHistory from 'history/createBrowserHistory';
export const history = createHistory();
export default function goto (route) {
console.log('goto', route);
history.push(route);
} | 14,654 |
https://github.com/sile/erl_ast/blob/master/src/result.rs | Github Open Source | Open Source | MIT | 2,021 | erl_ast | sile | Rust | Code | 8 | 28 | use error;
pub type FromBeamResult<T> = Result<T, error::FromBeamError>;
| 24,574 |
https://github.com/brunoklein99/fucksocks/blob/master/src/main/java/fucksocks/server/MethodSelector.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | fucksocks | brunoklein99 | Java | Code | 304 | 610 | /*
* Copyright 2015-2025 the original author or authors.
*
* 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 applica... | 37,850 |
https://github.com/Ryjek0/greenworks/blob/master/deps/steamworks_sdk/steamworksexample/p2pauth.cpp | Github Open Source | Open Source | MIT, Bitstream-Vera, LicenseRef-scancode-public-domain | 2,020 | greenworks | Ryjek0 | C++ | Code | 1,258 | 4,011 | //========= Copyright © 1996-2004, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#include "stdafx.h"
#include "SpaceWarClient.h"
#include "p2pauth.h"
//--------------------------------------------------... | 24,040 |
https://github.com/hiaux0/au-lsp/blob/master/server/src/feature/virtual/virtualSourceFile.ts | Github Open Source | Open Source | MIT | 2,021 | au-lsp | hiaux0 | TypeScript | Code | 1,030 | 3,017 | import * as ts from 'typescript';
import * as path from 'path';
import { ViewRegionInfo } from '../embeddedLanguages/embeddedSupport';
import { aureliaProgram, AureliaProgram } from '../../viewModel/AureliaProgram';
import { Position, TextDocument } from 'vscode-html-languageservice';
import { MarkupKind } from 'vscode... | 7,981 |
https://github.com/congzhangzh/gadgetron/blob/master/docker/build_base_images.sh | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,019 | gadgetron | congzhangzh | Shell | Code | 140 | 822 | #!/bin/bash
base_dir=$(pwd)
cd ${base_dir}/base/ubuntu_1604
docker build --network=host -t gadgetron/ubuntu_1604_base .
cd ${base_dir}/base/ubuntu_1604_basic
docker build --network=host -t gadgetron/ubuntu_1604_base_basic .
# cd ${base_dir}/base/ubuntu_1604_cuda55
# docker build --network=host -t gadgetron/ubuntu_1... | 43,219 |
https://github.com/gliliant/leapfrog/blob/master/resources/views/Admin/Pond/notpasslist.blade.php | Github Open Source | Open Source | MIT | 2,017 | leapfrog | gliliant | Blade | Code | 329 | 2,028 | @extends('Admin.head')
<!--
* 后台用户列表页
* @author [苏波] <386249656@qq.com>
* @data 2017-11-27 20:10
*
-->
@section('content')
<div class="tpl-content-wrapper">
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-1... | 54,809 |
https://github.com/NaNuNoo/Tiramisu/blob/master/_Tiramisu/buffer.coffee | Github Open Source | Open Source | Apache-2.0 | null | Tiramisu | NaNuNoo | CoffeeScript | Code | 445 | 1,549 | # # # # # # # # # # # # # # # # # # # #
# File: Tiramisu/_Tiramisu/buffer.coffee
# Author: NaNuNo
# Project: https://github.com/NaNuNoo/Tiramisu
# WebSite: http://FenQi.IO
# # # # # # # # # # # # # # # # # # # #
class DynamicVertex
constructor: () ->
@._hVertex = null
@._size = 0 # buffer size in bytes
@... | 5,332 |
https://github.com/ejeschke/ginga/blob/master/ginga/canvas/types/basic.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ginga | ejeschke | Python | Code | 6,196 | 24,718 | #
# basic.py -- classes for basic shapes drawn on ginga canvases.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import math
import numpy as np
from ginga.canvas.CanvasObject import (CanvasObjectBase, _bool, _color,
... | 38,328 |
https://github.com/wouf/cmssw/blob/master/DQM/HLTEvF/interface/HLTJetMETDQMSource.h | Github Open Source | Open Source | 2,015 | cmssw | wouf | C++ | Code | 1,004 | 4,179 | #ifndef HLTJetMETDQMSource_H
#define HLTJetMETDQMSource_H
// -*- C++ -*-
//
// Package: HLTJetMETDQMSource
// Class: HLTJetMETDQMSource
// Code for HLT JetMET DQ monitoring. Based on FourVectorOnline code.
// system include files
#include <memory>
#include <unistd.h>
// user include files
#include "FWC... | 48,945 | |
https://github.com/wallee-payment/shopware-6/blob/master/src/Resources/app/administration/src/module/wallee-order/index.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | shopware-6 | wallee-payment | JavaScript | Code | 77 | 371 | /* global Shopware */
import './extension/sw-order';
import './page/wallee-order-detail';
import deDE from './snippet/de-DE.json';
import enGB from './snippet/en-GB.json';
import frFR from './snippet/fr-FR.json';
import itIT from './snippet/it-IT.json';
const {Module} = Shopware;
Module.register('wallee-order', {
... | 32,022 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.