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/jevyies/gscbilling/blob/master/ngapp/settings/users/controller.js | Github Open Source | Open Source | MIT | null | gscbilling | jevyies | JavaScript | Code | 638 | 2,581 | angular.module('app')
.controller('UserMasterCtrl', UserMasterCtrl)
.controller('UsersViewCtrl', UsersViewCtrl)
.controller('UserAccessRightsCtrl', UserAccessRightsCtrl)
UserMasterCtrl.$inject = ['$scope', '$ocLazyLoad', '$injector'];
UsersViewCtrl.$inject = ['$scope', '$ocLazyLoad', '$injector', 'data', '... | 41,696 |
https://github.com/guishun80808/ywpt/blob/master/src/api/user.js | Github Open Source | Open Source | MIT | null | ywpt | guishun80808 | JavaScript | Code | 54 | 151 | import { axios } from '@/utils/request';
function login (parameter) {
return axios({
url: '/login',
method: 'post',
data: parameter
});
}
// 修改密码
function updatePass (parameter) {
return axios({
url: '/modifypass',
method: 'post',
data: parameter
});
}
// 登出
function logout () {
ret... | 17,969 |
https://github.com/tstopngo/mal_seasonal_recs/blob/master/lib/mal_seasonal_recs/anime.rb | Github Open Source | Open Source | MIT | null | mal_seasonal_recs | tstopngo | Ruby | Code | 34 | 161 | class MalSeasonalRecs::Anime
attr_accessor :title, :episodes, :viewers, :rating, :summary
@@all = []
def initialize(anime_hash)
anime_hash.each{|attribute, data| self.send(("#{attribute}="), data)}
@@all << self
end
def self.create_anime_list(anime_list_array)
anime_list_array.each do |anime|
... | 6,966 |
https://github.com/anysql/sling/blob/master/sling/util/asset.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | sling | anysql | C | Code | 307 | 666 | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 256 |
https://github.com/Lab-de-microprocesadores-G1/tp3-pixel-run/blob/master/pixel-run/lib/protocol/protocol.h | Github Open Source | Open Source | Apache-2.0 | null | tp3-pixel-run | Lab-de-microprocesadores-G1 | C | Code | 295 | 796 | /*******************************************************************************
@file protocol.h
@brief Custom protocol for data link layer of OSI model
@author G. Davidov, F. Farall, J. Gaytán, L. Kammann, N. Trozzo
******************************************************************************/
#ifnd... | 25,064 |
https://github.com/guipie/Api/blob/master/Monster.WebApi/Controllers/Movie/MovieController.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | Api | guipie | C# | Code | 35 | 199 | /*
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
*如果要增加方法请在当前目录下Partial文件夹MovieController编写
*/
using Microsoft.AspNetCore.Mvc;
using Monster.Core.Controllers.Basic;
using Monster.Entity.AttributeManager;
using Monster.Business.IServices;
namespace Monster.Business.Controllers
{
[Route("api/Movie")]
[PermissionTable(Name = "Mov... | 12,195 |
https://github.com/terragord7/PyDGN/blob/master/pydgn/experiment/semi_supervised_task.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | PyDGN | terragord7 | Python | Code | 614 | 2,238 | import os
from torch.utils.data import DataLoader
from torch_geometric.data import Batch
from pydgn.experiment.experiment import Experiment
from pydgn.static import LOSS, SCORE
class SemiSupervisedTask(Experiment):
"""
Class that implements a semi-supervised experiment. There is an ``unsupervised_config`` f... | 30,510 |
https://github.com/nhs-digital-gp-it-futures/BuyingCatalogueService/blob/master/tests/NHSD.BuyingCatalogue.Solutions.Persistence.DatabaseTests/AdditionalServiceRepositoryTests.cs | Github Open Source | Open Source | MIT | 2,021 | BuyingCatalogueService | nhs-digital-gp-it-futures | C# | Code | 288 | 1,245 | using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using FluentAssertions;
using NHSD.BuyingCatalogue.Solutions.Contracts.Persistence;
using NHSD.BuyingCatalogue.Solutions.Persistence.Models;
using NHSD.BuyingCatalogue.Testing.Data;
using NHSD.BuyingCatalogue.Tes... | 43,292 |
https://github.com/blinkist/amazon-iap2/blob/master/lib/amazon/iap2/result.rb | Github Open Source | Open Source | MIT | null | amazon-iap2 | blinkist | Ruby | Code | 119 | 549 | require "json"
class Amazon::Iap2::Result
attr_accessor :product_type, :product_id, :parent_product_id,
:purchase_date, :purchase_time,
:cancel_date, :cancel_time,
:receipt_id,
:quantity,
:test_transaction,
:beta_product,... | 41,427 |
https://github.com/marnen/rubinius/blob/master/kernel/common/thread.rb | Github Open Source | Open Source | BSD-3-Clause | 2,016 | rubinius | marnen | Ruby | Code | 684 | 2,033 | # depends on: class.rb
#--
# Be very careful about calling raise in here! Thread has its own
# raise which, if you're calling raise, you probably don't want. Use
# Kernel.raise to call the proper raise.
#++
class Thread
class Die < Exception; end # HACK
def task; @task; end
@abort_on_exception = false
def... | 36,814 |
https://github.com/chyidl/mirror-glibc/blob/master/glibc/resolv/tst-no-libidn2.c | Github Open Source | Open Source | BSD-3-Clause | null | mirror-glibc | chyidl | C | Code | 14 | 42 | /* Compiled into an empty shared object. Used by
tst-resolv-ai_idn-nolibidn2 to disable libidn2. */
| 29,963 |
https://github.com/karlbohlmark/knockoff/blob/master/bindings/keypress.js | Github Open Source | Open Source | MIT | 2,015 | knockoff | karlbohlmark | JavaScript | Code | 103 | 318 | var Binding = require('./binding')
module.exports = keypressVisitor;
function keypressVisitor (node, model) {
if (!node.tagName) {
return
}
var bindings = Binding.prototype.getBindingAttrs(node);
var keypressBindingDecl = bindings && bindings.filter(function (b) {
return b.key == 'key... | 1,289 |
https://github.com/Di-viner/DotNetHomework/blob/master/Homework2_2.25/task1/Program.cs | Github Open Source | Open Source | MIT | null | DotNetHomework | Di-viner | C# | Code | 84 | 248 | using System;
namespace primeNumber
{
class Solution
{
public void printPrimeNumber(int n) //打印小于n的素数
{
for(int i = 2; i * i <= n; i++)
{
while(n % i == 0)
{
Console.Write(i + " ");
n /= i;
... | 15,737 |
https://github.com/shawnwang-tech/ST-MGCN/blob/master/process_data.py | Github Open Source | Open Source | MIT | 2,022 | ST-MGCN | shawnwang-tech | Python | Code | 43 | 246 | import os
import numpy as np
import pandas as pd
data_dir = '/Users/wangshuo/Documents/workspace/2019-ZJU_SummerResearch/data'
npz_fp = './data/data_dict.npz'
data = pd.read_csv(os.path.join(data_dir, 'data.csv'), header=None)
w_adj = pd.read_csv(os.path.join(data_dir, 'weight_adj.csv'), header=None)
w_dis = pd.read... | 9,383 |
https://github.com/Tina-otoge/KeysManiac/blob/master/keysmaniac/rules.py | Github Open Source | Open Source | MIT | 2,019 | KeysManiac | Tina-otoge | Python | Code | 103 | 305 | class Judgement:
NAME = None
SCORE = None
BONUS_SCORE = None
TIMING = None
class NormalJudgement(Judgement):
BONUS_SCORE = 0
pass
class BonusJudgement(Judgement):
SCORE = 0
pass
class Perfect(NormalJudgement):
NAME = 'Perfect'
SCORE = 1.0
TIMING = 0.017
class Nice(NormalJ... | 16,465 |
https://github.com/remirobert/bookme5/blob/master/BookMe5iOS/ServiceTableViewCell.swift | Github Open Source | Open Source | MIT | null | bookme5 | remirobert | Swift | Code | 168 | 507 | //
// ServiceTableViewCell.swift
// Bookme5IOS
//
// Created by Remi Robert on 08/07/16.
// Copyright © 2016 Remi Robert. All rights reserved.
//
import UIKit
import Hakuba
class ServiceCellViewModel: CellModel {
var service: Service
init(service: Service) {
self.service = service
... | 35,479 |
https://github.com/samuelmugi/sabu_jobdesk/blob/master/src/views/candidate/profile/profileconstants.js | Github Open Source | Open Source | MIT | null | sabu_jobdesk | samuelmugi | JavaScript | Code | 183 | 632 | module.exports = Object.freeze({
personalInfoFields: [
{field: 'salutation', index: 0},
{field: 'firstName', index: 1},
{field: 'middleName', index: 2},
{field: 'lastName', index: 3},
{field: 'gender', index: 4},
{field: 'dateOfBirth', index: 5},
{field: 'nat... | 10,471 |
https://github.com/cdlaimin/Pixiv-Illustration-Collection-Backend/blob/master/src/main/java/dev/cheerfun/pixivic/biz/web/oauth2/constant/GrantType.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Pixiv-Illustration-Collection-Backend | cdlaimin | Java | Code | 37 | 108 | package dev.cheerfun.pixivic.biz.web.oauth2.constant;
/**
* @author OysterQAQ
* @version 1.0
* @date 2021/1/4 12:59 PM
* @description GrantType
*/
public class GrantType {
public static final String REFRESH_TOKEN = "refresh_token";
public static final String AUTHORIZATION_CODE = "authorization_code";
}
| 27,585 |
https://github.com/TinkerBoard-Android/prebuilts-go-darwin-x86/blob/master/pkg/bootstrap/src/bootstrap/compile/internal/big/example_test.go | Github Open Source | Open Source | BSD-3-Clause | null | prebuilts-go-darwin-x86 | TinkerBoard-Android | Go | Code | 171 | 514 | // Do not edit. Bootstrap copy of /Volumes/Android/buildbot/src/android/build-tools/out/obj/go/src/cmd/compile/internal/big/example_test.go
//line /Volumes/Android/buildbot/src/android/build-tools/out/obj/go/src/cmd/compile/internal/big/example_test.go:1
// Copyright 2012 The Go Authors. All rights reserved.
// Use of... | 30,918 |
https://github.com/puterinoviandhiny/spbe/blob/master/resources/views/frontend/halaman/detail.blade.php | Github Open Source | Open Source | MIT | null | spbe | puterinoviandhiny | PHP | Code | 4 | 30 | @extends('frontend.layouts.app')
@section('title', '')
@section('main-content')
| 8,819 |
https://github.com/lih627/python-algorithm-templates/blob/master/其他面试题/订单分配.py | Github Open Source | Open Source | MIT | 2,021 | python-algorithm-templates | lih627 | Python | Code | 148 | 563 | """
打车派单场景 , 假定有 N 个订单, 待分配给 N 个司机。
每个订单在匹配司机前,会对候选司机进行打分,打分的结果保存在 N*N 的矩阵 A,
其中 Aij 代表订单 i 司机 j 匹配的分值。
假定每个订单只能派给一位司机,
司机只能分配到一个订单。求最终的派单结果,
使得匹配的订单和司机的分值累加起来最大,
并且所有订单得到分配。
题目链接 http://dwz.date/R6Z
"""
def backtrack(n, scores):
used = [False] * n
used = tuple(used)
from functools import lru_cache
... | 34,174 |
https://github.com/crcpuc/audit-model/blob/master/src/main/java/info/atende/audition/model/actions/DatabaseAction.java | Github Open Source | Open Source | Apache-2.0 | null | audit-model | crcpuc | Java | Code | 40 | 111 | package info.atende.audition.model.actions;
/**
* Common database actions to applications
* @author Giovanni Silva.
*/
public enum DatabaseAction {
INSERT,
UPDATE,
DELETE,
SELECT,
INSERT_OR_UPDATE;
public static final String PREFIX = "database_";
@Override
public String toString(){... | 26,771 |
https://github.com/elangovansundar/symfony4-with-restful-api/blob/master/templates/users.html.twig | Github Open Source | Open Source | MIT | null | symfony4-with-restful-api | elangovansundar | Twig | Code | 234 | 1,296 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Welcome to User Management Sytems</title>
{% block head_css %}
<link rel="stylesheet" href="{{ asset('css/styles.css') }}">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/boo... | 13,464 |
https://github.com/jeremyharris/psr3-papertrail/blob/master/src/Logger.php | Github Open Source | Open Source | MIT | null | psr3-papertrail | jeremyharris | PHP | Code | 172 | 540 | <?php
namespace JeremyHarris\Papertrail;
use InvalidArgumentException;
use JeremyHarris\Papertrail\LogLevel;
use Psr\Log\AbstractLogger;
class Logger extends AbstractLogger
{
/**
* Log a message to Papertrail
*
* @param string $level Level
* @param string $message Message
* @param array ... | 36,302 |
https://github.com/sriharshachilakapati/SilenceEngine/blob/master/backend-gwt/src/main/java/com/shc/silenceengine/backend/gwt/GwtFileReader.java | Github Open Source | Open Source | MIT | 2,022 | SilenceEngine | sriharshachilakapati | Java | Code | 372 | 903 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Sri Harsha Chilakapati
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | 28,874 |
https://github.com/yogo/yogo-project/blob/master/lib/yogo/datamapper/model/operations/clear.rb | Github Open Source | Open Source | MIT | null | yogo-project | yogo | Ruby | Code | 64 | 188 | require 'yogo/operation'
module Yogo
module DataMapper
module Model
module Operations
module Clear
Properties = Operation.on(::DataMapper::Model) do |model|
model.properties.clear
model.properties.instance_variable_get(:@properties).clear #clear out the name index
... | 31,664 |
https://github.com/Aerex/GamestonkTerminal/blob/master/discordbot/stocks/due_diligence/pt.py | Github Open Source | Open Source | MIT | 2,021 | GamestonkTerminal | Aerex | Python | Code | 248 | 1,021 | import os
from datetime import datetime, timedelta
import discord
from matplotlib import pyplot as plt
import discordbot.config_discordbot as cfg
from discordbot.run_discordbot import gst_imgur
import discordbot.helpers
from gamestonk_terminal.stocks.due_diligence import business_insider_model
async def pt_command(... | 40,085 |
https://github.com/goce-cz/idea-scripter/blob/master/node_modules/nashorn/com/intellij/ide/errorTreeView/SimpleErrorData.d.ts | Github Open Source | Open Source | MIT | null | idea-scripter | goce-cz | TypeScript | Code | 49 | 167 | import Object = require('nashorn/java/lang/Object');
import ErrorTreeElementKind = require('nashorn/com/intellij/ide/errorTreeView/ErrorTreeElementKind');
import VirtualFile = require('nashorn/com/intellij/openapi/vfs/VirtualFile');
declare class SimpleErrorData extends Object {
kind : ErrorTreeElementKind;
messages... | 7,794 |
https://github.com/qianfen2021/conan/blob/master/conan-common/src/main/java/com/tal/wangxiao/conan/common/service/TestUserService.java | Github Open Source | Open Source | MIT | 2,022 | conan | qianfen2021 | Java | Code | 118 | 495 | package com.tal.wangxiao.conan.common.service;
import java.util.List;
import com.tal.wangxiao.conan.common.domain.TestUser;
/**
* 测试账号管理Service接口
*
* @author dengkunan
* @date 2020-12-30
*/
public interface TestUserService
{
/**
* 查询测试账号管理
*
* @param id 测试账号管理ID
* @return 测试账号管理
*/... | 44,010 |
https://github.com/lwyj123/housekeeper/blob/master/src/utils/timeout.js | Github Open Source | Open Source | MIT | null | housekeeper | lwyj123 | JavaScript | Code | 27 | 62 | module.exports = (delay) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
try {
resolve()
} catch (e) {
reject()
}
}, delay)
})
} | 32,864 |
https://github.com/MiroFurtado/namedtensor/blob/master/namedtensor/test_nn.py | Github Open Source | Open Source | MIT | null | namedtensor | MiroFurtado | Python | Code | 138 | 547 | from . import ntorch
from collections import OrderedDict
def test_nn():
lin = ntorch.nn.Linear(20, 10).rename(output="input")
out = lin(ntorch.randn(5, 20, names=("batch", "input")))
assert out.shape == OrderedDict([("batch", 5), ("output", 10)])
def test_loss():
loss = ntorch.nn.NLLLoss().reduce(["... | 35,841 |
https://github.com/unicredit/linear-algebra/blob/master/linalg/private/cuda/display.nim | Github Open Source | Open Source | Apache-2.0 | 2,021 | linear-algebra | unicredit | null | Spoken | 151 | 362 | # Copyright 2016 UniCredit S.p.A.
#
# 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,... | 32,242 |
https://github.com/jph58/runko/blob/master/io/writers/fields.h | Github Open Source | Open Source | MIT | 2,019 | runko | jph58 | C | Code | 132 | 503 | #pragma once
#include "../namer.h"
#include "../../em-fields/tile.h"
/// Write PlasmaTile content into a hdf5 data group
template<size_t D>
bool
h5io::Writer::write(
const fields::Tile<D>& tile,
ezh5::File& file
)
{
const auto& yee = tile.get_const_yee();
// internal tile numbering
auto my_ind = expa... | 42,987 |
https://github.com/UbuntuEvangelist/lila/blob/master/modules/puzzle/src/main/package.scala | Github Open Source | Open Source | MIT | null | lila | UbuntuEvangelist | Scala | Code | 23 | 46 | package lila
package object puzzle extends PackageObject with WithPlay {
type PuzzleId = Int
type AttemptId = Int
type Lines = List[Line]
}
| 23,825 |
https://github.com/extremeprog-com/core-php/blob/master/Log/Grok.php | Github Open Source | Open Source | MIT | null | core-php | extremeprog-com | PHP | Code | 708 | 4,161 | <?php
/**
* Simple Grok pattern implementation
* Currently there is NO support for predicates
*
* @author kos4live <php-grok@mail.go2inter.net>
* @see http://code.google.com/p/semicomplete/wiki/Grok
*/
class Grok
{
protected $pattern_regex = null;
protected $matchCount = 0;
protected $patterns = arr... | 12,015 |
https://github.com/Simcon/dotNetify/blob/master/_archive/ASP.NET Core Demo/WebApplication.React/Controllers/HomeController.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotNetify | Simcon | C# | Code | 178 | 632 | using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using DotNetify;
using DotNetify.Routing;
namespace WebApplication.Core.React.Controllers
{
public class HomeController : Controller
{
private readonly IHostingEnvironment _hostingEnv;
... | 30,832 |
https://github.com/sahbi-ktifa/boot-mongo-user-starter/blob/master/src/main/java/fr/efaya/boot/domain/User.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | boot-mongo-user-starter | sahbi-ktifa | Java | Code | 80 | 222 | package fr.efaya.boot.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* @author Sahbi Ktifa
* created on 19/12/2017
*/
@Document(collection = "Users")
public class User {
@Id
private String username;
private String password;
... | 4,309 |
https://github.com/mzknksh/nova/blob/master/packages/bits/src/lib/image/public-api.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | nova | mzknksh | TypeScript | Code | 29 | 72 | export interface IImagesPresetItem {
svgFile: string;
name: string;
brushType: string;
code: string;
}
export type ImageFloat = "left" | "right";
export type ImageMargin = "centered" | "small" | "large";
| 38,184 |
https://github.com/NLCR/CZIDLO/blob/master/api/src/main/java/cz/nkp/urnnbn/api/v4/exceptions/UnknownRegistrarScopeIdentifierException.java | Github Open Source | Open Source | PostgreSQL | 2,020 | CZIDLO | NLCR | Java | Code | 24 | 127 | package cz.nkp.urnnbn.api.v4.exceptions;
import javax.ws.rs.core.Response.Status;
import cz.nkp.urnnbn.api.v4.ResponseFormat;
public class UnknownRegistrarScopeIdentifierException extends ApiV4Exception {
public UnknownRegistrarScopeIdentifierException(ResponseFormat format, String errorMessage) {
super... | 12,929 |
https://github.com/diansadulloh/wordpress-on-zeit/blob/master/wp-content/plugins/wp-auto-affiliate-links/js/generatedlinks.js | Github Open Source | Open Source | MIT | 2,020 | wordpress-on-zeit | diansadulloh | JavaScript | Code | 127 | 552 | jQuery(document).ready(function() {
var apikey = document.getElementById('aal_apikey').getAttribute('data-apikey');
//alert(apikey);
var table = document.getElementById("aal_gltable");
aalapidata = { apikey: apikey };
jQuery.ajax({
type: "GET",
url: "//autoaffiliatel... | 2,313 |
https://github.com/andresRah/news-arevalo-andresleo/blob/master/src/containers/newsContainer.js | Github Open Source | Open Source | MIT | null | news-arevalo-andresleo | andresRah | JavaScript | Code | 71 | 231 | import { connect } from "react-redux";
import {
getNews,
getNewsByCategory,
getNewsByFilterWord,
clearNews,
} from "../actions";
import { Home } from "../pages/Home";
// Redux state to props
const mapStateToProps = (state) => ({
news: state.news,
hasError: state.loadingError,
isLoading: state.loadingInPr... | 5,813 |
https://github.com/juanvalenciaquintero/api-valquinter/blob/master/resources/lang/it/navigation.php | Github Open Source | Open Source | MIT | null | api-valquinter | juanvalenciaquintero | PHP | Code | 17 | 47 | <?php
return [
"auth.adm.login" => "Accedi admin",
"home" => "Casa",
"update" => "Navigazione dei router aggiornata",
]; | 872 |
https://github.com/LSmith-Zenoscave/APIIR/blob/master/tests/test_main.py | Github Open Source | Open Source | BSD-3-Clause | null | APIIR | LSmith-Zenoscave | Python | Code | 96 | 303 | # coding=utf-8
"""
apiir.__main__ Tests
"""
from __future__ import print_function
from random import randrange
from nose.tools import assert_false
from apiir.__main__ import main
def fuzz():
return ["".join([chr(randrange(256))
for _ in range(randrange(16))])
for _ in range(ran... | 8,945 |
https://github.com/gravestench/devzat/blob/master/pkg/interfaces/has_shell.go | Github Open Source | Open Source | MIT | null | devzat | gravestench | Go | Code | 53 | 209 | package interfaces
import (
"github.com/gliderlabs/ssh"
terminal "github.com/quackduck/term"
)
type hasShell interface {
hasPrivilege
hasSettings
hasPrivateChat
Session() ssh.Session
Term() *terminal.Terminal
Close(msg string)
CloseQuietly()
Disconnect()
Writeln(from string, srcMsg string)
RWriteln(msg st... | 23,252 |
https://github.com/maxida/tienda/blob/master/resources/views/store/partials/footer.blade.php | Github Open Source | Open Source | MIT | null | tienda | maxida | PHP | Code | 145 | 592 | <footer class="container-fluid fixed-bottom">
<div class="row">
<div class="col-md-4">
<h3>FAQ Ecommerce</h3>
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Dolore non labore, sed illo inventore necessitatibus
reprehenderit quam minus esse! Voluptatibus... | 20,496 |
https://github.com/tanishiking/dotty/blob/master/tests/run/i8001/A_1.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | dotty | tanishiking | Scala | Code | 161 | 662 | trait TC[A] {
def apply(a: A): Unit
}
class Poly[A](val value: A) extends AnyVal
class Arr[A](val value: Array[A]) extends AnyVal
class ArrRef[A <: AnyRef](val value: Array[A]) extends AnyVal
class A {
val tc = new TC[Poly[String]] {
def apply(a: Poly[String]): Unit = ()
}
def poly1(x: Poly[Int]): Poly... | 22,485 |
https://github.com/davidgolub/QuestionGeneration/blob/master/tests/iob_test.py | Github Open Source | Open Source | MIT | 2,021 | QuestionGeneration | davidgolub | Python | Code | 93 | 396 | from models.iob.iob_model import IOBModel
import numpy as np
config = {
'input_max_length': 20,
'vocab_size': 10,
'embeddings_size': 25,
'hidden_size': 30,
'out_size': 5,
'num_classes': 3,
'batch_size': 5,
'learning_rate': 1e-2
}
model = IOBModel(config)
inputs = np.random.random_inte... | 2,483 |
https://github.com/nguyencaonhan271201/TourGuru/blob/master/api/business/businessQuestion/getAnswer.php | Github Open Source | Open Source | MIT | null | TourGuru | nguyencaonhan271201 | PHP | Code | 106 | 409 | <?php
session_start();
require_once("../../../shared/classes/Database.php");
$db = Database::getInstance();
$conn = $db->getConnection();
if (isset($_GET["questionID"])) {
//Get reply
$query = "SELECT gb.*,
(SELECT business_code FROM businesses b WHERE b.business_id = gb.business_id) AS business... | 27,193 |
https://github.com/alexpech12/dracula-line-a-minute/blob/master/dracula_account_api.py | Github Open Source | Open Source | MIT | null | dracula-line-a-minute | alexpech12 | Python | Code | 21 | 92 | import tweepy
from config import *
auth = tweepy.OAuthHandler(API_KEY, API_SECRET_KEY)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
api = tweepy.API(auth, wait_on_rate_limit = True, wait_on_rate_limit_notify = True)
| 46,562 |
https://github.com/elbart/sustainerds/blob/master/_alembic/versions/df58068a9eea_initial.py | Github Open Source | Open Source | MIT | null | sustainerds | elbart | Python | Code | 126 | 520 | """initial
Revision ID: df58068a9eea
Revises:
Create Date: 2019-10-04 17:35:59.632053
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = 'df58068a9eea'
down_revision = None
branch_labels = None
depends_on = None
def upg... | 30,910 |
https://github.com/darshanmaiya/cs263-base-project/blob/master/base/src/main/java/cs263w16/TodoDao.java | Github Open Source | Open Source | Apache-2.0 | null | cs263-base-project | darshanmaiya | Java | Code | 52 | 217 | package cs263w16;
import java.util.HashMap;
import java.util.Map;
public enum TodoDao {
instance;
private Map<String, Todo> contentProvider = new HashMap<>();
private TodoDao() {
Todo todo = new Todo("1", "Learn REST");
todo.setDescription("Read https://www.cs.ucsb.edu/~cs263/gae/Assignment3.html");
c... | 26,930 |
https://github.com/voflo/Search/blob/master/lab/davisWiki/Wiki_Button.f | Github Open Source | Open Source | MIT | null | Search | voflo | null | Spoken | 235 | 389 |
Wiki Buttons similar to Wiki Sticker wiki stickers, but wearable. Sort of like Wiki shirts, but you can attach them to your backpack and wear them everyday. Available as accessories for Wikivangelists and Wiki Gnome gnomes.
20090117 17:35:28 nbsp Where are they available from?
/me eyes Jason Aller Users/StevenDau... | 16,834 |
https://github.com/LaviniaCioloca/inspectory/blob/master/ownership-problems/src/main/java/edu/lavinia/inspectory/op/beans/MethodsInFileAffectedByOwnershipProblems.java | Github Open Source | Open Source | MIT | null | inspectory | LaviniaCioloca | Java | Code | 70 | 266 | package edu.lavinia.inspectory.op.beans;
import java.util.ArrayList;
public class MethodsInFileAffectedByOwnershipProblems {
private ArrayList<String> methodsName;
private Integer numberOfMethodsAffected;
private Integer sumOfMethodsSeverity;
public ArrayList<String> getMethodsName() {
return methodsName;
}
... | 23,213 |
https://github.com/leonnnwu/Geekhub/blob/master/app/src/main/kotlin/com/lwu/geekhub/App.kt | Github Open Source | Open Source | Apache-2.0 | null | Geekhub | leonnnwu | Kotlin | Code | 23 | 65 | package com.lwu.geekhub
import android.app.Application
/**
* Created by lwu on 6/22/18.
*/
class App: Application() {
override fun onCreate() {
super.onCreate()
}
} | 30,978 |
https://github.com/Leels/language-suggester/blob/master/js/scripts.js | Github Open Source | Open Source | MIT | 2,019 | language-suggester | Leels | JavaScript | Code | 94 | 448 | $(document).ready(function() {
$("form#quiz").submit(function(event) {
event.preventDefault();
var name = $("input#name").val();
var question1 = parseInt($("input:radio[name=question1]:checked").val());
var question2 = parseInt($("input:radio[name=question2]:checked").val());
var question3 = pars... | 1,127 |
https://github.com/longduer/copyright/blob/master/src/main/java/io/nuls/Config.java | Github Open Source | Open Source | MIT | null | copyright | longduer | Java | Code | 118 | 372 | package io.nuls;
import io.nuls.core.core.annotation.Configuration;
import java.io.File;
import java.math.BigInteger;
/**
* @Author: yves
* @Time: 2019-08-13 14:41
* @Description: 功能描述
*/
@Configuration(domain = "copyright")
public class Config {
/**
* 当前运行的chain id 来自配置文件
*/
private int chain... | 24,869 |
https://github.com/glyad/Samples.AspNetCore.Server/blob/master/server/Aurelia.IdentityServer/Startup.cs | Github Open Source | Open Source | MIT | null | Samples.AspNetCore.Server | glyad | C# | Code | 120 | 432 | using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace Aurelia.IdentityServer
{
public class Startup
{
// This method gets call... | 13,869 |
https://github.com/TomZid/TYSnapshotScroll-master/blob/master/TYSnapshotScroll/SubViewControllers/TYTableViewVc.h | Github Open Source | Open Source | MIT | null | TYSnapshotScroll-master | TomZid | C | Code | 28 | 86 | //
// TYTableViewVc.h
// TYSnapshotScroll
//
// Created by apple on 16/12/26.
// Copyright © 2016年 TonyReet. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TYTableViewVc : UIViewController
@end
| 40,107 |
https://github.com/riz0id/poly-parse/blob/master/test/Parsers.hs | Github Open Source | Open Source | BSD-3-Clause | null | poly-parse | riz0id | Haskell | Code | 211 | 440 | -- |
module Parsers where
import Control.Algebra
import Control.Applicative
import Control.Effect.Parser
import Control.Monad
import Data.Char
import Data.Text
data Token = TParens Parens
| TSym Text
| TNum Number
deriving (Eq, Show)
data Numbe... | 14,803 |
https://github.com/agateblue/mnm/blob/master/mnm/faq/tests/test_views.py | Github Open Source | Open Source | MIT | 2,021 | mnm | agateblue | Python | Code | 45 | 172 | import unittest
from test_plus.test import TestCase
from mnm.faq import models
from django.utils import timezone
from . import factories
class TestViews(TestCase):
def test_can_list_FAQ(self):
e1 = factories.Entry(status='published', sort_order=2)
e2 = factories.Entry(status='draft')
e3 ... | 41,563 |
https://github.com/systemdo/poetasemrede/blob/master/scripts/poeta_socialold.sql | Github Open Source | Open Source | MIT | null | poetasemrede | systemdo | SQL | Code | 634 | 1,875 | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 25, 2016 at 06:11 PM
-- Server version: 10.1.9-MariaDB
-- PHP Version: 5.6.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI... | 24,376 |
https://github.com/ThomasGuerneve/hdf5/blob/master/src/H5Oint.c | Github Open Source | Open Source | BSD-3-Clause-LBNL | null | hdf5 | ThomasGuerneve | C | Code | 11,600 | 35,483 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* ... | 18,898 |
https://github.com/rfrazier716/PyRayT/blob/master/test/test_pyrayt/test_utils.py | Github Open Source | Open Source | MIT | 2,022 | PyRayT | rfrazier716 | Python | Code | 70 | 241 | import unittest
from pyrayt.utils import wavelength_to_rgb
import numpy as np
class TestWaveToRGB(unittest.TestCase):
def test_inflection_points(self):
inflection_points = np.asarray([0.44, 0.49, 0.51,0.58, 0.645])
rgb = wavelength_to_rgb(inflection_points, gamma=1.0)
# the shape should be... | 1,024 |
https://github.com/war-datasets/Application/blob/master/app/Repositories/UserRepository.php | Github Open Source | Open Source | MIT | null | Application | war-datasets | PHP | Code | 157 | 440 | <?php
namespace ActivismeBE\Repositories;
use ActivismeBE\DatabaseLayering\Repositories\Contracts\RepositoryInterface;
use ActivismeBE\DatabaseLayering\Repositories\Eloquent\Repository;
use ActivismeBE\User;
/**
* Class UserRepository
*
* @package ActivismeBE\Repositories
*/
class UserRepository extends Reposit... | 2,218 |
https://github.com/Bloodielie/state_manager/blob/master/examples/aiogram/many_files/main.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | state_manager | Bloodielie | Python | Code | 39 | 154 | import logging
from aiogram import Bot, Dispatcher, executor
from slave import state_router
from state_manager import MemoryStorage
from state_manager.routes.aiogram.state import AiogramMainStateRouter
logging.basicConfig(level=logging.INFO)
bot = Bot(token='your token')
dp = Dispatcher(bot)
main_state = AiogramM... | 40,117 |
https://github.com/tm-TFS/dl-server/blob/master/application/admin/model/Reward.php | Github Open Source | Open Source | Apache-2.0 | null | dl-server | tm-TFS | PHP | Code | 269 | 1,042 | <?php
namespace app\admin\model;
use think\Model;
use think\Db;
use app\admin\model\User as MUser;
class Reward extends Model
{
/**
*
* 记录对碰奖
*
*/
public function dealOrganize($user) {
if(empty($user)){
return WSTReturn("错误的用户对象");
}
$date = date("Y-m... | 31,459 |
https://github.com/lalit1711/empora-notes/blob/master/src/pages/login/Login.js | Github Open Source | Open Source | MIT | null | empora-notes | lalit1711 | JavaScript | Code | 178 | 758 | import React, { useState } from "react";
import { useDispatch } from "react-redux";
import { setLogin } from "../../config/redux/reducers/noteCrud";
function Login() {
const [username, setUsername] = useState("");
const [password, setPassword] = useState("");
const [errorMessage, setErrorMessage] = useState("");
c... | 28,492 |
https://github.com/searchstar2017/acmtool/blob/master/data_structure/SegTree/SGT2/not_capsulated/MatrixAdd_MatrixSum.cpp | Github Open Source | Open Source | MIT | null | acmtool | searchstar2017 | C++ | Code | 684 | 1,754 | struct LAZY {
int v, l, r;
};
#define MAX_NODE1 (MAXN << 2)
#define MAX_NODE2 (MAXM << 2)
struct SGT2 {
int s[MAX_NODE1][MAX_NODE2], n1, n2;
LAZY lazy1[MAX_NODE1];
int lazy2[MAX_NODE1][MAX_NODE2];
inline int ls(int rt) {
return rt << 1;
}
inline int rs(int rt) {
return rt <<... | 1,285 |
https://github.com/jorgedsilva/snipe-it-master/blob/master/resources/lang/es-MX/admin/settings/message.php | Github Open Source | Open Source | Apache-2.0 | null | snipe-it-master | jorgedsilva | PHP | Code | 118 | 274 | <?php
return array(
'update' => array(
'error' => 'Ha ocurrido un error al actualizar. ',
'success' => 'Parámetros actualizados correctamente.'
),
'backup' => array(
'delete_confirm' => 'Está seguro que desea eliminar este archivo de respaldo? ... | 39,143 |
https://github.com/pymontecarlo/pymontecarlo/blob/master/pymontecarlo/options/beam/pencil.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pymontecarlo | pymontecarlo | Python | Code | 358 | 1,452 | """"""
__all__ = ["PencilBeam", "PencilBeamBuilder"]
# Standard library modules.
import functools
import operator
import itertools
# Third party modules.
import numpy as np
# Local modules.
from pymontecarlo.options.beam.base import BeamBase, BeamBuilderBase
from pymontecarlo.options.particle import Particle
import... | 23,991 |
https://github.com/steerapi/webdnn/blob/master/src/graph_transpiler/webdnn/graph/operators/broadcast.py | Github Open Source | Open Source | MIT | 2,018 | webdnn | steerapi | Python | Code | 105 | 331 | from typing import Optional, List
from webdnn.graph.operators.elementwise import Elementwise
from webdnn.graph.order import Order
from webdnn.graph.variable import Variable
class Broadcast(Elementwise):
"""Broadcast(name, out_shape, out_order)
Broadcast variable to specified shape.
Each elementwise oper... | 20,564 |
https://github.com/cptwunderlich/SpringDataRestDemo/blob/master/CompoundId/src/main/java/com/example/compoundid/DbInitializer.java | Github Open Source | Open Source | Unlicense | null | SpringDataRestDemo | cptwunderlich | Java | Code | 71 | 306 | package com.example.compoundid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Service;
import com.example.compoundid.persistence.entities.PhoneConnection;
imp... | 10,845 |
https://github.com/CateNjeri/sms-dashboard/blob/master/src/app/component/date-picker/day-button/day-button.component.ts | Github Open Source | Open Source | MIT | 2,018 | sms-dashboard | CateNjeri | TypeScript | Code | 66 | 230 | import { Component, Input, Output, EventEmitter } from '@angular/core';
@Component({
selector: 'stbui-day-button',
templateUrl: './day-button.component.html',
styleUrls: ['./day-button.component.scss']
})
export class DayButtonComponent {
@Input() date: any;
@Output() onSelected = new EventEmitter();
@In... | 565 |
https://github.com/Angel-Asensio/levelup-java-examples/blob/master/src/test/java/com/levelup/java/util/DoubleSummaryStatisticsExample.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | levelup-java-examples | Angel-Asensio | Java | Code | 161 | 653 | package com.levelup.java.util;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.DoubleSummaryStatistics;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.Before;
import org.junit.Test;
/**
* This java example will demonstrate how to use
* Double... | 34,520 |
https://github.com/vebdeveloper97/tune/blob/master/modules/api/resources/PostResource.php | Github Open Source | Open Source | BSD-3-Clause | null | tune | vebdeveloper97 | PHP | Code | 47 | 131 | <?php
namespace app\modules\api\resources;
use app\models\Post;
class PostResource extends Post
{
/**
* @return array
*/
public function fields(): array
{
return [
'id',
'title',
'text',
'user' => function () {
return [
... | 24,635 |
https://github.com/MewX/contendo-viewer-v1.6.3/blob/master/com/a/a/d/a.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | contendo-viewer-v1.6.3 | MewX | Java | Code | 3,806 | 8,101 | /* */ package com.a.a.d;
/* */
/* */ import java.io.UnsupportedEncodingException;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* ... | 10,378 |
https://github.com/Houssem-Ayari/ProjetLAravel/blob/master/app/Http/Controllers/MenuController.php | Github Open Source | Open Source | MIT | null | ProjetLAravel | Houssem-Ayari | PHP | Code | 213 | 667 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Menu;
class MenuController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$menu=Menu::all();
... | 15,755 |
https://github.com/Fila1982/Zapwallet_2/blob/master/app/src/main/java/zapsolutions/zap/channelManagement/PendingForceClosingChannelItem.java | Github Open Source | Open Source | MIT | 2,022 | Zapwallet_2 | Fila1982 | Java | Code | 47 | 208 | package zapsolutions.zap.channelManagement;
import com.github.lightningnetwork.lnd.lnrpc.PendingChannelsResponse;
import com.google.protobuf.ByteString;
public class PendingForceClosingChannelItem extends ChannelListItem {
private PendingChannelsResponse.ForceClosedChannel mChannel;
public PendingForceClosin... | 5,637 |
https://github.com/PowerExplorer/PowerDocSearch/blob/master/src/main/java/net/gnu/common/CommonActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | PowerDocSearch | PowerExplorer | Java | Code | 209 | 652 | package net.gnu.common;
import android.support.v4.app.*;
import android.widget.*;
import android.content.*;
import android.app.*;
import net.gnu.util.*;
public class CommonActivity extends FragmentActivity {
protected transient static final String ALL_SUFFIX = ".*";
protected transient static final String ALL_SUF... | 5,459 |
https://github.com/crazymousethief/JavaCollegeCourse/blob/master/src/pers/crazymouse/exercises/Ex6_27.java | Github Open Source | Open Source | CC0-1.0 | null | JavaCollegeCourse | crazymousethief | Java | Code | 131 | 290 | package pers.crazymouse.exercises;
public class Ex6_27 {
public static void main(String[] args) {
int n = 10000;
int primeArr[] = new int[n + 1];
for (int i = 2; i <= Math.sqrt(n); i++)
for (int j = 2; j <= n / i; j++)
primeArr[j * i] = 1;
for (int i = 2,... | 21,797 |
https://github.com/blueblueblue/infinispan/blob/master/core/src/test/java/org/infinispan/tx/recovery/admin/InDoubtWithCommitFailsTest.java | Github Open Source | Open Source | Apache-2.0 | null | infinispan | blueblueblue | Java | Code | 222 | 986 | package org.infinispan.tx.recovery.admin;
import org.infinispan.commands.tx.CommitCommand;
import org.infinispan.commands.tx.RollbackCommand;
import org.infinispan.commons.CacheException;
import org.infinispan.configuration.cache.CacheMode;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.inf... | 17,517 |
https://github.com/MaibornWolff/codecharta/blob/master/analysis/import/UnderstandImporter/src/test/kotlin/de/maibornwolff/codecharta/importer/understand/UnderstandImporterTest.kt | Github Open Source | Open Source | BSD-3-Clause | 2,022 | codecharta | MaibornWolff | Kotlin | Code | 70 | 414 | package de.maibornwolff.codecharta.importer.understand
import de.maibornwolff.codecharta.importer.understand.UnderstandImporter.Companion.main
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import java.io.File
class UnderstandImpo... | 37,338 |
https://github.com/kodaloid/panini-php/blob/master/app/controllers/index.php | Github Open Source | Open Source | MIT | null | panini-php | kodaloid | PHP | Code | 81 | 171 | <?php
/**
* The root controller, this is always called if desired one is missing.
*/
// attempts to find a view (.twig file).
$view = $this->locate_view(null);
// if the view is going back to index.twig, and there are uri parts, do a 404.
if (stripos($view, 'index.twig') !== false && $this->request->uri_parts_c... | 22,131 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/AudioDSPManager/DSPModule.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 56 | 207 | //
// 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"
@class DSPModuleControlDelegate, DatabaseController;
__attribute__((visibility("hidden")))
@interface DSPModule : NSObject
{
DatabaseController *_database... | 35,200 |
https://github.com/YoginAlex/angularattack2016-icons8/blob/master/src/client/app/additional-components/icon-face.component/icon-face.scss | Github Open Source | Open Source | MIT | null | angularattack2016-icons8 | YoginAlex | SCSS | Code | 18 | 57 | .c-final-icon {
display: block;
text-align: center;
margin: 3rem auto 2rem;
svg {
width: 80px;
height: 80px;
}
} | 17,445 |
https://github.com/google/mobile-data-download/blob/master/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ReadStreamOpenerTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | mobile-data-download | google | Java | Code | 222 | 734 | /*
* Copyright 2022 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 agreed to ... | 17,092 |
https://github.com/filipproch/reactor-android/blob/master/library/src/androidTest/java/cz/filipproch/reactor/ui/ReactorDialogFragmentTest.kt | Github Open Source | Open Source | MIT | 2,020 | reactor-android | filipproch | Kotlin | Code | 231 | 1,577 | package cz.filipproch.reactor.ui
import android.support.test.InstrumentationRegistry.getInstrumentation
import android.support.test.runner.AndroidJUnit4
import cz.filipproch.reactor.ui.events.*
import cz.filipproch.reactor.util.*
import cz.filipproch.reactor.util.view.*
import cz.filipproch.reactor.util.view.dialogfra... | 34,256 |
https://github.com/NawaMan/FunctionalJ/blob/master/functionalj-core/src/main/java/functionalj/lens/lenses/java/time/LocalDateTimeLens.java | Github Open Source | Open Source | MIT | 2,022 | FunctionalJ | NawaMan | Java | Code | 166 | 794 | package functionalj.lens.lenses.java.time;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.Month;
import functionalj.lens.core.LensSpec;
import functionalj.lens.lenses.IntegerLens;
import functionalj.lens.lenses.ObjectLensImpl;
public class LocalDateTimeLens<H... | 2,492 |
https://github.com/Nihal2211/heritrix/blob/master/engine/src/main/resources/org/archive/crawler/restlet/codemirror/mode/xmlpure.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | heritrix | Nihal2211 | JavaScript | Code | 1,661 | 4,589 | /**
* xmlpure.js
*
* Building upon and improving the CodeMirror 2 XML parser
* @author: Dror BG (deebug.dev@gmail.com)
* @date: August, 2011
*/
CodeMirror.defineMode("xmlpure", function(config, parserConfig) {
// constants
var STYLE_ERROR = "error";
var STYLE_INSTRUCTION = "comment";
var STYLE_C... | 23,047 |
https://github.com/aws-samples/amazon-kinesis-analytics-streaming-etl/blob/master/src/main/java/com/amazonaws/samples/kinesisanalytics/flink/streaming/etl/utils/TripEventSchema.java | Github Open Source | Open Source | MIT-0 | 2,022 | amazon-kinesis-analytics-streaming-etl | aws-samples | Java | Code | 463 | 1,947 | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the right... | 42,767 |
https://github.com/veyalla/iotedge/blob/master/mqtt/mqttd/src/snapshot.rs | Github Open Source | Open Source | MIT | null | iotedge | veyalla | Rust | Code | 120 | 422 | use mqtt_broker::{BrokerHandle, StateSnapshotHandle};
pub async fn snapshot(broker_handle: BrokerHandle, snapshot_handle: StateSnapshotHandle) {
imp::snapshot(broker_handle, snapshot_handle).await;
}
#[cfg(unix)]
mod imp {
use tokio::signal::unix::{signal, SignalKind};
use tracing::{info, warn};
use ... | 7,758 |
https://github.com/Aurelio93/satellite-pose-estimation/blob/master/pose_refinement/SA-LMPE/ba/openMVG/geometry/convex_hull.cpp | Github Open Source | Open Source | MIT | 2,022 | satellite-pose-estimation | Aurelio93 | C++ | Code | 453 | 1,171 | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2017 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#... | 41,815 |
https://github.com/colinsurprenant/qpid/blob/master/lib/qpid/codec.rb | Github Open Source | Open Source | Apache-2.0 | 2,015 | qpid | colinsurprenant | Ruby | Code | 580 | 1,524 | #
# 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 not... | 1,588 |
https://github.com/amcclead7336/Enterprise_Data_Science_Final/blob/master/venv/lib/python3.8/site-packages/azureml/_restclient/operations/jasmine_operations.py | Github Open Source | Open Source | Unlicense, MIT | null | Enterprise_Data_Science_Final | amcclead7336 | Python | Code | 3,682 | 14,587 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator 2.3.33.0
# ... | 1,610 |
https://github.com/EsraaMamoun-401-advanced-javascript/authenticated-api-server/blob/master/src/models/categories/categories-schema.js | Github Open Source | Open Source | MIT | null | authenticated-api-server | EsraaMamoun-401-advanced-javascript | JavaScript | Code | 40 | 98 | 'use strict';
const mongoose = require('mongoose');
const categorie = mongoose.Schema({
name: { type: String, required: true },
display_name: { type: String, required: false },
description: { type: String, required: false },
});
const categorieSchema = mongoose.model('categorie', categorie);
module.exports = ... | 29,610 |
https://github.com/codertrix/Advent-of-Code/blob/master/2019/Sources/Day22/main.swift | Github Open Source | Open Source | MIT | null | Advent-of-Code | codertrix | Swift | Code | 266 | 568 | // ---------------------------------------------------
// main.swift
// Day 22: Slam Shuffle
//
// Copyright © 2019 Michael Fenske. See LICENSE.txt.
// ---------------------------------------------------
import Foundation
func numberFrom(_ technique: String) -> Int {
let parts = technique.split(separator: " ")... | 45,407 |
https://github.com/borko81/flask_sqlalchemy/blob/master/lot_parking/test_parking.py | Github Open Source | Open Source | MIT | null | flask_sqlalchemy | borko81 | Python | Code | 69 | 364 | import json
import unittest
from config import db
from run import app
from config.models import ParkingModel, CarModel, TaxModel
class TestParkingResourse(unittest.TestCase):
URL = 'http://127.0.0.1:5000/parking'
def setUp(self) -> None:
app.config["SQLALCHEMY_DATABASE_URI"] = 'sqlite:///testing.db... | 6,727 |
https://github.com/Stalio96/JS-Back-End/blob/master/02.Express and Templating/03. Cubicle-Workshop-Part-1-Resources/views/404.hbs | Github Open Source | Open Source | MIT | null | JS-Back-End | Stalio96 | null | Spoken | 10 | 72 | <img id="sadFaceImg" src="https://www.iconpacks.net/icons/2/free-sad-face-icon-2691-thumb.png" alt="sad face" />
<h1>404</h1>
<h2>Page not found</h2> | 19,098 |
https://github.com/Pagnet/ocean-ds-ios/blob/master/UIKit/Components/TitleDescription.swift | Github Open Source | Open Source | MIT | 2,020 | ocean-ds-ios | Pagnet | Swift | Code | 176 | 621 | //
// TitleDescription.swift
// Blu
//
// Created by Victor C Tavernari on 26/06/20.
// Copyright © 2020 Blu. All rights reserved.
//
import UIKit
import OceanTokens
public class TitleDescription: UIView, Renderable {
var mainStack: UIStackView!
let labelTitle: UILabel! = {
let label = UILabel()
... | 13,814 |
https://github.com/Tsagaanbayr1/ubusroutes/blob/master/v1/routes_from_two.php | Github Open Source | Open Source | MIT | null | ubusroutes | Tsagaanbayr1 | PHP | Code | 418 | 1,289 | <?php
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// Холболт нээх
require_once('../connect.php');
// Бүх өгөгдлийг алдаагүй авах
// Сервер талын баталгаажуулалт
if (
!isset($_GET['startId']) || !isset($_GET['startName']) ||
!isset($_GET['endId']) || !isset($_GET['endName'])
) {
... | 11,504 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.