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/Vaa3D/vaa3d_tools/blob/master/released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zlocalrect.h | Github Open Source | Open Source | MIT, BSD-2-Clause, GPL-1.0-or-later, LicenseRef-scancode-unknown-license-reference, GPL-2.0-only | 2,023 | vaa3d_tools | Vaa3D | C++ | Code | 130 | 411 | /**@file zlocalrect.h
* @brief Local rectangle receptor
* @author Ting Zhao
*/
#ifndef ZLOCALRECT_H
#define ZLOCALRECT_H
#include "zdirectionaltemplate.h"
#include "tz_r2_rect.h"
class ZLocalRect : public ZDirectionalTemplate
{
public:
ZLocalRect();
ZLocalRect(double x, double y, double z, double theta, double... | 54,092 |
https://github.com/plusxp/JCDeobf/blob/master/src/me/coley/bmf/opcode/impl/ISTORE.java | Github Open Source | Open Source | MIT | 2,018 | JCDeobf | plusxp | Java | Code | 57 | 196 | package me.coley.bmf.opcode.impl;
import me.coley.bmf.opcode.AbstractSTORE;
import me.coley.bmf.opcode.Opcode;
public class ISTORE extends AbstractSTORE {
public ISTORE(int index) {
super(opFromIndex(index), index);
}
private static int opFromIndex(int index) {
if (index == 0)
... | 28,299 |
https://github.com/odpi/egeria/blob/master/open-metadata-implementation/repository-services/repository-services-implementation/src/main/java/org/odpi/openmetadata/repositoryservices/metadatahighway/OMRSCohortManager.java | Github Open Source | Open Source | CC-BY-4.0, Apache-2.0 | 2,023 | egeria | odpi | Java | Code | 1,834 | 5,782 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.metadatahighway;
import org.odpi.openmetadata.frameworks.auditlog.AuditLog;
import org.odpi.openmetadata.frameworks.connectors.properties.beans.Connection;
import org.odpi... | 45,984 |
https://github.com/Krystal224/Food-Diary---Mobile-App/blob/master/views/stat.handlebars | Github Open Source | Open Source | MIT | null | Food-Diary---Mobile-App | Krystal224 | null | Spoken | 1,074 | 3,800 | <!doctype html>
<html>
<head>
<title>Food Diary App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/bootstrap.css" ... | 4,720 |
https://github.com/lechium/tvOS142Headers/blob/master/System/Library/PrivateFrameworks/AVConference.framework/VCHardwareOperatingModeSettings.h | Github Open Source | Open Source | MIT | 2,020 | tvOS142Headers | lechium | C | Code | 177 | 702 | /*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:16:23 PM Mountain Standard Time
* Operating System: Version 14.2 (Build 18K57)
* Image Source: /System/Library/PrivateFrameworks/AVConfere... | 29,248 |
https://github.com/reevoo/globalize3/blob/master/lib/patches/active_record/relation.rb | Github Open Source | Open Source | MIT | 2,013 | globalize3 | reevoo | Ruby | Code | 36 | 182 | module ActiveRecord
class Relation
if ::ActiveRecord::VERSION::STRING >= "3.2.1"
def where_values_hash
_translations_table_name = klass.respond_to?(:translations_table_name) ? klass.translations_table_name : nil
equalities = with_default_scope.where_values.grep(Arel::Nodes::Equality).find_a... | 19,170 |
https://github.com/mendi19/naturaks.com/blob/master/resources/views/pages/about.blade.php | Github Open Source | Open Source | MIT | null | naturaks.com | mendi19 | PHP | Code | 877 | 5,511 | @section('meta_og_title',trans('global.aboutus'))
@section('meta_og_description','')
@section('meta_robots','index,follow')
@section('meta_og_image',asset('assets/images/logo.svg'))
@section('meta_og_image_w',300)
@section('meta_og_image_h',300)
@extends('layouts/app')
@section('content')
<section class="banner-se... | 13,130 |
https://github.com/bogdan-prisecaru/tower-maze/blob/master/client/src/ui/theme/default/pattern/_spacing.scss | Github Open Source | Open Source | MIT | null | tower-maze | bogdan-prisecaru | SCSS | Code | 66 | 280 | $spacing: (
generic-title-bundle: (
margin: 0,
margin-bottom: 20px,
padding: 0
),
generic-button-bundle: (
padding-left: 10px,
padding-right: 10px
)
);
$spacing-placeholder-list: ();
@mixin spacing($bundle-name) {
@each $bundle, $style in $spacing {
@if (index($spacing-placeholder-li... | 39,758 |
https://github.com/chexxor/nixpkgs/blob/master/pkgs/tools/misc/mssys/default.nix | Github Open Source | Open Source | MIT | 2,021 | nixpkgs | chexxor | null | Spoken | 48 | 183 | {stdenv, fetchurl, gettext}:
stdenv.mkDerivation {
name = "ms-sys-2.1.3";
src = fetchurl {
url = mirror://sourceforge/ms-sys/ms-sys-2.1.3.tgz;
md5 = "6fad0a69ac89440ad4f696dbbbf11497";
};
buildInputs = [gettext];
preBuild = ''
makeFlags=(PREFIX=$out)
'';
meta = {
homepage = http://m... | 2,244 |
https://github.com/Eurus-Holmes/nni/blob/master/nni/experiment/data.py | Github Open Source | Open Source | MIT | 2,023 | nni | Eurus-Holmes | Python | Code | 438 | 1,173 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from __future__ import annotations
from dataclasses import dataclass
import json
from typing import Any, List, Optional
@dataclass
class TrialResult:
"""
TrialResult stores the result information of a trial job.
Attributes
---... | 49,396 |
https://github.com/hougaard/ALAppExtensions/blob/master/Apps/W1/HybridGP/test/src/GPAccountTests.codeunit.al | Github Open Source | Open Source | MIT | 2,022 | ALAppExtensions | hougaard | null | Spoken | 1,392 | 6,253 | codeunit 139661 "GP Account Tests"
{
// [FEATURE] [GP Data Migration]
EventSubscriberInstance = Manual;
Subtype = Test;
TestPermissions = Disabled;
var
Assert: Codeunit Assert;
GLAccDataMigrationFacade: Codeunit "GL Acc. Data Migration Facade";
MSGPAccountMigrationTests: Co... | 16,756 |
https://github.com/marcusscott/Mandrill-dotnet/blob/master/tests/Mandrill.Tests/IntegrationTests/Users/PingTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | Mandrill-dotnet | marcusscott | C# | Code | 84 | 267 | using System.Threading.Tasks;
using Mandrill.Utilities;
using Xunit;
namespace Mandrill.Tests.IntegrationTests.Users
{
public class PingTests : IntegrationTestBase
{
[Fact]
public async Task Should_Return_Pong_On_Valid_ApiKey()
{
// Setup
var apiKey = Settings.ApiKey;
// Exercise
... | 8,956 |
https://github.com/hauva69/neochessqt/blob/master/pgndock.go | Github Open Source | Open Source | MIT | 2,018 | neochessqt | hauva69 | Go | Code | 183 | 1,051 | package main
import (
"bytes"
"strings"
"text/template"
"github.com/rashwell/neochesslib"
log "github.com/sirupsen/logrus"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/widgets"
)
// PGNDock struct
type PGNDock struct {
widgets.QDockWidget
editor *widgets.QTextEdit
... | 46,591 |
https://github.com/haikusw/GraphQL/blob/master/Sources/GraphQL/SwiftUtilities/QuotedOrList.swift | Github Open Source | Open Source | MIT | 2,022 | GraphQL | haikusw | Swift | Code | 76 | 165 | /**
* Given ["A", "B", "C"] return "\"A\", \"B\", or \"C\"".
*/
func quotedOrList(items: [String]) -> String {
let maxLength = min(5, items.count)
let selected = items[0..<maxLength]
return selected.map({ "\"" + $0 + "\"" }).enumerated().reduce("") { list, quoted in
if selected.count == 1 {
... | 30,808 |
https://github.com/rtaparay/laravel-react-purity-dashboard/blob/master/laravel-api/app/Http/Controllers/LoginController.php | Github Open Source | Open Source | MIT | 2,021 | laravel-react-purity-dashboard | rtaparay | PHP | Code | 64 | 201 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
/**
* Initialize the login action.
*
* @param \Illuminate\Http\Request $request
* @return mixed
*/
public function __invoke(Request $re... | 34,876 |
https://github.com/NewbyJE/vendor_mbm/blob/master/libmbm-gps/src/mbm_gps.c | Github Open Source | Open Source | Apache-2.0 | 2,014 | vendor_mbm | NewbyJE | C | Code | 3,998 | 14,790 | /*
* Copyright (C) Ericsson AB 2009-2014
* Copyright 2006, 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/LICE... | 881 |
https://github.com/rhennigan/PacletCICD/blob/master/Kernel/Config.wl | Github Open Source | Open Source | MIT | null | PacletCICD | rhennigan | Mathematica | Code | 73 | 260 | (* ::**********************************************************************:: *)
(* ::Section::Closed:: *)
(*Package Header*)
BeginPackage[ "Wolfram`PacletCICD`" ];
Begin[ "`Private`" ];
(* ::**********************************************************************:: *)
(* ::Section::Closed:: *)
(*Config*)
$thisReposito... | 39,991 |
https://github.com/mockery/mockery/blob/master/library/Mockery/Adapter/Phpunit/MockeryTestCase.php | Github Open Source | Open Source | BSD-3-Clause | 2,023 | mockery | mockery | PHP | Code | 49 | 194 | <?php
/**
* Mockery (https://docs.mockery.io/)
*
* @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md
* @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License
* @link https://github.com/mockery/mockery for the canonical source repository
*/
namespace Mockery\... | 26,855 |
https://github.com/ayoubabid/publick-sling-blog/blob/master/core/src/main/java/com/nateyolles/sling/publick/components/foundation/BlogPagination.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | publick-sling-blog | ayoubabid | Java | Code | 633 | 1,569 | package com.nateyolles.sling.publick.components.foundation;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.script.Bindings;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.resource.Res... | 32,618 |
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x8fa3EF45137C3AFF337e42f98023C1D7dd3666C0_PlainTransferEscrowBeneficiary/solidity-v1/contracts/PhasedEscrow.sol | Github Open Source | Open Source | MIT | 2,023 | naga_contracts | d0scoo1 | Gerber Image | Code | 996 | 2,715 | pragma solidity 0.5.17;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "./Escrow.sol";
interface IBeneficiaryContract {
function __escrowSentTokens(uint256 ... | 44,438 |
https://github.com/tuanggo/rotki/blob/master/frontend/app/tests/spectron/specs/support/account-balances-controller.ts | Github Open Source | Open Source | BSD-3-Clause | 2,020 | rotki | tuanggo | TypeScript | Code | 101 | 521 | import { SpectronClient } from 'spectron';
import { METHOD_TIMEOUT } from '../utils/common';
export enum AccountType {
ETH = 'ETH',
BTC = 'BTC'
}
export class AccountBalancesController {
constructor(private client: SpectronClient) {}
async addFiatValue(amount: number = 50) {
await this.client.scroll('.fi... | 30,503 |
https://github.com/coreybruyere/reakit/blob/master/packages/reakit/src/Rover/index.ts | Github Open Source | Open Source | MIT | 2,020 | reakit | coreybruyere | TypeScript | Code | 8 | 18 | export * from "./Rover";
export * from "./RoverState";
| 22,390 |
https://github.com/BryanHuang66/ohmymn/blob/master/src/typings/Foundation/NSData.d.ts | Github Open Source | Open Source | MIT | 2,022 | ohmymn | BryanHuang66 | TypeScript | Code | 337 | 1,090 | import {
NSStringEncoding,
NSDataReadingOptions,
NSDataWritingOptions,
NSDataSearchOptions
} from "./enum"
declare global {
class NSData {
static data(): WrapperObj<any>
/**
* @param string NSString*
*/
static dataWithStringEncoding(
string: string,
encoding: NSStringEncodin... | 34,001 |
https://github.com/navxt6/SEARUM/blob/master/src/main/java/it/polito/dbdmg/searum/itemsets/ParallelFPGrowthReducer.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | SEARUM | navxt6 | Java | Code | 453 | 1,575 | /**
* Copyright 2014 Luigi Grimaudo (grimaudo.luigi@gmail.com)
*
* 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 u... | 43,035 |
https://github.com/UWA-CITS3200-18-2021/ReSQ/blob/master/integration_tests/cypress/integration/data.spec.js | Github Open Source | Open Source | CC0-1.0 | 2,022 | ReSQ | UWA-CITS3200-18-2021 | JavaScript | Code | 106 | 245 | // It's hard to check the correctness of charts in integration testing
// This testing is limited to ensuring that chart elements exists
// and that they are not crashing
describe("Data Analytics", () => {
beforeEach(() => {
// Makes sure user is logged in as export feature requires login
cy.login(... | 51,398 |
https://github.com/sukar42/Optre_Liberation_3/blob/master/CODI/postprocessdamagesystem/pp.sqf | Github Open Source | Open Source | MIT | null | Optre_Liberation_3 | sukar42 | SQF | Code | 76 | 327 | if (!isDedicated) then
{
//only one works: tunnelview or blurred
[0.33, 0.50, 0.010, 0.005, 1.5, 5, 1, 3, 0.5, 1.5] execVM "CODI\postprocessdamagesystem\tunnelview.sqf";
//[0.33, 0.25, 3, 0.25, 1, 3, 1, 3, 0.5, 1.5] execVM "CODI\postprocessdamagesystem\blurred.sqf";
[0.66, 0.15, 0.15, 0.05, 0.75, 1.5, 0.5, 1.0, 0... | 2,751 |
https://github.com/GHliangchao/android/blob/master/branches/v-1.2.8/assets/apps/zmaApp/www/js/zengma/popup-com.js | Github Open Source | Open Source | MIT | 2,019 | android | GHliangchao | JavaScript | Code | 222 | 1,042 | // popup module
// @since 2016-05
(function(window, mui){
/* Create a Popup.
*
* @param settings {title, content, cfmAction, cclAction}
*/
function Popup(settings){
var wrapper = $(".black"), cfm, ccl,
title, content, options, action, close,cfmt,cclt,
btns, btn;
close = this.close;
this.options ... | 25,506 |
https://github.com/premkumarbalu/scsb-etl-1/blob/master/src/main/java/org/recap/model/export/DataDumpRequest.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | scsb-etl-1 | premkumarbalu | Java | Code | 226 | 694 | package org.recap.model.export;
import java.util.List;
/**
* Created by premkb on 19/8/16.
*/
public class DataDumpRequest {
private List<String> institutionCodes;
private String fetchType;
private String date;
private boolean isRecordsAvailable;
private List<Integer> collectionGroupIds;
pr... | 12,838 |
https://github.com/TheUnstoppable/RenSharp/blob/master/scripts/physinttest.h | Github Open Source | Open Source | Apache-2.0, GPL-2.0-only | 2,020 | RenSharp | TheUnstoppable | C++ | Code | 401 | 1,539 | /* Renegade Scripts.dll
Copyright 2017 Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll 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, or (at yo... | 38,142 |
https://github.com/open-source-contributions/MySQLSlowQueryParser/blob/master/src/PHPFUI/MySQLSlowQuery/Exception.php | Github Open Source | Open Source | MIT | 2,021 | MySQLSlowQueryParser | open-source-contributions | PHP | Code | 9 | 30 | <?php
namespace PHPFUI\MySQLSlowQuery;
class Exception extends \Exception
{
}
| 332 |
https://github.com/3243239283/lx_yitouhang/blob/master/js/realname.js | Github Open Source | Open Source | Apache-2.0 | null | lx_yitouhang | 3243239283 | JavaScript | Code | 54 | 393 | //通过主模块,运用AMD规范定义的的require()函数调用其他模块。
require(['jquery','currency','validata','validMethod'], function (){
$('#rename').validate({
rules: {
name:{
required: true,
remote:{
type:"POST",
url:"",
data:{
txpassword:... | 7,687 |
https://github.com/christoomey/go-react-web/blob/master/src/constants/stones.js | Github Open Source | Open Source | MIT | 2,015 | go-react-web | christoomey | JavaScript | Code | 18 | 50 | const EMPTY = 'EMPTY';
const WHITE = 'WHITE';
const BLACK = 'BLACK';
export {
EMPTY,
WHITE,
BLACK
}
| 34,907 |
https://github.com/shaigem/melee-asm-lab/blob/master/scripts/generated/de/specialflagsfthit.asm | Github Open Source | Open Source | MIT | null | melee-asm-lab | shaigem | Assembly | Code | 196 | 657 | .include "punkpc.s"
punkpc ppc
# Enable Special Flags for Fighter Hitboxes v2.0.0
# authors: @["sushie"]
# description: Lets you use special flags that are normally found in item hitboxes
gecko 2147978912
lbz r0, 0x00000042(r23)
rlwinm. r0, r0, 27, 31, 31
beq OriginalExit_80078ea0
lfs f1, 0x0000002C(r28)
lfs f0, 0x0000... | 12,212 |
https://github.com/kragen/shootout/blob/master/website/websites/gp4/version/perl-version.php | Github Open Source | Open Source | BSD-3-Clause | 2,022 | shootout | kragen | PHP | Code | 7 | 29 | <p>This is perl, v5.8.8 built for i686-linux-thread-multi</p>
| 31,832 |
https://github.com/poise/poise-supervisor/blob/master/lib/poise_supervisor/utils.rb | Github Open Source | Open Source | Apache-2.0 | 2,015 | poise-supervisor | poise | Ruby | Code | 133 | 303 | #
# Copyright 2015, Noah Kantrowitz
#
# 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 writin... | 16,432 |
https://github.com/ElCholoGamer/brazil-bot/blob/master/src/commands/apis/dog.ts | Github Open Source | Open Source | MIT | 2,020 | brazil-bot | ElCholoGamer | TypeScript | Code | 50 | 149 | import { MessageAttachment } from 'discord.js';
import fetch from 'node-fetch';
const dog: Command = {
name: 'dog',
description: 'Shows a random image of a dog!',
async execute({ channel }) {
const [dog] = await (
await fetch('https://api.thedogapi.com/v1/images/search')
).json();
const attachment = new M... | 40,033 |
https://github.com/ipaprika/r2-streamer-swift/blob/master/Sources/model/ContainerCbzDirectory.swift | Github Open Source | Open Source | BSD-3-Clause | 2,019 | r2-streamer-swift | ipaprika | Swift | Code | 196 | 465 | //
// ContainerCbzDirectory.swift
// r2-streamer-swift
//
// Created by Alexandre Camilleri on 4/3/17.
//
// Copyright 2018 Readium Foundation. All rights reserved.
// Use of this source code is governed by a BSD-style license which is detailed
// in the LICENSE file present in the project repository where this s... | 18,743 |
https://github.com/AtlantPlatform/atlant-go/blob/master/tests/110-cluster-of-3/node1/Dockerfile | Github Open Source | Open Source | BSD-3-Clause | 2,021 | atlant-go | AtlantPlatform | Dockerfile | Code | 15 | 56 | FROM atlantplatform/atlant-node:latest
WORKDIR /AtlantPlatform/
COPY var/ ./var/
COPY lipsum.txt ./
EXPOSE 33780
ENTRYPOINT ["./atlant-go" ]
| 2,120 |
https://github.com/lixinlot/BuDeJie/blob/master/BuDeJieDemo/Setting(设置)/Controller/SettingViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | BuDeJie | lixinlot | Objective-C | Code | 28 | 84 | //
// SettingViewController.h
// BuDeJieDemo
//
// Created by jimmy on 2018/4/19.
// Copyright © 2018年 jimmy. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SettingViewController : UITableViewController
@end
| 5,015 |
https://github.com/kalaratri9/product-microgateway/blob/master/enforcer/src/main/gen/org/wso2/choreo/connect/discovery/subscription/SubscriptionListOrBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | product-microgateway | kalaratri9 | Java | Code | 79 | 398 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wso2/discovery/subscription/subscription_list.proto
package org.wso2.choreo.connect.discovery.subscription;
public interface SubscriptionListOrBuilder extends
// @@protoc_insertion_point(interface_extends:wso2.discovery.subscription.Subscripti... | 29,126 |
https://github.com/jmh9072/ustalk/blob/master/uStalk/index.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | ustalk | jmh9072 | PHP | Code | 53 | 222 | <?
require_once "common.php";
//display interface
global $HEAD,$BODY;
$HEAD = true;
if(!isset($page['name']) || !file_exists("page/".$page['name'].'.php'))
{
$page['name'] = "news";
}
if(!isset($page['template']))
{
$page['template'] = 'main';
}
while(1)
{
ob_start();
include "page/".$page['name'].".php";
if($... | 22,688 |
https://github.com/fyunka/Brooklyn-Bridge/blob/master/Brooklyn Bridge/ViewController.swift | Github Open Source | Open Source | MIT | null | Brooklyn-Bridge | fyunka | Swift | Code | 108 | 297 | //
// ViewController.swift
// Brooklyn Bridge
//
// Created by sophia on 6/20/19.
// Copyright © 2019 fyunka. All rights reserved.
// Integrating Maps Into Apps
import UIKit
import MapKit
final class ViewController: UIViewController, MKMapViewDelegate {
@IBOutlet private var map: MKMapView!
overrid... | 13,034 |
https://github.com/Nextdoor/bender/blob/master/handlers/src/main/java/com/nextdoor/bender/handler/s3/SNSS3HandlerConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | bender | Nextdoor | Java | Code | 294 | 740 | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | 22,009 |
https://github.com/ittimeline/gradle/blob/master/subprojects/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ArtifactSetFactory.java | Github Open Source | Open Source | BSD-3-Clause, LGPL-2.1-or-later, LicenseRef-scancode-mit-old-style, EPL-2.0, CDDL-1.0, MIT, LGPL-2.1-only, Apache-2.0, MPL-2.0, EPL-1.0 | 2,023 | gradle | ittimeline | Java | Code | 401 | 1,473 | /*
* Copyright 2022 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... | 183 |
https://github.com/Vorlias/Vorlias2D.NET/blob/master/System/Types/Sequences/ColorSequence.cs | Github Open Source | Open Source | MIT | 2,018 | Vorlias2D.NET | Vorlias | C# | Code | 125 | 405 | using SFML.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Andromeda.System.Utility;
namespace Andromeda.System.SequenceTypes
{
/// <summary>
/// A sequence of colours
/// </summary>
public class ColorSequence : Seque... | 23,537 |
https://github.com/castlemilk/b/blob/master/src/components/VerticalTimeline/VerticalTimeline.js | Github Open Source | Open Source | MIT | 2,019 | b | castlemilk | JavaScript | Code | 78 | 250 | import React from 'react'
import PropTypes from 'prop-types'
import VerticalTimelineWrapper from './VerticalTimelineWrapper'
class VerticalTimeline extends React.Component {
render () {
const { animate, children } = this.props
let { className } = this.props
className += ' vertical-timeline'
if (ani... | 53,255 |
https://github.com/Picroup/Picroup-iOS/blob/master/Picroup-iOS/Routers/Login/UpdatePasswordViewController/UpdatePasswordPresenter.swift | Github Open Source | Open Source | MIT | null | Picroup-iOS | Picroup | Swift | Code | 110 | 378 | //
// UpdatePasswordPresenter.swift
// Picroup-iOS
//
// Created by ovfun on 2018/8/28.
// Copyright © 2018年 luojie. All rights reserved.
//
import UIKit
import Material
final class UpdatePasswordPresenter: NSObject {
@IBOutlet weak var oldPasswordField: TextField!
@IBOutlet weak var passwordField: TextFi... | 19,397 |
https://github.com/Tryweirder/env-tests-logging/blob/master/tests/common/script_utils.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | env-tests-logging | Tryweirder | Python | Code | 248 | 616 | # Copyright 2021 Google LLC
#
# 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, ... | 41,520 |
https://github.com/Kagami/bnw-meow/blob/master/app/scripts/controllers/posts_controller.coffee | Github Open Source | Open Source | CC0-1.0 | 2,020 | bnw-meow | Kagami | CoffeeScript | Code | 198 | 555 | Chaplin = require "chaplin"
Posts = require "models/posts"
PostsView = require "views/posts"
HeaderView = require "views/header"
module.exports = class PostsController extends Chaplin.Controller
show: (params) ->
# Unescape matched parts of url.
# Why the hell chaplin doesn't do it by himself?
# XXX: See... | 11,301 |
https://github.com/glycerine/shore-mt/blob/master/old/old_old_versions_for_vas/do_not_try_to_compile/from_24oct1997/just_read_it_for_instruction_on_vas/shore-1.1.1/src/util/mount/linux/mount.8 | Github Open Source | Open Source | Spencer-94, Spencer-86, Xnet, Linux-OpenIB, Spencer-99, X11, CECILL-B | 2,019 | shore-mt | glycerine | null | Spoken | 2,753 | 5,027 | .\" Copyright (c) 1980, 1989, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the ab... | 29,779 |
https://github.com/arbal/alfred-brave-history/blob/master/profile/profile.go | Github Open Source | Open Source | MIT | 2,021 | alfred-brave-history | arbal | Go | Code | 51 | 180 | package profile
import (
"path/filepath"
"strings"
"github.com/arbal/alfred-brave-history/utils"
)
const (
braveConfigPath = "~/Library/Application Support/BraveSoftware/Brave-Browser"
)
func GetProfilePath(profile string) (string, error) {
var path string
if strings.Contains(profile, "/") {
path = filepath... | 13,250 |
https://github.com/JetBrains/MPS/blob/master/languages/languageDesign/extension/source_gen/jetbrains/mps/lang/extension/typesystem/typeof_ExtensionPointExpression_InferenceRule.java | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | MPS | JetBrains | Java | Code | 176 | 1,140 | package jetbrains.mps.lang.extension.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractInferenceRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.InferenceRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeCheckingCon... | 32,548 |
https://github.com/jornveltrop/College-Poll/blob/master/views/partials/headerAdmin.hbs | Github Open Source | Open Source | MIT | null | College-Poll | jornveltrop | null | Spoken | 13 | 88 | <header>
<a href="/"><h1>College Poll</h1></a>
<nav>
<a href="/?admin=true">Stemmen</a>
<a href="/resultaten?admin=true">Resultaten</a>
<a href="/admin?admin=true">Admin</a>
</nav>
</header> | 50,968 |
https://github.com/GoodDollar/GoodProtocol/blob/master/contracts/mocks/SixteenDecimalsTokenMock.sol | Github Open Source | Open Source | MIT | 2,022 | GoodProtocol | GoodDollar | Solidity | Code | 36 | 199 | // SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import "@openzeppelin/contracts-upgradeable/token/ERC20/presets/ERC20PresetMinterPauserUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
contract SixteenDecimalsTokenMock is ERC20PresetMinterPauserUpgradeable {... | 51,877 |
https://github.com/funkygao/gafka/blob/master/cmd/kateway/gateway/codec.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | gafka | funkygao | Go | Code | 143 | 451 | package gateway
import (
"encoding/binary"
"io"
)
func writeI16(writer io.Writer, buf []byte, v int16) error {
b := buf[:2]
binary.BigEndian.PutUint16(b, uint16(v))
_, e := writer.Write(b)
return e
}
func writeI32(writer io.Writer, buf []byte, v int32) error {
b := buf[:4]
binary.BigEndian.PutUint32(b, uint3... | 16,950 |
https://github.com/msansm1/androdek/blob/master/medekapi/src/main/java/bzh/msansm1/medekapi/json/user/JsonUser.java | Github Open Source | Open Source | MIT | 2,018 | androdek | msansm1 | Java | Code | 88 | 242 | package bzh.msansm1.medekapi.json.user;
public class JsonUser {
private Integer id;
private String login;
private String mail;
public JsonUser() {
super();
}
public JsonUser(Integer id, String login, String mail) {
super();
this.id = id;
this.login = login;
this.mail = mail;
}
public Integer getI... | 47,642 |
https://github.com/rdkcentral/xvcs-java-sdk/blob/master/sdk/src/test/java/com/comcast/vrex/sdk/config/SpeechApplicationTest.java | Github Open Source | Open Source | Apache-2.0 | null | xvcs-java-sdk | rdkcentral | Java | Code | 177 | 528 | /*
* Copyright 2021 Comcast Cable Communications Management, LLC
*
* 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... | 35,842 |
https://github.com/YasminLuzia/ExamplesAndProjectsWeb2/blob/master/proj_final/pokemon.sql | Github Open Source | Open Source | MIT | null | ExamplesAndProjectsWeb2 | YasminLuzia | SQL | Code | 189 | 630 | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 06, 2020 at 07:47 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | 40,742 |
https://github.com/redinger/experiment/blob/master/project.clj | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,012 | experiment | redinger | null | Spoken | 112 | 661 | (defproject experiment "0.9.0"
:description "Evaluation platform of a new model for running, recording and sharing self-experiments"
:url "http://personalexperiments.org"
:source-path "clojure"
:dependencies
[ ;; Clojure Core
[org.clojure/clojure "1.3.0"]
[org.clojure/tools.logging "0.2.3"]
[org.cloj... | 4,290 |
https://github.com/voflo/Search/blob/master/lab/davisWiki/The_Richter_Group.f | Github Open Source | Open Source | MIT | null | Search | voflo | null | Spoken | 41 | 62 |
The Richter Group is a human resources management firm Davis B2B providing consulting on employee handbooks, establishing the human resources function, employee relations, federal/state labor law compliance, supervisory training, performance appraisals, recruitment.
Davis contains many companies providing business to... | 39,491 |
https://github.com/tiwipramesti123/CRUD2/blob/master/app/Http/Controllers/JawabanController.php | Github Open Source | Open Source | MIT | null | CRUD2 | tiwipramesti123 | PHP | Code | 165 | 597 | <?php
namespace App\Http\Controllers;
use App\Jawaban;
use App\Pertanyaan;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class JawabanController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function ... | 28,560 |
https://github.com/bariskaraer/CS-240-Lab-Works/blob/master/cs240 labs/Prelab_1/prelab.asm | Github Open Source | Open Source | MIT | null | CS-240-Lab-Works | bariskaraer | Assembly | Code | 61 | 91 | 0: CP 130 120 // min = x
1: CP 134 121 // tmp = y
2: LT 134 120 // tmp = tmp < x
3: BZJ 6 134 // if(tmp == 0) goto END
4: CP 130 121 // min = y
5: BZJi 6 0 // goto END
6: 5
120: 37 // x
121: 220 // y
| 4,900 |
https://github.com/fabioandrec/Ths-Erp-Framewrok/blob/master/ThsFramework/Forms/InputForms/ufrmSysMultiLangDataTableList.pas | Github Open Source | Open Source | Unlicense | 2,019 | Ths-Erp-Framewrok | fabioandrec | Pascal | Code | 111 | 582 | unit ufrmSysMultiLangDataTableList;
interface
{$I ThsERP.inc}
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, ComCtrls, StrUtils,
Vcl.AppEvnts, Vcl.Menus, Vcl.Samples.Spin,
Ths.Erp.Helper.Edit,
Ths.Erp.Helper.Memo,
Ths.Erp.Helper.ComboBox,
... | 53,844 |
https://github.com/marshallsherman/f1-trello-group-migration/blob/master/src/components/App.js | Github Open Source | Open Source | MIT | null | f1-trello-group-migration | marshallsherman | JavaScript | Code | 57 | 172 | import React, { PropTypes } from 'react';
// import { Link, IndexLink } from 'react-router';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import AppBar from './AppBar';
import injectTapEventPlugin from 'react-tap-event-plugin';
const App = () => {
return (
<MuiThemeProvider>
<AppBar ... | 11,641 |
https://github.com/zarudYin/vjuui/blob/master/src/components/checkbox/checkbox-group.vue | Github Open Source | Open Source | MIT | null | vjuui | zarudYin | Vue | Code | 110 | 384 | <template>
<span class="vju-checkbox-group">
<slot></slot>
</span>
</template>
<script>
import { findComponentsDownward } from '../../utils/dom.js';
export default {
name: 'CheckboxGroup',
props: {
value: {
type: Array,
default: function() {
retu... | 27,220 |
https://github.com/estapitta/top-to-bottom/blob/master/server/api/cart.js | Github Open Source | Open Source | MIT | 2,019 | top-to-bottom | estapitta | JavaScript | Code | 334 | 1,046 | const router = require('express').Router()
const {Cart, CartData, Product} = require('../db/models')
//Find cart
router.get('/:userId', (req, res, next) => {
try {
if (req.params.userId === 'undefined') {
Cart.findOrCreate({
where: {sessionId: req.session.id},
include: [
{
... | 8,202 |
https://github.com/match-proj/mecroservice-user/blob/master/microservice-user-event/src/main/java/com/match/user/event/EventUserCreateDTO.java | Github Open Source | Open Source | Apache-2.0 | null | mecroservice-user | match-proj | Java | Code | 87 | 229 | package com.match.user.event;
import java.io.Serializable;
/**
* @Author zhangchao
* @Date 2019/8/5 16:14
* @Version v1.0
*/
public class EventUserCreateDTO implements Serializable {
public final static String EVENT_NAME = "USER_CREATE";
private String userId;
private String username;
private Stri... | 30,738 |
https://github.com/wpayze/CursoLaravel6/blob/master/tarjetas/app/Http/Controllers/tarjetaController.php | Github Open Source | Open Source | MIT | 2,021 | CursoLaravel6 | wpayze | PHP | Code | 24 | 81 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Tarjeta;
class tarjetaController extends Controller
{
public function index() {
$tarjetas = Tarjeta::get();
return view("tarjetas", compact("tarjetas"));
}
} | 39,653 |
https://github.com/SeasideSt/Parasol/blob/master/repository/Parasol-Tests.package/BPRemoteWebDriverTestCase.class/instance/testGetCapabilities.st | Github Open Source | Open Source | MIT | 2,023 | Parasol | SeasideSt | null | Spoken | 57 | 170 | running
testGetCapabilities
| capabilities platform |
capabilities := driver getCapabilities.
self assert: capabilities getBrowserName = 'chrome'.
platform := capabilities getPlatform.
self assert: (#('ANY' 'MAC' 'WINDOWS' 'UNIX' 'LINUX') includes: platform family name).
self assert: (platform is: (BPPlatfo... | 18,583 |
https://github.com/Paul-Hess/anzwers/blob/master/app/compare/service.js | Github Open Source | Open Source | MIT | null | anzwers | Paul-Hess | JavaScript | Code | 14 | 57 | import Ember from 'ember';
export default Ember.Service.extend({
qAndAs: [],
addItem(item) {
this.get('qAndAs').pushObject(item);
}
});
| 31,168 |
https://github.com/pcwalden/web2py/blob/master/gluon/form.py | Github Open Source | Open Source | BSD-3-Clause | null | web2py | pcwalden | Python | Code | 674 | 2,259 | from gluon.dal import DAL
from gluon.storage import Storage
from gluon.utils import web2py_uuid
try:
# web3py
from gluon.current import current
from gluon.url import URL
from gluon.helpers import *
except:
# web2py
from gluon import current
from gluon.html import *
def FormStyleDefault(ta... | 34,811 |
https://github.com/primefaces/primevue/blob/master/components/lib/togglebutton/ToggleButton.d.ts | Github Open Source | Open Source | MIT | 2,023 | primevue | primefaces | TypeScript | Code | 773 | 1,747 | /**
*
* ToggleButton is used to select a boolean value using a button.
*
* [Live Demo](https://www.primevue.org/togglebutton/)
*
* @module togglebutton
*
*/
import { InputHTMLAttributes, VNode } from 'vue';
import { ComponentHooks } from '../basecomponent';
import { ClassComponent, GlobalComponentConstructor, P... | 36,462 |
https://github.com/aliabbas90/TOCropViewController/blob/master/Objective-C/TOCropViewControllerExample/CropViewController.swift | Github Open Source | Open Source | MIT | 2,018 | TOCropViewController | aliabbas90 | Swift | Code | 160 | 536 | //
// CropViewController.swift
// TOCropViewControllerExample
//
// Created by Ali ABBAS on 01/04/2018.
// Copyright © 2018 Tim Oliver. All rights reserved.
//
import UIKit
class CropViewController: UIViewController {
@IBOutlet weak var croppedImageView: UIImageView!
private var cropView: TOCropView!
... | 13,350 |
https://github.com/couchbaselabs/BLIP-Cpp/blob/master/include/blip_cpp/Message.hh | Github Open Source | Open Source | Apache-2.0 | 2,022 | BLIP-Cpp | couchbaselabs | C++ | Code | 813 | 1,971 | //
// Message.hh
//
// Copyright (c) 2017 Couchbase, 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... | 34,160 |
https://github.com/rahulyhg/tour/blob/master/app/Http/Controllers/Admin/PostsController.php | Github Open Source | Open Source | MIT | 2,017 | tour | rahulyhg | PHP | Code | 332 | 1,167 | <?php
namespace App\Http\Controllers\Admin;
use App\BlogCategory;
use App\Http\Requests\PostsRequest;
use App\Post;
use App\Tag;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Fa... | 24,988 |
https://github.com/BananaNo1/leetcode/blob/master/src/simple/S977.java | Github Open Source | Open Source | Apache-2.0 | null | leetcode | BananaNo1 | Java | Code | 100 | 278 | package simple;
import java.util.Arrays;
public class S977 {
public static int[] sortedSquares1(int[] nums) {
for (int i = 0; i < nums.length; i++) {
nums[i] = nums[i] * nums[i];
}
Arrays.sort(nums);
return nums;
}
public int[] sortedSquares(int[] nums) {
... | 49,592 |
https://github.com/wahyudidanny/line-bot-framework-php/blob/master/classes/Database.php | Github Open Source | Open Source | MIT | null | line-bot-framework-php | wahyudidanny | PHP | Code | 28 | 135 | <?php
class Database{
function Database(){
$this->mysqli = mysqli_connect(DB_HOST, DB_USER, DB_PASSWD, DB_DATABASE);
}
function query($sql){
return mysqli_query($this->mysqli, $sql);
}
function close(){
$this->mysqli->close();
}
function escape($param){
return $this->mysqli->real_escape_string(... | 5,360 |
https://github.com/jmul-dev/ao-frontend/blob/master/src/modules/clock/components/Clock.js | Github Open Source | Open Source | MIT | null | ao-frontend | jmul-dev | JavaScript | Code | 63 | 202 | import React, { Component } from 'react';
import moment from 'moment';
import Typography from '@material-ui/core/Typography';
export default class Clock extends Component {
constructor() {
super()
this.state = {
currentTime: moment().format('LT')
}
}
componentDidMount()... | 40,199 |
https://github.com/denisbertini/geneva/blob/master/src/common/GPlotDesigner.cpp | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,021 | geneva | denisbertini | C++ | Code | 11,332 | 32,113 | /********************************************************************************
*
* This file is part of the Geneva library collection. The following license
* applies to this file:
*
* ------------------------------------------------------------------------------
* Licensed under the Apache License, Version 2.... | 48,586 |
https://github.com/denisgoddard/ssb-config/blob/master/tests/server/secret-stack/index.js | Github Open Source | Open Source | MIT | 2,021 | ssb-config | denisgoddard | JavaScript | Code | 77 | 259 | const fs = require('fs')
const Path = require('path')
const Server = require('scuttle-testbot')
.use(require('ssb-master'))
module.exports = function TestServer (config) {
const server = Server(config)
writeManifest(server)
process.on('message', msg => {
if (msg.action === 'CLOSE') {
server.close((... | 36,381 |
https://github.com/leovoon/portal-web/blob/master/components/StayInTouch/StayInTouch.vue | Github Open Source | Open Source | Apache-2.0 | 2,022 | portal-web | leovoon | Vue | Code | 131 | 715 | <template>
<div class="bg-josa-blue-dark text-white pb-12">
<div class="pt-12 ltr:pl-12 ltr:pr-4 rtl:pr-12 rtl:pl-4 w-full">
<h2 class="title">{{ $t('stayInTouch.title') }}</h2>
</div>
<div class="flex flex-wrap">
<div class="px-12 w-full lg:w-1/2">
<p class="mb-4"><strong>{{ $t('stayI... | 15,529 |
https://github.com/oncebuilder/OnceBuilderCRUD/blob/master/admin/ajax/core.php | Github Open Source | Open Source | MIT | 2,020 | OnceBuilderCRUD | oncebuilder | PHP | Code | 152 | 810 | <?php
/*
* Version: 1.0, 31.05.2012
* by Adam Wysocki, goldpaid777@gmail.com
*
* Copyright (c) 2012 Adam Wysocki
*
* This is simply JS -> PHP connector comand switch
*
*/
// Initialize connector class
$once = new core($_CONFIG);
$once->set_data(array("ajax" => true, "csrf_token" => $_GET['csrf_token']));
switc... | 25,194 |
https://github.com/GabrieleMazzola/Progetto-L/blob/master/MonopattinoAirway/src/communication/StubMachine.java | Github Open Source | Open Source | MIT | 2,017 | Progetto-L | GabrieleMazzola | Java | Code | 807 | 2,496 | package communication;
import centralsystem.interfaces.CentralSystemTicketInterface;
import items.Product;
import items.Sale;
import java.io.*;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
import enums.jsonenumerations.JsonFiel... | 23,904 |
https://github.com/SwitchbladeBot/switchblade/blob/master/src/database/index.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | switchblade | SwitchbladeBot | JavaScript | Code | 15 | 62 | module.exports = {
// Base structures
DBWrapper: require('./DBWrapper.js'),
Repository: require('./Repository.js'),
// DBWrappers
MongoDB: require('./mongo/MongoDB.js')
}
| 26,509 |
https://github.com/neurodata/neurodata.io/blob/master/content/bibs/press.bib | Github Open Source | Open Source | Apache-2.0 | 2,023 | neurodata.io | neurodata | null | Spoken | 544 | 2,861 | @misc{Prazosin2020,
year={2020},
title={Prazosin Might Be A Treatment for COVID-19. More Data Is Urgently Needed},
url={https://www.forbes.com/sites/stevensalzberg/2020/04/08/a-possible-treatment-for-covid-19/?sh=9055d4975af2},
address={Forbes},
author={Salzberg, Steven},
keywords={press}
}
@misc{Atlantic2... | 27,211 |
https://github.com/123jian/bbs/blob/master/discuz/upload/source/class/table/table_forum_debate.php | Github Open Source | Open Source | BSD-2-Clause | 2,021 | bbs | 123jian | PHP | Code | 169 | 620 | <?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: table_forum_debate.php 27738 2012-02-13 10:02:53Z monkey $
*/
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class table_forum_debate extends discuz_table
{
public function _... | 35,148 |
https://github.com/jacques-saraydaryan/general_mng/blob/master/general_mng/scripts/scenario/deprecated/TestCocktailPartyV1Scenario.py | Github Open Source | Open Source | Apache-2.0 | null | general_mng | jacques-saraydaryan | Python | Code | 197 | 1,320 | __author__ = 'Jacques Saraydaryan'
from abc import ABCMeta, abstractmethod
import rospy
import uuid
import time
import random
import actionlib
from AbstractScenarioBus import AbstractScenarioBus
from AbstractScenarioAction import AbstractScenarioAction
from AbstractScenario import AbstractScenario
from map_manager.s... | 38,156 |
https://github.com/lc4t/Bili-Live-Bot/blob/master/reqs/pk_raffle_handler.py | Github Open Source | Open Source | MIT | 2,022 | Bili-Live-Bot | lc4t | Python | Code | 56 | 287 | from bili_global import API_LIVE
from json_rsp_ctrl import ZERO_ONLY_CTRL
class PkRaffleHandlerReq:
@staticmethod
async def check(user, real_roomid):
url = f'{API_LIVE}/xlive/lottery-interface/v1/lottery/Check?roomid={real_roomid}'
json_rsp = await user.bililive_session.request_json('GET', url... | 51,386 |
https://github.com/i-show/android-Common/blob/master/app/src/main/java/com/ishow/noah/modules/sample/detail/photo/select/SampleSelectPhotoFragment.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | android-Common | i-show | Kotlin | Code | 291 | 1,104 | /*
* Copyright (C) 2016 The yuhaiyang Android Source Project
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless req... | 29,546 |
https://github.com/broadinstitute/chowser/blob/master/src/main/scala/chowser/app/ChowserAppInfo.scala | Github Open Source | Open Source | BSD-3-Clause | null | chowser | broadinstitute | Scala | Code | 26 | 61 | package chowser.app
object ChowserAppInfo {
val version: String = "1.7.7"
val name: String = "chowser"
val fullName: String = name + " " + version
}
| 3,129 |
https://github.com/Harshita248/Mental_companion/blob/master/lib/Class/CustomListView.dart | Github Open Source | Open Source | MIT | null | Mental_companion | Harshita248 | Dart | Code | 63 | 232 | import 'package:flutter/material.dart';
class CustomListView extends StatelessWidget {
String title, subtitle;
CustomListView({required this.title, required this.subtitle});
@override
Widget build(BuildContext context) {
return Container(
child: Column(
children: <Widget>[
ListTil... | 7,945 |
https://github.com/astronomer/astro-cli/blob/master/airflow/mocks/ImageHandler.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | astro-cli | astronomer | Go | Code | 131 | 317 | // Code generated by mockery v2.9.4. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// ImageHandler is an autogenerated mock type for the ImageHandler type
type ImageHandler struct {
mock.Mock
}
// Build provides a mock function with given fields: path
func (_m *ImageHandler) Build(path ... | 33,445 |
https://github.com/horia16/vue-headless-ui/blob/master/src/utils/random.ts | Github Open Source | Open Source | MIT | 2,021 | vue-headless-ui | horia16 | TypeScript | Code | 19 | 50 | /**
* Create a random string
*/
export default function randomString(length = 30) {
return [...Array(length)].map(() => Math.random().toString(36)[2]).join("");
}
| 15,985 |
https://github.com/TransbankDevelopers/transbank-sdk-dotnet/blob/master/Transbank/Webpay/TransaccionCompleta/FullTransaction.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | transbank-sdk-dotnet | TransbankDevelopers | C# | Code | 288 | 1,326 | using System;
using Newtonsoft.Json;
using Transbank.Common;
using Transbank.Exceptions;
using Transbank.Webpay.Common;
using Transbank.Webpay.TransaccionCompleta.Requests;
using Transbank.Webpay.TransaccionCompleta.Responses;
namespace Transbank.Webpay.TransaccionCompleta
{
public class FullTransaction : WebpayOp... | 52,616 |
https://github.com/AllenHsu4390/mono/blob/master/main/libs/rest-models/src/lib/trends/trend.ts | Github Open Source | Open Source | MIT | null | mono | AllenHsu4390 | TypeScript | Code | 15 | 39 | export interface TrendResponse {
links: {
assets: {
rel: 'assets';
url: string;
};
};
}
| 18,662 |
https://github.com/domain-independent-dp/didp-rs/blob/master/didppy/src/heuristic_search_solver/cbfs.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | didp-rs | domain-independent-dp | Rust | Code | 910 | 2,600 | use super::f_operator::FOperator;
use super::wrapped_solver::{SolutionPy, WrappedSolver};
use crate::model::ModelPy;
use dypdl::prelude::*;
use dypdl::variable_type::OrderedContinuous;
use dypdl_heuristic_search::{create_dual_bound_cbfs, FEvaluatorType, Parameters, Search};
use pyo3::prelude::*;
use std::rc::Rc;
/// C... | 40,629 |
https://github.com/dargonfyl/imgui-painter/blob/master/.gitmodules | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Unlicense | 2,021 | imgui-painter | dargonfyl | Git Config | Code | 53 | 262 | [submodule "dependencies/glfw"]
path = dependencies/glfw
url = https://github.com/glfw/glfw.git
[submodule "dependencies/glm"]
path = dependencies/glm
url = https://github.com/g-truc/glm.git
[submodule "dependencies/glad-3.33"]
path = dependencies/glad-3.3
url = https://github.com/dargonfyl/glad-3.3.git
[submodul... | 30,843 |
https://github.com/ernanvr/Rick-and-Morty/blob/master/src/utils/fetchApi.ts | Github Open Source | Open Source | MIT | null | Rick-and-Morty | ernanvr | TypeScript | Code | 32 | 65 | export const fetchData = async (url: string | undefined) => {
if (!url) {
throw new Error('No url');
}
const response = await fetch(<string>url);
const data = await response.json();
return data;
};
| 6,673 |
https://github.com/hccoo/gooios/blob/master/netcoremicroservices/Gooios.GoodsService/Repositories/GrouponConditionRepository.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | gooios | hccoo | C# | Code | 32 | 135 | using Gooios.GoodsService.Domains.Aggregates;
using Gooios.GoodsService.Domains.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Gooios.GoodsService.Repositories
{
public class GrouponConditionRepository : Repository<GrouponCondition, int>, I... | 12,551 |
https://github.com/Snake-Sanders/copy-to-clipboard-button/blob/master/jquery/script.js | Github Open Source | Open Source | MIT | 2,022 | copy-to-clipboard-button | Snake-Sanders | JavaScript | Code | 78 | 413 | jQuery(document).ready(function($) {
var code_id = 0;
$('pre').each(function() {
code_id++;
$(this).attr('data-code-id', code_id).wrap('<div class="pre-wrapper"/>');
$(this).parent().css('margin', $(this).css('margin'));
var button_html = `<button class="copy-snippet">Copy</but... | 45,155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.