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/bricas/cucumber-puppeteer/blob/master/test/action/waitFor.test.js | Github Open Source | Open Source | MIT | 2,022 | cucumber-puppeteer | bricas | JavaScript | Code | 132 | 414 | const waitFor = require('../../features/support/action/waitFor');
const openUrl = require('../../features/support/action/openUrl');
const BrowserScope = require('../../features/support/scope/BrowserScope');
const testUrl = 'http://localhost:8080/waitFor.html';
const browserScope = new BrowserScope();
beforeAll(async ... | 10,020 |
https://github.com/factioninc/snmp-unity-agent/blob/master/snmpagent_unity/unity_impl/FanName.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | snmp-unity-agent | factioninc | Python | Code | 18 | 83 | class FanName(object):
def read_get(self, name, idx_name, unity_client):
return unity_client.get_fan_name(idx_name)
class FanNameColumn(object):
def get_idx(self, name, idx, unity_client):
return unity_client.get_fans()
| 42,544 |
https://github.com/nmcl/scratch/blob/master/graalvm/transactions/fork/narayana/ArjunaJTS/orbportability/classes/com/arjuna/orbportability/orb/core/ORBImple.java | Github Open Source | Open Source | LGPL-2.1-only, LGPL-2.1-or-later, LicenseRef-scancode-other-copyleft, Apache-2.0 | 2,023 | scratch | nmcl | Java | Code | 466 | 869 | /*
* JBoss, Home of Professional Open Source
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a full listing
* of individual contributors.
* This copyrighted material is made available to anyone wishing to u... | 17,161 |
https://github.com/davehenton/sleepdata.org/blob/master/test/controllers/images_controller_test.rb | Github Open Source | Open Source | MIT | null | sleepdata.org | davehenton | Ruby | Code | 526 | 1,783 | # frozen_string_literal: true
require "test_helper"
# Tests access to upload and view images in blogs and forum posts.
class ImagesControllerTest < ActionDispatch::IntegrationTest
setup do
@image = images(:one)
end
test "should get index as admin" do
login(users(:admin))
get images_url
assert_r... | 14,529 |
https://github.com/ktmeaton/NCBImeta/blob/master/test/test_errors.py | Github Open Source | Open Source | MIT | 2,022 | NCBImeta | ktmeaton | Python | Code | 952 | 2,437 | """
NCBImeta Test - Error Classes
@author: Katherine Eaton
"""
# -----------------------------------------------------------------------------#
# Modules and Packages #
# -----------------------------------------------------------------------------#
from ncbime... | 51,724 |
https://github.com/rvsramkumar/chef-solo-hello-world/blob/master/knife.rb | Github Open Source | Open Source | MIT | 2,013 | chef-solo-hello-world | rvsramkumar | Ruby | Code | 44 | 258 | log_level :info
log_location STDOUT
node_name ENV['USER']
knife[:aws_access_key_id] = ENV['AWS_ACCESS_KEY_ID']
knife[:aws_secret_access_key] = ENV['AWS_SECRET_ACCESS_KEY']
knife[:aws_ssh_key_id] = "#{ENV['CHEF_ORGANIZATION']}-ec2"
knife[:region] = 'u... | 50,122 |
https://github.com/kleber-maia/iobjects-crm/blob/master/src/java/imanager/entity/AtendimentoInfo.java | Github Open Source | Open Source | MIT | 2,018 | iobjects-crm | kleber-maia | Java | Code | 707 | 2,074 | /*
The MIT License (MIT)
Copyright (c) 2008 Kleber Maia de Andrade
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, modif... | 33,365 |
https://github.com/rnetuka/fabric8-1/blob/master/fabric/fabric-agent/src/main/java/io/fabric8/agent/model/FeaturesNamespaces.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | fabric8-1 | rnetuka | Java | Code | 187 | 596 | /**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you 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 r... | 47,279 |
https://github.com/hanmoonkyo/tt-lib/blob/master/modules/drawing_cache.rb | Github Open Source | Open Source | MIT | 2,019 | tt-lib | hanmoonkyo | Ruby | Code | 273 | 818 | # frozen_string_literal: true
Sketchup.require 'modules/object_utils'
module SkippyLib
# Caches drawing instructions so complex calculations for generating the
# GL data can be reused.
#
# Redirect all `Sketchup::View` commands to a {DrawingCache} object and call
# `#render` in a Tool's `#draw` event.
#
... | 4,566 |
https://github.com/neo-ngd/neo-vm/blob/master/src/neo-vm/Types/Buffer.cs | Github Open Source | Open Source | MIT | 2,021 | neo-vm | neo-ngd | C# | Code | 217 | 611 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Numerics;
namespace Neo.VM.Types
{
/// <summary>
/// Represents a memory block that can be used for reading and writing in the VM.
/// </summary>
[DebuggerDisplay("Type={GetType().Name}, Value={System.BitConverter.To... | 40,646 |
https://github.com/tzlaine/text/blob/master/include/boost/text/data/to.hpp | Github Open Source | Open Source | BSL-1.0, LicenseRef-scancode-unknown-license-reference | 2,023 | text | tzlaine | C++ | Code | 71 | 281 | // Copyright (C) 2020 T. Zachary Laine
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Warning! This file is autogenerated.
#ifndef BOOST_TEXT_DATA_TO_HPP
#define BOOST_TEXT_DATA_TO_HPP
#include <boost/te... | 15,434 |
https://github.com/khandramai/mod-remote-storage/blob/master/src/main/java/org/folio/rs/domain/dto/Permission.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mod-remote-storage | khandramai | Java | Code | 13 | 41 | package org.folio.rs.domain.dto;
import lombok.Data;
@Data
public class Permission {
private String permissionName;
}
| 3,962 |
https://github.com/Uchchhas/design-plus-365/blob/master/resources/views/admin/project/projectGallery.blade.php | Github Open Source | Open Source | MIT | 2,020 | design-plus-365 | Uchchhas | Blade | Code | 274 | 1,156 | @extends('admin.master')
@section('title')
Add Project Gallery Images | Vivek Group
@endsection
@section('mainContent')
<hr>
<div class="container">
<div class="row">
<div class="col-sm-12">
<!-- <h3 class="text-center text-success">{{ Session::get('message') }}</h3> -->
{!! c... | 23,873 |
https://github.com/NCIEVS/nci-mapping-tool/blob/master/software/ncimappingtool/src/java/gov/nih/nci/evs/browser/bean/MetadataElement.java | Github Open Source | Open Source | BSD-3-Clause | 2,018 | nci-mapping-tool | NCIEVS | Java | Code | 92 | 270 | /*L
* Copyright Northrop Grumman Information Technology.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/nci-mapping-tool/LICENSE.txt for details.
*/
package gov.nih.nci.evs.browser.bean;
/**
*
*/
/**
* @author EVS Team
* @version 1.0
*
* Modification h... | 31,564 |
https://github.com/VladShvec/synoptic/blob/master/src/Types/City.hs | Github Open Source | Open Source | BSD-3-Clause | 2,019 | synoptic | VladShvec | Haskell | Code | 36 | 98 | module Types.City where
-- Список городов
data City
= Aragatsotn
| Ararat
| Armavir
| Dilijan
| Gegharkunik
| Gyumri
| Kotayk
| Shirak
| Syunik
| Vanadzor
| Yerevan
deriving (Read, Enum, Eq, Ord, Show)
| 4,368 |
https://github.com/docker-suite/Install-Scripts/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,018 | Install-Scripts | docker-suite | Makefile | Code | 272 | 994 | ## Name of the images
DOCKER_BASE=dsuite/alpine-base:test
DOCKER_RUNIT=dsuite/alpine-runit:test
## Current directory
DIR:=$(strip $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))))
## Config
.DEFAULT_GOAL := help
.PHONY: *
help: ## This help !
@printf "\033[33mUsage:\033[0m\n make [target]\n\n\033[33mTarge... | 26,884 |
https://github.com/jvheaton/LabilityBootstrap/blob/master/LabilityBootstrap.psm1 | Github Open Source | Open Source | MIT | 2,016 | LabilityBootstrap | jvheaton | PowerShell | Code | 135 | 377 | #Requires -RunAsAdministrator
## Import localisation strings
Import-LocalizedData -BindingVariable localized -FileName Resources.psd1 -BaseDirectory $PSScriptRoot;
$lability = Get-Module -Name 'Lability';
$defaults = @{
ModuleRoot = Split-Path -Path $MyInvocation.MyCommand.Path -Parent;
ModulesPath = 'Module... | 36,496 |
https://github.com/paullewallencom/android-978-1-7864-6721-8/blob/master/_/Chapter08/B05685_08_Code/LayoutComposer/app/src/main/java/com/example/kyle/layoutcomposer/components/CompositeText.java | Github Open Source | Open Source | Apache-2.0 | null | android-978-1-7864-6721-8 | paullewallencom | Java | Code | 73 | 276 | package com.example.kyle.layoutcomposer.components;
import android.util.TypedValue;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
public class CompositeText implements Component {
List<Component> components = new ArrayList<>();
private TextV... | 13,420 |
https://github.com/superern/RESTClient-APS/blob/master/src/content/js/restclient.autoupdate.js | Github Open Source | Open Source | BSD-3-Clause | 2,017 | RESTClient-APS | superern | JavaScript | Code | 432 | 1,132 | /* ***** BEGIN LICENSE BLOCK *****
Copyright (c) 2015, Paul Gear (gear54rus@gmail.com). All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyrig... | 33,918 |
https://github.com/amahussein/vespa/blob/master/configserver/src/main/java/com/yahoo/vespa/config/server/tenant/Tenant.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | vespa | amahussein | Java | Code | 297 | 763 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.tenant;
import com.yahoo.config.provision.TenantName;
import com.yahoo.path.Path;
import com.yahoo.vespa.config.server.RequestHandler;
import com.yahoo.vespa.conf... | 28,948 |
https://github.com/bichonghai/platform-frontend/blob/master/src/app/service/rigidity-dynamic-record/rigidity-dynamic-record.service.spec.ts | Github Open Source | Open Source | MIT | 2,020 | platform-frontend | bichonghai | TypeScript | Code | 36 | 128 | import { TestBed } from '@angular/core/testing';
import { RigidityDynamicRecordService } from './rigidity-dynamic-record.service';
describe('RigidityDynamicRecordService', () => {
let service: RigidityDynamicRecordService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(Ri... | 51,479 |
https://github.com/BonexGoo/daddy/blob/master/logger/source/view/tree_view.hpp | Github Open Source | Open Source | MIT | 2,021 | daddy | BonexGoo | C++ | Code | 35 | 128 | #pragma once
#include <service/boss_zay.hpp>
#include <tree/tree_group.hpp>
class TreeView
{
public:
TreeView();
~TreeView();
public:
bool OnRender(ZayPanel& panel);
public:
void Update(chars name, chars value, bool addition);
void Remove(chars name);
private:
id_mutex mMutex;
TreeGroup... | 4,814 |
https://github.com/ffteja/cgal/blob/master/Arrangement_on_surface_2/doc/Arrangement_on_surface_2/CGAL/Arr_linear_traits_2.h | Github Open Source | Open Source | CC0-1.0 | 2,022 | cgal | ffteja | C | Code | 606 | 1,506 | namespace CGAL {
/*! \ingroup PkgArrangementOnSurface2TraitsClasses
*
* The traits class `Arr_linear_traits_2` is a model of the
* `ArrangementTraits_2` concept, which enables the construction and maintenance
* of arrangements of linear objects. The linear objects may be bounded (line
* segments) or unbounded (ra... | 29,372 |
https://github.com/alrs/aws-sdk-go-v2/blob/master/service/mturk/api_op_ListHITs.go | Github Open Source | Open Source | Apache-2.0 | null | aws-sdk-go-v2 | alrs | Go | Code | 634 | 1,737 | // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package mturk
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
type ListHITsInput struct {
_ struct{} `type:"structure"`
MaxResults *int64 `min:"1" type:"integer"`
// Pagination token
... | 994 |
https://github.com/flood-io/element/blob/master/packages/core/src/page/Point.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | element | flood-io | TypeScript | Code | 31 | 60 | export type Point = [number, number]
export const isPoint = (thing: any): thing is Point => {
return Array.isArray(thing) && thing.every((el) => typeof el === 'number') && thing.length == 2
}
| 16,123 |
https://github.com/sonro/cartator/blob/master/src/Core/Domain/SourceAccess/Model/Shared/AccessorMethod.php | Github Open Source | Open Source | MIT | null | cartator | sonro | PHP | Code | 76 | 250 | <?php
namespace App\Core\Domain\SourceAccess\Model\Shared;
class AccessorMethod
{
const CARTATOR_API = 'cartator_api';
const SOURCE_DB = 'source_db';
const SOURCE_API = 'source_api';
const CUSTOM = 'custom';
/**
* @var string
*/
private $name;
public function __construct(string... | 32,194 |
https://github.com/Coool/rudix-macOS/blob/master/Ports/rtorrent/Makefile | Github Open Source | Open Source | BSD-3-Clause | 2,022 | rudix-macOS | Coool | Makefile | Code | 38 | 208 | BuildRequires += $(LibDir)/libtorrent.la # libtorrent
BuildRequires += $(LibDir)/libsigc-2.0.la # libsigcpp
BuildRequires += $(BinDir)/pkg-config # pkg-config
include ../../Library/GNU.mk
Title= rTorrent
Name= rtorrent
Version= 0.9.2
Site= http://libtorrent.rakshasa.no/
Source= http://libtorrent.rakshasa.no/downl... | 14,369 |
https://github.com/ShatteredMines/NoFlyZone/blob/master/src/me/clip/noflyzone/NoFlyConfig.java | Github Open Source | Open Source | MIT | 2,015 | NoFlyZone | ShatteredMines | Java | Code | 82 | 337 | package me.clip.noflyzone;
import java.util.Arrays;
import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;
public class NoFlyConfig {
private NoFlyZone plugin;
protected NoFlyConfig(NoFlyZone i) {
plugin = i;
}
public void loadDefaultConfiguration() {
FileConfiguration config = p... | 18,824 |
https://github.com/harbin86/pinderLaravel/blob/master/resources/views/myevents/_form.blade.php | Github Open Source | Open Source | MIT | null | pinderLaravel | harbin86 | PHP | Code | 67 | 506 | <div class="form-group">
{!!Form::label('start_date','Start Date:')!!}
{!!Form::date('start_date', date('d-m-Y h:i:s a'),['class'=>'form-control'])!!}
</div>
<div class="form-group">
{!!Form::label('end_date','End Date:')!!}
{!!Form::date('end_date', date('d-m-Y h:i:s a'),['class'=>'form-contr... | 55,512 |
https://github.com/NCommander/pcgeos/blob/master/Installed/Library/Spell/dependencies.mk | Github Open Source | Open Source | Apache-2.0 | null | pcgeos | NCommander | Makefile | Code | 5,919 | 37,099 | ET.obj \
ET.eobj: ET/ETMANAGER.ASM \
GEOS.DEF HEAP.DEF GEODE.DEF RESOURCE.DEF EC.DEF LMEM.DEF \
THREAD.DEF SEM.DEF CHUNKARR.DEF INITFILE.DEF LIBRARY.DEF \
FILE.DEF OBJECT.DEF LOCALIZE.DEF SLLANG.DEF \
ETCONSTANT.DEF ETVARIABLE.DEF SPELLCONSTANT.DEF \
... | 26,501 |
https://github.com/ohlincha/ECCE/blob/master/src/apps/basistool/WxBasisSetDetail.C | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, ECL-2.0 | 2,017 | ECCE | ohlincha | C | Code | 861 | 3,739 | #include <iostream>
using std::cout;
using std::endl;
#include <string>
using std::string;
#include <set>
using std::set;
using std::less;
#include <vector>
#include "wx/dc.h"
#include "wx/file.h"
#include "util/ErrMsg.H"
#include "util/Color.H"
#include "util/STLUtil.H"
#include "util/StringConve... | 2,810 |
https://github.com/liyaguang/PalHunterClient/blob/master/src/edu/usc/palhunter/FBLoginActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | PalHunterClient | liyaguang | Java | Code | 142 | 424 | package edu.usc.palhunter;
import edu.usc.palhunter.R;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.Menu;
import android.view.MenuItem;
public class FBLoginActivity extends FragmentActivity {
private FBLoginFragment mainFragment;
@Override
protected void onCrea... | 9,039 |
https://github.com/mdwhatcott/advent-of-code/blob/master/go/2018/day12/pots.go | Github Open Source | Open Source | MIT | 2,019 | advent-of-code | mdwhatcott | Go | Code | 252 | 656 | package day12
import (
"strings"
)
type Row struct {
state map[int]bool
rules []Rule
}
func NewRowOfPots(initial string, rules ...Rule) *Row {
state := make(map[int]bool, len(initial))
for i, c := range initial {
state[i] = c == '#'
}
return &Row{
state: state,
rules: rules,
}
}
func (this *Row) Scan(... | 3,138 |
https://github.com/Azure/azure-service-operator/blob/master/v2/api/documentdb/v1beta20210515/database_account_spec_arm_types_gen.go | Github Open Source | Open Source | MIT | 2,023 | azure-service-operator | Azure | Go | Code | 626 | 2,569 | // Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1beta20210515
import (
"encoding/json"
"github.com/Azure/azure-service-operator/v2/pkg/genruntime"
)
// Deprecated version of DatabaseAccount_Spec. Use v1api20210515.... | 13,796 |
https://github.com/Shopify/synvert-core/blob/master/spec/synvert/core/node_ext_spec.rb | Github Open Source | Open Source | MIT | 2,016 | synvert-core | Shopify | Ruby | Code | 1,150 | 3,452 | require 'spec_helper'
describe Parser::AST::Node do
describe '#name' do
it 'gets for class node' do
node = parse('class Synvert; end')
expect(node.name).to eq parse('Synvert')
node = parse('class Synvert::Rewriter::Instance; end')
expect(node.name).to eq parse('Synvert::Rewriter::Instanc... | 1,814 |
https://github.com/Himeyama/image-translate/blob/master/preload.js | Github Open Source | Open Source | MIT | null | image-translate | Himeyama | JavaScript | Code | 56 | 200 | const { contextBridge, ipcRenderer} = require("electron")
contextBridge.exposeInMainWorld(
"api", {
readText: (data) => {
ipcRenderer.send("readText", data)
},
browser: (uri) => {
ipcRenderer.send("browser", uri)
},
minimize: (args) => {
ip... | 23,009 |
https://github.com/alldatacenter/alldata/blob/master/kd/pkg/util/pod_resources_utils_test.go | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Go | Code | 530 | 2,371 | /*
Copyright 2022 The Koordinator 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 agreed to in writing,... | 43,001 |
https://github.com/bigfool-cn/logrus-clickhouse-hook/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | logrus-clickhouse-hook | bigfool-cn | Ignore List | Code | 3 | 13 | .vscode
go.sum
go.mod | 38,277 |
https://github.com/weiqingtoh/coursemology.org/blob/master/lib/tasks/update_submission_status.rake | Github Open Source | Open Source | MIT | null | coursemology.org | weiqingtoh | Ruby | Code | 39 | 135 | namespace :db do
task update_submission_status: :environment do
TrainingSubmission.all.each do |sbm|
if sbm.status
puts "Next " + sbm.status
next
end
if sbm.done?
sbm.set_graded
puts "graded " + sbm.id.to_s
else
sbm.set_submitted(nil, false)
... | 4,799 |
https://github.com/stephenwf/react-functional-select/blob/master/__stories__/helpers/constants/markup.ts | Github Open Source | Open Source | MIT | null | react-functional-select | stephenwf | TypeScript | Code | 105 | 628 | import {
OPTION_CLS,
OPTION_FOCUSED_CLS,
OPTION_DISABLED_CLS,
OPTION_SELECTED_CLS,
CARET_ICON_CLS,
CLEAR_ICON_CLS,
AUTOSIZE_INPUT_CLS,
MENU_CONTAINER_CLS,
SELECT_CONTAINER_CLS,
CONTROL_CONTAINER_CLS
} from '../../../src/constants/dom';
export const CLASS_NAME_HTML =
`<div class="${SELECT_CONTAINE... | 7,285 |
https://github.com/snavarreteimmap/ngm-reportHub/blob/master/app/scripts/modules/cluster/reports/forms/cluster.project.form.details.js | Github Open Source | Open Source | MIT | 2,019 | ngm-reportHub | snavarreteimmap | JavaScript | Code | 1,692 | 6,477 | /**
* @ngdoc function
* @name ngmReportHubApp.controller:ClusterProjectFormDetailsCtrl
* @description
* # ClusterProjectFormDetailsCtrl
* Controller of the ngmReportHub
*/
angular.module( 'ngm.widget.project.details', [ 'ngm.provider' ])
.config( function( dashboardProvider){
dashboardProvider
... | 40,207 |
https://github.com/hungnln/booking-hotel-online/blob/master/src/java/dtos/RoomType.java | Github Open Source | Open Source | RSA-MD | 2,021 | booking-hotel-online | hungnln | Java | Code | 302 | 788 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dtos;
/**
*
* @author SE140018
*/
public class RoomType {
private String roomID;
private Hotel hotel;
private T... | 25,706 |
https://github.com/fazilvk786/igbot/blob/master/node_modules/instagram-private-api/dist/v1/qe.js | Github Open Source | Open Source | MIT | 2,022 | igbot | fazilvk786 | JavaScript | Code | 69 | 240 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const _ = require('lodash');
const resource_1 = require("./resource");
const CONSTANTS = require("../constants/constants");
const request_1 = require("../core/request");
class QE extends resource_1.InstagramResource {
static sync(session) ... | 4,352 |
https://github.com/jpragey/Sirius/blob/master/org.sirius.frontend/src/test/java/org/sirius/frontend/core/TopLevelFunctionTest.java | Github Open Source | Open Source | Apache-2.0 | null | Sirius | jpragey | Java | Code | 703 | 3,204 | package org.sirius.frontend.core;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.List;
i... | 36,643 |
https://github.com/2019331099-Rabbi/Online-Judges-Problems-Solution/blob/master/UVa/439 - Knight Moves.cpp | Github Open Source | Open Source | MIT | null | Online-Judges-Problems-Solution | 2019331099-Rabbi | C++ | Code | 171 | 548 | #include <bits/stdc++.h>
#define ll long long
#define endl '\n'
#define PI acos(-1)
#define sz 8
#define RUN_FAST ios::sync_with_stdio(false);
using namespace std;
//int row[]={0, 0, -1, 1};
//int col[]={1, -1, 0, 0};
int row[]={-2, -2, 2, 2, -1, -1, 1, 1};
int col[]={1, -1, 1, -1, 2, -2, 2, -2};
int bfs(int xi, int... | 36,218 |
https://github.com/bhfagundes/importacao_atividades/blob/master/resources/views/atividade_evidencias/fields.blade.php | Github Open Source | Open Source | MIT | 2,020 | importacao_atividades | bhfagundes | PHP | Code | 113 | 425 | <!-- Id Atividade Field -->
<div class="form-group col-sm-6">
{!! Form::label('id_atividade', 'Id Atividade:') !!}
{!! Form::number('id_atividade', null, ['class' => 'form-control']) !!}
</div>
<!-- Id Evidencia Field -->
<div class="form-group col-sm-6">
{!! Form::label('id_evidencia', 'Id Evidencia:') !!... | 39,219 |
https://github.com/SREERAGI18/chromium/blob/master/content/services/auction_worklet/BUILD.gn | Github Open Source | Open Source | BSD-3-Clause | 2,021 | chromium | SREERAGI18 | null | Spoken | 217 | 1,437 | # Copyright 2021 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.
import("//third_party/inspector_protocol/inspector_protocol.gni")
import("//v8/gni/v8.gni")
inspector_protocol_generate("protocol_sources") {
visibility =... | 22,402 |
https://github.com/panzhansong/PBM-for-Uni-app/blob/master/util/mixin.js | Github Open Source | Open Source | Apache-2.0 | null | PBM-for-Uni-app | panzhansong | JavaScript | Code | 747 | 2,883 | /**
* 列表页面公共逻辑混入
* @param {String} url 请求地址
* @param {Object} params 除去pageNo、pageSize外的其他接口需要的参数
* @param {Boolean} nextPage 是否是加载下一页(用于区分初始渲染、上拉加载、下拉刷新)
* @return status, pageNo, pageSize, listData
*/
export const getListMixin = {
data() {
return {
status: 'more',
/* 上拉加载状态 */
pageNo: 1,
/* 当前页码 ... | 7,648 |
https://github.com/zaxai/Ecarb/blob/master/Ecarb/ZDevicePort.cpp | Github Open Source | Open Source | MIT | 2,022 | Ecarb | zaxai | C++ | Code | 709 | 3,662 | #include "StdAfx.h"
#include "ZDevicePort.h"
ZDevicePort::ZDevicePort()
: m_nOnceBytesSend(10240)
, m_nOnceBytesRecv(10240)
, m_nTimeOutSend(3000)
, m_nTimeOutRecv(3000)
, m_bIsRunSend(false)
, m_bIsRunRecv(false)
, m_strPort(_T(""))
, m_p_promSendWait(nullptr)
, m_p_promRecvWait(nullptr)
{
}
ZDevicePort::... | 42,012 |
https://github.com/freebsd/freebsd-ports/blob/master/x11/nvidia-hybrid-graphics/Makefile | Github Open Source | Open Source | BSD-2-Clause | 2,023 | freebsd-ports | freebsd | Makefile | Code | 141 | 905 | PORTNAME= nvidia-hybrid-graphics
PORTVERSION= 0.6
CATEGORIES= x11
MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= theron.tarigo@gmail.com
COMMENT= NVIDIA secondary GPU configuration - Optimus Technology support
WWW= https://github.com/therontarigo/freebsd-gpu-headless
LICENSE= BSD2CLAUSE
RUN_DEPENDS= nvidia-xcon... | 48,725 |
https://github.com/quinten-bosch/JCV_Builder/blob/master/V2/target/V2-1.0-SNAPSHOT/header.jsp | Github Open Source | Open Source | MIT | 2,021 | JCV_Builder | quinten-bosch | null | Spoken | 77 | 421 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="Servlet?command=home">FossCvBuilder</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="... | 24,546 |
https://github.com/Abdesol/maui/blob/master/src/Core/src/HotReload/AppHostBuilderExtensions.cs | Github Open Source | Open Source | MIT | 2,021 | maui | Abdesol | C# | Code | 129 | 528 | #nullable enable
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using Microsoft.Maui.HotReload;
namespace Microsoft.Maui.Hosting
{
public static partial class AppHostBuilderExten... | 55,570 |
https://github.com/danschultequb/qub-java/blob/master/tests/qub/MutableSize2IntegerTests.java | Github Open Source | Open Source | MIT | null | qub-java | danschultequb | Java | Code | 610 | 2,173 | package qub;
public interface MutableSize2IntegerTests
{
public static void test(TestRunner runner)
{
runner.testGroup(MutableSize2Integer.class, () ->
{
runner.test("create()", (Test test) ->
{
final MutableSize2Integer size = MutableSize2Integer.create(... | 9,169 |
https://github.com/BacoNetworks/PetBlocks/blob/master/petblocks-sponge-plugin/src/main/java/com/github/shynixn/petblocks/sponge/logic/business/service/ParticleServiceImpl.kt | Github Open Source | Open Source | Apache-2.0 | 2,022 | PetBlocks | BacoNetworks | Kotlin | Code | 533 | 1,487 | package com.github.shynixn.petblocks.sponge.logic.business.service
import com.flowpowered.math.vector.Vector3d
import com.github.shynixn.petblocks.api.business.enumeration.ParticleType
import com.github.shynixn.petblocks.api.business.service.ConfigurationService
import com.github.shynixn.petblocks.api.business.service... | 15,942 |
https://github.com/quickey/quickey/blob/master/packages/ui/src/legend/components/QuickeyItem.tsx | Github Open Source | Open Source | MIT | 2,021 | quickey | quickey | TypeScript | Code | 51 | 174 | import { h } from "preact";
import { IAction } from "@quickey/core";
import QuickeyAction from "./QuickeyAction";
export interface IQuickeyItemProps {
key: any;
actions: IAction[];
title: string;
}
export default (props: IQuickeyItemProps) => (
<div className="quickey-item">
{props.title ? <h3... | 32,108 |
https://github.com/damwhit/harvest_helper/blob/master/app/controllers/api/v1/plants_controller.rb | Github Open Source | Open Source | MIT | 2,022 | harvest_helper | damwhit | Ruby | Code | 59 | 271 | module Api
module V1
class PlantsController < ApiController
def index
respond_with Plant.all
end
def find_by
respond_with Plant.find_by(plant_params)
end
def show
respond_with Plant.find(params[:id])
end
def create
respond_with Plant.cre... | 49,156 |
https://github.com/djkloop/v-charts/blob/master/examples/test/data.js | Github Open Source | Open Source | MIT | 2,019 | v-charts | djkloop | JavaScript | Code | 177 | 687 | export const LINE_DATA = {
columns: ['日期', '访问用户', '下单用户'],
rows: [
{ '日期': '1/1', '访问用户': 1393, '下单用户': 1093, '下单率': 0.32 },
{ '日期': '1/2', '访问用户': 3530, '下单用户': 3230, '下单率': 0.26 },
{ '日期': '1/3', '访问用户': 2923, '下单用户': 2623, '下单率': 0.76 },
{ '日期': '1/4', '访问用户': 1723, '下单用户': 1423, '下单率': 0.49 },
... | 14,931 |
https://github.com/MendyK/MKWeatherUndergroundKit/blob/master/MKWeatherUndergroundKit/MKWeatherParser.h | Github Open Source | Open Source | MIT | 2,017 | MKWeatherUndergroundKit | MendyK | Objective-C | Code | 49 | 161 | //
// MKWeatherParser.h
//
// Created by Mendy Krinsky on 2/18/15.
// Copyright (c) 2015 Mendy Krinsky. All rights reserved.
//
// Licensed under the MIT license.
#import <Foundation/Foundation.h>
#import "MKWeatherRequest.h"
@interface MKWeatherParser : NSObject
- (instancetype)initWithType: (MKWeatherRequestTy... | 13,254 |
https://github.com/stangadkar/TaskTracker/blob/master/src/flutter-app/TaskTracker/lib/service/service.user.dart | Github Open Source | Open Source | MIT | 2,020 | TaskTracker | stangadkar | Dart | Code | 327 | 1,248 | /*
* Copyright (c) 2020 by Botorabi. All rights reserved.
* https://github.com/botorabi/TaskTracker
*
* License: MIT License (MIT), read the LICENSE text in
* main directory for more details.
*/
import 'dart:convert';
import 'dart:io';
import 'package:TaskTracker/config.dart';
import 'package:TaskTrack... | 24,037 |
https://github.com/angelopassaro/Hacktoberfest-1/blob/master/misc/c/Binary_search.c | Github Open Source | Open Source | Apache-2.0 | 2,020 | Hacktoberfest-1 | angelopassaro | C | Code | 93 | 314 | #include<stdio.h>
int A[50];
int binary_search(int s, int f, int val);
int main(){
int n, val, x, i;
printf("enter the value of n: ");
scanf("%d", &n);
printf("enter the values in array: ");
for(i=0; i<n; i++){
scanf("%d", &A[i]);
}
printf("enter the value to be searched: ");
... | 42,519 |
https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Advanced-Methods-and-Deep-Learning/blob/master/data/section 1/GP/part8/msg11846.eml | Github Open Source | Open Source | MIT | 2,021 | Machine-Learning-for-OpenCV-Advanced-Methods-and-Deep-Learning | PacktPublishing | null | Spoken | 319 | 1,041 | From: "Giorgos Paliouras" <paliourg@iit.demokritos.gr>
Subject: Upgrade your OS to XP Pro for $50
Date: Mon, 21 Feb 2005 09:13:49 +0300
MIME-Version: 1.0
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
X-Priority: 1
X-MSMail-Priority: High
X-MimeOLE: Produced By Microsoft Mime... | 5,809 |
https://github.com/EditYJ/sinaFQ-admin/blob/master/src/views/account/loanRepay/repayManage/index.vue | Github Open Source | Open Source | MIT | 2,019 | sinaFQ-admin | EditYJ | Vue | Code | 389 | 2,096 | <template>
<div class="page">
<el-collapse v-model="activeNames">
<el-collapse-item name="1">
<template slot="title">
<el-col :span="4">筛选查询</el-col>
<el-col :span="6" :offset="17">
<div class="grid-content bg-purple">
<el-button type="primary" plain @cl... | 49,610 |
https://github.com/woncz/Adengine/blob/master/src/main/java/io/github/woncz/ads/engine/be/DNF.java | Github Open Source | Open Source | Apache-2.0 | null | Adengine | woncz | Java | Code | 75 | 292 | package io.github.woncz.ads.engine.be;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import io.github.woncz.ads.engine.be.notation.DNFNotation;
/**
* @author woncz
* @date 2019/5/5.
*/
public class DNF {
private List<Conjunction> conjunctions = new ArrayList<>();
public DNF... | 18,146 |
https://github.com/frademacher/thesis-lemma-code/blob/master/code generators/de.fhdo.lemma.model_processing.code_generation.java_base/src/main/kotlin/de/fhdo/lemma/model_processing/code_generation/java_base/modules/domain/handlers/data_operations/DataOperationParameterHandler.kt | Github Open Source | Open Source | MIT | 2,022 | thesis-lemma-code | frademacher | Kotlin | Code | 119 | 608 | package de.fhdo.lemma.model_processing.code_generation.java_base.modules.domain.handlers.data_operations
import com.github.javaparser.ast.body.CallableDeclaration
import com.github.javaparser.ast.body.Parameter
import de.fhdo.lemma.data.intermediate.IntermediateDataOperationParameter
import de.fhdo.lemma.model_process... | 35,777 |
https://github.com/AglayaInnovation/actualizacionN/blob/master/new-years-eve/gulpfile.js | Github Open Source | Open Source | MIT | 2,018 | actualizacionN | AglayaInnovation | JavaScript | Code | 72 | 385 | var gulp = require('gulp');
var rename = require('gulp-rename');
var stylus = require('gulp-stylus');
var imagemin = require('gulp-imagemin');
var plumber = require('gulp-plumber');
var browserSync = require('browser-sync').create();
gulp.task('styles', function(){
return gulp.src('./assets/styles/main.styl')
.pip... | 38,490 |
https://github.com/YegorKozlov/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/throttling/RequestThrottler.java | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | acs-aem-commons | YegorKozlov | Java | Code | 1,026 | 2,381 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2013 - 2018 Adobe
* %%
* 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
*
... | 55,323 |
https://github.com/pherval/community-client/blob/master/src/lib/apply-classes.ts | Github Open Source | Open Source | MIT | 2,021 | community-client | pherval | TypeScript | Code | 17 | 46 | export default function applyClasses(
baseClass = "",
...appliables: string[]
): string {
return baseClass.split(" ").concat(appliables).join(" ");
}
| 51,350 |
https://github.com/RobinSchmidt/RS-MET-Preliminary/blob/master/Libraries/RobsJuceModules/rapt/Unfinished/Analysis/CyclicAutoCorrelator.cpp | Github Open Source | Open Source | FTL | 2,022 | RS-MET-Preliminary | RobinSchmidt | C++ | Code | 106 | 350 | // Construction/Destruction:
template<class T>
rsCyclicAutoCorrelator<T>::rsCyclicAutoCorrelator(int newMaxBufferSize)
{
if( newMaxBufferSize >= 256 )
maxBufferSize = newMaxBufferSize;
else
{
maxBufferSize = 256;
RS_DEBUG_BREAK; // we need some minimum buffer-size (the value is somewhat arbitrary... | 37,619 |
https://github.com/gusmourax/tdd-app-1/blob/master/src/presentation/controllers/SumController.ts | Github Open Source | Open Source | MIT | null | tdd-app-1 | gusmourax | TypeScript | Code | 64 | 166 | import { HttpRequest } from "../helpers/HttpRequest";
import { HttpResponse } from "../helpers/HttpResponse";
export class SumController {
constructor(private readonly sumUseCase: any) { }
async handle(httpRequest: HttpRequest): Promise<HttpResponse> {
const { value1, value2 } = httpRequest.body;
... | 41,807 |
https://github.com/Mu-L/kotlin/blob/master/compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmModuleAccessibilityChecker.kt | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | kotlin | Mu-L | Kotlin | Code | 457 | 1,743 | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* 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 agre... | 33,553 |
https://github.com/ml444/yz-core/blob/master/yzcore/extensions/oss/aliyun.py | Github Open Source | Open Source | MIT | 2,021 | yz-core | ml444 | Python | Code | 1,026 | 5,268 | #!/usr/bin/python3.6.8+
# -*- coding:utf-8 -*-
"""
@auth: cml
@date: 2020-10-20
@desc: 对阿里云oss的封装,依赖oss2
配置文件:
[oss_manager]
access_key_id = XXXXX
access_key_secret = XXXXX
endpoint = oss-cn-shenzhen.aliyuncs.com
# internal_endpoint = oss-cn-shenzhen-internal.aliyuncs.com
bucket_name = bucket_n... | 15,008 |
https://github.com/xwipeoutx/hololens-starter/blob/master/XR-Starter/Assets/_game/Scene/Main.unity | Github Open Source | Open Source | MIT | 2,019 | hololens-starter | xwipeoutx | Unity3D Asset | Code | 3,579 | 16,358 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!... | 36,070 |
https://github.com/drdplusinfo/codes/blob/master/tests/Codes/SearchingItemTypeCodeTest.php | Github Open Source | Open Source | MIT | 2,021 | codes | drdplusinfo | PHP | Code | 10 | 40 | <?php declare(strict_types=1);
namespace DrdPlus\Tests\Codes;
class SearchingItemTypeCodeTest extends AbstractCodeTest
{
} | 26,074 |
https://github.com/ankitraminwar/TaskManagerApp/blob/master/src/app.module.ts | Github Open Source | Open Source | MIT | null | TaskManagerApp | ankitraminwar | TypeScript | Code | 50 | 137 | import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TypeORMConfiguration } from './config/typeorm.config';
import { TaskModule } from './task/task.module';
import { UserModule } from './user/user.module';
@Module({
imports: [
TaskModule,
UserModule,
//adding... | 48,070 |
https://github.com/febfeb/febriantoarif.com/blob/master/src/store/reducers.js | Github Open Source | Open Source | MIT | null | febriantoarif.com | febfeb | JavaScript | Code | 94 | 239 | import * as types from "./constants"
const initialState = {
user: null,
bottomBar: 'Root',
debug: true,
ribbon: null
};
export function apiReducer(state = initialState, action) {
return state
}
export function loginReducer(state = initialState, action) {
if (state == null) state = initialStat... | 49,481 |
https://github.com/nikoayerswolfpack/SpacePartition/blob/master/src/engine/Plane.java | Github Open Source | Open Source | MIT | null | SpacePartition | nikoayerswolfpack | Java | Code | 307 | 1,088 | package engine;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Leo
*/
public class Plane implements Serializable {
public Vec3 normal;
public Vec3 point;
public Plane(Vec3 normal, Vec3 point) {
this.normal = normal;
this.point = point;... | 25,743 |
https://github.com/rimariani12/bismillah/blob/master/application/models/Model_galeri.php | Github Open Source | Open Source | MIT | null | bismillah | rimariani12 | PHP | Code | 171 | 690 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class Model_galeri extends CI_Model
{
private $_table = "galeri";
public $nama_galeri;
public $gambar = "default.jpg";
public $status;
public function getAll(){
$query = "SELECT * FROM $this->_table";
return... | 33,540 |
https://github.com/ahayworth/puppet-home/blob/master/modules/pacman/files/yay-wrapper | Github Open Source | Open Source | MIT | 2,019 | puppet-home | ahayworth | Shell | Code | 9 | 33 | #!/bin/bash
sudo -u andrew -H /bin/bash -c "/usr/bin/yay $*"
| 29,375 |
https://github.com/oceanpad/IonicApp/blob/master/src/pages/message/message.ts | Github Open Source | Open Source | MIT | 2,016 | IonicApp | oceanpad | TypeScript | Code | 228 | 632 | import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-message',
templateUrl: 'message.html',
})
export class MessagePage {
items = [];
constructor(public nav: NavController) {
this.items = [
{
'title': 'Angular',
... | 53,806 |
https://github.com/717297azbcgh/zhihu_stats/blob/master/static/js/script.js | Github Open Source | Open Source | MIT | 2,017 | zhihu_stats | 717297azbcgh | JavaScript | Code | 478 | 1,826 | /**
* Created by Tang Songkai on 1/6/17.
*/
function changeValue(obj) {
document.getElementById('pagelimit-value').innerHTML = '返回' + String(obj.value) + '条数据';
}
function askForResult() {
var content = document.getElementById('content').value;
var para = {querys: [], page: 0};
if (document.getEl... | 42,089 |
https://github.com/ello/kinesis-stream-reader/blob/master/spec/stream_reader/avro_parser_spec.rb | Github Open Source | Open Source | MIT | 2,017 | kinesis-stream-reader | ello | Ruby | Code | 60 | 305 | require 'spec_helper'
require_relative '../../lib/stream_reader/avro_parser'
describe AvroParser do
let(:data) { File.read(File.join(File.dirname(__FILE__), '..', 'support', 'user_was_created.avro')) }
let(:seq_number) { 'asdf123' }
let(:shard_id) { '1' }
let(:parser) { described_class.new(data, seq_number, sh... | 37,107 |
https://github.com/Peter-Korobeynikov/Master/blob/master/design/backend/css/tygh/modals/modals.less | Github Open Source | Open Source | MIT | 2,020 | Master | Peter-Korobeynikov | Less | Code | 28 | 83 | // Modal dialog styles
.modal {
width: auto;
.modal-body {
max-height: none;
}
.modal-footer-empty {
padding: 0px;
}
.modal-buttons {
position: absolute;
padding: 14px 15px 15px;
}
} | 16,778 |
https://github.com/kubode/RxProperty/blob/master/rxproperty-kotlin/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,016 | RxProperty | kubode | Gradle | Code | 34 | 148 | description 'RxProperty kotlin module.'
apply plugin: 'kotlin'
apply plugin: 'jacoco'
sourceSets.all {
java.srcDirs += "src/${name}/kotlin"
}
dependencies {
testCompile dependencyNotations.jUnit
testCompile dependencyNotations.kotlinTest
compile dependencyNotations.kotlin
compile project(':rxprop... | 38,747 |
https://github.com/drake-newell/void-packages/blob/master/srcpkgs/geary/patches/libucontext.patch | Github Open Source | Open Source | BSD-2-Clause | 2,021 | void-packages | drake-newell | null | Spoken | 49 | 175 | For whatever reason they don't use pkg-config for this.
We will substitute this as needed from the template.
--- meson.build
+++ meson.build
@@ -138,7 +138,8 @@ if libunwind_dep.found()
dependencies: [
valac.find_library('libunwind', dirs: [vapi_dir, unwind_lib]),
cc.find_library('libunwind', dir... | 18,263 |
https://github.com/jelledruyts/IdentitySamples/blob/master/TodoListWebSpa/scripts/todoListSvc.js | Github Open Source | Open Source | MIT | 2,022 | IdentitySamples | jelledruyts | JavaScript | Code | 33 | 125 | 'use strict';
angular.module('todoApp')
.factory('todoListSvc', ['$http', 'config', function ($http, config) {
return {
getItems: function () {
return $http.get(config.TodoListWebApiRootUrl + 'api/todolist');
},
postItem: function (item) {
return $http.post(config.To... | 11,850 |
https://github.com/kennethsequeira/Rin/blob/master/Bot/Cogs/chat.py | Github Open Source | Open Source | CC0-1.0, Apache-2.0 | 2,021 | Rin | kennethsequeira | Python | Code | 203 | 551 | import json
import discord
from discord.ext import commands
class Chat(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(
name="chathelp",
help="The chat is automatically generated based on prewritten responses. Responses that are not documented will be ignored... | 30,346 |
https://github.com/GuillaumeAI/tf/blob/master/jgwill-ai-tf2-cuda/pytorch/us/test-prep.sh | Github Open Source | Open Source | MIT | null | tf | GuillaumeAI | Shell | Code | 7 | 31 | #!/bin/bash
source _env.sh
git clone $repo_url_context $repo_dir_context
| 8,503 |
https://github.com/cognitive-space/warpzone/blob/master/worlds/migrations/0006_job_status.py | Github Open Source | Open Source | MIT | 2,022 | warpzone | cognitive-space | Python | Code | 39 | 148 | # Generated by Django 3.2.6 on 2021-08-04 17:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('worlds', '0005_job'),
]
operations = [
migrations.AddField(
model_name='job',
name='status',
field=model... | 27,823 |
https://github.com/Verumex/clamav-microservice/blob/master/spec/api_spec.rb | Github Open Source | Open Source | MIT | 2,022 | clamav-microservice | Verumex | Ruby | Code | 176 | 668 | # frozen_string_literal: true
describe 'API', type: :request do
let(:app) { Application.new }
before { Clamby.configure(daemonize: false) }
describe 'GET /' do
it 'returns 200 ok' do
get '/'
expect(last_response.status).to eq(200)
end
end
describe 'POST /scan' do
it 'returns 401 un... | 1,247 |
https://github.com/tonejk/openweather_react/blob/master/src/components/WeatherChart.jsx | Github Open Source | Open Source | MIT | 2,022 | openweather_react | tonejk | null | Spoken | 109 | 365 | import React, { useState, useEffect } from "react";
import Button from "react-bootstrap/Button";
import "../css/Style.css";
const WeatherChart = ({ city, country, tempC, tempF, description, error }) => {
const [temp, setTemp] = useState();
const [unit, setUnit] = useState();
useEffect(() => {
... | 19,511 |
https://github.com/kortechs/python-kong-client/blob/master/scripts/tests.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | python-kong-client | kortechs | Shell | Code | 16 | 52 | #!/usr/bin/env bash
set -e
DIR=$(dirname "$0")
cd ${DIR}/..
echo "Running py.test"
py.test
echo "py.test OK :)"
| 17,068 |
https://github.com/pinclub/pinclub/blob/master/test/controllers/node.test.js | Github Open Source | Open Source | MIT | 2,018 | pinclub | pinclub | JavaScript | Code | 362 | 1,269 | var app = require('../../app');
var request = require('supertest')(app);
var support = require('../support/support');
describe('test/controllers/node.test.js', function () {
var mockNode, mockNodeUnChanged;
before(function (done) {
support.createNode(support.adminUser.id, null, function (err, node) {... | 22,215 |
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/p/protobufjs__fetch/src/main/scala/typingsSlinky/protobufjsFetch/mod.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | ScalablyTyped | Scala | Code | 337 | 996 | package typingsSlinky.protobufjsFetch
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object mod {
/**
* Fetches the contents of a file.
* @memberof util
* @pa... | 46,547 |
https://github.com/ventrian/FeedbackCenter/blob/master/RSS.xsl | Github Open Source | Open Source | MIT | 2,021 | FeedbackCenter | ventrian | null | Spoken | 456 | 1,694 | <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" version="1.0">
<xsl:output method="xml" />
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title><xsl:value-of select... | 37,366 |
https://github.com/CodyMWilson/NovaJS/blob/master/nova_parse/test/resource_parsers/OutfResource_test.ts | Github Open Source | Open Source | MIT | null | NovaJS | CodyMWilson | TypeScript | Code | 289 | 1,283 | import "jasmine";
import { readResourceFork, ResourceMap } from "resourceforkjs";
import { OutfResource } from "../../src/resource_parsers/OutfResource";
import { NovaResources } from "../../src/resource_parsers/ResourceHolderBase";
import { defaultIDSpace } from "./DefaultIDSpace";
// Bazel no longer patches require.... | 4,287 |
https://github.com/peakhunt/chinese-diesel-heater-esp32/blob/master/main/heater/app_config.h | Github Open Source | Open Source | MIT | null | chinese-diesel-heater-esp32 | peakhunt | C | Code | 16 | 65 | #ifndef __APP_CONFIG_DEF_H__
#define __APP_CONFIG_DEF_H__
#define APP_CONFIG_TARGET_TICK_RATE 1 // 1 tick per 1ms
#endif /* !__APP_CONFIG_DEF_H__ */
| 39,544 |
https://github.com/rigonlucas/ControleHoraMaquinaPref/blob/master/src/sistema_agricultura/var_parametro.java | Github Open Source | Open Source | MIT | null | ControleHoraMaquinaPref | rigonlucas | Java | Code | 22 | 62 |
package sistema_agricultura;
public class var_parametro {
public String DB_ano = "semag";
//public String DB_ano = "exerc_2013-2";
public String senha_DB = "AGRICULTURA";
} | 7,063 |
https://github.com/kleberfsobrinho/python/blob/master/Desafio101 - Funções para Votação.py | Github Open Source | Open Source | MIT | 2,021 | python | kleberfsobrinho | Python | Code | 98 | 239 | def voto(ano=0):
"""
-> Função que recebe o ano de nascimento do usuário e retona sua situação de voto.
:param ano: ano de nascimento.
:return: 'VOTO NEGADO' para idade < 18/ 'VOTO OPCIONAL' para idade > 65/ 'VOTO OBRIGATÓRIO' para o intervalo.
"""
from datetime import datetime
idade = datet... | 34,742 |
https://github.com/masajiro/NGT/blob/master/python/setup.py | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,020 | NGT | masajiro | Python | Code | 254 | 1,099 | #!/usr/bin/env python
import os
import sys
import json
import shutil
import glob
import setuptools
static_library_option = '--static-library'
included_library_option = '--included-library'
version_file = 'VERSION'
static_library = False
if static_library_option in sys.argv:
print('use the NGT static library')
... | 39,620 |
https://github.com/ihiroky/niotty/blob/master/src/test/java/net/ihiroky/niotty/buffer/CodecBufferListTest.java | Github Open Source | Open Source | MIT | null | niotty | ihiroky | Java | Code | 2,977 | 11,380 | package net.ihiroky.niotty.buffer;
import net.ihiroky.niotty.util.Charsets;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.runners.Enclosed;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
i... | 17,208 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.