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/gmeks/tusdotnet/blob/master/Source/tusdotnet.test/Tests/InMemoryFileLockTests.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | tusdotnet | gmeks | C# | Code | 98 | 516 | using Shouldly;
using tusdotnet.Helpers;
using Xunit;
namespace tusdotnet.test.Tests
{
public class InMemoryFileLockTests
{
[Fact]
public void LockAsync_Can_Lock_Successfully()
{
const string fileId = "testfile1";
var fileLock1 = new InMemoryFileLock(fileId);
fileLock1.Lock().ShouldBeTrue();
... | 46,868 |
https://github.com/Afforess/sftp-sync/blob/master/src/main/java/com/afforess/sftp/sync/exception/SFTPOfflineException.java | Github Open Source | Open Source | CC-BY-3.0, MIT | 2,013 | sftp-sync | Afforess | Java | Code | 22 | 74 | package com.afforess.sftp.sync.exception;
public class SFTPOfflineException extends SFTPException{
private static final long serialVersionUID = 1L;
public SFTPOfflineException(String message) {
super(message, null);
}
}
| 3,253 |
https://github.com/bufferoverflow/embb/blob/master/base_cpp/src/duration.cc | Github Open Source | Open Source | BSD-2-Clause | 2,020 | embb | bufferoverflow | C++ | Code | 627 | 1,788 | /*
* Copyright (c) 2014, Siemens AG. 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 above copyright notice,
* this list of conditions an... | 15,708 |
https://github.com/stevesloka/kind/blob/master/hack/build/go_container.sh | Github Open Source | Open Source | Apache-2.0 | null | kind | stevesloka | Shell | Code | 384 | 939 | #!/bin/sh
# Copyright 2019 The Kubernetes 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 applicable law or ... | 5,773 |
https://github.com/gleydsonruan/payment/blob/master/tests/Unit/Services/Transaction/TransactionServiceTest.php | Github Open Source | Open Source | MIT | null | payment | gleydsonruan | PHP | Code | 178 | 762 | <?php
namespace Tests\Unit\Services\Transaction;
use App\Models\Account;
use App\Models\Transaction;
use App\Repositories\TransactionRepository;
use App\Services\Transaction\TransactionService;
use Illuminate\Support\Facades\DB;
use Mockery;
use Tests\TestCase;
class TransactionServiceTest extends TestCase
{
pub... | 39,539 |
https://github.com/jampod/jampod/blob/master/catalogs/MainApp/S_QUERY.CATEGORIES_cell.js | Github Open Source | Open Source | MIT | 2,021 | jampod | jampod | JavaScript | Code | 8 | 32 | function on_change_category(category) {
owner.action("script", { script:"on_change_category" });
}
| 10,789 |
https://github.com/tuhmez/recipe-app-frontend/blob/master/src/stories/RecipeForm.stories.tsx | Github Open Source | Open Source | MIT | null | recipe-app-frontend | tuhmez | TypeScript | Code | 80 | 254 | import { theme } from '../app-styles';
import { RecipeForm } from '../components/RecipeForm';
import { ThemeProvider } from '@material-ui/core';
import { emptyRecipe, exampleRecipe } from '../common/data';
import { action } from '@storybook/addon-actions';
const storyExport = {
title: 'RecipeForm',
component: Reci... | 27,966 |
https://github.com/tonysneed/SimpleMvvmToolkit/blob/master/Source/VS2013/WindowsPhone/v8.0/SimpleMvvmToolkit-WindowsPhone-v8.0/Navigator.cs | Github Open Source | Open Source | MIT | 2,016 | SimpleMvvmToolkit | tonysneed | C# | Code | 63 | 185 | using System;
using System.Windows;
using Microsoft.Phone.Controls;
using System.Windows.Navigation;
namespace SimpleMvvmToolkit
{
/// <summary>
/// Handles page navigation.
/// </summary>
public class Navigator : INavigator
{
/// <summary>
/// Navigate to specified page.
/... | 24,869 |
https://github.com/apache/openoffice/blob/master/main/saxon/saxon-9.0.0.7-bj.patch | Github Open Source | Open Source | Apache-2.0, CPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-permissive, Zlib, LZMA-exception, LGPL-2.0-or-later, LicenseRef-scancode-free-unknown, LicenseRef-scancode-philippe-de-muyter, OFL-1.1, LGPL-2.1-only, MPL-1.1, X11, LGPL-2.1-or-later, GPL-2.0-only, OpenSSL, LicenseRef-scancode-cpl-0.5, GPL-1.0-or-later, NPL-1.... | 2,023 | openoffice | apache | null | Spoken | 3,484 | 15,471 | --- misc/src/build.xml 2008-07-11 12:11:50.079281000 +0200
+++ misc/build/src/build.xml 2008-07-11 12:17:29.848740000 +0200
@@ -1 +1,1027 @@
-dummy
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project basedir="." default="all" name="Saxon-B The XSLT and XQuery Processor"
+ xmlns:dn="antlib:org.apache.ant.dotnet"... | 7,263 |
https://github.com/yuebo/dyna-starter/blob/master/src/main/java/com/github/yuebo/dyna/security/ErrorPageInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | dyna-starter | yuebo | Java | Code | 177 | 472 | /*
*
* * Copyright 2002-2017 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
* ... | 14,771 |
https://github.com/medismailben/llvm-project/blob/master/llvm/test/CodeGen/AMDGPU/dead-machine-elim-after-dead-lane.ll | Github Open Source | Open Source | Apache-2.0 | 2,022 | llvm-project | medismailben | LLVM | Code | 126 | 305 | ; RUN: llc -march=amdgcn -verify-machineinstrs %s -o - | FileCheck %s
; CHECK-LABEL: foo
; CHECK-NOT: BUFFER_LOAD_DWORDX2_OFFSET
; After dead code elimination, that buffer load should be eliminated finally
; after dead lane detection.
define amdgpu_kernel void @foo() {
entry:
switch i8 undef, label %foo.exit [
i... | 47,143 |
https://github.com/sirfrancis553544/crypto-site/blob/master/src/components/News.js | Github Open Source | Open Source | MIT | null | crypto-site | sirfrancis553544 | JavaScript | Code | 72 | 199 | import React, { useContext } from "react";
import { NewsContext } from "../NewsContext";
import NewsArticle from "./NewsArticle";
function News(props) {
const { data } = useContext(NewsContext);
console.log(data);
return (
<div className="container">
<h1 className="text-center py-2">Crypto News</h1>
... | 9,749 |
https://github.com/BlackRookSoftware/Math/blob/master/src/main/java/com/blackrook/math/wave/WaveForm.java | Github Open Source | Open Source | MIT | null | Math | BlackRookSoftware | Java | Code | 561 | 1,629 | /*******************************************************************************
* Copyright (c) 2019 Black Rook Software
* This program and the accompanying materials are made available under
* the terms of the MIT License, which accompanies this distribution.
*****************************************************... | 18,209 |
https://github.com/pokt-network/mvp-example-dapp/blob/master/ETH/iOS/Pocket-Chat/View Controllers/ImportWalletViewController.swift | Github Open Source | Open Source | MIT | 2,020 | mvp-example-dapp | pokt-network | Swift | Code | 403 | 1,203 | //
// ImportWalletViewController.swift
// Pocket-Chat
//
// Created by jeremy beal on 4/18/19.
// Copyright © 2019 Pocket_Sample. All rights reserved.
//
import Foundation
import UIKit
import PocketSwift
class ImportWalletViewController: UIViewController {
// declare Wallet and PocketEth
var wallet:... | 52,514 |
https://github.com/Wcdaren/ebook-reader/blob/master/src/components/readers/BookMark/BookMark.js | Github Open Source | Open Source | MIT | 2,018 | ebook-reader | Wcdaren | JavaScript | Code | 290 | 1,022 | import React, { Component } from 'react'
import styles from './styles.less'
import stySib from '../Sidebar/styles.less'
import moment from 'moment'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
class BookMarks extends Component {
constructor (props) {
super(props)
... | 25,094 |
https://github.com/edurz/CodeIgniter-web/blob/master/application/controllers/ccursos.php | Github Open Source | Open Source | MIT | null | CodeIgniter-web | edurz | PHP | Code | 36 | 173 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Ccursos extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->model('mcurso');
}
public function index(){
$this->load->view('cursos/vcurso');
}
public function cursos(){
$param['nom... | 40,011 |
https://github.com/monkeybars/monkeybars-core/blob/master/spec/unit/controller_spec.rb | Github Open Source | Open Source | BSD-3-Clause | 2,022 | monkeybars-core | monkeybars | Ruby | Code | 1,169 | 4,146 | require File.dirname(__FILE__) + '/../spec_helper.rb'
require 'monkeybars/view'
require 'monkeybars/controller'
require 'spec/unit/test_files.jar'
java_import 'java.awt.event.ActionEvent'
java_import 'java.awt.event.MouseEvent'
java_import 'java.awt.event.WindowEvent'
class RealFormTestView < Monkeybars::View
set_ja... | 2,808 |
https://github.com/berbschloe/UIHandlers/blob/master/UIHandlers/UIControl+UIHandlers.swift | Github Open Source | Open Source | MIT | 2,020 | UIHandlers | berbschloe | Swift | Code | 748 | 1,543 | //
// UIHandlers
//
// Copyright (c) 2018 - Present Brandon Erbschloe - https://github.com/berbschloe
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... | 45,093 |
https://github.com/Sentaroh/Utilities/blob/master/Utilities/src/main/java/com/sentaroh/android/Utilities/Widget/ExtendImageViewTouch.java | Github Open Source | Open Source | MIT, Apache-2.0, MPL-1.1 | 2,021 | Utilities | Sentaroh | Java | Code | 533 | 1,609 | /*
The MIT License (MIT)
Copyright (c) 2015 Sentaroh
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publi... | 28,386 |
https://github.com/aliyun/alibabacloud-csharp-sdk/blob/master/ehpc-20170714/core/Models/ListUsersResponseBody.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | alibabacloud-csharp-sdk | aliyun | C# | Code | 123 | 412 | // This file is auto-generated, don't edit it. Thanks.
using System;
using System.Collections.Generic;
using System.IO;
using Tea;
namespace AlibabaCloud.SDK.EHPC20170714.Models
{
public class ListUsersResponseBody : TeaModel {
[NameInMap("PageNumber")]
[Validation(Required=false)]
public... | 6,908 |
https://github.com/thomasleplus/VisualCrypto/blob/master/src/main/java/org/leplus/libimage/PortableBitmap.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | VisualCrypto | thomasleplus | Java | Code | 1,373 | 3,264 | package org.leplus.libimage;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.leplus.lib2D.Polygon2D;
/**
* Portable Bitmap.
*
* @version $Revision: 1.2 $
* @author Thomas Leplus <thomas@leplus.org>
*/
public class PortableBitmap implements Cloneable {
/**
* Le... | 1,317 |
https://github.com/andryan1302/holirent/blob/master/resources/views/supplier/bus/edit.blade.php | Github Open Source | Open Source | MIT | null | holirent | andryan1302 | PHP | Code | 164 | 876 | @extends('supplier/template/main')
@section('title','Dashboard Supplier Edit')
@extends('supplier/template/navbar')
@extends('supplier/template/sidebar')
@extends('supplier/template/footer')
@extends('supplier/template/linkjs')
@section('content')
<div class="main-content">
<section class="section">
... | 15,015 |
https://github.com/CosmicVoyageur/Tsl.AsciiProtocol.Pcl/blob/master/Tsl.AsciiProtocol/Tsl.AsciiProtocol.Pcl/AsciiResponder.cs | Github Open Source | Open Source | Apache-2.0 | null | Tsl.AsciiProtocol.Pcl | CosmicVoyageur | C# | Code | 539 | 1,594 | // Decompiled with JetBrains decompiler
// Type: TechnologySolutions.Rfid.AsciiProtocol.AsciiResponder
// Assembly: TechnologySolutions.Rfid.AsciiProtocol.FX35, Version=1.1.5423.27429, Culture=neutral, PublicKeyToken=null
// MVID: 9C1072D5-BA32-4CFB-BB8E-6AC565EFDF12
// Assembly location: F:\Visual Studio\Repositories... | 35,268 |
https://github.com/minyangu/uaa/blob/master/server/src/main/java/org/cloudfoundry/identity/uaa/resources/jdbc/AbstractQueryable.java | Github Open Source | Open Source | ISC, GPL-2.0-only, Apache-2.0, Ruby, LicenseRef-scancode-public-domain, BSD-2-Clause, LGPL-2.0-or-later, LicenseRef-scancode-unicode-mappings, GPL-2.0-or-later, LGPL-3.0-only, Artistic-1.0, JSON, Apache-1.1, LicenseRef-scancode-warranty-disclaimer, LGPL-2.1-only, CDDL-1.0, EPL-1.0, Classpath-exception-2.0, MIT, License... | 2,018 | uaa | minyangu | Java | Code | 486 | 1,393 | /*******************************************************************************
* Cloud Foundry
* Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except i... | 2,306 |
https://github.com/SaturnsVoid/Process-Protection/blob/master/main.go | Github Open Source | Open Source | MIT | 2,021 | Process-Protection | SaturnsVoid | Go | Code | 32 | 102 | // Process Protection project main.go
package main
import (
"fmt"
"github.com/SaturnsVoid/Process-Protection/process_protection"
)
func main() {
fmt.Println("This program will protect its-self.")
process_protection.Protect()
fmt.Println("Try killing me with a unelevated tool.")
for {
}
}
| 25,706 |
https://github.com/objetos15162/I-dont-like-the-oozes/blob/master/core/src/mx/heroesofanzu/game/screens/MyScreen.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | I-dont-like-the-oozes | objetos15162 | Java | Code | 230 | 727 | package mx.heroesofanzu.game.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.viewport.FillViewport;
import com.badlogic.gdx.u... | 9,431 |
https://github.com/alanfeng99/oracle-db-examples/blob/master/javascript/nashorn/select.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | oracle-db-examples | alanfeng99 | JavaScript | Code | 87 | 259 | var selectQuery = function(id)
{
var Driver = Packages.oracle.jdbc.OracleDriver;
var oracleDriver = new Driver();
var url = "jdbc:default:connection:";
var output = "";
var connection = oracleDriver.defaultConnection();
var prepStmt;
// Prepare statement
if(id == 'all') {
prepStmt = con... | 52,781 |
https://github.com/CptWesley/TesserNet/blob/master/src/TesserNet/PageSegmentation.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | TesserNet | CptWesley | C# | Code | 248 | 529 | namespace TesserNet
{
/// <summary>
/// Indicates how page segmentation should be treated.
/// </summary>
public enum PageSegmentation
{
/// <summary>
/// Orientation and script detection (OSD) only.
/// </summary>
Osd = 0,
/// <summary>
/// Automati... | 49,305 |
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/networkmanager/getGlobalNetwork.ts | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0, MPL-2.0 | 2,023 | pulumi-aws | pulumi | TypeScript | Code | 315 | 732 | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";
/**
* Retrieve information about a global network.
*
* ## E... | 31,261 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/美团-吃喝玩乐,尽在美团-9.0.0(越狱应用)_headers/TVLPOIDetailLoadingViewController.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 114 | 517 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import "METBaseMerchantViewController.h"
#import "SAKPortalable-Protocol.h"
@class HTKDealListNoContentView, MTImageAnimationLoading... | 33,501 |
https://github.com/easylogic/react-summernote/blob/master/src/stories/paragraph-api/formatPara.tsx | Github Open Source | Open Source | MIT | 2,021 | react-summernote | easylogic | TSX | Code | 100 | 337 | import React from 'react';
import { defaultStyle } from '../util';
import ReactSummernoteLite from 'src/summernote/ReactSummernoteLite';
import { withKnobs } from '@storybook/addon-knobs';
import { SummernoteCallbackInitProps } from 'types';
export const FormatParaCommand = () => {
let $note: any = null;
func... | 18,297 |
https://github.com/patomation/ui/blob/master/src/icons/DesktopWindows.ts | Github Open Source | Open Source | MIT | 2,021 | ui | patomation | TypeScript | Code | 30 | 140 |
import { createIcon } from './createIcon/index'
export const DesktopWindows = createIcon({
name: 'DesktopWindows',
path: 'M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z',
size: '24'
})
| 48,593 |
https://github.com/shidoitsuka/aui-bot/blob/master/commands/Fun/match.js | Github Open Source | Open Source | MIT | 2,020 | aui-bot | shidoitsuka | JavaScript | Code | 191 | 611 | exports.run = (bot, message, args) => {
if (!args[1] || same(args)) return message.channel.send(":question:");
const splitted = args.join(" ").split(" with ");
// prettier-ignore
const values = splitted.join(" ").trim().split(" with ");
// prettier-ignore
if (!args.join(" ").includes("with") || same(value... | 21,357 |
https://github.com/atiq-shumon/DotNetProjects/blob/master/Hospital_ERP_VS13-WCF_WF/AH.ModuleController/UI/DMS/Forms/frmAccountsCollection.Designer.cs | Github Open Source | Open Source | Apache-2.0 | null | DotNetProjects | atiq-shumon | C# | Code | 3,299 | 16,564 | namespace AH.ModuleController.UI.DMS.Forms
{
partial class frmAccountsCollection
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | 11,796 |
https://github.com/vvnurmi/trappedinside/blob/master/TrappedInside/Assets/Scripts/Tools/Extensions/MonoBehaviourExtensions.cs | Github Open Source | Open Source | MIT | null | trappedinside | vvnurmi | C# | Code | 90 | 272 | using System.Text;
using UnityEngine;
public static class MonoBehaviourExtensions
{
/// <summary>
/// Returns the name of <paramref name="obj"/> with game object ancestor path included.
/// May be helpful for debugging.
/// </summary>
public static string GetFullName(this MonoBehaviour obj)
{
... | 21,737 |
https://github.com/xianhc/apevolo-api/blob/master/ApeVolo.IRepository/Base/ISugarHandler.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | apevolo-api | xianhc | C# | Code | 1,904 | 7,999 | using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq.Expressions;
using System.Threading.Tasks;
using ApeVolo.Common.Model;
using SqlSugar;
namespace ApeVolo.IRepository.Base;
/// <summary>
/// sqlSugar接口
/// </summary>
/// <typeparam name="TEntity"></typep... | 1,687 |
https://github.com/Wintellect/XamarinSamples/blob/master/PhoneWordFSharp/PhoneWordFSharp.Test/PhoneTranslatorTests.fs | Github Open Source | Open Source | MIT | 2,021 | XamarinSamples | Wintellect | null | Spoken | 58 | 147 | namespace PhoneWordFSharp.Test
open NUnit.Framework
open FsUnit
open PhoneWordFSharp.Core
[<TestFixture>]
type ``Given a number to translate``() =
[<Test>]
member this.``When the number is just numerical``() =
let number = PhoneTranslator.toNumber "1 800"
number |> should equal number
... | 42,020 |
https://github.com/seaclouds-atos/softcare-final-implementation/blob/master/softcare-desktop/Aladdin.ClientApplication/Windows/MainWindow.xaml.cs | Github Open Source | Open Source | Apache-2.0 | null | softcare-final-implementation | seaclouds-atos | C# | Code | 540 | 2,419 | using SoftCare.ClientApplication.Controls;
using SoftCare.ClientApplication.Properties;
using SoftCare.ClientApplication.ViewModels;
using System;
using System.Configuration;
using System.Windows;
using System.Windows.Input;
namespace SoftCare.ClientApplication.Windows
{
/// <summary>
/// Interaction logic... | 33,124 |
https://github.com/leancloud/java-unified-sdk/blob/master/core/src/main/java/cn/leancloud/core/LeanService.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | java-unified-sdk | leancloud | Java | Code | 31 | 101 | package cn.leancloud.core;
public enum LeanService {
API("api"), PUSH("push"), RTM("rtm"), STATS("stats"), ENGINE("engine");
private String service;
private LeanService(String service) {
this.service = service;
}
@Override
public String toString() {
return this.service;
}
}
| 14,166 |
https://github.com/austindimmer/PublishSubscribeWithDiscovery/blob/master/ServiceModelEx/PublishSubscribe/PubSubContracts.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | PublishSubscribeWithDiscovery | austindimmer | C# | Code | 123 | 499 | // © 2016 IDesign Inc. All rights reserved
//Questions? Comments? go to
//http://www.idesign.net
using System;
using System.Runtime.Serialization;
using System.ServiceModel;
namespace ServiceModelEx
{
//For transient subscribers
[ServiceContract]
public interface ISubscriptionService
{
[OperationC... | 39,527 |
https://github.com/nadddy/jcrypt/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,020 | jcrypt | nadddy | Go Module | Code | 4 | 20 | module github.com/nadddy/jcrypt
go 1.14
| 9,587 |
https://github.com/DEAKSoftware/KFX/blob/master/code/source/glwidget.cpp | Github Open Source | Open Source | MIT | null | KFX | DEAKSoftware | C++ | Code | 894 | 3,060 | /*===========================================================================
OpenGL Widget
Dominik Deak
===========================================================================*/
#ifndef ___GLWIDGET_CPP___
#define ___GLWIDGET_CPP___
/*---------------------------------------------------------------------... | 20,669 |
https://github.com/jmptbl/puka/blob/master/puka/compat.py | Github Open Source | Open Source | MIT | 2,022 | puka | jmptbl | Python | Code | 75 | 186 | from __future__ import absolute_import
from future import utils as futils
def as_str(obj):
"""Return a string type, decoding from bytes as needed"""
if not futils.PY2 and hasattr(obj, 'decode'):
obj = obj.decode('utf-8')
return obj
def as_bytes(obj):
"""Return a bytes type, encoding from st... | 3,528 |
https://github.com/MaxandreOgeret/simulator/blob/master/Assets/Scripts/Network/ClientManager.cs | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause | 2,019 | simulator | MaxandreOgeret | C# | Code | 719 | 2,641 | /**
* Copyright (c) 2019 LG Electronics, Inc.
*
* This software contains code licensed as described in LICENSE.
*
*/
using System;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Collections.Concurrent;
using LiteNetLib;
using LiteNetLib.Utils;
using UnityEngine;
using System.ComponentMo... | 12,818 |
https://github.com/andreasrs/roc-plugin-jest/blob/master/extensions/roc-plugin-jest/src/roc/index.js | Github Open Source | Open Source | MIT | 2,016 | roc-plugin-jest | andreasrs | JavaScript | Code | 69 | 270 | import config from '../config/roc.config.js';
import meta from '../config/roc.config.meta.js';
export default {
config,
meta,
dependencies: {
uses: {
jest: '^16.0.2',
'babel-jest': '^16.0.0'
}
},
hooks: {
'babel-config': {}
},
commands: {
... | 28,912 |
https://github.com/datasphere-oss/datasphere-workbench/blob/master/datasource-service/src/main/java/com/datasphere/datasource/connections/query/NativeCriteria.java | Github Open Source | Open Source | Apache-2.0 | null | datasphere-workbench | datasphere-oss | Java | Code | 1,294 | 3,864 | /*
* Apache License
*
* Copyright (c) 2020 HuahuiData
*
* 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 und... | 36,219 |
https://github.com/pfvelu/K-R-algorithms/blob/master/qsort.c | Github Open Source | Open Source | MIT | 2,021 | K-R-algorithms | pfvelu | C | Code | 266 | 576 | /* qsort: sort v[left] ... v[right] into increasing order
with partition element being the middle one */
/* brief description of the algorithm behaviour:
1. swap the first elem of v[] with the middle one
2. put in front of the "first" elem any smaller numbers
3. after going through all v's elems, swap... | 43,185 |
https://github.com/therealslouchy/SoapCore/blob/master/src/SoapCore/Meta/SoapBindingInfo.cs | Github Open Source | Open Source | MIT | 2,020 | SoapCore | therealslouchy | C# | Code | 59 | 157 | using System;
using System.Collections.Generic;
using System.ServiceModel.Channels;
using System.Text;
namespace SoapCore.Meta
{
public class SoapBindingInfo
{
public SoapBindingInfo(MessageVersion messageVersion, string bindingName, string portName)
{
MessageVersion = messageVersion;
BindingName = binding... | 44,211 |
https://github.com/timkral/docker-maven-plugin/blob/master/src/main/java/org/jolokia/docker/maven/util/AuthConfigFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | docker-maven-plugin | timkral | Java | Code | 569 | 1,639 | package org.jolokia.docker.maven.util;
import java.lang.reflect.Method;
import java.util.*;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.settings.Server;
import org.apache.maven.settings.Settings;
import org.codehaus.plexus.PlexusC... | 44,547 |
https://github.com/mihai-constantin/ACS/blob/master/POO/Laborator/lab02/StringGenerator/src/lab2/RandomStringGenerator.java | Github Open Source | Open Source | Apache-2.0 | null | ACS | mihai-constantin | Java | Code | 105 | 315 | package lab2;
import java.util.Random;
public class RandomStringGenerator {
private int length;
private String s;
public RandomStringGenerator(int length, String s) {
this.length = length;
this.s = s;
}
public String next() {
char[] c = new char[length];
Random generator = new Random();
for... | 5,181 |
https://github.com/435915770/Wilderness/blob/master/pit-loadbalance/src/main/java/com/pit/loadbalance/rule/LoadBalanceRuleEnum.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | Wilderness | 435915770 | Java | Code | 105 | 397 | package com.pit.loadbalance.rule;
import com.pit.core.dict.Dict;
import org.apache.commons.lang3.StringUtils;
/**
* 负载均衡策略枚举
*
* @Author gy
* @Date 2020-03-20 15:25
*/
public enum LoadBalanceRuleEnum implements Dict<String, String> {
ROUND("round", "轮询"),
RANDOM("random", "随机"),
CONSISTENT_HASH("cons... | 40,149 |
https://github.com/RainedX/dataview/blob/master/src/test.js | Github Open Source | Open Source | MIT | null | dataview | RainedX | JavaScript | Code | 19 | 59 | const myPromise = require('./promise.js')
const pp = new myPromise((resolve, reject) => {
resolve(1)
});
pp.then(function(res) {
console.log('res:', res);
}) | 50,213 |
https://github.com/script-0/ChatLan-Server/blob/master/src/server/serverController.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | ChatLan-Server | script-0 | Java | Code | 68 | 259 | /*
* @Isaac
*/
package server;
import com.jfoenix.controls.JFXSpinner;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
/**
*
* @au... | 49,144 |
https://github.com/SeattleRobotics/ftc_app/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/MallahBullRun.java | Github Open Source | Open Source | BSD-3-Clause | 2,019 | ftc_app | SeattleRobotics | Java | Code | 18 | 98 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
//@Autonomous(name="MallahBullRun", group="MonsieurMallah")
public class MallahBullRun extends CraterRun {
public MallahBullRun() {
super(ChassisConfig.forMonsieurMallah());
}
} | 35,557 |
https://github.com/coolincy/dotnetStart/blob/master/AOA.AbpOnDocker/aspnet-core/src/AOA.AbpOnDocker.Application/AbpOnDockerAppService.cs | Github Open Source | Open Source | MIT | 2,020 | dotnetStart | coolincy | C# | Code | 38 | 130 | using System;
using System.Collections.Generic;
using System.Text;
using AOA.AbpOnDocker.Localization;
using Volo.Abp.Application.Services;
namespace AOA.AbpOnDocker
{
/* Inherit your application services from this class.
*/
public abstract class AbpOnDockerAppService : ApplicationService
{
p... | 23,714 |
https://github.com/bral/.dotfiles-original/blob/master/emacs/spacemacs/link.sh | Github Open Source | Open Source | MIT | 2,017 | .dotfiles-original | bral | Shell | Code | 45 | 223 | #!/usr/local/bin/zsh
TARGET=~/.emacs.d
SOURCE=~/.dotfiles/emacs
COMMON=$SOURCE/emacs.d.symlink
SPACEMACS=$SOURCE/spacemacs
mkdir -p \
$TARGET/eshell \
$TARGET/.cache
ln -s $COMMON/eshell/alias $TARGET/eshell/alias 2 &>/dev/null
ln -s $SPACEMACS/spacemacs.symlink ~/.spacemacs 2 &>/dev/null
ln -fs $SPACEMACS/exten... | 31,716 |
https://github.com/epandurski/swpt_debtors/blob/master/migrations/versions/cac6fdb66c9c_.py | Github Open Source | Open Source | MIT | null | swpt_debtors | epandurski | Python | Code | 150 | 597 | """empty message
Revision ID: cac6fdb66c9c
Revises: c4d39767fca8
Create Date: 2021-05-06 16:39:41.718280
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cac6fdb66c9c'
down_revision = 'c4d39767fca8'
branch_labels = None
depends_on = None
def upgrade():
# ... | 42,093 |
https://github.com/michaelwda/OutsideTheBox/blob/master/OTB.Core/ScreenConfiguration.cs | Github Open Source | Open Source | MIT | 2,021 | OutsideTheBox | michaelwda | C# | Code | 557 | 1,511 | using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
namespace OTB.Core
{
public class ScreenConfiguration
{
public ConcurrentDictionary<string,List<VirtualScreen>> Screens { get; set; }
public ScreenConfiguration()
{
... | 30,835 |
https://github.com/johnsoncodehk/vscode-languageserver-node/blob/master/client/typings/vscode-proposed.d.ts | Github Open Source | Open Source | MIT | 2,021 | vscode-languageserver-node | johnsoncodehk | TypeScript | Code | 892 | 1,728 | /* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... | 53,061 |
https://github.com/beruangcoklat/Qerja/blob/master/public/scss/_var.scss | Github Open Source | Open Source | MIT | 2,020 | Qerja | beruangcoklat | SCSS | Code | 55 | 153 | $information-desktop: "only screen and (max-width : 1366px)";
$information-tablet: "only screen and (max-width : 768px)";
$information-phone: "only screen and (max-width : 320px)";
$information-desktop-only: "only screen and (max-width : 1366px) and (min-width: 769px)";
$information-tablet-only: "only screen and (max-w... | 13,727 |
https://github.com/gidmoth/freeswitch-image-builder/blob/master/freeswitch/libs/freetdm/src/isdn/Q931api.c | Github Open Source | Open Source | BSD-2-Clause | null | freeswitch-image-builder | gidmoth | C | Code | 1,947 | 7,200 | /*****************************************************************************
FileName: Q931api.c
Contents: api (Application Programming Interface) functions.
See q931.h for description.
License/Copyright:
Copyright (c) 2007, Jan Vidar Berger, Case Labs, Ltd. All rights reserved.
email:janvb@casel... | 7,769 |
https://github.com/lucas72466/Memo-front-end/blob/master/node_modules/element-plus/lib/components/roving-focus-group/src/utils.js | Github Open Source | Open Source | MIT | null | Memo-front-end | lucas72466 | JavaScript | Code | 159 | 513 | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
require('../../../constants/index.js');
var aria = require('../../../constants/aria.js');
const MAP_KEY_TO_FOCUS_INTENT = {
ArrowLeft: "prev",
ArrowUp: "prev",
ArrowRight: "next",
ArrowDown: "next",
PageUp: "first",
Home: "first... | 43,318 |
https://github.com/akx/words/blob/master/words.js | Github Open Source | Open Source | MIT | 2,020 | words | akx | JavaScript | Code | 420 | 1,343 | /* global m: false, _: false, OTCWL2: false */
var WORDS = OTCWL2;
var SCRABBLE_LETTER_SCORES = {
'a': 1,
'b': 3,
'c': 3,
'd': 2,
'e': 1,
'f': 4,
'g': 2,
'h': 4,
'i': 1,
'j': 8,
'k': 5,
'l': 1,
'm': 3,
'n': 1,
'o': 1,
'p': 3,
'q': 10,
'r': 1,
's': 1,
't': 1,
'u': 1,
'v': 4,
... | 41,141 |
https://github.com/coderofsalvation/typeshave.php/blob/master/test/test.php | Github Open Source | Open Source | BSD-3-Clause | null | typeshave.php | coderofsalvation | PHP | Code | 202 | 556 | <?
include_once( __DIR__."/../src/TypeShave.php" );
/*
* foo2 : check single arg (jsonschema-style)
* foo : check all args at once
*/
function foo2($foo){
TypeShave::check( $foo, '{ "foo": { "type": "string", "minLength":1, "regex": "/foo/"} }' );
}
function foo($foo, $bar){
TypeShave::check( func_get_arg... | 24,326 |
https://github.com/justGrasse/mindless_attackaton/blob/master/db/migrate/20170119142429_change_card_id_column_to_type_string_for_cards.rb | Github Open Source | Open Source | MIT | 2,017 | mindless_attackaton | justGrasse | Ruby | Code | 17 | 59 | class ChangeCardIdColumnToTypeStringForCards < ActiveRecord::Migration
def change
change_column :cards, :card_id, :string
add_index :cards, :card_id, unique: true
end
end
| 41,321 |
https://github.com/JetBrains/intellij-community/blob/master/python/helpers/typeshed/stdlib/winsound.pyi | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | intellij-community | JetBrains | Python | Code | 99 | 344 | import sys
from typing import overload
from typing_extensions import Literal
if sys.platform == "win32":
SND_FILENAME: Literal[131072]
SND_ALIAS: Literal[65536]
SND_LOOP: Literal[8]
SND_MEMORY: Literal[4]
SND_PURGE: Literal[64]
SND_ASYNC: Literal[1]
SND_NODEFAULT: Literal[2]
SND_NOSTOP:... | 11,112 |
https://github.com/digideskio/potluck/blob/master/lib/handlebars-helpers.js | Github Open Source | Open Source | MIT | 2,014 | potluck | digideskio | JavaScript | Code | 111 | 387 | /**
* Adapted from: https://github.com/kevinw/gitviz/blob/master/handlebars-helpers.js
* Also @see: https://github.com/donpark/hbs/tree/master/examples/partial
*/
var fs = require('fs')
,path = require('path')
,hbs = require('hbs');
var partialsDir = "";
module.exports = function(hbs, partialsDirectory) {... | 15,299 |
https://github.com/nir-sopher/incubator-trafficcontrol/blob/master/traffic_ops/app/lib/API/ToExtension.pm | Github Open Source | Open Source | Apache-2.0, ISC, GPL-1.0-or-later, OFL-1.1, X11, LicenseRef-scancode-unknown-license-reference, WTFPL, MIT, BSD-3-Clause, LGPL-2.0-or-later | 2,019 | incubator-trafficcontrol | nir-sopher | Perl | Code | 1,030 | 2,919 | package API::ToExtension;
#
#
# 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, s... | 1,391 |
https://github.com/Ron423c/chromium/blob/master/ash/wm/desks/desk_animation_base.cc | Github Open Source | Open Source | BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause | 2,022 | chromium | Ron423c | C++ | Code | 473 | 1,543 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/desks/desk_animation_base.h"
#include "ash/shell.h"
#include "ash/wm/desks/desk.h"
#include "ash/wm/desks/desks_controller.h"
#include "... | 37,025 |
https://github.com/gelldur/jak_oni_to_robia_prezentacja/blob/master/Starbucks/output/smali/o/Fe.smali | Github Open Source | Open Source | MIT | 2,018 | jak_oni_to_robia_prezentacja | gelldur | Smali | Code | 856 | 3,821 | .class public abstract Lo/Fe;
.super Lo/Fl;
.source ""
# interfaces
.implements Ljava/util/Map;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lo/Fe$if;,
Lo/Fe$If;,
Lo/Fe$ˊ;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {... | 5,374 |
https://github.com/damiano-carradori/mage/blob/master/Mage.Sets/src/mage/cards/n/NikoAris.java | Github Open Source | Open Source | MIT | null | mage | damiano-carradori | Java | Code | 452 | 1,827 | package mage.cards.n;
import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.LoyaltyAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.PlaneswalkerEntersWithLoyaltyCountersAbility;
import mage.abilities.dynamicvalue.Dynamic... | 7,345 |
https://github.com/vknet/vk/blob/master/VkNet/Categories/ExecuteCategory.cs | Github Open Source | Open Source | MIT | 2,023 | vk | vknet | C# | Code | 120 | 412 | using VkNet.Abstractions;
using VkNet.Utils;
namespace VkNet.Categories;
/// <inheritdoc cref="IExecuteCategory" />
public partial class ExecuteCategory : IExecuteCategory
{
/// <inheritdoc />
public VkResponse Execute(string code, VkParameters vkParameters = default)
{
var parameters = new VkParameters
{
... | 30,743 |
https://github.com/accg14/Chinese-checkers-AA1/blob/master/Generalizer.py | Github Open Source | Open Source | MIT | 2,019 | Chinese-checkers-AA1 | accg14 | Python | Code | 380 | 1,724 | import os, datetime, numpy, pdb
class Generalizer:
def __init__(self):
self.load_initial_weights()
self.mu = 2
self.print_weights()
def load_initial_weights(self):
file = open('weights.txt', 'r')
all_lines = file.readlines()
file.close()
last = all_lines[-1]
values = last.split('|')
self.weights... | 24,468 |
https://github.com/saltstack/salt/blob/master/salt/modules/wordpress.py | Github Open Source | Open Source | Apache-2.0, MIT, BSD-2-Clause | 2,023 | salt | saltstack | Python | Code | 527 | 1,440 | """
This module is used to manage Wordpress installations
:depends: wp binary from http://wp-cli.org/
"""
# Import Python Modules
import collections
# Import Salt Modules
import salt.utils.path
Plugin = collections.namedtuple("Plugin", "name status update versino")
def __virtual__():
if salt.utils.path.which... | 8,203 |
https://github.com/MR-XP/24h/blob/master/app/manager/controller/Base.php | Github Open Source | Open Source | Apache-2.0 | null | 24h | MR-XP | PHP | Code | 106 | 356 | <?php
namespace app\manager\controller;
use think\Controller;
use app\common\component\Code;
use app\common\model\Group;
use think\Request;
use think\Response;
use think\exception\HttpResponseException;
abstract class Base extends Controller {
protected $mchId = 0;
protected $pageSize = 15;
protected $u... | 2,208 |
https://github.com/holoduke/AndroidSocialNetworks/blob/master/api_demos/src/main/java/com/github/androidsocialnetworks/apidemos/fragment/demo/PostMessageFragment.java | Github Open Source | Open Source | MIT | 2,017 | AndroidSocialNetworks | holoduke | Java | Code | 185 | 765 | package com.github.androidsocialnetworks.apidemos.fragment.demo;
import android.os.Bundle;
import android.view.View;
import com.androidsocialnetworks.lib.impl.FacebookSocialNetwork;
import com.androidsocialnetworks.lib.impl.LinkedInSocialNetwork;
import com.androidsocialnetworks.lib.impl.TwitterSocialNetwork;
import ... | 49,226 |
https://github.com/aziza92/ComparingPerformanceBar/blob/master/cpbar/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,021 | ComparingPerformanceBar | aziza92 | Gradle | Code | 92 | 477 | plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'kotlin-android'
}
ext {
PUBLISH_GROUP_ID = 'io.github.cliffgr'
PUBLISH_VERSION = "1.1.3"
PUBLISH_ARTIFACT_ID = 'cpbar'
}
//apply from: "${rootProject.projectDir}/scripts/publish-mavencentral.gradle"
android {
compile... | 10,171 |
https://github.com/imos/icfpc2016/blob/master/ninetan/ninestream_test.sh | Github Open Source | Open Source | MIT | 2,016 | icfpc2016 | imos | Shell | Code | 567 | 1,701 | #!/bin/bash
TARGET='ninetan/ninestream'
PID=''
setup() {
local stdin="$(sub::tmpfile)"
local stdout="$(sub::tmpfile)"
mkfifo "${stdin}"
mkfifo "${stdout}"
"${TARGET}" --alsologtostderr <"${stdin}" >"${stdout}" &
PID="$!"
exec 4>"${stdin}"
exec 3<"${stdout}"
}
call() {
local line=''
echo "$1" >&4
... | 20,929 |
https://github.com/sjbeatle/level-of-effort/blob/master/packages/ui/src/app/guards/room-guard.spec.ts | Github Open Source | Open Source | MIT | null | level-of-effort | sjbeatle | TypeScript | Code | 33 | 101 | import { TestBed } from '@angular/core/testing';
import { RoomGuard } from './room-guard';
describe('RoomGuard', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('should be created', () => {
const service: RoomGuard = TestBed.get(RoomGuard);
expect(service).toBeTruthy();
});
});
| 19,404 |
https://github.com/openanthem-admin/prev-nimbus-core/blob/master/nimbus-ui/nimbusui/src/app/shared/param-utils.spec.ts | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,019 | prev-nimbus-core | openanthem-admin | TypeScript | Code | 390 | 1,346 | /**
* @license
* Copyright 2016-2018 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
*
* Unl... | 46,648 |
https://github.com/sagemodeninja/AgilityFramework.Imap/blob/master/AgilityFramework.Imap/Auth/Sasl/Mechanisms/Srp/ServerMessage2.cs | Github Open Source | Open Source | MIT | 2,021 | AgilityFramework.Imap | sagemodeninja | C# | Code | 255 | 633 | using System;
using System.IO;
namespace AgilityFramework.Imap.Auth.Sasl.Mechanisms.Srp {
/// <summary>
/// Represents the second message sent by the server as part of the SRP
/// authentication exchange.
/// </summary>
internal class ServerMessage2 {
/// <summary>
/// The evidence which proves to the client... | 14,763 |
https://github.com/BeastNeedsMoreTorque/Distribution/blob/master/u/urql__core/src/main/scala/typings/urqlCore/typesMod/GraphQLRequest.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | BeastNeedsMoreTorque | Scala | Code | 67 | 230 | package typings.urqlCore.typesMod
import typings.graphql.astMod.DocumentNode
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
trait GraphQLRequest extends js.Object {
/** Unique identifier of the request. */
var key: Double
var query: DocumentNode
var variables: js.Unde... | 13,084 |
https://github.com/alex-rnv/calcite-pilosa/blob/master/src/main/java/com/alexrnv/calcite/adapter/pilosa/model/rules/SetOperationsFolder.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | calcite-pilosa | alex-rnv | Java | Code | 248 | 1,027 | package com.alexrnv.calcite.adapter.pilosa.model.rules;
import com.alexrnv.calcite.adapter.pilosa.model.rels.PilosaExcept;
import com.alexrnv.calcite.adapter.pilosa.model.rels.PilosaIntersect;
import com.alexrnv.calcite.adapter.pilosa.model.rels.PilosaSetOp;
import org.apache.calcite.rel.RelNode;
import org.apache.com... | 11,269 |
https://github.com/monoceros-alpha/review-halodao-rewards-2021-06/blob/master/code/test/utils/index.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | review-halodao-rewards-2021-06 | monoceros-alpha | TypeScript | Code | 223 | 888 | import { ethers } from "hardhat"
const { BigNumber } = require("ethers")
export const BASE_TEN = 10
export const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000"
export function encodeParameters(types, values) {
const abi = new ethers.utils.AbiCoder()
return abi.encode(types, values)
}
export async fu... | 8,903 |
https://github.com/yang-junhe/Kotlin/blob/master/Sample/KotlinWeather/app/src/main/java/com/liuguilin/kotlinweather/impl/WeatherImpl.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | Kotlin | yang-junhe | Kotlin | Code | 41 | 184 | package com.liuguilin.kotlinweather.impl
import com.liuguilin.kotlinweather.bean.CityInfoBean
import com.liuguilin.kotlinweather.bean.CityListBean
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
/**
* FileName: WeatherImpl
* Founder: LiuGuiLin
* Profile:
*/
interface WeatherImpl {
... | 18,944 |
https://github.com/yrjwcharm/react-native-hiapp-master/blob/master/App/Store/Reducers/app.js | Github Open Source | Open Source | MIT | 2,022 | react-native-hiapp-master | yrjwcharm | JavaScript | Code | 80 | 233 | import { handleActions } from 'redux-actions'
import types from '../Types'
export default handleActions({
[types.INIT_USER_INFO] (state, action) {
return {
...state,
user: action.payload
}
},
[types.SET_MODAL_VISIBLE_STATUS] (state, action) {
const { name, status } = action.payload
co... | 14,519 |
https://github.com/ArtefactGitHub/Go_P_Zo/blob/master/internal/api/v1/zo/repository.go | Github Open Source | Open Source | Apache-2.0 | null | Go_P_Zo | ArtefactGitHub | Go | Code | 462 | 1,436 | package zo
import (
"context"
"database/sql"
"github.com/ArtefactGitHub/Go_P_Zo/internal/platform/mydb"
)
type ZoRepository struct {
}
func (r *ZoRepository) FindAll(ctx context.Context) ([]Zo, error) {
rows, err := mydb.Db.QueryContext(ctx, "SELECT * FROM zos")
if err != nil {
return nil, err
}
defer rows... | 10,898 |
https://github.com/seanlilmateus/Escape/blob/master/osx/app/scenes/main_game_scene.rb | Github Open Source | Open Source | MIT | 2,015 | Escape | seanlilmateus | Ruby | Code | 40 | 149 | module Escape # GameScreen
class MainGameScene < CommonScene
def acceptsFirstMouse(event)
true
end
def didMoveToView(view)
# without this, dragging the player wouldn't work
NSApp.delegate.window.makeFirstResponder(self)
super
end
def mouseDragged(event)
dragPlayer(... | 15,260 |
https://github.com/md4e/medic-ethiopia/blob/master/production/patient-journal-medication.php | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | medic-ethiopia | md4e | PHP | Code | 350 | 1,668 | <?php
include_once "./config.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php
headerLinks("Patient Medication");
?>
</head>
<body class="nav-md">
<div class="container body">
<?php
main_container_top_navigation();
?>
<!-- page content -->
<div class="righ... | 42,859 |
https://github.com/leathrum/mathjax-ext-contrib/blob/master/everymath/everymath.js | Github Open Source | Open Source | Apache-2.0 | 2,014 | mathjax-ext-contrib | leathrum | JavaScript | Code | 262 | 753 | /****************************************************
*
* TeX-everymath.js
*
* Implements the \everymath macro for TeX input. You can configure
* the initial value with the
*
* TeX: { everymath: "tokens" }
*
* configuration block, (where "tokens" is replaced by whatever you want
* to insert at ... | 41,345 |
https://github.com/happyguydev/football-graph/blob/master/src/main/data/analysis/england_tottenham_hotspur_crystal_palace,_1_0_2499827.edn | Github Open Source | Open Source | BSD-3-Clause | 2,022 | football-graph | happyguydev | Edoid | Code | 2,320 | 10,883 | {:match-id 2499827,
:label "Tottenham Hotspur - Crystal Palace, 1 - 0",
:teams-info
{:1624
{:city "London",
:name "Tottenham Hotspur",
:wy-id 1624,
:official-name "Tottenham Hotspur FC",
:area
{:name "England", :id "0", :alpha-3code "XEN", :alpha-2code ""},
:type "club"},
:1628
{:city "London... | 17,081 |
https://github.com/neutrondb/multifeed-index/blob/master/test/fork.js | Github Open Source | Open Source | ISC | 2,020 | multifeed-index | neutrondb | JavaScript | Code | 376 | 1,150 | var test = require('tape')
var multifeed = require('multifeed')
var ram = require('random-access-memory')
var memdb = require('level-mem')
var umkv = require('unordered-materialized-kv')
var indexer = require('../')
test('kv merge fork', function (t) {
t.plan(19)
var a = multifeed(ram, { valueEncoding: 'json' })
... | 38,958 |
https://github.com/RennanD/lumen-school-api/blob/master/app/Services/ShowSubjectService.php | Github Open Source | Open Source | MIT | 2,021 | lumen-school-api | RennanD | PHP | Code | 48 | 163 | <?php
namespace App\Services;
use App\Models\Subject;
use Exception;
class ShowSubjectService {
/**
* @return array;
*/
public function run(int $subject_id) {
$subjectRepository = new Subject();
$checkSubject = $subjectRepository->find($subject_id);
if(!$checkSubject) {
throw new Except... | 41,551 |
https://github.com/NikhilBhutani/Android-Snippets/blob/master/DBFlow-ORM/app/src/main/java/com/apricotlabs/dbflow_orm/Organization.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | Android-Snippets | NikhilBhutani | Java | Code | 91 | 268 | package com.apricotlabs.dbflow_orm;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
/**
* Created by Nikhil Bhutani on 9/22/2016.
*
* The Java... | 27,919 |
https://github.com/900lbs-dcolina/com.900lbs.controly/blob/master/Samples/Core Samples/Scripts/UI/ExampleButtonGroupController.cs | Github Open Source | Open Source | MIT | 2,020 | com.900lbs.controly | 900lbs-dcolina | C# | Code | 118 | 415 | using System.Collections.Generic;
using UnityEngine;
using TMPro;
namespace NineHundredLbs.Controly.UI.Examples
{
[System.Serializable]
public class ExampleButtonGroupProperties : IButtonGroupProperties<ExampleButtonProperties>
{
public List<int> values;
public ExampleButtonGroupProperti... | 43,119 |
https://github.com/ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021/blob/master/students/k33402/Sholomov_Dan/lobaratory_work_1/task4/client4b.py | Github Open Source | Open Source | MIT | 2,021 | ITMO_ICT_WebDevelopment_2020-2021 | ShubhamKunal | Python | Code | 49 | 182 | from threading import Thread
import socket
def send():
data = input()
while data != '/exit':
sock.send(bytes(data, "utf-8"))
data = input()
sock.close()
def receive():
while True:
try:
data = sock.recv(1024)
print(data.decode('utf-8'))
except O... | 27,215 |
https://github.com/anitanimbalkar/newioh/blob/master/ayushman/application/logs/2015/04/21.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | newioh | anitanimbalkar | PHP | Code | 12,920 | 83,542 | <?php defined('SYSPATH') or die('No direct script access.'); ?>
2015-04-21 00:01:03 --- ERROR: include_once(/ayushman/application/classes/helper/PHPExcel/IOFactory.php): failed to open stream: No such file or directory
2015-04-21 00:01:03 --- ERROR: #0 /var/www/html/ayushman/application/classes/helper/export.php(3): K... | 7,496 |
https://github.com/TheEadie/PlayerRank/blob/master/build/publish.sh | Github Open Source | Open Source | MIT | 2,023 | PlayerRank | TheEadie | Shell | Code | 31 | 132 | #!/bin/bash
set -euo pipefail
NEXT_VERSION="$(cat .artifacts/version.json | jq -r '.["major-minor-patch"]')"
NUGET_VERSION="$(cat .artifacts/version.json | jq -r '.["nuget-version"]')"
# Publish
>&2 echo "Publishing $NUGET_VERSION..."
dotnet pack -c Release --no-build -o ".artifacts/" /p:Version=$NEXT_VERSION /p:Pack... | 27,144 |
https://github.com/inputfalken/ClassGen/blob/master/src/apps/PowerShellModule/CSharpFactory.fs | Github Open Source | Open Source | MIT | 2,020 | ClassGen | inputfalken | null | Spoken | 286 | 794 | namespace PowerShellModule
open System.Collections.Generic
open System.Management.Automation
open Generator
open System
module CasingConstants =
[<Literal>]
let Pascal = "Pascal"
[<Literal>]
let Camel = "Camel"
[<Literal>]
let None = "None"
/// <summary>
/// The ConvertFrom-Json comman... | 52,641 |
https://github.com/alldatacenter/alldata/blob/master/ai/modelscope/modelscope/pipelines/cv/video_category_pipeline.py | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Python | Code | 1,178 | 4,415 | # Copyright 2021-2022 The Alibaba Fundamental Vision Team Authors. All rights reserved.
import os.path as osp
from typing import Any, Dict
import decord
import json
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.models as models
import torchvision.transforms.fu... | 39,402 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.