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/lipanni/KSAutomatedTests/blob/master/.svn/pristine/97/975c0eb4479a7e6957c44f21900eaa773db81a9c.svn-base | Github Open Source | Open Source | ECL-2.0 | 2,013 | KSAutomatedTests | lipanni | Ruby | Code | 1,285 | 6,100 | class PopulationsBase < BasePage
wrapper_elements
element(:child_populations_table) { |b| b.frm.div(id: "populations_table").table() }
class << self
def population_lookup_elements
element(:keyword) { |b| b.frm.text_field(name: "lookupCriteria[keyword]") }
element(:results_table) { |b| b.frm.div... | 42,063 |
https://github.com/xxm1995/bootx-cloud/blob/master/service-shop-engine/service-shop-engine-impl/src/main/java/cn/bootx/engine/shop/core/footmark/service/FootMarkService.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | bootx-cloud | xxm1995 | Java | Code | 71 | 381 | package cn.bootx.engine.shop.core.footmark.service;
import cn.bootx.common.core.util.ResultConvertUtils;
import cn.bootx.engine.shop.core.footmark.dao.FootMarkManager;
import cn.bootx.engine.shop.dto.footmark.FootMarkDto;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframewo... | 17,459 |
https://github.com/Manuel098/Tuister/blob/master/JS/service.js | Github Open Source | Open Source | MIT | 2,019 | Tuister | Manuel098 | JavaScript | Code | 75 | 378 | tuister.service('fileUpload', ['$http', function ($http)
{
this.uploadFileToUrl = function(file, uploadUrl, data) {
var fd = new FormData();
fd.append('imagen', file);
console.log(fd);
$http.post(uploadUrl, fd, {
transformRequest: angular.identity,
headers: {'Content-Ty... | 11,457 |
https://github.com/abuarramdhani/Erp-Bak/blob/master/application/controllers/Toolroom/Report/C_Report.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,021 | Erp-Bak | abuarramdhani | PHP | Code | 399 | 2,454 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class C_Report extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this contr... | 43,917 |
https://github.com/JoshiiSinfield/go-helpers/blob/master/aws/errors/errors.go | Github Open Source | Open Source | MIT | null | go-helpers | JoshiiSinfield | Go | Code | 54 | 243 | package errors
import (
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/service/s3"
"log"
)
func CastAWSError(err error) {
// cast err to awserr.Error to get the Code and Message from an error.
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case s3.ErrCodeObjectNotInActiveTier... | 9,394 |
https://github.com/mrdulin/mocha-chai-sinon-codelab/blob/master/src/stackoverflow/59717099-todo/SuperModule.test.js | Github Open Source | Open Source | MIT | 2,021 | mocha-chai-sinon-codelab | mrdulin | JavaScript | Code | 53 | 153 | const chai = require("chai");
const assert = chai.assert;
const sinon = require("sinon");
let SuperModule;
describe.skip("Tests", () => {
before(() => {
SuperModule = require("./SuperModule");
console.log(SuperModule);
sinon.stub(SuperModule, "a").callsFake(() => {
return "123321";
});
});
... | 19,225 |
https://github.com/pebra/emoji-rspec/blob/master/spec/formatters/celebrate_formatter_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,013 | emoji-rspec | pebra | Ruby | Code | 14 | 67 | require 'support/shared_examples_for_formatters'
require 'emoji_test_love/formatters/celebrate_formatter'
describe EmojiTestLove::Celebrate do
it_behaves_like "an Emoji Test Love Formatter"
end
| 27,256 |
https://github.com/Microsoft/TpmRCDecoder/blob/master/TpmRcDecoder/TpmRcDecoder.Universal/RcDecoder.xaml.cs | Github Open Source | Open Source | MIT | 2,018 | TpmRCDecoder | Microsoft | C# | Code | 508 | 1,342 | using System;
using System.Globalization;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409
namespace TpmRcDecoder
{
/// <summary>
///... | 24,307 |
https://github.com/gotaheads/jobq-service/blob/master/app/features/contracts/edit/edit-contract.js | Github Open Source | Open Source | MIT | 2,020 | jobq-service | gotaheads | JavaScript | Code | 63 | 272 |
function EditContractCtrl($scope, ContractService) {
ContractService.findOrCreate($scope);
$scope.remove = function(idx) {
$scope.utils.remove($scope.editing.contract.sections, idx);
}
$scope.add = function(idx) {
idx = $scope.utils.add($scope.editing.contract.sections, {content:''}, idx);
$scope... | 2,951 |
https://github.com/nicoTaccari/rewards-store-reactjs/blob/master/components/userInfo/index.js | Github Open Source | Open Source | MIT | null | rewards-store-reactjs | nicoTaccari | JavaScript | Code | 133 | 460 | import styled from "styled-components";
import { Select, MenuItem, Button } from "@material-ui/core";
import { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { addCredits } from "../../ducks/reducers/userReducer";
const UserStyle = styled.div`
display: flex;
flex-flow: col... | 21,318 |
https://github.com/codekinian/text_encrypt/blob/master/winpay-android-sdk-master/winpaysdk/src/main/java/id/winpay/winpaysdk/main/message/ToolbarMessage.java | Github Open Source | Open Source | MIT, GPL-3.0-only, GPL-1.0-or-later | 2,019 | text_encrypt | codekinian | Java | Code | 167 | 651 | package id.winpay.winpaysdk.main.message;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import id.winpay.winpaysdk.main.item.Channel;
import id.winpay.winpaysdk.main.item.ChannelGroup;
import id.winpay.winpaysdk.util.Var;
/**
* Created by Dian Cahyono on 08/10/18.
*/
public final class T... | 30,919 |
https://github.com/WallaceWang/ZhangShang-HPU/blob/master/HPU for iOS/HPU for iOS/Classes/Main/AppDelegate.m | Github Open Source | Open Source | Apache-2.0 | 2,015 | ZhangShang-HPU | WallaceWang | Objective-C | Code | 96 | 393 | //
// AppDelegate.m
// HPU for iOS
//
// Created by 王晓睿 on 15/7/15.
// Copyright (c) 2015年 王晓睿. All rights reserved.
//
#import "AppDelegate.h"
#import "OAuthController.h"
#import "Account.h"
#import "AccountTool.h"
#import "SideViewController.h"
#import "SDWebImageManager.h"
@implementation AppDelegate
- (BOOL... | 47,636 |
https://github.com/chdabre/mailman-backend/blob/master/postcards/urls.py | Github Open Source | Open Source | MIT | null | mailman-backend | chdabre | Python | Code | 17 | 66 | from rest_framework.routers import DefaultRouter
from postcards.views import PostcardCreatorCredentialsViewSet
router = DefaultRouter()
router.register(r'credentials', PostcardCreatorCredentialsViewSet, basename='credentials')
urlpatterns = router.urls | 11,647 |
https://github.com/kophy/TinySTL/blob/master/test/test_tree.cpp | Github Open Source | Open Source | MIT | 2,019 | TinySTL | kophy | C++ | Code | 180 | 556 | #include <cstdlib>
#include "tree.hpp"
#include "utils.hpp"
#include <catch.hpp>
using namespace TinySTL;
static bool ComparePair(const Pair<int, int> &a, const Pair<int, int> &b) {
return a.first < b.first;
}
TEST_CASE("capacity") {
SECTION("empty tree") {
Tree<int> t;
CHECK(t.empty());
... | 40,391 |
https://github.com/herreio/solr-fstats/blob/master/setup.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | solr-fstats | herreio | Python | Code | 64 | 272 | """
A Python3 program that extracts some statistics regarding field coverage from a Solr index.
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(name='solr-fstats',
version='0.0.1',
description='a Python3 program that extracts some statistics regardi... | 29,812 |
https://github.com/luk1337/gamesneeze/blob/master/src/core/menu/config.hpp | Github Open Source | Open Source | MIT | 2,021 | gamesneeze | luk1337 | C++ | Code | 619 | 2,592 | #pragma once
#include <unordered_map>
#include <fstream>
#include "imgui/imgui.h"
#include "../../utils/utils.hpp"
#define CONFIGINT(name) Config::config.at(name).intValue
#define CONFIGBOOL(name) Config::config.at(name).boolValue
#define CONFIGSTR(name) Config::config.at(name).strValue
#define CONFIGCOL(name) Config:... | 24,331 |
https://github.com/nondanee/Jike-Patcher/blob/master/smali_classes3/com/tendcloud/tenddata/gj.smali | Github Open Source | Open Source | MIT | 2,020 | Jike-Patcher | nondanee | Smali | Code | 107 | 637 | .class Lcom/tendcloud/tenddata/gj;
.super Ljava/lang/Object;
.source "td"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field final synthetic this$0:Lcom/tendcloud/tenddata/gh;
# direct methods
.method constructor <init>(Lcom/tendcloud/tenddata/gh;)V
.locals 0
.line 44
iput-object p... | 45,733 |
https://github.com/mbortolon97/ipfp-hpc-cluster/blob/master/src/permutation.h | Github Open Source | Open Source | MIT | null | ipfp-hpc-cluster | mbortolon97 | C | Code | 152 | 480 | #ifndef __PERMUTATION_H
#define __PERMUTATION_H 1
#include "sparse_matrix.h"
#include "dense_matrix.h"
typedef struct sparse_matrix_permutation
{
int n_rows;
int n_cols;
int* row_permutations;
int* col_permutations;
int* inverse_row_permutations;
int* inverse_col_permutations;
} sparse_matrix_... | 27,965 |
https://github.com/CodedLadiesInnovateTech/-python-challenge-solutions/blob/master/Aniyom Ebenezer/Phase 2/DICTIONARY/Day_49_Challenge_Solution/Question 2 Solution.py | Github Open Source | Open Source | MIT | 2,021 | -python-challenge-solutions | CodedLadiesInnovateTech | Python | Code | 24 | 67 | """
Write a Python program to remove a key from a dictionary.
"""
myDict = {'a':1,'b':2,'c':3,'d':4}
print(myDict)
if 'a' in myDict:
del myDict['a']
print(myDict) | 38,472 |
https://github.com/troels/compute-runtime/blob/master/opencl/source/sharings/d3d/d3d_sharing.h | Github Open Source | Open Source | Intel, MIT | 2,022 | compute-runtime | troels | C | Code | 164 | 517 | /*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "d3d_sharing_functions.h"
enum GMM_RESOURCE_FORMAT_ENUM;
namespace NEO {
enum class ImagePlane;
class Context;
class Gmm;
struct ClSurfaceFormatInfo;
struct ImageInfo;
template <typename D3D>
class D3DShar... | 34,995 |
https://github.com/Nomango/FarmWeb/blob/master/application/index/controller/AdminController.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | FarmWeb | Nomango | PHP | Code | 332 | 1,411 | <?php
/**
* Created by PhpStorm.
* User: Nomango
* Date: 2018/3/11
* Time: 10:32
*/
namespace app\index\controller;
use think\Controller;
use app\common\model\Admin;
use app\common\model\User;
use app\common\model\Goods;
use app\common\model\Order;
use think\Request;
class AdminController extends Controller
{
... | 14,702 |
https://github.com/amtee/platform/blob/master/src/Administration/Resources/app/administration/src/app/component/utils/sw-loader/sw-loader.html.twig | Github Open Source | Open Source | MIT, LicenseRef-scancode-generic-cla | 2,021 | platform | amtee | Twig | Code | 49 | 216 | {% block sw_loader %}
<div class="sw-loader">
{% block sw_loader_container %}
<div
class="sw-loader__container"
:style="loaderSize"
>
{% block sw_loader_element %}
<svg
class="sw-loader__element"
:width="size"
:height="size"
vie... | 39,379 |
https://github.com/cpldcpu/SimPad/blob/master/Firmware/SIMPAD/main.c | Github Open Source | Open Source | MIT | 2,022 | SimPad | cpldcpu | C | Code | 1,281 | 6,749 | /*
Simple Paudak Programmer V0.01
Routines to program the Padauk PMS150C, PFS154C, PMS154C MCUs.
Jan 2019 cpldpcu
Uses Arduino Nano (ATMega168PA)
This is still in a very early stage. No host communication to a PC has been implemented yet.
*/
#include <atmel_start.h>
#include <stdio.h>
#include <util/delay.... | 22,044 |
https://github.com/GustavoRosauro/ERP/blob/master/Scripts/ClientesPJ/Lista.js | Github Open Source | Open Source | MIT | 2,019 | ERP | GustavoRosauro | JavaScript | Code | 25 | 93 | let app = angular.module("ClienteApp", []);
app.controller("ClienteController", ($scope, $http) => {
$http({
method: "GET",
url: "/ClientePJ/RetornaLista",
data: {}
}).then((dados) => {
$scope.lista = dados.data;
});
}); | 5,731 |
https://github.com/deov31/checkout-js/blob/master/src/app/payment/PaymentForm.spec.tsx | Github Open Source | Open Source | MIT | 2,020 | checkout-js | deov31 | TSX | Code | 1,029 | 3,362 | import { createCheckoutService, CheckoutSelectors, CheckoutService, PaymentMethod } from '@bigcommerce/checkout-sdk';
import { mount, ReactWrapper } from 'enzyme';
import React, { FunctionComponent } from 'react';
import { act } from 'react-dom/test-utils';
import { getCart } from '../cart/carts.mock';
import { Checko... | 39,909 |
https://github.com/CoreWCF/CoreWCF/blob/master/src/CoreWCF.NetFramingBase/src/CoreWCF/Channels/Framing/ConnectionContextExtensions.cs | Github Open Source | Open Source | MIT | 2,023 | CoreWCF | CoreWCF | C# | Code | 103 | 296 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using Microsoft.AspNetCore.Connections;
namespace CoreWCF.Channels.Framing
{
internal static class ConnectionContextExtensions
{
public static void Se... | 37,421 |
https://github.com/ashlyrclark/docs.particular.net/blob/master/tests/IntegrityTests/UpgradeGuides.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | docs.particular.net | ashlyrclark | C# | Code | 210 | 661 | using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using NUnit.Framework;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
namespace IntegrityTests
{
public class UpgradeGuides
{
static IDeserializer deserializer;
static Regex yamlSeparat... | 27,639 |
https://github.com/pratikshakj/HacktoberFest2020-Contributions/blob/master/Games/Tetris-Python/tetris.py | Github Open Source | Open Source | MIT | 2,020 | HacktoberFest2020-Contributions | pratikshakj | Python | Code | 722 | 2,101 | import pygame
import random
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),
(180, 34, 122),
]
class Figure:
x = 0
y = 0
figures = [
[[1, 5, 9, 13], [4, 5, 6, 7]],
[[4, 5, 9, 10], [2, 6, 5, 9]],
[[6, 7,... | 50,809 |
https://github.com/jeffparsons/planetkit/blob/master/planetkit/src/globe/gen.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | planetkit | jeffparsons | Rust | Code | 693 | 1,575 | use noise;
use super::chunk::{Cell, Material};
use super::spec::Spec;
use crate::globe::ChunkOrigin;
use crate::grid::{Point2, Point3};
// TODO: turn this into a component that we can slap onto a Globe
// or other globe-oid (distant point?).
/// Globe content generator. Stores all the state for generating
/// the te... | 13,385 |
https://github.com/qmutz/go-livepeer/blob/master/vendor/github.com/ethereum/go-ethereum/cmd/swarm/swarm-snapshot/main.go | Github Open Source | Open Source | MIT | 2,019 | go-livepeer | qmutz | Go | Code | 306 | 718 | // Copyright 2018 The go-ethereum Authors
// This file is part of go-ethereum.
//
// go-ethereum 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 3 of the License, or
// (at your option) any la... | 39,543 |
https://github.com/Howard-Wang/app-template/blob/master/src/main/java/com/company/app/service/Initializer.java | Github Open Source | Open Source | MIT | 2,022 | app-template | Howard-Wang | Java | Code | 54 | 215 | package com.company.app.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* 程序启动后,执行的初始化操作
* @author YunJ
*/
@Component
public class Initialize... | 22,022 |
https://github.com/piersky/ASD/blob/master/resources/lang/it/athletes.php | Github Open Source | Open Source | MIT | null | ASD | piersky | PHP | Code | 196 | 525 | <?php
return [
"Athletes" => "Atleti",
"Name" => "Nome",
"Surname" => "Cognome",
"Gender" => "Sesso",
"Female" => "Femmina",
"Male" => "Maschio",
"Date & place of birth" => "Nascita",
"Action" => "Azione",
"First Name" => "Nome",
"Last Name" => "Cognome",
"Date of birth" => ... | 25,350 |
https://github.com/fogshot/relational-analysis/blob/master/src/common/AbstractDomain.h | Github Open Source | Open Source | MIT | 2,018 | relational-analysis | fogshot | C | Code | 266 | 1,001 | #ifndef LLVM_ABSTRACTDOMAIN_H
#define LLVM_ABSTRACTDOMAIN_H
#include <vector>
#include <memory>
#include <string>
#include "Variable.h"
#include "ClassType.h"
namespace bra {
class AbstractDomain {
public:
/// Joins multiple domains by means of calculating the leastUpperBounds.
/// Returns a n... | 2,945 |
https://github.com/StefH/KendoGridBinderEx/blob/master/examples/KendoGridBinderEx.Examples.MVC/Views/Employee/Edit.cshtml | Github Open Source | Open Source | MIT | 2,021 | KendoGridBinderEx | StefH | C# | Code | 27 | 149 | @using KendoGridBinderEx.Examples.MVC.Extensions
@model KendoGridBinderEx.Examples.MVC.Models.EmployeeVM
@{
ViewBag.Title = "Edit";
}
@using (Html.BeginPostForm("form")) {
//@Html.ValidationSummary()
@Html.HiddenFor(model => model.Id)
@Html.EditorForModel("_EditEmployee")
<p>
@Html.Subm... | 37,715 |
https://github.com/zhongzc/tidb-dashboard/blob/master/pkg/keyvisual/decorator/tidb_requests.go | Github Open Source | Open Source | Apache-2.0 | null | tidb-dashboard | zhongzc | Go | Code | 400 | 1,205 | // Copyright 2019 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 50,548 |
https://github.com/txstc55/Opt/blob/master/examples/shared/CudaArray.h | Github Open Source | Open Source | MIT | 2,019 | Opt | txstc55 | C++ | Code | 128 | 522 | #pragma once
#include <cuda_runtime.h>
#include "cudaUtil.h"
#include <assert.h>
#include <vector>
template <class T>
class CudaArray {
public:
void update(const T* newData, size_t count) {
destructiveResize(count);
cudaSafeCall(cudaMemcpy(m_data, newData, sizeof(T)*m_size, cudaMemcpyHostToDevice));... | 7,929 |
https://github.com/tusadi/ManoMaestro/blob/master/Assets/Manomotion/Scripts/InteractionArea.cs | Github Open Source | Open Source | MIT | null | ManoMaestro | tusadi | C# | Code | 75 | 209 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class InteractionArea : MonoBehaviour
{
//When the mouse hovers over the GameObject, it turns to this color (red)
Color m_MouseOverColor = Color.red;
//This stores the... | 11,662 |
https://github.com/AbhishekKS/google-gin/blob/master/test/com/google/gwt/inject/client/binding/InjectMembersTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | google-gin | AbhishekKS | Java | Code | 137 | 351 | /*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 48,206 |
https://github.com/Capnode/Algoloop/blob/master/Brokerages/DefaultOrderBook.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | Algoloop | Capnode | C# | Code | 699 | 1,839 | /*
* QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
* Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
*
* 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... | 46,185 |
https://github.com/ashmaroli/borisschapira.com/blob/master/_plugins/i18n_tag.rb | Github Open Source | Open Source | MIT | null | borisschapira.com | ashmaroli | Ruby | Code | 69 | 210 | module Jekyll
class I18NTag < Liquid::Tag
def initialize(tag_name, text, tokens)
super
@text = text.strip
end
def render(context)
locale = context['page']['locale']
locale ||= context['site']['locale']
raise "Page language not specified: #{context['page']['path']}" unless lo... | 30,933 |
https://github.com/luis-sousa-pinto/kubernetes-operator-2/blob/master/pkg/controller/netcoreconfigmanagement/netcoreconfigmanagement_controller.go | Github Open Source | Open Source | MIT | 2,019 | kubernetes-operator-2 | luis-sousa-pinto | Go | Code | 666 | 2,325 | package netcoreconfigmanagement
import (
"fmt"
"reflect"
"time"
"golang.org/x/net/context"
"k8s.io/apimachinery/pkg/types"
coreerror "errors"
selcukustav1alpha1 "github.com/selcukusta/cm-operator/pkg/apis/selcukusta/v1alpha1"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg... | 22,450 |
https://github.com/Jagreaper/JFinance/blob/master/JFinance.Windows.WPF/Selectors/TransactionsSelectionDataTemplateSelector.cs | Github Open Source | Open Source | MIT, CC-BY-3.0 | 2,017 | JFinance | Jagreaper | C# | Code | 56 | 174 | using JFinance.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace JFinance.Windows.WPF.Selectors
{
class TransactionsSelectionDataTemplateSelector : DataTemplateSelector
{
... | 43,961 |
https://github.com/cyilcode/WController/blob/master/src/WCS.MAIN/Functions/Handlers/InputHandlers/WindowsInputHandler.cs | Github Open Source | Open Source | MIT | 2,016 | WController | cyilcode | C# | Code | 381 | 1,367 | using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using WCS.MAIN.Globals;
using WCS.MAIN.Interfaces;
namespace WCS.MAIN.Functions.Handlers.InputHandlers
{
public class WindowsInputHandler : IInputHandler
{
private const uint MOUSEEVENTF_... | 12,700 |
https://github.com/ShuaiShuaiguo/egg-gql/blob/master/agent.js | Github Open Source | Open Source | MIT | 2,019 | egg-gql | ShuaiShuaiguo | JavaScript | Code | 15 | 56 | 'use strict';
const graphqlLoader = require('./lib/loader/graphql-loader.js');
module.exports = agent => {
// 加载graphql
graphqlLoader(agent).load();
};
| 34,128 |
https://github.com/trungthangnguyen/FindTheDot/blob/master/Classes/Components/MyGameCenter/MyGameCenter.cpp | Github Open Source | Open Source | MIT | 2,017 | FindTheDot | trungthangnguyen | C++ | Code | 121 | 575 | //
// MyGameCenter.cpp
// CanYouTap100
//
// Created by Hieu Nguyen Trung on 11/16/15.
//
//
#include "MyGameCenter.h"
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS
#include "../__platforms/ios/MyGameCenter-apple.h"
#endif
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
// ...
#endif
MYCOMPONENTS_NAMESPACE_BEGIN
bool... | 32,636 |
https://github.com/amaembo/fast-reflection/blob/master/src/main/java/me/sunlan/fastreflection/FastMethod.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | fast-reflection | amaembo | Java | Code | 362 | 927 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 22,501 |
https://github.com/broadinstitute/cromwell/blob/master/supportedBackends/google/pipelines/common/src/main/scala/cromwell/backend/google/pipelines/common/io/DiskType.java | Github Open Source | Open Source | BSD-3-Clause, Apache-2.0 | 2,023 | cromwell | broadinstitute | Java | Code | 35 | 142 | package cromwell.backend.google.pipelines.common.io;
public enum DiskType {
LOCAL("LOCAL", "LOCAL_SSD"),
SSD("SSD", "PERSISTENT_SSD"),
HDD("HDD", "PERSISTENT_HDD");
public final String diskTypeName;
public final String googleTypeName;
DiskType(final String diskTypeName, final String googleTyp... | 44,620 |
https://github.com/minkebox/homebridge_tplink/blob/master/root/app/node_modules/tplink-smarthome-api/lib/client.js | Github Open Source | Open Source | MIT | 2,020 | homebridge_tplink | minkebox | JavaScript | Code | 1,853 | 5,669 | "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... | 1,727 |
https://github.com/aoancea/dynamic-decorator/blob/master/src/UnitTesting/Playground/MyDynamicTypeTest.cs | Github Open Source | Open Source | MIT | 2,016 | dynamic-decorator | aoancea | C# | Code | 723 | 3,622 | using NUnit.Framework;
using System;
using System.Reflection;
using System.Reflection.Emit;
namespace Dynamic.Decorator.UnitTesting.Playground
{
[TestFixture]
public class MyDynamicTypeTest
{
[Test]
public void Build_A_Dynamic_Type()
{
/*
public class MyDynamicType
{
private int m_n... | 9,346 |
https://github.com/meyer-lab/tensordata/blob/master/tensordata/atyeo.py | Github Open Source | Open Source | MIT | null | tensordata | meyer-lab | Python | Code | 264 | 889 | from os.path import join, dirname
import numpy as np
import xarray as xr
import pandas as pd
from .__init__ import Bunch
path_here = dirname(dirname(__file__))
def load_file(name):
""" Return a requested data file. """
data = pd.read_csv(join(path_here, "tensordata/atyeo2020/" + name + ".csv"), delimiter=",",... | 5,015 |
https://github.com/CFind/brOscatLib/blob/master/oscatBasic/HEX_TO_DWORD.st | Github Open Source | Open Source | MIT | 2,021 | brOscatLib | CFind | null | Spoken | 167 | 503 | FUNCTION HEX_TO_DWORD
(*http://www.oscat.de/images/OSCATBasic/oscat_basic333_en.pdf#page=165*)
pt ACCESS ADR(HEX);
stop := LEN(HEX);
FOR i := 1 TO stop DO
(* read the first character and subtract 48 to get value in decimal 0 = 48 *)
X := pt;
intX := BYTE_TO_USINT(X);
(* calculate ... | 11,516 |
https://github.com/DraagrenKirneh/GraphQL/blob/master/GraphQL-Tests.package/GqlParsableStrings.class/instance/exampleNo23.st | Github Open Source | Open Source | MIT | 2,019 | GraphQL | DraagrenKirneh | null | Spoken | 33 | 122 | inline fragments
exampleNo23
<parseTest>
^ 'query inlineFragmentTyping {
profiles(handles: ["zuck", "cocacola"]) {
handle
... on User {
friends {
count
}
}
... on Page {
likers {
count
}
}
}
}'
| 37,238 |
https://github.com/pf-oss/agg_demo/blob/master/mybatisplus/plux/src/main/java/com/mybatis/plux/service/impl/UserServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | agg_demo | pf-oss | Java | Code | 64 | 310 | package com.mybatis.plux.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatis.plux.dao.UserDao;
import com.mybatis.plux.model.User;
import com.mybatis.... | 50,043 |
https://github.com/OpenCIAg/py-robot/blob/master/src/test/python/unit/collector/test_url.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | py-robot | OpenCIAg | Python | Code | 43 | 148 | from aiounittest import AsyncTestCase
from robot.collector.shortcut import *
from unittest.mock import Mock, MagicMock
class UrlCollectorTest(AsyncTestCase):
async def test_url(self):
any_value = 'any value'
expected = '/any/value'
context = Mock()
context.resolve_url = MagicMock... | 4,639 |
https://github.com/jiayi-xian/fairseq_kg/blob/master/Kg2text/experiment/args_denoising.sh | Github Open Source | Open Source | MIT | 2,021 | fairseq_kg | jiayi-xian | Shell | Code | 168 | 383 |
--multilang-sampling-alpha 1.0
#smoothing alpha for sample ratios across multiple datasets",
--add-lang-token False
--langs "en_XX" type=str, #language ids we are considering"
--no-whole-word-mask-langs str languages without spacing between words dont support whole word masking
--tokens-per-sample 512
--sample-break-m... | 36,848 |
https://github.com/jamiewest/XamarinExtensions/blob/master/src/Infrastructure/Converters/ImageResourceConverter.cs | Github Open Source | Open Source | MIT | 2,020 | XamarinExtensions | jamiewest | C# | Code | 552 | 1,101 | //
// ImageResourceConverter.cs
//
// Author:
// Mark Smith <smmark@microsoft.com>
//
// Copyright (c) 2016-2018 Xamarin, Microsoft.
//
// 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 Softwa... | 20,054 |
https://github.com/tcrct/dagger4j/blob/master/src/main/java/com/dagger4j/db/mongodb/common/MongoQuery.java | Github Open Source | Open Source | Apache-2.0 | null | dagger4j | tcrct | Java | Code | 944 | 3,686 | package com.dagger4j.db.mongodb.common;
import com.dagger4j.db.IdEntity;
import com.dagger4j.db.mongodb.enums.OrderByEnum;
import com.dagger4j.db.mongodb.utils.MongoUtils;
import com.dagger4j.exception.MongodbException;
import com.dagger4j.kit.ToolsKit;
import com.dagger4j.mvc.dto.PageDto;
import com.dagger4j.utils.Da... | 9,867 |
https://github.com/areman/Panorama/blob/master/test/unit/helpers/application_helper_test.rb | Github Open Source | Open Source | MIT | 2,015 | Panorama | areman | Ruby | Code | 230 | 1,103 | require 'test_helper'
class ApplicationHelperTest < ActionView::TestCase
setup do
set_session_test_db_context{}
#connect_oracle_db
end
# teardown do
# connect_sqlite_db
# end
test "sql_select_all" do
res = sql_select_all "SELECT 1 Zahl FROM DUAL"
assert_equal "Array", res.class.name
as... | 36,691 |
https://github.com/srakowski/LD45/blob/master/Wordgeon.DesktopGL/Colsteel/Polygon.cs | Github Open Source | Open Source | MIT | null | LD45 | srakowski | C# | Code | 137 | 363 | // MIT License - Copyright (C) Shawn Rakowski
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using Microsoft.Xna.Framework;
using System.Linq;
namespace Coldsteel
{
internal struct Polygon
{
internal Vector2[] Vertices;... | 7,387 |
https://github.com/sagarl/pillar/blob/master/src/main/scala/com/chrisomeara/pillar/cli/App.scala | Github Open Source | Open Source | MIT | 2,014 | pillar | sagarl | Scala | Code | 107 | 332 | package com.chrisomeara.pillar.cli
import com.typesafe.config.{Config, ConfigFactory}
import com.chrisomeara.pillar.{Reporter, PrintStreamReporter, Registry}
import java.io.File
object App {
implicit private val reporter = new PrintStreamReporter(System.out)
implicit private val commandConstructor: ((CommandLineC... | 44,188 |
https://github.com/mfn/Elastica/blob/master/tests/Query/ParentIdTest.php | Github Open Source | Open Source | MIT | null | Elastica | mfn | PHP | Code | 531 | 1,744 | <?php
namespace Elastica\Test\Query;
use Elastica\Mapping;
use Elastica\Query\ParentId;
use Elastica\QueryBuilder\DSL\Query;
use Elastica\Search;
use Elastica\Test\Base as BaseTest;
/**
* @internal
*/
class ParentIdTest extends BaseTest
{
/**
* @group unit
*/
public function testToArray(): void
... | 10,553 |
https://github.com/suny1849/MyScalaStudy/blob/master/src/main/scala/progscala2/sunystudy/Ex_77.scala | Github Open Source | Open Source | Apache-2.0 | null | MyScalaStudy | suny1849 | Scala | Code | 97 | 315 | package progscala2.sunystudy
object Ex_77 {
def main(args: Array[String]): Unit = {
var student1Ban = Map (
1 -> "박선영",
2 -> "박지영",
3 -> "안영순",
4 -> "박준석",
5 -> "김주희",
6 -> "김가희",
7 -> "장신자",
8 -> "박소영",
9 -> "박기영",
10 -> "안성란"
)
student1Ban +=... | 43,906 |
https://github.com/phluid61/abnf-tool/blob/master/file2.abnf | Github Open Source | Open Source | ISC | 2,018 | abnf-tool | phluid61 | null | Spoken | 79 | 224 | file-URI = file-scheme ":" file-hier-part
file-scheme = "file"
file-hier-part = ( "//" auth-path )
/ local-path
auth-path = [ file-auth ] path-absolute
/ [ file-auth ] file-absolute
/ unc-authority path-absolute
local-path = [ drive-letter ] path-absolu... | 25,843 |
https://github.com/obaica/vise/blob/master/vise/util/tests/test_structure_handler.py | Github Open Source | Open Source | MIT, Python-2.0 | 2,020 | vise | obaica | Python | Code | 180 | 980 | # -*- coding: utf-8 -*-
# Copyright (c) 2020. Distributed under the terms of the MIT License.
import numpy as np
from pymatgen.analysis.structure_matcher import StructureMatcher
from vise.util.structure_handler import (
get_symmetry_dataset, structure_to_spglib_cell, spglib_cell_to_structure,
find_hpkot_pri... | 8,329 |
https://github.com/therealtx/builds-test/blob/master/src/components/common/ExperienceItem/components/ItemActivities/Item/index.js | Github Open Source | Open Source | MIT | null | builds-test | therealtx | JavaScript | Code | 98 | 324 | import React from "react";
import Image from "next/image";
import Link from "next/link";
import styles from "./index.module.scss";
const SingleActivity = ({
avatar,
username,
content,
timestamp
... | 41,057 |
https://github.com/Doomsk/CQC-Python/blob/master/cqc/pythonLib/cqc_connection.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | CQC-Python | Doomsk | Python | Code | 2,307 | 6,654 | #
# Copyright (c) 2017, Stephanie Wehner and Axel Dahlberg
# 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 lis... | 10,965 |
https://github.com/DanielMy777/Signify/blob/master/cameraAppExpo/src/components/General/FontName.js | Github Open Source | Open Source | MIT | 2,022 | Signify | DanielMy777 | JavaScript | Code | 27 | 77 | class FontName {
static AmericanSignLanguage = 'American Sign Lenguage';
static SignLanguage = 'signs language tfb';
static BerkshireWash = 'BerkshireSwash-Regular';
static RubikMoonrocks = 'RubikMoonrocks-Regular';
}
export default FontName;
| 13,174 |
https://github.com/tart2000/site_IC/blob/master/panel/app/topbars/error.php | Github Open Source | Open Source | Apache-1.1 | 2,018 | site_IC | tart2000 | PHP | Code | 7 | 30 | <?php
return function($topbar) {
$topbar->append('', l('error.headline'));
}; | 9,170 |
https://github.com/kevineye/mos-clock/blob/master/src/ssd1306_splash.cpp | Github Open Source | Open Source | MIT | null | mos-clock | kevineye | C++ | Code | 101 | 462 | #include "mgos_arduino_ssd1306.h"
#include "mongoose_logo.h"
#include "dark_sky_logo.h"
#include "Fonts/FreeSansBold12pt7b.h"
#include "common/cs_dbg.h"
#ifdef __cplusplus
extern "C" {
#endif
void ssd1306_splash(Adafruit_SSD1306 *ssd) {
if (ssd == nullptr) return;
ssd->clearDisplay();
ssd->drawXBitmap(0, 0, (ui... | 22,082 |
https://github.com/westsider/CaperaAppTest/blob/master/_AR Tutorials/11-facial-blend-shapes/projects/starter/ARFunnyFace/ContentView.swift | Github Open Source | Open Source | Apache-2.0 | 2,021 | CaperaAppTest | westsider | Swift | Code | 1,035 | 2,684 | /// Copyright (c) 2020 Razeware LLC
///
/// 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, pub... | 26,262 |
https://github.com/NewGreenHand/fast-admin-model/blob/master/app/src/main/java/com/admin/app/schedule/service/impl/SysScheduleJobServiceImpl.java | Github Open Source | Open Source | MIT | null | fast-admin-model | NewGreenHand | Java | Code | 179 | 907 | package com.admin.app.schedule.service.impl;
import com.admin.app.schedule.config.CronTaskRegistrar;
import com.admin.app.schedule.config.SchedulingRunnable;
import com.admin.app.schedule.entity.SysScheduleJobEntity;
import com.admin.app.schedule.repository.SysScheduleJobRepository;
import com.admin.app.schedule.servi... | 50,602 |
https://github.com/Breaka84/Spooq/blob/master/docs/source/base_classes/create_extractor/overview.diff | Github Open Source | Open Source | MIT | 2,023 | Spooq | Breaka84 | null | Spoken | 23 | 80 | --- original
+++ adapted
@@ -7,8 +7,9 @@
.. toctree::
json
jdbc
+ csv
Class Diagram of Extractor Subpackage
------------------------------------------------
.. uml:: ../diagrams/from_thesis/class_diagram/extractors.puml
| 24,613 |
https://github.com/Harima037/HS1R3/blob/master/app/views/expediente/programas-presupuestarios.blade.php | Github Open Source | Open Source | MIT | null | HS1R3 | Harima037 | PHP | Code | 327 | 1,747 | @extends('layouts.Modulo')
@section('title-page') {{ $sys_mod_activo->nombre }} @stop
@section('js')
@parent
<script src="{{ URL::to('js/lib/Confirm.js')}}"></script>
<script src="{{ URL::to('js/lib/Validation.js')}}"></script>
<script src="{{ URL::to('js/modulos/expediente/programas-presupuestarios.js')}}"></script>... | 12,813 |
https://github.com/jonmortiboy/luwra/blob/master/tests/wrappers.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | luwra | jonmortiboy | C++ | Code | 729 | 3,154 | #include <catch.hpp>
#include <luwra.hpp>
static int dummy_void_result = 0;
static void dummy1() { dummy_void_result = 1337; }
static void dummy2(int a) { dummy_void_result = 1337 - a; }
static void dummy3(int a, int b) { dummy_void_result = 1337 * a + b; }
static int dummy4() { return 1337; }
static int dummy5(int ... | 7,754 |
https://github.com/noproblemo/phalcon-queue-fork/blob/master/application/app/views/index.volt | Github Open Source | Open Source | MIT | null | phalcon-queue-fork | noproblemo | null | Spoken | 76 | 335 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Ph... | 21,757 |
https://github.com/memoizr/connect-x/blob/master/src/test/scala/connect4/GameIntegrationTest.scala | Github Open Source | Open Source | Apache-2.0 | null | connect-x | memoizr | Scala | Code | 79 | 238 | package connect4
import java.io.{InputStream, PrintStream}
import org.mockito.Mockito._
import rx.lang.scala.schedulers.ImmediateScheduler
class GameIntegrationTest extends BaseTest {
var in: InputStream = _
var out: PrintStream = _
var game: Game = _
override protected def beforeEach(): Unit = {
impor... | 8,235 |
https://github.com/buzzware/designshell/blob/master/spec/designshell_context_spec.rb | Github Open Source | Open Source | MIT | 2,013 | designshell | buzzware | Ruby | Code | 34 | 211 | require "rspec"
require "rspec_helper"
describe "DesignShell::Context" do
it "should find repo path upward" do
tempdir = MiscUtils.real_path(MiscUtils.make_temp_dir('designshell_context_spec'))
Dir.mkdir(git_dir = File.join(tempdir,'.git'))
Dir.mkdir(File.join(tempdir,'one'))
orange = File.join(tempdir,'one/... | 4,426 |
https://github.com/kyaaqba/magma/blob/master/symphony/graph/graphql/directive/directive_test.go | Github Open Source | Open Source | BSD-3-Clause | null | magma | kyaaqba | Go | Code | 1,373 | 5,907 | // Copyright (c) 2004-present Facebook All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package directive_test
import (
"context"
"io"
"testing"
"github.com/AlekSi/pointer"
"github.com/facebookincubator/symphony/graph/graphql/directive"... | 45,867 |
https://github.com/chugas/SuccessTranslationBundle/blob/master/Tests/Unit/BaseUnitTestCase.php | Github Open Source | Open Source | MIT | 2,014 | SuccessTranslationBundle | chugas | PHP | Code | 467 | 2,565 | <?php
namespace Lexik\Bundle\TranslationBundle\Tests\Unit;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\Common\DataFixtures\Executor\ORMExecutor;
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
use Doctrine\Common\DataFixtures\Purger\ORMPurger;
use Doctrine\Common\DataFixtures\Purger\MongoDB... | 14,251 |
https://github.com/mtasa-typescript/mtasa-lua-utils/blob/master/src/ast/validateImports.ts | Github Open Source | Open Source | MIT | 2,022 | mtasa-lua-utils | mtasa-typescript | TypeScript | Code | 278 | 947 | import { FunctionVisitor } from 'typescript-to-lua/dist/transformation/context/visitors';
import * as ts from 'typescript';
import { Plugin, TransformationContext } from 'typescript-to-lua';
import { CompilerOptions } from '../compiler/cli';
import * as path from 'path';
import { Script } from '../compiler/meta/types';... | 18,444 |
https://github.com/pietarin/ReactGUI/blob/master/src/exercises/exercise5.3.js | Github Open Source | Open Source | MIT | null | ReactGUI | pietarin | JavaScript | Code | 284 | 1,080 | import React, { useRef, useEffect, useState } from 'react';
import './exercise.css';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
function App() {
const [mousePos, setMousePos] = useState(null);
const canvasRef = useRef(null);
const setMouseCoordinates = (... | 49,928 |
https://github.com/gomez-addams/JUMP/blob/master/JUMP Multiplayer/JUMP/UI/JUMPSceneName.cs | Github Open Source | Open Source | MIT | 2,022 | JUMP | gomez-addams | C# | Code | 59 | 164 | using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class JUMPSceneName : MonoBehaviour
{
private Text text;
#pragma warning disable 0649
[SerializeField]
private bool debugMode;
#pragma warning restore 0649
private void Awake()
{
text = GetComponent<Text>(... | 32,414 |
https://github.com/centos-yocto/meta-centos/blob/master/recipes-core/systemd/centos/0336-test-make-sure-the-strace-process-is-indeed-dead.patch | Github Open Source | Open Source | MIT | null | meta-centos | centos-yocto | null | Spoken | 183 | 682 | From 60813b55f9b5b44b14f38bbc1b8c0d2b30e3f6c7 Mon Sep 17 00:00:00 2001
From: Frantisek Sumsal <frantisek@sumsal.cz>
Date: Mon, 1 Jul 2019 19:53:45 +0200
Subject: [PATCH] test: make sure the strace process is indeed dead
It may take a few moments for the strace process to properly terminate
and write all logs to the ba... | 1,860 |
https://github.com/contagon/MSCL/blob/master/MSCL/source/mscl/TimestampCounter.h | Github Open Source | Open Source | BSL-1.0, OpenSSL, MIT | null | MSCL | contagon | C | Code | 283 | 601 | /*******************************************************************************
Copyright(c) 2015-2020 Parker Hannifin Corp. All rights reserved.
MIT Licensed. See the included LICENSE.txt for a copy of the full MIT License.
*******************************************************************************/
#pragma onc... | 39,458 |
https://github.com/mohlek/pyunifiprotect/blob/master/setup.py | Github Open Source | Open Source | MIT | null | pyunifiprotect | mohlek | Python | Code | 89 | 285 | from distutils.core import setup
setup(
name="pyunifiprotect",
packages=["pyunifiprotect"],
version="0.30.5",
license="MIT",
description="Python Wrapper for Unifi Protect API",
author="Bjarne Riis",
author_email="bjarne@briis.com",
url="https://github.com/briis/pyunifiprotect",
keyw... | 35,484 |
https://github.com/skylarkphp/skyphp-lucid/blob/master/backend/lib/MDB2/Driver/Datatype/mssql.php | Github Open Source | Open Source | MIT | 2,020 | skyphp-lucid | skylarkphp | PHP | Code | 2,093 | 4,678 | <?php
// vim: set et ts=4 sw=4 fdm=marker:
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1998-2007 Manuel Lemos, Tomas ... | 6,396 |
https://github.com/GsDevKit/XML-XMLParser/blob/master/filetree/XML-Parser-Core.package/XMLStreamAdapter.class/instance/close.st | Github Open Source | Open Source | MIT | null | XML-XMLParser | GsDevKit | null | Spoken | 19 | 42 | closing
close
"must use respondsTo: to support streams only implementing the basic protocol"
(stream respondsTo: #close)
ifTrue: [stream close] | 16,204 |
https://github.com/melezov/sbt/blob/master/util/classpath/src/main/scala/sbt/classpath/RawURL.scala | Github Open Source | Open Source | MIT, Apache-2.0, BSD-3-Clause | 2,021 | sbt | melezov | Scala | Code | 344 | 720 | /* sbt -- Simple Build Tool
* Copyright 2010 Mark Harrah
*/
package sbt
package classpath
import java.io.{ ByteArrayInputStream, InputStream }
import java.net.{ Proxy, URL, URLConnection, URLStreamHandler }
import java.util.Enumeration
object RawURL {
/**
* Constructs a URL with scheme `raw` and path `file` th... | 31,821 |
https://github.com/connexiadev/Vodamep/blob/master/tests/Vodamep.Tests/Aliases/AliasSystemExtensionTests.cs | Github Open Source | Open Source | MIT | null | Vodamep | connexiadev | C# | Code | 189 | 557 | using System;
using System.Collections.Generic;
using Vodamep.Hkpv.Model;
using Xunit;
namespace Vodamep.Aliases.Tests
{
public class AliasSystemExtensionTests
{
[Fact]
public void SetAliases_NameAndBirthdayAreEqual_IdsAreMapped()
{
var p1 = new Person
{
... | 27,112 |
https://github.com/HotaruBlaze/DoorFramework/blob/master/main.lua | Github Open Source | Open Source | MIT | 2,020 | DoorFramework | HotaruBlaze | Lua | Code | 691 | 2,534 | local DoorFramework = {}
DoorFramework.scriptName = "DoorFramework"
DoorFramework.defaultConfig = {
cmdStaffRank = 1,
collision = true,
cmd = "dfw",
sound = "fx/doorw1.wav"
}
DoorFramework.config = DataManager.loadConfiguration(DoorFramework.scriptName, DoorFramework.defaultConfig)
DoorFramework.def... | 41,549 |
https://github.com/quincykwende/markpedia/blob/master/packages/Webkul/Marketplace/src/Listeners/Invoice.php | Github Open Source | Open Source | MIT | null | markpedia | quincykwende | PHP | Code | 94 | 285 | <?php
namespace Webkul\Marketplace\Listeners;
use Illuminate\Support\Facades\Mail;
use Webkul\Marketplace\Repositories\InvoiceRepository;
/**
* Invoice event handler
*
* @author Jitendra Singh <jitendra@webkul.com>
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)
*/
class Invoice
{
/**
... | 28,633 |
https://github.com/vonheldenundgestalten/vhug-builder/blob/master/lib/copy-icons.js | Github Open Source | Open Source | MIT | null | vhug-builder | vonheldenundgestalten | JavaScript | Code | 87 | 244 | const path = require('path');
const projectPath = require(path.resolve(process.env.PWD + '/paths.config.js'));
const copydir = require('copy-dir');
const minimist = require('minimist')
const args = minimist(process.argv.slice(2))
const assetsPath = projectPath.dev + '/assets/img/sprite-icons/';
const dest = args.releas... | 4,666 |
https://github.com/sgonzaloc/Cuis-Smalltalk-Dev/blob/master/CoreUpdates/3732-FontStateInFontFamily-JuanVuletich-2019May05-11h01m-jmv.1.cs.st | Github Open Source | Open Source | MIT | null | Cuis-Smalltalk-Dev | sgonzaloc | null | Spoken | 626 | 1,884 | 'From Cuis 5.0 of 7 November 2016 [latest update: #3726] on 5 May 2019 at 11:12:11 am'!
!FontFamily methodsFor: 'accessing' stamp: 'jmv 5/5/2019 11:03:44'!
aroundPointSize: aNumber
^baseFontBySizes at: aNumber ifAbsent: [ |found |
found _ nil.
baseFontBySizes do: [ :font |
(found isNil or: [ (found pointSize -... | 11,261 |
https://github.com/MohamadSH/vote/blob/master/app/Listeners/MobileVerifiedListener.php | Github Open Source | Open Source | MIT | null | vote | MohamadSH | PHP | Code | 53 | 170 | <?php
namespace App\Listeners;
use App\Events\MobileVerified;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Facades\Cache;
class MobileVerifiedListener
{
use InteractsWithQueue;
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{... | 30,634 |
https://github.com/dresl/python_web_grayscale_bootstrap_theme/blob/master/bash_scripts/refresh_template.sh | Github Open Source | Open Source | Apache-2.0 | 2,015 | python_web_grayscale_bootstrap_theme | dresl | Shell | Code | 10 | 34 | #!/bin/bash
. bin/activate
python manage.py sync_all -f --nocompress
sh server_run.sh
| 50,630 |
https://github.com/mediabuff/WinRTDesktopInterop/blob/master/ManagedHooksManager/ApiHook.cs | Github Open Source | Open Source | MIT | 2,018 | WinRTDesktopInterop | mediabuff | C# | Code | 493 | 2,044 | using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace ManagedHooksManager
{
internal sealed class ApiHook<TDelegate>
{
private const long TrampolineMemoryRegionSize = 0x10000L;
private readonly string _moduleName;
private readonly string _exportName;
... | 39,726 |
https://github.com/pradipfl/biodiv/blob/master/grails-app/views/common/userGroup/_inviteExpertTemplate.gsp | Github Open Source | Open Source | Apache-2.0 | 2,018 | biodiv | pradipfl | null | Spoken | 159 | 1,034 | <g:if test="${isExpertOrFounder}">
<a id="inviteExperts" class="btn btn-primary" href="#inviteExpertsDialog" role="button" data-toggle="modal"><i
class="icon-envelope"></i> <g:message code="userGroup.moderators.label"
default="${g.message(code:'title.default.invite.moderators')}" /> </a>
<div class="modal hide f... | 31,172 |
https://github.com/CrazyCheatsheetApp/Cheatsheet-WebApp/blob/master/src/components/NoteList.js | Github Open Source | Open Source | MIT | null | Cheatsheet-WebApp | CrazyCheatsheetApp | JavaScript | Code | 46 | 173 | import AddNote from './AddNote';
import Note from './Note';
const NoteListContainer = ({ notes, handleAddNote, handleDeleteNote, handleCopyNote, handleUpdate }) => {
return (
<div className="notes-list">
<AddNote handleAddNote={handleAddNote} />
{notes.map((note) => (
... | 26,650 |
https://github.com/soutaro/steep/blob/master/lib/steep/type_inference/logic_type_interpreter.rb | Github Open Source | Open Source | MIT | 2,023 | steep | soutaro | Ruby | Code | 1,493 | 5,813 | module Steep
module TypeInference
class LogicTypeInterpreter
class Result < Struct.new(:env, :type, :unreachable, keyword_init: true)
def update_env
env = yield()
Result.new(type: type, env: env, unreachable: unreachable)
end
def update_type
Result.new(... | 45,528 |
https://github.com/marg51/re-bulma/blob/master/src/layout/hero.js | Github Open Source | Open Source | MIT | 2,021 | re-bulma | marg51 | JavaScript | Code | 101 | 383 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class Hero extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
className: PropTypes... | 4,214 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.