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/larryprice/simple-tech-review/blob/master/zero-sum-sub-array.js | Github Open Source | Open Source | MIT | null | simple-tech-review | larryprice | JavaScript | Code | 89 | 242 | var subarrays = function(arr) {
for (var i = 0; i < arr.length-1; ++i) {
var sum = arr[i], sub = [arr[i]];
if (sum === 0) {
console.log(sub);
}
for (var j = i+1; j < arr.length; ++j) {
sum += arr[j];
sub.push(arr[j])
if (sum === 0) {
console.log(sub);
}
}
}
... | 10,954 |
https://github.com/ContentsViewer/nodec/blob/master/modules/imwindows/include/imwindows/scene_hierarchy_window.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | nodec | ContentsViewer | C++ | Code | 271 | 954 | #ifndef IMWINDOWS__SCENE_HIERARCHY_WINDOW_HPP_
#define IMWINDOWS__SCENE_HIERARCHY_WINDOW_HPP_
#include <imelements/window.hpp>
#include <scene_set/scene.hpp>
#include <imgui.h>
namespace imwindows {
class SceneHierarchyWindow : public imelements::BaseWindow {
using Scene = scene_set::Scene;
using SceneEntit... | 44,867 |
https://github.com/rfherrerac/Capr/blob/master/man/Query-class.Rd | Github Open Source | Open Source | Apache-2.0 | 2,021 | Capr | rfherrerac | R | Code | 77 | 170 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/LowLevelClasses.R
\docType{class}
\name{Query-class}
\alias{Query-class}
\title{An S4 class for a Query}
\description{
A query is a medical concept that can be extracted from a database through a where statement.
This would include concepts
... | 15,387 |
https://github.com/bmeijwaard/mtg-sdk-dotnet/blob/master/src/MtgApiManager.Lib/Core/MtgApiServiceAdapter.cs | Github Open Source | Open Source | MIT | null | mtg-sdk-dotnet | bmeijwaard | C# | Code | 184 | 673 | using System;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
using MtgApiManager.Lib.Core.Exceptions;
using MtgApiManager.Lib.Dto;
namespace MtgApiManager.Lib.Core
{
/// <summary>
/// Used to make web service calls, and can easily be mocked for testing.
/// </summary>
int... | 42,396 |
https://github.com/chenglh/www.chenglh.com/blob/master/vendor/swoft/swoole-ide-helper/output/namespace/Server/Task.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | www.chenglh.com | chenglh | PHP | Code | 51 | 129 | <?php
namespace Swoole\Server;
/**
* @since 4.4.16
*/
class Task
{
// property of the class Task
public $data;
public $id;
public $worker_id;
public $flags;
/**
* @param mixed $data
* @return mixed
*/
public function finish($data){}
/**
* @param mixed $data
... | 51,638 |
https://github.com/shenbin123abcd/shenbin/blob/master/works/沈斌 lesson9.1/public/javascripts/handle.js | Github Open Source | Open Source | MIT, Apache-2.0 | 2,016 | shenbin | shenbin123abcd | JavaScript | Code | 104 | 948 | /*
ajax加载新闻内容
*/
function loadNews(newstype){
$.ajax({
url:"/select",
type:"post",
dataType:'json',
data:{"newstype":newstype},
success:function(data){
$(".newsmain").empty();
var html="";
$.each(data,function(index,element){
html+="<div class='newlist'>"+
"<div class='newsbox'>"+
... | 27,929 |
https://github.com/Homebrew/homebrew-core/blob/master/Formula/n/nave.rb | Github Open Source | Open Source | BSD-2-Clause | 2,023 | homebrew-core | Homebrew | Ruby | Code | 74 | 660 | class Nave < Formula
desc "Virtual environments for Node.js"
homepage "https://github.com/isaacs/nave"
url "https://github.com/isaacs/nave/archive/v3.5.1.tar.gz"
sha256 "a3d84ce87980fd8d1d98876bfc82b1c85eb22f6fab4ef971a81a1e36028da76a"
license "ISC"
head "https://github.com/isaacs/nave.git", branch: "master... | 43,526 |
https://github.com/kjkwer/tp/blob/master/application/home/controller/Auth.php | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | tp | kjkwer | PHP | Code | 115 | 599 | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/11/30
* Time: 14:28
*/
namespace app\home\controller;
use think\Controller;
use think\Cookie;
use think\Db;
use think\Request;
class Auth extends Home
{
public function auth($verify=''){
//>>判断用户是否登录
if (!is_login()){
... | 11,906 |
https://github.com/lorello/seldon-core/blob/master/api-frontend/src/main/java/io/seldon/apife/grpc/HeaderServerInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | seldon-core | lorello | Java | Code | 251 | 797 | /*******************************************************************************
* Copyright 2017 Seldon Technologies Ltd (http://www.seldon.io/)
*
* 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 Lic... | 11,281 |
https://github.com/rabix/cottontail/blob/master/client/src/editors/app/scripts/integration/integration.config.js | Github Open Source | Open Source | Apache-2.0 | 2,017 | cottontail | rabix | JavaScript | Code | 12 | 31 | /**
* Created by Maya on 6.4.15.
*/
'use strict';
angular.module('integration', []); | 52,801 |
https://github.com/joerg84/kube-arangodb/blob/master/deps/github.com/arangodb/go-velocypack/test/decoder_primitive_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | kube-arangodb | joerg84 | Go | Code | 827 | 2,967 | //
// DISCLAIMER
//
// Copyright 2017 ArangoDB GmbH, Cologne, Germany
//
// 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 require... | 7,808 |
https://github.com/valgur/OCP/blob/master/opencascade/ChFiDS_StripeMap.hxx | Github Open Source | Open Source | Apache-2.0 | 2,022 | OCP | valgur | C++ | Code | 219 | 677 | // Created on: 1993-11-10
// Created by: Laurent BOURESCHE
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the ... | 20,268 |
https://github.com/fossabot/sjcloud-data-transfer-app/blob/master/app/src/backend/types.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | sjcloud-data-transfer-app | fossabot | TypeScript | Code | 386 | 713 | /**
* Callback used when we are reporting the result of some
* task that cannot error.
*
* - result: any = result of the task.
*/
export type ResultCallback = (result: any) => void;
/**
* Callback used when we are reporting only an error.
*
* - error: any = null or an error if one occurred.
*/
export ty... | 26,685 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/Espresso/ETDataSourceFromFolderData.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 111 | 466 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "ETDataSource.h"
@class NSArray, NSMutableArray, NSMutableDictionary, NSString;
@interface ETDataSourceFromFolderData : NSObject <ETDataSource>
{
... | 41,703 |
https://github.com/IsFairy/optolith-client/blob/master/src/App/Views/Attributes/Attribute.scss | Github Open Source | Open Source | Apache-2.0, CC0-1.0 | 2,022 | optolith-client | IsFairy | SCSS | Code | 355 | 1,423 | #attribute {
.scroll-inner {
display: flex;
flex-direction: column;
align-items: center;
}
.counter {
margin-top: 10px;
text-align: center;
}
.main, .calculated, .permanent {
display: flex;
.number-box {
top: 70px;
right: -6px;
width: 24px;
z-index: 2;
+ .btn-round {
margin-top... | 13,131 |
https://github.com/TymanWasTaken/malil-akairo/blob/master/src/Commands/Fun/ClapCommand.ts | Github Open Source | Open Source | MIT | null | malil-akairo | TymanWasTaken | TypeScript | Code | 98 | 345 | import { Command } from "discord-akairo";
import type { Message, GuildMember, ImageSize, AllowedImageFormat } from "discord.js";
import { MessageEmbed } from "discord.js";
import { fixword } from "../../lib/Utils";
export default class ClapCommand extends Command {
public constructor() {
super("clap", {
aliases: ... | 28,464 |
https://github.com/lschuetze/dblp.yaml/blob/master/journals/fthci.bib | Github Open Source | Open Source | ODC-By-1.0 | 2,016 | dblp.yaml | lschuetze | null | Spoken | 1,304 | 3,333 | @article{journals/fthci/FailsGD13,
title = {Methods and Techniques for Involving Children in the Design of New Technology for Children},
pages = {85-166},
year = {2013},
volume = {6},
journal = {Foundations and Trends in Human-Computer Interaction},
number = {2},
doi = {10.1561/1100000018},
author = {Je... | 25,563 |
https://github.com/AnnisaFH/Ebooked/blob/master/application/models/M_data.php | Github Open Source | Open Source | MIT | null | Ebooked | AnnisaFH | PHP | Code | 118 | 577 | <?php
class M_data extends CI_model{
public function GetLearning($tabel,$where=""){
$data=$this->db->query('select * from '.$tabel.' '.$where);
return $data->result_array();
}
public function tampildata(){
$data = $this->db->get('materi');
}
public function editdata($tabelName,$where){
$res = $this->db-... | 37,026 |
https://github.com/amc8391/mage/blob/master/Mage.Tests/src/test/java/org/mage/test/AI/basic/TargetAmountAITest.java | Github Open Source | Open Source | MIT | 2,022 | mage | amc8391 | Java | Code | 207 | 677 | package org.mage.test.AI.basic;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBaseWithAIHelps;
/**
* @author JayDi85
*/
public class TargetAmountAITest extends CardTestPlayerBaseWithAIHelps {
@Test
public void test_AI_... | 4,630 |
https://github.com/lizzy723/Spark-in-action-study/blob/master/ch06/java/src/main/java/org/sia/KafkaProducerWrapper.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | Spark-in-action-study | lizzy723 | Java | Code | 72 | 255 | package org.sia;
import kafka.javaapi.producer.Producer;
import java.util.Properties;
import kafka.producer.KeyedMessage;
import kafka.producer.ProducerConfig;
public class KafkaProducerWrapper
{
public static String brokerList = "";
private static KafkaProducerWrapper instance;
Properties producerProps = new... | 19,378 |
https://github.com/JohnShandy/swganh/blob/master/data/sql/galaxy/scripts/creatures_xp.sql | Github Open Source | Open Source | MIT | 2,015 | swganh | JohnShandy | SQL | Code | 107 | 454 |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE TABLE IF NOT EXISTS `creatures_xp` (
`creature_id` bigi... | 19,985 |
https://github.com/fadhly430/jawaban_hackerrank/blob/master/Data Structures/Linked Lists/Get Node Value/Solution.java | Github Open Source | Open Source | MIT | 2,021 | jawaban_hackerrank | fadhly430 | Java | Code | 111 | 246 | // Author: Rodney Shaghoulian
// Github: github.com/RodneyShag
/*
Get Nth element from the end in a linked list of integers
Number of elements in the list will always be greater than N.
Node is defined as
class Node {
int data;
Node next;
}
*/
// Time Complexity: O(n)
// Space Complexity: O(1)
i... | 36,876 |
https://github.com/qcamei/xinxintong/blob/master/views/default/pl/fe/matter/lottery/award.js | Github Open Source | Open Source | MIT | 2,019 | xinxintong | qcamei | JavaScript | Code | 258 | 1,116 | (function() {
ngApp.provider.controller('ctrlAward', ['$scope', '$uibModal', 'http2', function($scope, $uibModal, http2) {
$scope.addAward = function() {
http2.get('/rest/pl/fe/matter/lottery/award/add?site=' + $scope.siteId + '&app=' + $scope.id).then(function(rsp) {
$scope.app... | 52,651 |
https://github.com/jwfh/dotfiles/blob/master/.local/share/fish/generated_completions/gst-play-1.fish | Github Open Source | Open Source | Apache-2.0 | null | dotfiles | jwfh | Fish | Code | 116 | 258 | # gst-play-1
# Autogenerated from man page /usr/share/man/man1/gst-play-1.0.1.gz
# using Type1
complete -c gst-play-1 -l help --description 'Print help synopsis and available command line options.'
complete -c gst-play-1 -l version --description 'Print version and exit.'
complete -c gst-play-1 -l audiosink --descriptio... | 18,152 |
https://github.com/omarmuhamed/Data-Structures-in-C/blob/master/Infix to Prefix Conversion using Stack/main.c | Github Open Source | Open Source | MIT | 2,021 | Data-Structures-in-C | omarmuhamed | C | Code | 319 | 908 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct stack {
int top;
unsigned max;
int *data;
} Stack;
int isEmpty(Stack *stack) {
if (stack->top == -1) {
return 1;
}
return 0;
}
void push(Stack *stack, char data) {
stack->data[++stack->top] = (int)data;
}
c... | 17,490 |
https://github.com/embekirova/LeadersCorner/blob/master/CreateAuthorViewModel.cs | Github Open Source | Open Source | MIT | null | LeadersCorner | embekirova | C# | Code | 10 | 29 | using System;
class CreateAuthorViewModel
{
public CreateAuthorViewModel()
{
}
}
| 2,726 |
https://github.com/thexharbinger/angel_nest_test/blob/master/spec/helpers/users_helper_spec.rb | Github Open Source | Open Source | MIT | 2,021 | angel_nest_test | thexharbinger | Ruby | Code | 252 | 703 | require 'spec_helper'
describe UsersHelper do
context "geo location detectors" do
let(:user) { User.make! }
let(:geo_location_hash) do
{
:city => 'Mountain View',
:region => 'CA',
:country_code => 'US',
:country => 'United States',
:longitude ... | 10,323 |
https://github.com/skysaid/MyLeetCodeHot100/blob/master/LeetCodeHot100/src/test1/Algorithm394.java | Github Open Source | Open Source | Apache-2.0 | null | MyLeetCodeHot100 | skysaid | Java | Code | 148 | 697 | package test1;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class Algorithm394 {
public String decodeString1(String s) {
if (s.length()==0||s.equals(""))return null;
int multi=0;
StringBuilder res=new StringBuilder();
Stack<Integer> stack_mult... | 9,001 |
https://github.com/dev-dmadan/DuanyamAPI/blob/master/app/Http/Controllers/SyncUserController.php | Github Open Source | Open Source | MIT | null | DuanyamAPI | dev-dmadan | PHP | Code | 103 | 332 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class SyncUserController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
/... | 17,428 |
https://github.com/sinch/MassTransit/blob/master/src/MassTransit/InMemoryTransport/InMemoryTransport/Fabric/InMemoryQueue.cs | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | null | MassTransit | sinch | C# | Code | 226 | 868 | namespace MassTransit.InMemoryTransport.Fabric
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Internals;
using Util;
public class InMemoryQueue :
IInMemoryQueue
{
readonly TaskCompletionSource<IInMemoryQueueConsumer> _consumer;
readonly... | 24,279 |
https://github.com/Sgeo/neohabitat/blob/master/pushserver/public/javascripts/index.js | Github Open Source | Open Source | MIT | null | neohabitat | Sgeo | JavaScript | Code | 77 | 371 | function refreshAvatars() {
$.get('/api/v1/worldview/avatars', function(data) {
var typeaheadSource = data.avatars.map(function(avatarObj) {
return avatarObj.avatar;
});
var $avatarNameInput = $('#avatar_name');
console.log(typeaheadSource);
$avatarNameInput.typeahead({
source: typeahe... | 32,550 |
https://github.com/threefoldtech/Threefold-Circles-front/blob/master/app/partials/auth/threebot-login-btn.jade | Github Open Source | Open Source | Apache-2.0 | null | Threefold-Circles-front | threefoldtech | null | Spoken | 18 | 112 | a.button-green.submit-button(href!='<%- url %>' title='{{"AUTH.THREEBOT" | translate}}' translate="AUTH.THREEBOT")
p.login-text
span(translate="AUTH.NOT_REGISTERED_YET")
|
a(href!='<%- url %>' title='{{"AUTH.REGISTER" | translate}}' translate="AUTH.CREATE_ACCOUNT") | 31,895 |
https://github.com/kgalema/ReportMe/blob/master/routes/newRed.js | Github Open Source | Open Source | MIT | null | ReportMe | kgalema | JavaScript | Code | 516 | 1,640 | const express = require("express")
const router = express.Router()
const Section = require("../models/section")
const NewRedPanel = require("../models/newRed")
const { isLoggedIn, isNewRedAuthor, isSectionSelected } = require("../middleware")
const ExpressError = require("../utils/ExpressError")
const nodemailer = requ... | 15,583 |
https://github.com/ttstringiot/golangiot/blob/master/stgbroker/broker_controller.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | golangiot | ttstringiot | Go | Code | 1,109 | 5,859 | package stgbroker
import (
"bytes"
"fmt"
"github.com/ttstringiot/golangiot/stgbroker/client"
"github.com/ttstringiot/golangiot/stgbroker/client/rebalance"
"github.com/ttstringiot/golangiot/stgbroker/mqtrace"
"github.com/ttstringiot/golangiot/stgbroker/out"
"github.com/ttstringiot/golangiot/stgbroker/stats"
"gi... | 16,349 |
https://github.com/samisaf/Learning-Data-Science/blob/master/Statistical-Rethinking/Untitled.ipynb | Github Open Source | Open Source | MIT | 2,020 | Learning-Data-Science | samisaf | Jupyter Notebook | Code | 107 | 419 | {
"cells": [
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a = Int16(1)"
]
},
{
... | 14,793 |
https://github.com/austincunningham/integreatly-operator/blob/master/scripts/bundle-rhmi-operators.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | integreatly-operator | austincunningham | Shell | Code | 426 | 1,431 | #!/usr/bin/env bash
if [[ -z "$OLM_TYPE" ]]; then
OLM_TYPE="integreatly-operator"
fi
case $OLM_TYPE in
"integreatly-operator")
LATEST_VERSION=$(grep $OLM_TYPE packagemanifests/$OLM_TYPE/$OLM_TYPE.package.yaml | awk -F v '{print $2}')
;;
"managed-api-service")
LATEST_VERSION=$(grep $OLM_TYPE packagem... | 37,650 |
https://github.com/pdames/deltacat/blob/master/deltacat/utils/ray_utils/concurrency.py | Github Open Source | Open Source | Apache-2.0 | null | deltacat | pdames | Python | Code | 206 | 464 | from typing import Any, Collection, Callable, Dict, List
import ray
from ray.types import ObjectRef
def invoke_parallel(
items: Collection,
ray_task: Callable,
*args,
max_parallelism: int = 1000,
options_provider: Callable[[int, Any], Dict[str, Any]] = None,
**kwargs) ... | 46,204 |
https://github.com/phillserrazina/ClawsAndPaws/blob/master/ClawsAndPawsProject/Assets/Prefabs/Characters/Costum/Goku.prefab | Github Open Source | Open Source | MIT | 2,019 | ClawsAndPaws | phillserrazina | Unity3D Asset | Code | 13,146 | 60,360 | %YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1324610195347336595
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8128039890661234598}
- component: {fileID: 445... | 29,782 |
https://github.com/AlexanderChristian/private_courses/blob/master/ubb/oop/lab08-09/MasterCpp/include/watchlist.h | Github Open Source | Open Source | MIT | null | private_courses | AlexanderChristian | C | Code | 24 | 75 | #ifndef WATCHLIST_H
#define WATCHLIST_H
#include <repository.h>
class WatchList : public Repository
{
public:
/** Default constructor */
WatchList();
protected:
private:
};
#endif // WATCHLIST_H
| 12,020 |
https://github.com/jmserrano-dev/plainteam/blob/master/src/BASE.Core/Amadeus/Requests/HotelsRequest.cs | Github Open Source | Open Source | MIT | 2,019 | plainteam | jmserrano-dev | C# | Code | 16 | 44 | namespace BASE.Core.Amadeus.Requests
{
public class HotelsRequest
{
public string cityCode { get; set; }
}
}
| 49,544 |
https://github.com/lnguyen99/research/blob/master/client/src/App.js | Github Open Source | Open Source | MIT | null | research | lnguyen99 | JavaScript | Code | 94 | 317 | import React from 'react';
import { BrowserRouter as Router, Route, Switch} from "react-router-dom";
import "bootstrap/dist/css/bootstrap.min.css";
import About from "./components/about.component.js";
import ContactUs from "./components/contact-us.component";
import Dashboard from './components/dashboard.component'
... | 23,559 |
https://github.com/INSIGNEO/pFIRE/blob/master/src/mask.hpp | Github Open Source | Open Source | Apache-2.0 | 2,021 | pFIRE | INSIGNEO | C++ | Code | 128 | 265 | //
// Copyright 2019 University of Sheffield
//
// 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 appl... | 8,126 |
https://github.com/jakelever/corona-ml/blob/master/annotation/theWholePotato.py | Github Open Source | Open Source | MIT | 2,021 | corona-ml | jakelever | Python | Code | 1,377 | 6,284 | import sys
sys.path.append("../pipeline")
from utils import associated_annotations_with_documents
import ray
import mysql.connector
import json
import argparse
import pickle
import numpy as np
import os
import sys
import random
import time
from collections import Counter
from utils import DocumentVectorizer
from sk... | 13,817 |
https://github.com/CalvinML/HQChart/blob/master/webhqchart.demo/h5demo/js/selectDetail.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | HQChart | CalvinML | JavaScript | Code | 2,212 | 9,867 | //全局的环境变量
var JSEnvironment = {
Symbol: '600000.sh', //股票代码
//Symbol:'000001.sz', //股票代码
KLineIndex: [ //K线指标
{ Name: 'KDJ', Index: 'KDJ' },
{ Name: 'MACD', Index: 'MACD' },
{ Name: 'RSI', Index: 'RSI' },
{ Name: '股东', Index: '股东人数' },
{ Name: 'VOL', Index: 'VOL... | 12,058 |
https://github.com/Bw3th/X/blob/master/admin/src/view/payment/payment-list.vue | Github Open Source | Open Source | MIT | 2,019 | X | Bw3th | Vue | Code | 654 | 2,674 | <template>
<div>
<div class="margin-bottom-10" style="overflow:hidden;margin-bottom:10px;">
<div class="btn-wrap search_box">
<Button v-show="isRole()" type="primary" @click="newUser" icon="ios-add-circle-outline">新增</Button>
<!-- <input v-model="Fullname" class="search_input" type="text" pl... | 17,529 |
https://github.com/lechium/tvOS10Headers/blob/master/System/Library/Frameworks/AVKit.framework/AVNowPlayingInfoPanelNavigationDelegate.h | Github Open Source | Open Source | MIT | 2,018 | tvOS10Headers | lechium | C | Code | 69 | 232 | /*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:07:12 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/AVKit.framework/AVKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
... | 17,553 |
https://github.com/littlelittlehorse/tidb/blob/master/br/pkg/lightning/run_options.go | Github Open Source | Open Source | Apache-2.0 | null | tidb | littlelittlehorse | Go | Code | 316 | 657 | // Copyright 2022 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... | 34,770 |
https://github.com/qmhl/common-utils/blob/master/src/main/java/com/hz/tgb/entity/User.java | Github Open Source | Open Source | MIT | null | common-utils | qmhl | Java | Code | 174 | 733 | package com.hz.tgb.entity;
/**
* ┏┓ ┏┓+ +
* ┏┛┻━━━┛┻┓ + +
* ┃ ┃
* ┃ ━ ┃ ++ + + +
* ████━████ ┃+
* ┃ ┃ +
* ┃ ┻ ┃
* ┃ ┃ + +
* ┗━┓ ┏━┛
* ┃ ┃
* ┃ ┃ + + + +
* ┃ ┃ Code is far away fr... | 23,333 |
https://github.com/revolsys/com.revolsys.open/blob/master/revolsys-core/src/main/java/com/revolsys/io/channels/DataReader.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | com.revolsys.open | revolsys | Java | Code | 513 | 1,443 | package com.revolsys.io.channels;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import org.jeometry.common.exception.Exceptions;
import com.revolsys.io.BaseCloseable;
import com... | 47,243 |
https://github.com/dziemid/pin_up/blob/master/spec/base_spec.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | pin_up | dziemid | Ruby | Code | 147 | 447 | require 'spec_helper'
RSpec.describe 'Base', :vcr, class: Pin::Base do
before(:each) do
@test_pin = Pin::Base.new(ENV['PIN_SECRET'], :test)
end
it 'should set key correctly' do
@pin = Pin::Base.new('KEY', :live)
expect(@pin.key).to eq 'KEY'
end
it 'should set environment to live if no env set'... | 27,042 |
https://github.com/Maxim-B/chili_videos/blob/master/test/integration/viewing_project_video_test.rb | Github Open Source | Open Source | MIT | 2,011 | chili_videos | Maxim-B | Ruby | Code | 259 | 817 | require File.dirname(__FILE__) + '/../test_helper'
class ViewingProjectVideoTest < ActionController::IntegrationTest
include VideosHelper
def setup
ChiliVideos::Config.update(:api_key => 'api-key', :workflow => 'wf')
@user = User.generate!(:login => 'existing', :password => 'existing', :password_confirma... | 26,728 |
https://github.com/GoogleCloudPlatform/repository-gardener/blob/master/.kokoro/firebase/firebase-js-sdk.cfg | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | repository-gardener | GoogleCloudPlatform | null | Spoken | 48 | 302 | # Format: //devtools/kokoro/config/proto/build.proto
# Trampoline:
# https://g3doc.corp.google.com/company/teams/cloud-devrel/dpe/reference/kokoro/index.md?cl=head#trampoline-strategy
# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR}
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampo... | 47,868 |
https://github.com/hirossan4049/sokol-samples/blob/master/sapp/dyntex-sapp.c | Github Open Source | Open Source | MIT | null | sokol-samples | hirossan4049 | C | Code | 865 | 3,551 | //------------------------------------------------------------------------------
// dyntex-sapp.c
// Update dynamic texture with CPU-generated data each frame.
//------------------------------------------------------------------------------
#include <stdlib.h> /* rand */
#include "sokol_app.h"
#include "sokol_gfx.h"
... | 44,791 |
https://github.com/cesar4rroyo/siscreditos/blob/master/app/Models/Gestion/Pagos.php | Github Open Source | Open Source | MIT | null | siscreditos | cesar4rroyo | PHP | Code | 55 | 212 | <?php
namespace App\Models\Gestion;
use App\Models\Banco;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Pagos extends Model
{
use SoftDeletes;
public $connection = 'mysql';
protected $table = 'pagos';
protected $primaryKey = 'id';
protected $fillable ... | 37,319 |
https://github.com/himiraj-dbox/FlowableSourceCode/blob/master/modules/flowable-engine/src/main/java/org/flowable/engine/impl/runtime/ProcessInstanceBuilderImpl.java | Github Open Source | Open Source | Apache-2.0 | null | FlowableSourceCode | himiraj-dbox | Java | Code | 582 | 1,705 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 8,315 |
https://github.com/DrItanium/realmz_tools/blob/master/maya/Entities.h | Github Open Source | Open Source | BSD-2-Clause, Clips, LicenseRef-scancode-unknown-license-reference | 2,020 | realmz_tools | DrItanium | C | Code | 642 | 1,916 | /*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.40 11/01/16 */
/* */
/* ENTITIES HEA... | 30,170 |
https://github.com/edgar-orozco/uplink-php/blob/master/src/SystemMetadata.php | Github Open Source | Open Source | MIT | 2,021 | uplink-php | edgar-orozco | PHP | Code | 92 | 311 | <?php
namespace Storj\Uplink;
use DateTimeImmutable;
use FFI\CData;
/**
* Information about the object that cannot be changed directly
*/
class SystemMetadata
{
private DateTimeImmutable $created;
private ?DateTimeImmutable $expires;
private int $contentLength;
/**
* @internal
*/
p... | 7,382 |
https://github.com/snyaggarwal/django-notifications/blob/master/notifications/tests/urls.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | django-notifications | snyaggarwal | Python | Code | 59 | 184 | ''' Django notification urls for tests '''
# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.views import login
from django.urls import include, path # noqa
from notifications.tests.views import (live_tester, # pylint: disable=no-name-in-module,import-error
... | 46,620 |
https://github.com/nopsys/PharoNOS/blob/master/STNos-Devices.package/ATAController.class/instance/cmdReadSectors.st | Github Open Source | Open Source | MIT | 2,018 | PharoNOS | nopsys | null | Spoken | 6 | 19 | commands
cmdReadSectors
^ self atCommandRegPut: 16r21 | 33,815 |
https://github.com/flashlin/Samples/blob/master/T1.WebTools/WebToolsFront1/src/types/HomeViewModel.ts | Github Open Source | Open Source | MIT | 2,023 | Samples | flashlin | TypeScript | Code | 52 | 142 | export interface ITable {
name: string;
}
export interface ITableColumn {
name: string;
align?: "left" | "center" | "right";
label: string;
field: string | ((row: any) => any);
sortable?: boolean;
required?: boolean;
}
export interface IHomeViewModel {
localFile: string;
searchText: string;
tableN... | 15,221 |
https://github.com/TimonNajdovski/Tak/blob/master/model.py | Github Open Source | Open Source | MIT | null | Tak | TimonNajdovski | Python | Code | 501 | 2,158 | INVALID_MOVE = 'X'
class Igra:
def __init__(self, velikost):
slovar_plosckov = {3: [10, 0], 4: [15, 0], 5: [21, 1], 6: [30, 1], 8: [50, 2]}
self.velikost = velikost
self.ploscki = {'White': slovar_plosckov[velikost], 'Black': slovar_plosckov[velikost]}
Polje = [... | 12,025 |
https://github.com/mackerels/calculord/blob/master/CalculordApp/Model/CalculordModel.cs | Github Open Source | Open Source | BSD-3-Clause | 2,016 | calculord | mackerels | C# | Code | 113 | 373 | using System;
using System.ServiceModel;
using CalculordApp.CalculordServiceReference;
namespace CalculordApp.Model
{
public class CalculordModel : ICalculordCallback, IDisposable
{
private static CalculordModel _instance;
private static CalculordClient _proxy;
private CalculordModel(... | 3,155 |
https://github.com/markanator/rosemary-personal-finance/blob/master/src/hooks/use-user.js | Github Open Source | Open Source | MIT | 2,021 | rosemary-personal-finance | markanator | JavaScript | Code | 290 | 723 | import { useEffect, useState } from 'react';
import { auth, db, provider } from '../data/firebase';
function useUser() {
const [userState, setUserState] = useState({
user: auth.currentUser,
isLoading: auth.currentUser === null ? true : false,
error: null,
});
useEffect(() => {
const onChange = (... | 17,698 |
https://github.com/syseleven/midonet/blob/master/nsdb/src/main/java/org/midonet/nsdb/ConfigWithProperties.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | midonet | syseleven | Java | Code | 225 | 574 | /*
* Copyright 2014 Midokura SARL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 16,447 |
https://github.com/pcbailey/web-ui-components/blob/master/src/components/StorageOverview/index.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | web-ui-components | pcbailey | JavaScript | Code | 12 | 29 | export { StorageOverview } from './StorageOverview';
export { StorageOverviewContext } from './StorageOverviewContext';
| 28,128 |
https://github.com/rajanbhadauria/wm57.1/blob/master/resources/views/user/reacitvate.blade.php | Github Open Source | Open Source | MIT | null | wm57.1 | rajanbhadauria | PHP | Code | 113 | 482 | @extends('layouts.app')
@section('content')
<section class="title-bar">
<div class="container">
<div class="row mb0">
<div class="col s12">
<h1>Activate closed account</h1>
</div>
</div>
</div>
</section>
<div class="sec... | 13,207 |
https://github.com/lldearaujo/EasyTAdmin/blob/master/module/Configuracoes/src/Configuracoes/Model/UsuarioTable.php | Github Open Source | Open Source | BSD-3-Clause | null | EasyTAdmin | lldearaujo | PHP | Code | 146 | 527 | <?php
/**
* Created by PhpStorm.
* User: Leonardo
* Date: 24/09/2017
* Time: 16:02
*/
namespace Configuracoes\Model;
use Zend\Db\TableGateway\TableGatewayInterface;
class UsuarioTable
{
private $tableGateway;
public function __construct(TableGatewayInterface $tableGateway)
{
$this->tableGa... | 44,326 |
https://github.com/cytech/Workorders-FusionInvoice/blob/master/custom/addons/Workorders/Views/resources/create.blade.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | Workorders-FusionInvoice | cytech | PHP | Code | 227 | 1,241 | @extends('Workorders::partials._master')
@section('content')
<!--basic form starts-->
{!! Form::wobreadcrumbs() !!}
{{--@include('Workorders::partials._alerts')--}}
<div class="col-lg-12">
<div class="panel panel-info" id="hidepanel1">
<div class="panel-heading">
<h3 ... | 37,385 |
https://github.com/ramonlopz1/UDEMY---Fullstack-Web-Developer/blob/master/exercicios-js/1 - Fundamentos/funcao1.js | Github Open Source | Open Source | MIT | null | UDEMY---Fullstack-Web-Developer | ramonlopz1 | JavaScript | Code | 100 | 248 | function imprimirSoma(a, b) { //não foi utilizada palavra reservada(var, let, const) nem tipo primitivo(int, floar, double)
console.log(a+b);
}
imprimirSoma(5, 6)
imprimirSoma(2) // Retorna Not a Number
imprimirSoma(1, 2, 3, 4, 5, 6, 7) // Vai somar apenas o primeiro e segundo
imprimirSoma();
// Função com retorn... | 36,651 |
https://github.com/naturalatlas/node-gdal/blob/master/deps/libgdal/gdal/frmts/msg/prologue.cpp | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer, MIT, SunPro, LicenseRef-scancode-info-zip-2005-02, BSD-3-Clause | 2,022 | node-gdal | naturalatlas | C++ | Code | 896 | 2,459 | /******************************************************************************
*
* Purpose: Implementation of Prologue class. Parse the prologue of one
* repeat cycle and keep the interesting info.
* Author: Bas Retsios, retsios@itc.nl
*
**************************************************************... | 41,849 |
https://github.com/stinvi/dava.engine/blob/master/Sources/Internal/Debug/List.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | dava.engine | stinvi | C | Code | 1,132 | 3,241 | #ifndef __DAVAENGINE_LIST_H__
#define __DAVAENGINE_LIST_H__
#include "Base/BaseTypes.h"
#include "Debug/ListAllocator.h"
namespace DAVA
{
//! \brief Class MallocList for INTERNAL MEMORY MANAGER usage
//! this class uses Malloc to allocate nodes
template <class ITEM>
class MallocList
{
public:
struct Node
{
... | 19,139 |
https://github.com/tiger0105/american-zombie/blob/master/Assets/_RedMoon/target_model/new_zombies/animations/little_girl_zombie/ZS_StrafeLeft.bip.meta | Github Open Source | Open Source | Apache-2.0 | 2,020 | american-zombie | tiger0105 | Unity3D Asset | Code | 12 | 65 | fileFormatVersion: 2
guid: acab7ff22dd241142a3a7f9b6002aaa1
timeCreated: 1488770145
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 1,609 |
https://github.com/gvintux/battery_charge_notifier/blob/master/battery_charge_notifier.py | Github Open Source | Open Source | MIT | null | battery_charge_notifier | gvintux | Python | Code | 237 | 916 | import time
import subprocess as sp
from gi.repository import Notify
from sched import scheduler
class BatteryChargeNotifier:
AC_SHOULD_IN = 0
AC_SHOULD_OUT = 1
BAT_FIELD_STATE = "state"
BAT_FIELD_PERCENTAGE = "percentage"
BAT_STATE_CHARGING = "charging"
BAT_STATE_DISCHARGING = "discharging"
... | 40,473 |
https://github.com/KyunginNa/slowfood_client_team2_october2020/blob/master/cypress/integration/visitorCanRegister.feature.js | Github Open Source | Open Source | MIT | 2,021 | slowfood_client_team2_october2020 | KyunginNa | JavaScript | Code | 62 | 358 | describe('Visitors can create an account', () => {
beforeEach(() => {
cy.server()
cy.route({
method: 'GET',
url: 'http://localhost:3000/api/products',
response: 'fixture:products_index.json',
})
cy.route({
method: 'POST',
url: 'http://localhost:3000/api/auth',
respo... | 49,901 |
https://github.com/Clear-Sight/cython-vs-pypy-performance/blob/master/graph/__main__.py | Github Open Source | Open Source | MIT | null | cython-vs-pypy-performance | Clear-Sight | Python | Code | 57 | 249 | import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import json
def read_file(file="./results.json"):
data = {}
with open(file) as json_file:
data = json.load(json_file)
return data
def add_labels(x,y):
for i in range(len(x)):
plt.text(i,round(y[i], 7), r... | 25,646 |
https://github.com/ctxsdhy/XSBlog/blob/master/Blog/XS.Blog.WebUI/XSBlog/Manage/MAlbum/PhotoEdit.aspx.cs | Github Open Source | Open Source | MIT | null | XSBlog | ctxsdhy | C# | Code | 375 | 1,495 | using System;
using System.Web;
using XS.Blog.Components;
using XS.Blog.Components.Helper;
using XS.Blog.Entity;
using XS.Framework.Utility;
namespace XS.Blog.WebUI.XSBlog.Manage.MAlbum
{
/// <summary>
/// 照片编辑
/// </summary>
public partial class PhotoEdit : PagePermission
{
protected Phot... | 11,630 |
https://github.com/supergaojian/yarn/blob/master/src/util/root-user.js | Github Open Source | Open Source | BSD-2-Clause | 2,022 | yarn | supergaojian | JavaScript | Code | 69 | 206 | /* @flow */
/**
* 返回 Node.js 进程的数字标记的用户身份
* 在 Windows 或 Android 平台无效
*/
function getUid(): ?number {
if (process.platform !== 'win32' && process.getuid) {
return process.getuid();
}
return null;
}
/**
* 是否为root用户标志
*/
export default isRootUser(getUid()) && !isFakeRoot();
export function isFakeRoot(): ... | 18,769 |
https://github.com/borutkitak/dlabs-backend/blob/master/src/order/order.interface.ts | Github Open Source | Open Source | MIT | null | dlabs-backend | borutkitak | TypeScript | Code | 32 | 79 | export interface IOrder {
readonly orderId: string,
readonly tableId: string,
readonly foods: [],
readonly drinks: [],
readonly drinkPrepared: boolean,
readonly foodPrepared: boolean,
readonly drinkServed: boolean,
readonly foodServed: boolean,
readonly paid: boolean,
} | 32,195 |
https://github.com/googleapis/google-cloud-python/blob/master/packages/google-cloud-certificate-manager/google/cloud/certificate_manager_v1/services/certificate_manager/client.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | google-cloud-python | googleapis | Python | Code | 14,522 | 39,209 | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 36,360 |
https://github.com/RogeCS/react-webpack-skeleton/blob/master/src/styles/global/variables.scss | Github Open Source | Open Source | MIT | null | react-webpack-skeleton | RogeCS | SCSS | Code | 19 | 139 | @import url("https://fonts.googleapis.com/css2?family=Encode+Sans+Expanded:wght@300;400;700&display=swap");
$theme-font: "Encode Sans Expanded", sans-serif;
$white-color: #ffffff;
$main-color: #25274d;
$main-color-light: #3d3e5e;
$light-blue: #c8d8e4;
$light-gray: #f2f2f2;
$blue-green: #52ab98;
| 52,495 |
https://github.com/jrote1/Dart-Code/blob/master/src/providers/dart_completion_item_provider.ts | Github Open Source | Open Source | MIT | 2,016 | Dart-Code | jrote1 | TypeScript | Code | 212 | 778 | "use strict";
import { TextDocument, Position, CancellationToken, CompletionItemProvider, CompletionList, CompletionItem, CompletionItemKind, TextEdit, Range } from "vscode";
import { Analyzer } from "../analysis/analyzer";
import * as as from "../analysis/analysis_server_types";
import { logError } from "../utils";
... | 32,600 |
https://github.com/christopher-evans/west-php-code-sniffer/blob/master/West/Tests/Commenting/FunctionCommentUnitTest.php | Github Open Source | Open Source | MIT | null | west-php-code-sniffer | christopher-evans | PHP | Code | 322 | 722 | <?php
/**
* This file is part of the West\\CodingStandard package
*
* (c) Chris Evans <cmevans@tutanota.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace West\CodingStandard\Tests\Commenting;
use PHP_CodeSniffer\Test... | 7,390 |
https://github.com/12142020-dotnet-uta/TravisMartinRepo1/blob/master/Demos/Week 3/12142020_MvcRpsDemo/ModelLayer/ViewModels/PlayerViewModel.cs | Github Open Source | Open Source | MIT | null | TravisMartinRepo1 | 12142020-dotnet-uta | C# | Code | 145 | 397 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
namespace ModelLayer.ViewModels
{
public class PlayerViewModel
{
//[Key]
public Guid playerId { get; set; } = Guid.New... | 26,115 |
https://github.com/honigbeutler123/AtomicGameEngine/blob/master/Attic/AtomicEditorReference/Source/Build/BuildWeb.cpp | Github Open Source | Open Source | Apache-2.0, MIT | null | AtomicGameEngine | honigbeutler123 | C++ | Code | 194 | 838 | // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// Please see LICENSE.md in repository root for license information
// https://github.com/AtomicGameEngine/AtomicGameEngine
#include "AtomicEditor.h"
#include <Atomic/IO/FileSystem.h>
#include <Atomic/IO/File.h>
#include "../AEEditor.h"
#include ".... | 11,217 |
https://github.com/locolocoer/mycode/blob/master/Game-Programming-Using-Qt-5-Beginners-Guide-Second-Edition-master/Chapter16/Miscellaneous and Advanced Concepts/translations/main.cpp | Github Open Source | Open Source | MIT | 2,021 | mycode | locolocoer | C++ | Code | 37 | 142 | #include "widget.h"
#include <QApplication>
#include <QTranslator>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTranslator translator;
if (!translator.load(QLocale::German, ":/translations/myapp_")) {
qWarning() << "failed to load translation";
}
app.... | 7,819 |
https://github.com/dynamiatools/framework/blob/master/zk/src/main/java/tools/dynamia/zk/ui/MessageDialog.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | framework | dynamiatools | Java | Code | 330 | 922 | /*
* Copyright (C) 2021 Dynamia Soluciones IT S.A.S - NIT 900302344-1
* Colombia / South America
*
* 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... | 19,461 |
https://github.com/oleg3190/project/blob/master/resources/views/cabinet/channels/channels.blade.php | Github Open Source | Open Source | MIT | null | project | oleg3190 | PHP | Code | 4 | 37 | @extends('cabinet.home')
@section('content')
@include('cabinet.channels.content_channels')
@endsection
| 13,960 |
https://github.com/attenuation/srs/blob/master/trunk/src/protocol/srs_service_rtmp_conn.hpp | Github Open Source | Open Source | MIT | 2,022 | srs | attenuation | C++ | Code | 239 | 823 | //
// Copyright (c) 2013-2021 The SRS Authors
//
// SPDX-License-Identifier: MIT or MulanPSL-2.0
//
#ifndef SRS_SERVICE_RTMP_CONN_HPP
#define SRS_SERVICE_RTMP_CONN_HPP
#include <srs_core.hpp>
#include <string>
class SrsRequest;
class SrsTcpClient;
class SrsRtmpClient;
class SrsCommonMessage;
class SrsSharedPtrMessa... | 11,731 |
https://github.com/kostenyuk/UniRest/blob/master/DataProcessors/ПомощникСозданияОбменаДанными/Forms/ДополнительноеОписание/Ext/Form/Module.bsl | Github Open Source | Open Source | Apache-2.0 | 2,020 | UniRest | kostenyuk | null | Spoken | 46 | 402 | ////////////////////////////////////////////////////////////////////////////////
// ОБРАБОТЧИКИ СОБЫТИЙ ФОРМЫ
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
Если Параметры.Свойство("АвтоТест") Тогда // Возврат при получении формы для анализа.
Возврат;
КонецЕсли;
Макет = Обработки.Помо... | 33,355 |
https://github.com/FLYERFIGHTER66/Kube/blob/master/PROD/KUBEPAK400/QRPGLESRC.FILE/APR440.RPGLE | Github Open Source | Open Source | MIT | 2,023 | Kube | FLYERFIGHTER66 | null | Spoken | 448 | 1,465 | *-------------------------------------------------------------- APR440
* APR440
* COPYRIGHT EFD ENTERPRISES, INC. 1999 APR440
* APR... | 21,767 |
https://github.com/Andy-Yawson/shoptins/blob/master/app/Http/Resources/Product/ProductCollection.php | Github Open Source | Open Source | MIT | null | shoptins | Andy-Yawson | PHP | Code | 87 | 320 | <?php
namespace App\Http\Resources\Product;
use Illuminate\Http\Resources\Json\Resource;
class ProductCollection extends Resource
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($reques... | 27,337 |
https://github.com/FujishigeTemma/Emoine/blob/master/router/presentaions.go | Github Open Source | Open Source | MIT | null | Emoine | FujishigeTemma | Go | Code | 281 | 996 | package router
import (
"net/http"
"strconv"
"github.com/labstack/echo/v4"
"github.com/traPtitech/Emoine/repository"
"github.com/traPtitech/Emoine/utils"
)
type PostPresentationsStruct struct {
Name string `json:"name"`
Speakers string `json:"speakers"`
Description string `json:"description"`
}
ty... | 22,979 |
https://github.com/guineawheek/ftcdata/blob/master/react/gameday2/gameday2.js | Github Open Source | Open Source | MIT | 2,019 | ftcdata | guineawheek | JavaScript | Code | 714 | 2,416 | import 'babel-polyfill'
import React from 'react'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { createStore, applyMiddleware, compose } from 'redux'
import ReactDOM from 'react-dom'
import queryString from 'query-string'
import injectTapEventPlugin from 'react-tap-event-plugin'
import ... | 22,109 |
https://github.com/WondermSwift/APIs-stuff/blob/master/Vulkan/VulkanRaytracer/VulkanApp/sphere.h | Github Open Source | Open Source | MIT | 2,019 | APIs-stuff | WondermSwift | C++ | Code | 547 | 1,628 | #ifndef SPHEREH
#define SPHEREH
#include "hitable.h"
#include <glm/gtc/constants.hpp>
void get_sphere_uv(const glm::vec3& p, float& u, float& v)
{
float phi = atan2(p.z, p.x);
float theta = asin(p.y);
u = 1 - (phi + glm::pi<float>()) / (2.f * glm::pi<float>());
v = (theta + glm::pi<float>() / 2.f) / glm::pi<float... | 17,521 |
https://github.com/dnikolovv/riskfirst.hateoas/blob/master/tests/RiskFirst.Hateoas.Tests/DefaultLinkAuthorizationServiceTests.cs | Github Open Source | Open Source | MIT | 2,022 | riskfirst.hateoas | dnikolovv | C# | Code | 715 | 3,037 | using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Routing;
using Moq;
using RiskFirst.Hateoas.Tests.Infrastructure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Security.Claims;
using System.Threading.Tasks;
using Xunit;
namespace RiskFirst.... | 21,109 |
https://github.com/l0rb/php-libyear/blob/master/libyear.php | Github Open Source | Open Source | MIT | null | php-libyear | l0rb | PHP | Code | 106 | 466 | <?php
use cli\Table;
use GuzzleHttp\Client;
use Libyear\Calculator;
use Libyear\ComposerFile;
use Libyear\Dependency;
use Libyear\FileSystem;
use Libyear\PackagistAPI;
echo "Gathering information...\n";
require_once __DIR__ . '/vendor/autoload.php';
$calculator = new Calculator(new ComposerFile(new FileSystem()), n... | 51,551 |
https://github.com/Jeswang/Distribution/blob/master/s/sylvester/src/main/scala/typings/sylvester/P.scala | Github Open Source | Open Source | MIT | 2,020 | Distribution | Jeswang | Scala | Code | 177 | 549 | package typings.sylvester
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSGlobal("$P")
@js.native
object P extends js.Object {
/**
* Constructor function.
*
* @param {Array<number>|Vector} anchor The anchor vector.
* @param {Array<number>|Vector} normal The normal... | 35,658 |
https://github.com/guidosalva/REScala/blob/master/Code/Microbenchmarks/src/main/scala/benchmarks/encrdt/Codecs.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | REScala | guidosalva | Scala | Code | 161 | 795 | package benchmarks.encrdt
import benchmarks.encrdt.todolist.ToDoEntry
import com.github.plokhotnyuk.jsoniter_scala.core.{JsonKeyCodec, JsonReader, JsonValueCodec, JsonWriter}
import com.github.plokhotnyuk.jsoniter_scala.macros.{CodecMakerConfig, JsonCodecMaker}
import kofre.base.Defs.{Id, Time}
import kofre.time.{Arra... | 28,171 |
https://github.com/fosted3/ducking-octo-happiness/blob/master/render_video.sh | Github Open Source | Open Source | MIT | null | ducking-octo-happiness | fosted3 | Shell | Code | 27 | 81 | #!/bin/sh
if [[ -z "$3" ]]; then
echo "Usage: $0 outfile scale fps"
else
ffmpeg -r $3 -i img/edit/%04dE.png -q:v 2 -pix_fmt yuv444p -vf scale=iw/$2:-1 $1
fi
| 4,695 |
https://github.com/subhra95/OnlineExam/blob/master/application/models/Dependent_Model.php | Github Open Source | Open Source | MIT | null | OnlineExam | subhra95 | PHP | Code | 67 | 382 | <?php
class Dependent_Model extends CI_Model
{
function getStdDetails()
{
$id=$this->session->userdata('uid');
$this->db->where('std_id',$id);
$data=$this->db->get('stdregister');
return $data->row();
}
function fetchSubject()
{
$query=$this->db->get('subject');
return $query->result();
}
function... | 41,863 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.