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/ebrocamora/rizlife/blob/master/public/js/resources_js_Pages_Luzon_Rizal-Park_vue.js | Github Open Source | Open Source | MIT | null | rizlife | ebrocamora | JavaScript | Code | 570 | 3,262 | (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_Pages_Luzon_Rizal-Park_vue"],{
/***/ "./node_modules/babel-loader/lib/index.js??clonedRuleSet-5[0].rules[0].use[0]!./node_modules/vue-loader/lib/index.js??vue-loader-options!./resources/js/Pages/Luzon/Rizal-Park.vue?vue&type=script&lang=js&":
/*!... | 4,650 |
https://github.com/Game-Designing/Custom-Football-Game/blob/master/sources/com/fasterxml/jackson/databind/deser/impl/ObjectIdReferenceProperty.java | Github Open Source | Open Source | MIT | 2,019 | Custom-Football-Game | Game-Designing | Java | Code | 331 | 1,224 | package com.fasterxml.jackson.databind.deser.impl;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationConfig;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonM... | 33,276 |
https://github.com/leonard-henriquez/SuricatExtension/blob/master/src/js/modules/scrapper.js | Github Open Source | Open Source | Unlicense | 2,018 | SuricatExtension | leonard-henriquez | JavaScript | Code | 176 | 608 | import $ from 'jquery';
const basisSelector = '.job-offer-container';
const scrapContent = (url, stars) => {
if ($(basisSelector).length === 0) {
console.log('No opportunity found on the page');
return false;
}
const data = { url, stars };
let title;
let content;
const cssSelectors = {
title... | 25,688 |
https://github.com/hutuxian/Paddle/blob/master/paddle/scripts/build_docker_images.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | Paddle | hutuxian | Shell | Code | 80 | 824 | #!/bin/sh
set -xe
REPO="${REPO:-paddlepaddle}"
cp -f ../../python/requirements.txt .
sed 's#FROM nvidia/cuda:8.0-cudnn7-devel-ubuntu16.04#FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04#g' ../../Dockerfile |
sed 's#TensorRT-4.0.1.6-ubuntu14.04.x86_64-gnu.cuda.8.0.cudnn7.0.tar.gz#TensorRT-6.0.1.5.Ubuntu-16.04.x86_64-gn... | 50,233 |
https://github.com/Art31/pytorch-seq2seq/blob/master/2 - Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation.py | Github Open Source | Open Source | MIT | null | pytorch-seq2seq | Art31 | Python | Code | 1,028 | 3,239 | import torch
import torch.nn as nn
import torch.optim as optim
from torch import Tensor
from torchtext.datasets import TranslationDataset, Multi30k
from torchtext.data import Field, BucketIterator
import spacy
import random
import math
import time
SEED = 1234
random.seed(SEED)
torch.manual_seed(SEED)
torch.backend... | 41,035 |
https://github.com/mellistibco/cli/blob/master/util/engine.go | Github Open Source | Open Source | BSD-3-Clause | null | cli | mellistibco | Go | Code | 490 | 1,383 | package util
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"strings"
)
// PartialEngineDescriptor is the descriptor for a Flogo application
type PartialEngineDescriptor struct {
Imports []string `json:"imports"`
Services []*EngineServiceDetails `json:"services"`
}
type EngineServiceDetails st... | 38,105 |
https://github.com/asultan123/ADP/blob/master/train_cifar.py | Github Open Source | Open Source | Apache-2.0 | null | ADP | asultan123 | Python | Code | 782 | 2,604 | from __future__ import print_function
from enum import Flag
import tensorflow as tf
from tensorflow.keras.layers import Dense, Conv2D, BatchNormalization, Activation
from tensorflow.keras.layers import AveragePooling2D, Input, Flatten
from tensorflow.keras.optimizers import Adam, SGD
from tensorflow.keras.callbacks imp... | 7,655 |
https://github.com/searayeah/sublime-snippets/blob/master/Courses/HSEPython/3 week/5.py | Github Open Source | Open Source | MIT | null | sublime-snippets | searayeah | Python | Code | 12 | 28 | a = float(input())
print(int(a) + int(2 * a - 2 * int(a)))
| 35,782 |
https://github.com/ymm-tech/easy-byte-coder/blob/master/client/runtime-common-api/src/main/java/io/manbang/easybytecoder/runtimecommonapi/log/EasyByteCoderLogger.java | Github Open Source | Open Source | MIT | 2,022 | easy-byte-coder | ymm-tech | Java | Code | 56 | 175 | package io.manbang.easybytecoder.runtimecommonapi.log;
/**
* @author GaoYang
* 2018/12/23
*/
public interface EasyByteCoderLogger {
void debug(String var1);
void debug(String format, Object arg);
void debug(String format, Object arg1, Object arg2);
void debug(String format, Object... arguments... | 18,956 |
https://github.com/iOS-NSC/My-iOS-Programme/blob/master/虎牙直播1.1 5/虎牙直播1.1/GOViewController.h | Github Open Source | Open Source | Apache-2.0 | 2,016 | My-iOS-Programme | iOS-NSC | Objective-C | Code | 36 | 116 | //
// GOViewController.h
// 虎牙直播1.1
//
// Created by tarena04 on 16/5/18.
// Copyright © 2016年 tarena. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface GOViewController : UIViewController
+ (UIButton *) setLeftNavigationBarButton;
+ (UIButton *) setRightNavigationBarButton;
@end
| 25,482 |
https://github.com/shogo82148/schemalex-deploy/blob/master/model/table.go | Github Open Source | Open Source | MIT | 2,022 | schemalex-deploy | shogo82148 | Go | Code | 540 | 1,381 | package model
import "strings"
// Table describes a table model
type Table struct {
Name Ident
Temporary bool
IfNotExists bool
LikeTable MaybeIdent
Columns []*TableColumn
Indexes []*Index
Options []*TableOption
}
// NewTable create a new table with the given name
func NewTable(name Iden... | 6,785 |
https://github.com/wzpRoc/entitylinking/blob/master/Project/web/js/modules/subjectDefine.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | entitylinking | wzpRoc | JavaScript | Code | 1,580 | 6,143 | var cnt_basicRule = 0;
var cnt_compositeRule = 0;
// id到规则的映射
var map_id_to_basicRule = new Object();
var map_id_to_compositeRule = new Object();
// id到规则扩展数据的映射
var map_id_to_ruleExtData = new Object();
// 顶层规则计数
var cnt_topRule = 0;
// 基本规则所占行数
var NR_ROWS_OF_BASIC_RULE = 3;
/**
* 基本规则的构造函数
*/
function BasicRule... | 5,272 |
https://github.com/Rhoana/rh_aligner/blob/master/old/match_sift_features.py | Github Open Source | Open Source | MIT | 2,016 | rh_aligner | Rhoana | Python | Code | 352 | 1,234 | import sys
import os
import glob
import argparse
from subprocess import call
from bounding_box import BoundingBox
import json
import itertools
import utils
# common functions
def match_multiple_sift_features(tiles_file, features_file, index_pairs, jar, out_fname, conf_args):
tiles_url = utils.path2url(os.path.a... | 42,393 |
https://github.com/Muzammil-khan/Aspose.Email-for-.NET/blob/master/Examples/CSharp/IMAP/DeletingAndRenamingFolders.cs | Github Open Source | Open Source | MIT | 2,022 | Aspose.Email-for-.NET | Muzammil-khan | C# | Code | 164 | 459 | using Aspose.Email.Clients;
using Aspose.Email.Clients.Imap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/* This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Email for .NET
API reference when the project is build. Please check https://Docs.nug... | 29,016 |
https://github.com/wgzzgw/liveapp/blob/master/app/src/main/java/com/study/model/RoomInfo.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | liveapp | wgzzgw | Java | Code | 39 | 97 | package com.study.model;
/**
* Created by yy on 2018/4/21.
*/
/*
房间信息bean
*/
public class RoomInfo {
public int roomId;
public String userId;
public String userName;
public String userAvatar;
public String liveCover;
public String liveTitle;
public int watcherNums;
}
| 47,915 |
https://github.com/iamrampukar/Wellness-Lab-Core/blob/master/resources/views/statement/index.blade.php | Github Open Source | Open Source | MIT | null | Wellness-Lab-Core | iamrampukar | PHP | Code | 307 | 1,449 | @extends('layouts.master')
@section('content')
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Report Statement</h1>
</div>
</div>
... | 21,258 |
https://github.com/huntlabs/hunt-pool/blob/master/source/hunt/pool/impl/DefaultEvictionPolicy.d | Github Open Source | Open Source | Apache-2.0 | 2,021 | hunt-pool | huntlabs | D | Code | 262 | 578 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34,159 |
https://github.com/kjappelbaum/aiida-cp2k/blob/master/aiida_cp2k/calculations/__init__.py | Github Open Source | Open Source | MIT | 2,019 | aiida-cp2k | kjappelbaum | Python | Code | 938 | 3,148 | # -*- coding: utf-8 -*-
###############################################################################
# Copyright (c), The AiiDA-CP2K authors. #
# SPDX-License-Identifier: MIT #
# AiiDA-CP2K is hosted on GitHub at https://github.com/c... | 38,519 |
https://github.com/pneuman/fdkaac/blob/master/src/main.c | Github Open Source | Open Source | Zlib | 2,018 | fdkaac | pneuman | C | Code | 3,133 | 10,927 | /*
* Copyright (C) 2013 nu774
* For conditions of distribution and use, see copyright notice in COPYING
*/
#if HAVE_CONFIG_H
# include "config.h"
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#elif defined(_MSC_VER)
# define SCNd64 "I64d"
#endif
#include <stdio.... | 30,703 |
https://github.com/kollerfuzzi/KollerVaro/blob/master/src/at/kollerfuzzi/varo/Varo.java | Github Open Source | Open Source | MIT | null | KollerVaro | kollerfuzzi | Java | Code | 383 | 1,400 | package at.kollerfuzzi.varo;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
im... | 858 |
https://github.com/jan--f/grafana/blob/master/scripts/benchmarks/ab/ab_test.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | grafana | jan--f | Shell | Code | 12 | 94 | #!/bin/bash
ab -n 20000 -c 100 -H "Authorization: Bearer vEustw23NSOZ27y3zlj28ZL3B7BpBk5kqR85DOfT5AwiS3nCi33dnsk6nhvXhZdn" \
http://localhost:3000/api/dashboards/db/dash1
| 28,124 |
https://github.com/cq-pandora/projects/blob/master/services/parser/bin/CQSpritesDecompiler/Assets/TK2DROOT/tk2dUI/Code/Controls.meta | Github Open Source | Open Source | MIT | 2,023 | projects | cq-pandora | Unity3D Asset | Code | 4 | 28 | fileFormatVersion: 2
guid: 84543cf2ceb2f374281fcc14dff64798
| 9,185 |
https://github.com/Kevincavender/The-Ends/blob/master/the_ends/functions.py | Github Open Source | Open Source | BSD-3-Clause | 2,018 | The-Ends | Kevincavender | Python | Code | 631 | 1,430 | import re
'''
Write function to identify functions being called
example syntax:?
separate "function("
from:
"x=2*5+function(x=x, 5, 12^(2-1))"
example output (Updated 10/26/2018):
return {'function_name': 'function', 1:"x", 2: "5", 3: "12^(2-1)"}
write as a python function with a single line string as the input... | 48,097 |
https://github.com/Parichaymandal/ProjectManager/blob/master/app/Http/Controllers/EmployeeController.php | Github Open Source | Open Source | MIT | null | ProjectManager | Parichaymandal | PHP | Code | 255 | 867 | <?php
namespace App\Http\Controllers;
use App\Employee;
use App\User;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Support\Facades\Auth;
class EmployeeController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
p... | 44,078 |
https://github.com/dolittle-samples/eCommerce/blob/master/Source/Shop/Web/styles/Components/all.scss | Github Open Source | Open Source | MIT | null | eCommerce | dolittle-samples | SCSS | Code | 2 | 8 | @import "option-list"; | 10,289 |
https://github.com/gistia/covalent/blob/master/src/app/components/echarts/getting-started/getting-started.component.ts | Github Open Source | Open Source | MIT | 2,019 | covalent | gistia | TypeScript | Code | 23 | 103 | import { Component, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'getting-started',
templateUrl: './getting-started.component.html',
styleUrls: ['./getting-started.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
preserveWhitespaces: true,
})
export class GettingSt... | 41,515 |
https://github.com/code4a/JLibraryDemo/blob/master/app/src/main/java/com/code4a/jlibrarydemo/splash/SplashPresenterImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | JLibraryDemo | code4a | Java | Code | 86 | 412 | package com.code4a.jlibrarydemo.splash;
import com.code4a.jlibrarydemo.JLibraryApp;
import com.code4a.jlibrarydemo.commoninteractor.GankCommonInteractor;
import com.code4a.jlibrarydemo.commoninteractor.GankCommonInteractorImpl;
import com.code4a.jlibrarydemo.data.GirlsBean;
import com.code4a.jlibrarydemo.utils.Constan... | 11,613 |
https://github.com/jvanderbiest/global-azure-bootcamp-2019/blob/master/snippets/06-OnTurnAsync-ComputerVision.snippet | Github Open Source | Open Source | MIT | 2,019 | global-azure-bootcamp-2019 | jvanderbiest | Vim Snippet | Code | 35 | 208 | <?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>06-OnTurnAsync-ComputerVision</Title>
</Header>
<Snippet>
<Code Language="csharp">
<![... | 30,374 |
https://github.com/Vukelic/WindGenerator-backend/blob/master/WindGeneratorService/DtoServiceDAL/Interfaces/WindGeneratorDevice_History/IDtoWindGeneratorDevice_HistoryDAL.cs | Github Open Source | Open Source | MIT | null | WindGenerator-backend | Vukelic | C# | Code | 26 | 152 | using DtoModel.DtoModels.Implementations.WindGeneratorDevice_History;
using DtoModel.DtoResponseObjectModels.WindGeneratorDevice_History;
using DtoServiceDAL.Interfaces.Common;
using System;
using System.Collections.Generic;
using System.Text;
namespace DtoServiceDAL.Interfaces.WindGeneratorDevice_History
{
publi... | 10,127 |
https://github.com/1688KAI/InternetArchitect/blob/master/24 JVM/JVM/src/com/mashibing/jvm/Hello.java | Github Open Source | Open Source | Apache-2.0 | null | InternetArchitect | 1688KAI | Java | Code | 14 | 45 | package com.mashibing.jvm;
public class Hello {
public void m() {
System.out.println("Hello JVM!");
}
}
| 48,107 |
https://github.com/bhuppal/golang-project/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,021 | golang-project | bhuppal | Go Module | Code | 4 | 23 | module github.com/bhuppal/golang-project
go 1.16
| 29,837 |
https://github.com/fereeh/ezEngine/blob/master/Code/Engine/Foundation/Memory/Policies/AlignedHeapAllocation.h | Github Open Source | Open Source | MIT | 2,021 | ezEngine | fereeh | C | Code | 69 | 331 | #pragma once
#include <Foundation/Basics.h>
namespace ezMemoryPolicies
{
/// \brief Aligned Heap memory allocation policy.
///
/// \see ezAllocator
class ezAlignedHeapAllocation
{
public:
EZ_ALWAYS_INLINE ezAlignedHeapAllocation(ezAllocatorBase* pParent) {}
EZ_ALWAYS_INLINE ~ezAlignedHeapAllocatio... | 39,853 |
https://github.com/hampus4git/notes/blob/master/src/test/java/com/example/documentApp/resources/HTTPHelper.java | Github Open Source | Open Source | Apache-2.0 | null | notes | hampus4git | Java | Code | 128 | 481 | package com.example.documentApp.resources;
import com.example.documentApp.core.Response;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.testing.junit.ResourceTestRule;
import javax.ws.rs.client.Entity;
import java.util.Base64;
public class HTTPHelper {
private static ObjectMapper obj... | 26,959 |
https://github.com/duangsuse/Share/blob/master/HTMLs/school/animjs/equery.rect.js | Github Open Source | Open Source | MIT | 2,022 | Share | duangsuse | JavaScript | Code | 105 | 678 | Object.assign(["equery","ext","rect"].reduce((o,k)=>(o[k]=o[k]||{}),this),
(ref=>({
Point: _.defineOps(class Point {
plus_(p1){let p=this; p.x+=p1.x,p.y+=p1.y;}
neg_(){let p=this; p.x=-p.x,p.y=-p.y;}
minus_(p1){this.plus_(p1.neg())}
times_(p1){let p=this; p.x*=p1.x,p.y*=p1.y;}
div_(p1){let p=this;... | 42,098 |
https://github.com/amirdaly/zarela-WebApp/blob/master/src/theme.js | Github Open Source | Open Source | MIT | null | zarela-WebApp | amirdaly | JavaScript | Code | 95 | 380 | export const theme = {
maxWidth: '1255px',
// colors
primary: '#7246D0',
primaryFaded: '#7246d029',
secondary: 'rgba(126, 162, 253, 0.4)',
success: '#3ADEA3',
navLinkColor: '#8B72DE',
navLinkDisabled: '#E3DDFA',
notificationColor: '#2EECA8',
textPrimary: '#121213',
textSecondary: '#6DA5BF',
textToken: '#3C8... | 6,060 |
https://github.com/tchenkov/JavaScript-Advanced/blob/master/L03. Exercise - DOM Manipulations/04. Sections/04. Sections.js | Github Open Source | Open Source | MIT | null | JavaScript-Advanced | tchenkov | JavaScript | Code | 46 | 155 | function create(sentences) {
let contentDiv = document.getElementById('content');
contentDiv.setAttribute('id', 'content');
for (let text of sentences) {
let div = document.createElement('div');
let p = document.createElement('p');
p.style.display = 'none';
p.textContent = t... | 8,589 |
https://github.com/Neuheit/DSharpPlus/blob/master/DSharpPlus/EventArgs/GuildUpdateEventArgs.cs | Github Open Source | Open Source | MIT | 2,021 | DSharpPlus | Neuheit | C# | Code | 70 | 170 | using DSharpPlus.Entities;
namespace DSharpPlus.EventArgs
{
/// <summary>
/// Represents arguments for <see cref="DiscordClient.GuildUpdated"/> event.
/// </summary>
public class GuildUpdateEventArgs : DiscordEventArgs
{
/// <summary>
/// Gets the guild before it was updated.
... | 32,830 |
https://github.com/michaelwang/study/blob/master/avalon/practice/avalon-test-ui/vendor/avalon.oniui/pages/index/styles/_apis.scss | Github Open Source | Open Source | BSD-3-Clause | 2,017 | study | michaelwang | SCSS | Code | 248 | 913 | @import "global";
.api-content-wrap{
height: 100%;
overflow: auto;
background-color: #fff;
.api-content{
position: relative;
padding: 40px 60px;
&:before {
content: "";
position: absolute;
top: 0;
left: 0;
border-widt... | 44,060 |
https://github.com/richard-ma/Gondwana/blob/master/tests/test_channel.py | Github Open Source | Open Source | MIT | 2,021 | Gondwana | richard-ma | Python | Code | 136 | 497 | #!/usr/bin/env python
# encoding: utf-8
def test_empty_database(client):
response = client.get('/channel/index')
assert response.status_code == 200
# confirm message
assert b'No channels here.' in response.data
# confirm Create Channel Button
assert b'Create Channel</a>' in response.data
def ... | 12,532 |
https://github.com/fabiel-leon/shlink-web-client/blob/master/test/short-urls/helpers/ShortUrlsRowMenu.test.tsx | Github Open Source | Open Source | MIT | 2,020 | shlink-web-client | fabiel-leon | TSX | Code | 230 | 848 | import { shallow, ShallowWrapper } from 'enzyme';
import { ButtonDropdown, DropdownItem } from 'reactstrap';
import { Mock } from 'ts-mockery';
import createShortUrlsRowMenu from '../../../src/short-urls/helpers/ShortUrlsRowMenu';
import PreviewModal from '../../../src/short-urls/helpers/PreviewModal';
import QrCodeMod... | 10,723 |
https://github.com/glopesdev/bonsai/blob/master/Bonsai.Vision.Design/IplImageInputRectangleEditor.cs | Github Open Source | Open Source | MIT | null | bonsai | glopesdev | C# | Code | 54 | 138 | namespace Bonsai.Vision.Design
{
/// <summary>
/// Provides a user interface for visually editing a rectangular region on top
/// of the input image sequence.
/// </summary>
public class IplImageInputRectangleEditor : IplImageRectangleEditor
{
/// <summary>
/// Initializes a new... | 23,919 |
https://github.com/xzccfzy/servicecomb-service-center/blob/master/datasource/etcd/event/instance_event_handler.go | Github Open Source | Open Source | Apache-2.0 | null | servicecomb-service-center | xzccfzy | Go | Code | 493 | 1,710 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 14,535 |
https://github.com/ntrajic/hubble-ui/blob/master/client/src/components/Clusters/state/types.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | hubble-ui | ntrajic | TypeScript | Code | 136 | 239 | // Copyright 2019 Authors of Hubble
//
// 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 ... | 48,090 |
https://github.com/jatowler/simple_webserver/blob/master/client3.py | Github Open Source | Open Source | MIT | null | simple_webserver | jatowler | Python | Code | 103 | 389 | #!/usr/bin/env python
"""Load a server with lots of requests."""
import argparse
import os
import socket
SERVER_ADDRESS = 'localhost', 8888
REQUEST = b'''\
GET /hello HTTP/1.1
Host: localhost:8888
'''
def main(max_clients, max_conns):
socks = []
print 'Connecting {} clients {} times'.format(max_clients, ma... | 38,689 |
https://github.com/lianwentao/huachengshequhuishenghuo/blob/master/Model/zhangdanlishijilu/fukuanjilumodel.m | Github Open Source | Open Source | Apache-2.0 | 2,019 | huachengshequhuishenghuo | lianwentao | Objective-C | Code | 26 | 101 | //
// fukuanjilumodel.m
// HuiShengHuo2.0
//
// Created by 晋中华晟 on 2018/3/23.
// Copyright © 2018年 晋中华晟. All rights reserved.
//
#import "fukuanjilumodel.h"
@implementation fukuanjilumodel
@end
| 46,635 |
https://github.com/unity-game-framework/ugf-jsonnet-bson/blob/master/Packages/UGF.JsonNet.Bson/Plugins/Newtonsoft.JsonNet.Bson/Utilities/CollectionUtils.cs | Github Open Source | Open Source | MIT | null | ugf-jsonnet-bson | unity-game-framework | C# | Code | 185 | 396 | #define HAVE_METHOD_IMPL_ATTRIBUTE
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Newtonsoft.Json.Bson.Utilities
{
internal static class CollectionUtils
{
//... | 33,264 |
https://github.com/jisjoe/MLH-Local-Hack-Day/blob/master/MLHHackday/app/src/main/java/onebyzero/club/mlhhackday/facedetection/FaceContourGraphic.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | MLH-Local-Hack-Day | jisjoe | Java | Code | 398 | 1,601 | package onebyzero.club.mlhhackday.facedetection;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import com.google.firebase.ml.vision.face.FirebaseVisionFace;
import com.google.firebase.ml.vision.face.FirebaseVisionFaceContour;
import com.google.firebase.ml.vision.face.Fi... | 51,151 |
https://github.com/Guutong/chapter4/blob/master/src/main/java/com/guutong/chapter4/YesNo.java | Github Open Source | Open Source | Apache-2.0 | null | chapter4 | Guutong | Java | Code | 65 | 137 | /*
* 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 com.guutong.chapter4;
/**
*
* @author GuutonG
*/
public enum YesNo {
YES(1), NO(0);
private int score;
priva... | 39,941 |
https://github.com/Hamed-kshiem/CE-IoT/blob/master/src/main/java/iotpanel/CE/CeApplication.java | Github Open Source | Open Source | MIT | null | CE-IoT | Hamed-kshiem | Java | Code | 23 | 96 | package iotpanel.CE;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
public class CeApplication {
public static void main(String[] args) {
SpringApplication.r... | 46,408 |
https://github.com/ddla12/Chevere/blob/master/src/chevere/index.ts | Github Open Source | Open Source | MIT | 2,021 | Chevere | ddla12 | TypeScript | Code | 12 | 35 | export * from "./ChevereAttached.js";
export * from "./ChevereNode.js";
export * from "./ChevereInline.js";
| 33,527 |
https://github.com/rschwenn/Rstyx.Utilities/blob/master/Utilities/source/Domain/TopologyNode.vb | Github Open Source | Open Source | MIT | null | Rstyx.Utilities | rschwenn | Visual Basic | Code | 85 | 189 |
Namespace Domain
''' <summary> A Node of a topology (node-edge model). </summary>
Public Class TopologyNode
''' <summary> Code (or shortcut title) of the node. </summary>
Public Property Code As String = String.Empty
''' <summary> Title of the node. </... | 41,630 |
https://github.com/nick10811/BLEManager/blob/master/BTLE/ViewController.h | Github Open Source | Open Source | MIT | 2,016 | BLEManager | nick10811 | C | Code | 68 | 314 | //
// ViewController.h
// BTLE
//
// Created by Nick Yang on 9/16/15.
// Copyright (c) 2015 Nick Yang. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "BLEManager.h"
@interface ViewController : UIViewController<BLEManagerDelegate,UIActionSheetDelegate> {
IBOutle... | 34,014 |
https://github.com/lpchg1992/png2ico/blob/master/src/png2ico/app.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | png2ico | lpchg1992 | Python | Code | 205 | 984 | """
Png to Ico
"""
import toga
from toga.style import Pack
from toga.style.pack import COLUMN, ROW
from PIL import Image
import random
import os
class Png2Ico(toga.App):
def startup(self):
self.msg = '请开始操作'
main_box = toga.Box(style=Pack(direction=COLUMN))
img_path_box = toga.Box(style=P... | 28,579 |
https://github.com/sigmoidanalytics/zeppelin/blob/master/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/zengine/ZPlan.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | zeppelin | sigmoidanalytics | Java | Code | 139 | 591 | package com.nflabs.zeppelin.zengine;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.nflabs.zeppelin.driver.LazyConnection;
import com.nflabs.zeppelin.driver.ZeppelinConnection;
import com.nflabs.zeppelin.driver.ZeppelinDriverFactory;
import com.nflabs.ze... | 44,618 |
https://github.com/Antholoj/netbeans/blob/master/webcommon/web.inspect/src/org/netbeans/modules/web/inspect/webkit/ui/MatchedPropertyNode.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | netbeans | Antholoj | Java | Code | 586 | 1,563 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 6,758 |
https://github.com/erjan/coding_exercises/blob/master/maximum_product_of_splitted_binary_tree.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | coding_exercises | erjan | Python | Code | 251 | 508 | '''
Given the root of a binary tree, split the binary tree into two subtrees by removing one edge such that the product of the sums of the subtrees is maximized.
Return the maximum product of the sums of the two subtrees. Since the answer may be too large, return it modulo 109 + 7.
Note that you need to maximize the ... | 9,640 |
https://github.com/highlands/exchequer-example/blob/master/app/controllers/offers_controller.rb | Github Open Source | Open Source | MIT | 2,018 | exchequer-example | highlands | Ruby | Code | 15 | 60 | class OffersController < ApplicationController
def index
@offers = ExchequerClient::OfferClient.new(
api_key: @api_key,
public_token: @manager_public_token).all
end
end
| 7,686 |
https://github.com/myk1477/bishe-ershoufang/blob/master/LianjiaSpider/LianjiaSpider/items.py | Github Open Source | Open Source | MIT | null | bishe-ershoufang | myk1477 | Python | Code | 61 | 215 | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class LianjiaspiderItem(scrapy.Item):
# define the fields for your item here like:
# 定义爬取的信息
# 爬取房屋的所在城市
city = scrapy.Field()
# 街道... | 49,918 |
https://github.com/Cici-Zhang-1/jiuqian-mobile/blob/master/application/config/validation/workflow/workflow_order_product_fitting_msg_validation.php | Github Open Source | Open Source | MIT | 2,021 | jiuqian-mobile | Cici-Zhang-1 | PHP | Code | 210 | 901 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
$config['workflow/workflow_order_product_fitting_msg/add'] = array(
array (
'field' => 'order_product_fitting_id',
'label' => '配件id',
'rules' => 'trim|required|numeric|max_length[10]'
... | 50,465 |
https://github.com/nickwanninger/serenity/blob/master/Userland/Libraries/LibSyntax/Highlighter.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,021 | serenity | nickwanninger | C++ | Code | 530 | 1,618 | /*
* Copyright (c) 2020-2021, the SerenityOS developers.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
... | 45,179 |
https://github.com/carsol/dotfiles/blob/master/ruby/aliases.zsh | Github Open Source | Open Source | MIT | 2,018 | dotfiles | carsol | Shell | Code | 26 | 76 | alias sc='script/console'
alias sg='script/generate'
alias sd='script/destroy'
alias rs='spring stop && bin/rails serve'
alias rc='spring stop && bin/rails console'
alias rake="noglob rake"
alias b="bundle"
alias be="bundle exec"
| 25,988 |
https://github.com/magik6k/LogicDraw/blob/master/core/src/me/wieku/circuits/save/SaveManagers.kt | Github Open Source | Open Source | MIT | null | LogicDraw | magik6k | Kotlin | Code | 239 | 976 | package me.wieku.circuits.save
import me.wieku.circuits.save.managers.SaveManagerVer01
import me.wieku.circuits.save.managers.SaveManagerVer02
import me.wieku.circuits.world.ClassicWorld
import sun.plugin.dom.exception.InvalidStateException
import java.io.*
import java.util.zip.GZIPInputStream
import java.util.zip.GZI... | 38,516 |
https://github.com/iromu/pool-stack/blob/master/Gulpfile.js | Github Open Source | Open Source | MIT | 2,017 | pool-stack | iromu | JavaScript | Code | 45 | 173 | // Gulpfile.js
var gulp = require('gulp');
var nodemon = require('gulp-nodemon');
var jshint = require('gulp-jshint');
gulp.task('lint', function () {
gulp.src('./**/*.js')
.pipe(jshint());
});
gulp.task('develop', function () {
nodemon({
script: 'server.js',
ext: 'js',
env: {... | 13,843 |
https://github.com/vidspl/WordPressBP/blob/master/config/scripts/build-lang.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,017 | WordPressBP | vidspl | JavaScript | Code | 32 | 109 | const path = require('path')
const sh = require('shelljs')
sh.find(path.resolve('./web/app')).filter((file) => file.match(/\.po$/)).forEach((lang) => {
var name = lang.substr(0, lang.length - 3)
sh.exec([
'msgfmt -o',
name + '.mo',
name + '.po'
].join(' '))
})
| 1,225 |
https://github.com/ra4/reportingapp/blob/master/resources/views/auth/login.blade.php | Github Open Source | Open Source | MIT | null | reportingapp | ra4 | PHP | Code | 97 | 449 | @extends('app')
@section('content')
@if($errors->any())
<div class="container">
<ul class='alert alert-danger col-lg-8 col-lg-push-2'>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="container-inner" style="margin-top:100px"... | 36,435 |
https://github.com/PrimusStudios/sotsera.blazor.oidc/blob/master/samples/ClientSide/Components/LoginDisplay.razor | Github Open Source | Open Source | Apache-2.0 | 2,020 | sotsera.blazor.oidc | PrimusStudios | HTML+Razor | Code | 92 | 355 | @inject Sotsera.Blazor.Oidc.IUserManager UserManager
<AuthorizeView>
<Authorized>
<span class="login-display-name mr-3">
Hello, @context.User.Identity.Name!
</span>
<button type="button" class="btn btn-primary btn-sm mr-1" @onclick="LogoutPopup">
Log out (popup)
... | 11,335 |
https://github.com/jaysonS77/my_test/blob/master/vendor/composer/autoload_static.php | Github Open Source | Open Source | MIT | 2,020 | my_test | jaysonS77 | PHP | Code | 765 | 2,936 | <?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit8b0dfa91a3d8635e18bd13a7e299e31a
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'253c157292f75eb38082b5acb... | 16,297 |
https://github.com/opendoor-labs/cognito/blob/master/lib/cognito/client/response.rb | Github Open Source | Open Source | MIT | 2,021 | cognito | opendoor-labs | Ruby | Code | 38 | 116 | # frozen_string_literal: true
class Cognito
class Client
class Response
include Anima.new(:status, :headers, :data, :json, :connection)
def self.build(response, connection)
new(Builder.call(response).merge(connection: connection))
end
class Status
include Anima.new(:code... | 24,475 |
https://github.com/YanCastle/Tsy/blob/master/TsyExample/Runtime/Temp/bcd4deba9fafdca36ab51b52178af0b8.php | Github Open Source | Open Source | Apache-2.0 | 2,017 | Tsy | YanCastle | PHP | Code | 3 | 98 | <?php
//000000000000a:6:{s:10:"UnitLinkID";s:10:"unitlinkid";s:7:"GoodsID";s:7:"goodsid";s:4:"Rate";s:4:"rate";s:6:"UnitID";s:6:"unitid";s:8:"Standard";s:8:"standard";s:7:"IsBasic";s:7:"isbasic";}
?> | 1,941 |
https://github.com/Eli-Gustilo-Software/Hermez-iOS/blob/master/HermezTesterDelegate/HermezTestVC.swift | Github Open Source | Open Source | MIT | null | Hermez-iOS | Eli-Gustilo-Software | Swift | Code | 400 | 1,253 | // HermezTextVC.swift
// Created by Nicholas Gustilo on 2/26/21.
import UIKit
import Foundation
import Hermez
class HermezTestVC: UIViewController {
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var inputTF: UITextField!
@IBOutlet weak var nameLabel: UILabel!
private var data: [Herm... | 45,195 |
https://github.com/bilalucar/tic-tac-toe/blob/master/src/app/routes/routes-routing.module.ts | Github Open Source | Open Source | MIT | 2,021 | tic-tac-toe | bilalucar | TypeScript | Code | 100 | 260 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
// COMPONENTS
import { LayoutDefaultComponent } from '../layout/default/default.component';
import { HomeComponent } from './home/home.component';
import { GameComponent } from './game/game.component';
import { AboutCompo... | 34,433 |
https://github.com/electricit1/htdocs/blob/master/app/Views/knowledge/wiedzaWyborJezyka.php | Github Open Source | Open Source | MIT | null | htdocs | electricit1 | PHP | Code | 214 | 1,137 | <?php
use \helpers\form,
\core\error; ?>
<style>
.form-signin {
max-width: 420px;
padding: 30px 38px 66px;
margin: 0 auto;
background-color: #eee;
border: 3px dotted rgba(0,0,0,0.1);
}
.form-heading {
text-align:center;
margin-bottom: 30px;
}
.input-group{
margin-bottom: 15px;
}
label input[ty... | 34,607 |
https://github.com/BulkGate/magesms/blob/master/Extensions/SettingsInterface.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | magesms | BulkGate | PHP | Code | 90 | 235 | <?php
namespace BulkGate\Magesms\Extensions;
/**
* Interface SettingsInterface
* @package BulkGate\Magesms\Extensions
*/
interface SettingsInterface
{
/**
* @param string $settings_key
* @param bool $default
* @return mixed
*/
public function load($settings_key, $default = false);
/... | 11,694 |
https://github.com/Milos1983/Test-/blob/master/js/main.js | Github Open Source | Open Source | MIT | 2,019 | Test- | Milos1983 | JavaScript | Code | 263 | 876 |
function myFunction() {
var popup = document.getElementById("myPopup");
popup.classList.toggle("show");
}
function myFunction2() {
var popup = document.getElementById("myPopup2");
popup.classList.toggle("show");
}
function myFunction3() {
var popup = document.getElementById("myPopup3");
popup.c... | 26,163 |
https://github.com/JetBrains/teamcity-docker-images/blob/master/tool/automation/framework/app/src/main/kotlin/com/jetbrains/teamcity/Automation.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | teamcity-docker-images | JetBrains | Kotlin | Code | 382 | 1,058 | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package com.jetbrains.teamcity
import com.jetbrains.teamcity.common.constants.ValidationConstants
import com.jetbrains.teamcity.docker.exceptions.DockerImageValidationException
import com.jetbrains.teamcity.docker.hub.auth.DockerhubCredentials
... | 676 |
https://github.com/Moferor/laravel-linebot-lottery/blob/master/src/Services/CrawlersService/TaiwanLottery/TaiwanLotteryInterface.php | Github Open Source | Open Source | MIT | null | laravel-linebot-lottery | Moferor | PHP | Code | 16 | 72 | <?php
namespace Jose13\LaravelLineBotLottery\Services\CrawlersService\TaiwanLottery;
interface TaiwanLotteryInterface
{
function heardParam(): array;
function bodyParam(): string;
function footerParam(): array;
}
| 23,790 |
https://github.com/SkyXR/onyx/blob/master/src/components/ItemDisplayList.vue | Github Open Source | Open Source | MIT | null | onyx | SkyXR | Vue | Code | 63 | 194 | <template>
<div class="flex flex-col items-center">
<!-- <p class="text-xs text-gray-500 font-mono mb-4">wadi</p> -->
<div
class="inline-flex justify-center items-center text-center"
>
<ul id="example-1">
<li v-for="item in items">
• {{ item }}
</li>
</ul>
... | 21,874 |
https://github.com/karki786/advance-inventory/blob/master/app/CodedCell/Repository/Message/MessageEntity.php | Github Open Source | Open Source | MIT | 2,020 | advance-inventory | karki786 | PHP | Code | 396 | 1,224 | <?php namespace CodedCell\Repository\Message;
use App\Message;
use App\User;
use Auth;
use Carbon\Carbon;
use Mail;
class MessageEntity implements MessageInterface
{
/**
* Saves email/notification in database
* @param $message
* @param $userRole
* @return mixed
*/
public function cre... | 33,386 |
https://github.com/larroy/Crowfoot/blob/master/benchmarking_stack/homedir/bin/git-addremove | Github Open Source | Open Source | NCSA, BSD-2-Clause-Views, BSD-3-Clause, LicenseRef-scancode-generic-cla, Zlib, BSL-1.0, Apache-2.0, BSD-2-Clause, Intel, MIT, LicenseRef-scancode-unknown-license-reference, Unlicense | 2,020 | Crowfoot | larroy | Shell | Code | 14 | 33 | #!/usr/bin/env bash
# git-addremove
git add .
git ls-files --deleted | xargs git rm
| 28,356 |
https://github.com/ionic-team/ionic-framework/blob/master/packages/react-router/test/base/tests/e2e/specs/refs.cy.js | Github Open Source | Open Source | MIT | 2,023 | ionic-framework | ionic-team | JavaScript | Code | 68 | 180 | const port = 3000;
describe("Refs", () => {
/*
This spec tests that refs and props get correctly set on ionic components
*/
it("/refs, when ref is used on an FC, className should be added to ionic component", () => {
cy.visit(`http://localhost:${port}/refs`);
cy.ionPageVisible("refs-fc");
cy.get... | 4,863 |
https://github.com/electron-utils/electron-menu-plus/blob/master/test/basic.spec.js | Github Open Source | Open Source | MIT | 2,020 | electron-menu-plus | electron-utils | JavaScript | Code | 648 | 2,406 | 'use strict';
const {Menu} = require('../index');
suite(tap, 'menu', {timeout: 2000}, t => {
let template = [
{
label: 'foo',
submenu: [
],
},
{
label: 'bar',
submenu: [
{
label: 'bar.01',
},
{
label: 'bar.02',
},
]... | 47,527 |
https://github.com/kaniini/libucontext/blob/master/arch/ppc64/startcontext.S | Github Open Source | Open Source | LicenseRef-scancode-mit-taylor-variant | 2,022 | libucontext | kaniini | Unix Assembly | Code | 163 | 354 | /*
* Copyright (c) 2018 Ariadne Conill <ariadne@dereferenced.org>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* This software is provided... | 39,925 |
https://github.com/peds/py-earth/blob/master/pyearth/_record.c | Github Open Source | Open Source | BSD-3-Clause | 2,022 | py-earth | peds | C | Code | 20,000 | 94,701 | /* Generated by Cython 0.29.32 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "/home/pedram/.pyenv/versions/3.8.10/envs/pyearth-test/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h", "/home/pedram/.pyenv/versions/3.8.10/envs/pyearth-test/lib/python3.8/site-packages/numpy/core/include/nump... | 42,678 |
https://github.com/iuiaoin/leetcode/blob/master/leetcode/438.find-all-anagrams-in-a-string.js | Github Open Source | Open Source | MIT | null | leetcode | iuiaoin | JavaScript | Code | 117 | 386 | /*
* @lc app=leetcode id=438 lang=javascript
*
* [438] Find All Anagrams in a String
*/
// @lc code=start
/**
* @param {string} s
* @param {string} p
* @return {number[]}
*/
/**
* 思路:使用滑动窗口(双指针),遍历s比较其字母出现频率若相同则推入结果
*/
var findAnagrams = function(s, p) {
let pArr = new Array(26).fill(0);
let sArr = new A... | 20,206 |
https://github.com/JasonLiu798/javautil/blob/master/common-logs/common-log-db/src/main/java/com/atjl/logdb/api/annotation/Logable.java | Github Open Source | Open Source | Apache-2.0 | null | javautil | JasonLiu798 | Java | Code | 16 | 75 | package com.atjl.logdb.api.annotation;
import java.lang.annotation.*;
/**
* 需要记日志
*/
@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Logable {
}
| 21,060 |
https://github.com/Rich2/openstrat/blob/master/Tiling/src/prid/HVerts.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | openstrat | Rich2 | Scala | Code | 326 | 879 | /* Copyright 2018-21 Richard Oliver. Licensed under Apache Licence version 2.0. */
package ostrat; package prid
/** Common trait for [[Hverts]] and [[PolygonHC]] */
trait HVertsLike extends Any with DataInt2s[HVert]
{ override def dataElem(i1: Int, i2: Int): HVert = HVert.apply(i1, i2)
override def fElemStr: HVert =... | 43,977 |
https://github.com/riesgos/dlr-riesgos-frontend/blob/master/backend/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,023 | dlr-riesgos-frontend | riesgos | Ignore List | Code | 6 | 17 | .env
node_modules
build
data
dist
test-data | 41,717 |
https://github.com/FirebirdSQL/python3-base/blob/master/firebird/base/types.py | Github Open Source | Open Source | MIT | 2,020 | python3-base | FirebirdSQL | Python | Code | 1,829 | 4,583 | #coding:utf-8
#
# PROGRAM/MODULE: firebird-base
# FILE: firebird/base/types.py
# DESCRIPTION: Types
# CREATED: 14.5.2020
#
# The contents of this file are subject to the MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated doc... | 46,393 |
https://github.com/EdRands/luthier/blob/master/dist/functions/dotCase.js | Github Open Source | Open Source | MIT | 2,022 | luthier | EdRands | JavaScript | Code | 28 | 87 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dotCase = void 0;
var dotCase = function (str) { return (str.toLowerCase().replace(/[^a-z0-9 ]/g, '').trim().replace(/ +/g, '.')); };
exports.dotCase = dotCase;
| 18,391 |
https://github.com/hightouchio/typesuite/blob/master/scripts/generate-types.ts | Github Open Source | Open Source | MIT | 2,020 | typesuite | hightouchio | TypeScript | Code | 58 | 196 | import path from "path";
import TypeGenerator, { FileMappingsLoader, FileWriter } from "../src/type-gen";
const ROOT_DIR = path.dirname(__dirname);
const netSuitBasePath = `${ROOT_DIR}/src/netsuite_webservices/2019_2`;
const mappingsDir = `${netSuitBasePath}/__mappings/`;
const nsGenerator = new TypeGenerator(
new... | 37,937 |
https://github.com/ismanong/js/blob/master/dianying/yinghuam/js/cfunction.js | Github Open Source | Open Source | MIT | 2,021 | js | ismanong | JavaScript | Code | 101 | 520 | $(function(){
var cur_status = "less";
var charNumbers = $(".txtDesc").text().length; //总字数
var limit = 50; //显示字数
if (charNumbers > limit) {
var orgText = $(".txtDesc").text(); //原始文本
var orgHeight = $(".txtDesc").height(); //原始高度
var showText = orgText.substring(0, limit)+'...'... | 5,965 |
https://github.com/saketkc/pyvirchow/blob/master/tests/test_stats.py | Github Open Source | Open Source | BSD-3-Clause | 2,020 | pyvirchow | saketkc | Python | Code | 108 | 378 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import pytest
from pyvirchow.stats import welford_simulatenous_update
import numpy as np
import numpy.testing as npt
def test_welford():
vector_matrix = [[1, 2, 3],... | 42,648 |
https://github.com/Charith424/ToDoApplication/blob/master/UI/BlueLotus.UI/Scripts/HtnScripts/HRIS/SaveFunction.js | Github Open Source | Open Source | Unlicense | null | ToDoApplication | Charith424 | JavaScript | Code | 1,032 | 4,198 | function SaveBasicDet() {
//InsertImgtoServer();
SaveBasicDet_afterUpload("");
}
function SaveBasicDet_afterUpload(EmpImgPath) {
//InsertImgtoServer();
var nicNo = $('#nicNo').val();
var empName = $('#HdrSec1_InptEmpNm_Val').val();
var empNo = $('#HdrSec1_InptEmpNo_Val').val();
if (empNo =... | 20,383 |
https://github.com/lmmx/tap/blob/master/src/tap/preproc/__init__.py | Github Open Source | Open Source | MIT | null | tap | lmmx | Python | Code | 12 | 20 | from . import segment
from .merge import *
from .format_conversion import *
| 11,953 |
https://github.com/arpendu11/code-examples/blob/master/core-java/annotation-processing/introduction-to-annotations/src/main/java/com/reflectoring/RepeatedAnnotatedEmployee.java | Github Open Source | Open Source | MIT | 2,022 | code-examples | arpendu11 | Java | Code | 14 | 49 | package com.reflectoring;
@RepeatableCompany
@RepeatableCompany(name = "Name_2", city = "City_2")
public class RepeatedAnnotatedEmployee {
}
| 5,574 |
https://github.com/ambs/Lingua-Identify-CLD/blob/master/t/02-html.t | Github Open Source | Open Source | Unlicense | 2,017 | Lingua-Identify-CLD | ambs | Perl | Code | 70 | 245 | #!perl -T
use utf8;
use Test::More;
use Lingua::Identify::CLD;
my %langs = (
PORTUGUESE => q{<poem><line>As <word type="other">armas</word> e os <word>barões</word> assinalados,</line><line> que da <word comment="means occidental">ocidental</word> <word class="something">praia</word> lusitana,</line><l... | 2,707 |
https://github.com/ResolveStudios/ClubOrbital/blob/master/Assets/_PoiyomiShaders/ModularShader/Poiyomi Pro.shader | Github Open Source | Open Source | Apache-2.0 | null | ClubOrbital | ResolveStudios | GLSL | Code | 20,000 | 70,569 | Shader ".poiyomi/V8.0/Pro" { Properties { [HideInInspector] shader_master_label ("<color=#E75898ff>Poiyomi Pro V8α</color>", Float) = 0 [HideInInspector] shader_is_using_thry_editor ("", Float) = 0 [HideInInspector] footer_youtube ("{texture:{name:icon-youtube,height:32},action:{type:URL,data:https://www.youtube.com/po... | 31,839 |
https://github.com/LaurenDebruyn/aocdbc/blob/master/correct_programs/ethz_eprog_2019/exercise_08/problem_05.py | Github Open Source | Open Source | MIT | 2,021 | aocdbc | LaurenDebruyn | Python | Code | 488 | 1,155 | """
Simulate the wolf fleeing a city.
A city is given as a grid of ``n x n`` crossroads. At each crossroad, the wolf picks
a random direction. The grid size ``n`` is greater than 1 and odd.
The wolf starts at ``(0, 0)``. The wolf escaped the city when he reaches the border
of the grid.
The wolf can never visit the s... | 6,155 |
https://github.com/AndersenLab/wi-nf/blob/master/.dockerignore | Github Open Source | Open Source | MIT | 2,018 | wi-nf | AndersenLab | Ignore List | Code | 3 | 20 | **
!setup_pyenv.sh
!bin/init_pyenv.sh | 27,645 |
https://github.com/FlorianLeveil/projet-algo-1/blob/master/mini_projet.py | Github Open Source | Open Source | MIT | null | projet-algo-1 | FlorianLeveil | Python | Code | 1,052 | 2,951 | from math import *
dic = {
'Marseille': {
'Nîmes' : 122,
'Ajaccio' : 521,
'Paris' : 773,
'Perpignan' : 317,
'Annecy' : 421,
'Besançon' : 564,
'Toulouse' : 403,
'Toulon' : 122
},
'Nîmes':{
'Ajaccio' : 605,
'Paris' : 711,
'Perpignan' : 203,
'Annecy' : 359,
... | 15,643 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.