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/Vas-iliy/Yii2-project-comfort/blob/master/backend/controllers/AppController.php | Github Open Source | Open Source | BSD-3-Clause | null | Yii2-project-comfort | Vas-iliy | PHP | Code | 143 | 539 | <?php
namespace backend\controllers;
use Yii;
use yii\rest\Controller;
use yii\web\BadRequestHttpException;
class AppController extends Controller
{
public static function actionCreate($form, $service, $cache)
{
if ($form->load(Yii::$app->request->getBodyParams(), '') && $form->validate()) {
... | 17,016 |
https://github.com/deshankoswatte/tesb-rt-se/blob/master/examples/tesb/tomcat/reservationservice/service/src/main/java/org/talend/services/reservationservice/service/ReservationServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | null | tesb-rt-se | deshankoswatte | Java | Code | 680 | 2,904 | /*
* #%L
* ReservationService Service
* %%
* Copyright (C) 2011-2020 Talend 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... | 36,179 |
https://github.com/JakubStefko/ansii-c/blob/master/1/1.5_Char_IO/main.c | Github Open Source | Open Source | MIT | null | ansii-c | JakubStefko | C | Code | 15 | 51 | #include <stdio.h>
int main()
{
char c = getchar();
putchar(c);
printf("\n%c\n", c);
return 0;
} | 33,418 |
https://github.com/tufanbarisyildirim/pop/blob/master/soda/cmd/root.go | Github Open Source | Open Source | MIT | 2,020 | pop | tufanbarisyildirim | Go | Code | 214 | 655 | package cmd
import (
"fmt"
"os"
"path/filepath"
"github.com/gobuffalo/pop/v5"
"github.com/gobuffalo/pop/v5/internal/defaults"
"github.com/spf13/cobra"
)
var cfgFile string
var env string
var version bool
// RootCmd is the entry point of soda CLI.
var RootCmd = &cobra.Command{
SilenceUsage: true,
Short: ... | 9,861 |
https://github.com/10-anasAllawafeh/portfolio/blob/master/tues scribbles/app.js | Github Open Source | Open Source | MIT | null | portfolio | 10-anasAllawafeh | JavaScript | Code | 95 | 536 | `use strict`;
function hline() {
document.write(`<br> <hr>`);
}
// let para=document.createElement(`li`);
// ul1.appendChild(para);
// para.id=`p1`;
async function getData() {
let responce= await fetch(`https://eu1.locationiq.com/v1/search.php?key=pk.5fdf7554df7d097ac56a7287ed04a614&q=aqaba&format=json`)... | 9,282 |
https://github.com/pwr-pbrwio/PBR20M2/blob/master/projects/checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/checks/metrics/NPathComplexityCheckTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | PBR20M2 | pwr-pbrwio | Java | Code | 1,170 | 4,034 | ////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2018 the original author or authors.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU ... | 9,975 |
https://github.com/Xericore/Learnings/blob/master/Net.Petricevic.Learnings.CSharp/Net.Petricevic.Learnings.CSharp.LiskovSubstitutionPrinciple/LSPLibrary/Manager.cs | Github Open Source | Open Source | MIT | null | Learnings | Xericore | C# | Code | 53 | 152 | using System;
using System.Collections.Generic;
using System.Text;
namespace Net.Petricevic.Learnings.CSharp.LiskovSubstitutionPrinciple.LSPLibrary
{
public class Manager : Employee, IManager
{
public override void CalculatePerHourRate(int rank)
{
decimal baseAmount = 19.75M;
... | 49,112 |
https://github.com/elwin/rumble/blob/master/src/test/resources/test_files/runtime-spark/DataFrames/CountClause3.jq | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference, BSD-3-Clause, MIT, LicenseRef-scancode-other-permissive, BSD-2-Clause, LicenseRef-scancode-warranty-disclaimer | 2,021 | rumble | elwin | JQ | Spoken | 16 | 40 | (:JIQS: ShouldRun; Output="(1, 2, 3)" :)
for $i in parallelize((10, 9, 8)) count $i return $i
| 34,406 |
https://github.com/korken89/stm32h7xx-hal/blob/master/src/pwr.rs | Github Open Source | Open Source | 0BSD | 2,022 | stm32h7xx-hal | korken89 | Rust | Code | 1,488 | 4,327 | //! Power Configuration
//!
//! This module configures the PWR unit to provide the core voltage
//! `VCORE`. The voltage scaling mode is fixed at VOS1 (High
//! Performance).
//!
//! When the system starts up, it is in Run* mode. After the call to
//! `freeze`, it will be in Run mode. See RM0433 Rev 7 Section 6.6.1
//!... | 10,919 |
https://github.com/AntoineGa/vscode-kubernetes-tools/blob/master/src/components/config/config.ts | Github Open Source | Open Source | MIT | null | vscode-kubernetes-tools | AntoineGa | TypeScript | Code | 251 | 995 | import * as vscode from 'vscode';
const EXTENSION_CONFIG_KEY = "vs-kubernetes";
const KUBECONFIG_PATH_KEY = "vs-kubernetes.kubeconfig";
const KNOWN_KUBECONFIGS_KEY = "vs-kubernetes.knownKubeconfigs";
export async function addPathToConfig(configKey: string, value: string): Promise<void> {
const config = vscode.wor... | 12,273 |
https://github.com/mrjavoman/Image-Super-Resolution-via-Iterative-Refinement/blob/master/infer.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | Image-Super-Resolution-via-Iterative-Refinement | mrjavoman | Python | Code | 240 | 1,034 | import torch
import data as Data
import model as Model
import argparse
import logging
import core.logger as Logger
import core.metrics as Metrics
from tensorboardX import SummaryWriter
import os
import numpy as np
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config... | 26,331 |
https://github.com/zrwusa/expo-react-bunny-bare/blob/master/src/components/Sys/Sys.tsx | Github Open Source | Open Source | MIT | null | expo-react-bunny-bare | zrwusa | TypeScript | Code | 140 | 494 | import React, {useEffect, useState} from "react";
import {Text, TextButton, TextInput, View} from "../UI";
import {useDispatch, useSelector} from "react-redux";
import {RootState} from "../../types";
import {useSizeLabor} from "../../providers/size-labor";
import {useThemeLabor} from "../../providers/theme-labor";
impo... | 28,797 |
https://github.com/aulneau/unified-vscode/blob/master/src/shiki/data/extraGrammars/TOML.tmLanguage | Github Open Source | Open Source | MIT | 2,020 | unified-vscode | aulneau | XML Property List | Code | 502 | 4,346 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>toml</string>
<string>tml</string>
</array>
<key>name</key>
<string>TOML</stri... | 18,687 |
https://github.com/yuri410/rpg/blob/master/external/DirectXShaderCompiler/test/Transforms/AlignmentFromAssumptions/start-unk.ll | Github Open Source | Open Source | NCSA, LicenseRef-scancode-unknown-license-reference | 2,020 | rpg | yuri410 | LLVM | Code | 552 | 1,977 | ; RUN: opt -alignment-from-assumptions -S < %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%type1 = type { %type2 }
%type2 = type { [4 x i8] }
; Function Attrs: nounwind
declare void @llvm.assume(i1) #0
; Function Attrs: nounwind readnone
decl... | 36,144 |
https://github.com/poliver/androidx/blob/master/work/workmanager-multiprocess/src/androidTest/java/androidx/work/multiprocess/ParcelableDataTest.kt | Github Open Source | Open Source | Apache-2.0 | null | androidx | poliver | Kotlin | Code | 233 | 665 | /*
* Copyright 2020 The Android Open Source Project
*
* 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 applica... | 10,430 |
https://github.com/Coderushnepal/PoojaShrestha/blob/master/Node/Classes/cars_api/src/Joi-validation.js | Github Open Source | Open Source | MIT | null | PoojaShrestha | Coderushnepal | JavaScript | Code | 23 | 168 | import Joi from 'joi';
const validation = Joi.object({
name: Joi.string().max(50).required(),
color: Joi.string().max(20).required(),
email: Joi.string().email().required(),
password: Joi.string().pattern(/^[a-zA-Z0-9]{3,30}$/).required(),
address: Joi.string().pattern(/^[a-zA-Z0-9]$/).required(),
... | 30,154 |
https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Core/IO/Operations/Authentication/SaslStart.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-generic-cla | 2,023 | couchbase-net-client | couchbase | C# | Code | 259 | 647 | using System;
namespace Couchbase.Core.IO.Operations.Authentication
{
/// <summary>
/// Starts the SASL authentication process using a specified SASL mechanism type as a key.
/// </summary>
// ReSharper disable once IdentifierTypo
internal class SaslStart : OperationBase<string>
{
publi... | 44,425 |
https://github.com/blynnerup/file-converter/blob/master/assets/js/nemesis/structure.js | Github Open Source | Open Source | MIT | 2,019 | file-converter | blynnerup | JavaScript | Code | 1,507 | 5,756 | /*
Model is responsible for Validate Delivery Package folder Structure (Flow 1.0)
initialize interface inputs: elements from <div class="formularContainer">
*/
window.Rigsarkiv = window.Rigsarkiv || {},
function (n) {
Rigsarkiv.Nemesis = Rigsarkiv.Nemesis || {},
function (n){
const {ipcRend... | 36,698 |
https://github.com/HirokiMiyaoka/NoWS/blob/master/server/Server.js | Github Open Source | Open Source | MIT | null | NoWS | HirokiMiyaoka | JavaScript | Code | 254 | 756 | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Log_1 = require("./Log");
Object.freeze(Object.prototype);
class Server {
constructor() {
this.onMessage = () => { };
process.on('message', (message) => {
console.debug('Child:', message);
if (... | 3,047 |
https://github.com/hiroto-takatoshi/atcoder_java/blob/master/scrapper.py | Github Open Source | Open Source | MIT | null | atcoder_java | hiroto-takatoshi | Python | Code | 98 | 381 | from bs4 import BeautifulSoup
import requests
import re
import os
from tqdm import *
def parse_page(run_result="CE", page_num=1):
pass
def parse_submission(suburl):
base_sub_url = 'https://atcoder.jp'
h = requests.get(base_sub_url + suburl).text
soup = BeautifulSoup(h, 'html.parser')
src = soup.fi... | 6,229 |
https://github.com/LLNL/pLiner/blob/master/benchmarks/NPB/npb-debug/SP/verify.c | Github Open Source | Open Source | Apache-2.0 | 2,022 | pLiner | LLNL | C | Code | 1,227 | 4,178 | //-------------------------------------------------------------------------//
// //
// This benchmark is a serial C version of the NPB SP code. This C //
// version is developed by the Center for Manycore Programming at Seoul //
// Nati... | 20,012 |
https://github.com/johannwyh/Our-Pascal-Compiler/blob/master/src/ast/ast.h | Github Open Source | Open Source | MIT | 2,020 | Our-Pascal-Compiler | johannwyh | C | Code | 21 | 91 | #ifndef AST_H
#define AST_H
#include "ast_base.h"
#include "ast_expr.h"
#include "ast_stmt.h"
#include "ast_prog.h"
#include "ast_type.h"
#include "ast_value.h"
extern ASTNode *ast_root;
#endif //AST_H | 44,195 |
https://github.com/DreamLose/python-/blob/master/Day09/前向引用.py | Github Open Source | Open Source | MIT | 2,020 | python- | DreamLose | Python | Code | 64 | 202 |
def foo():
print("foo")
bar()
def bar():
print("bar")
foo()
name = 'ddd'
def tes():
name = "dsdsdsd"
def tres():
name = "xioga"
def tt():
print(name)
return tt
return tres
res = tes()
res()()
"""
============= 递归函数
"""
def calc(n):
print(n)
if n>0:... | 32,087 |
https://github.com/loic-sharma/Anvil/blob/master/modules/users/plugins/User.php | Github Open Source | Open Source | BSD-2-Clause | 2,013 | Anvil | loic-sharma | PHP | Code | 116 | 371 | <?php
class UserPlugin {
/**
* Check if the user is logged in.
*
* @return bool
*/
public function loggedIn()
{
return Auth::check();
}
/**
* Get a property from the current user.
*
* @param string $key
* @return mixed
*/
public function __get($key)
{
return Auth::user()->key;
}
/**... | 25,830 |
https://github.com/pickmybrain/TESTAR-for-ECJ/blob/master/src/linux/src/org/fruit/alayer/linux/util/BridJHelper.java | Github Open Source | Open Source | BSD-3-Clause | 2,018 | TESTAR-for-ECJ | pickmybrain | Java | Code | 108 | 243 | package org.fruit.alayer.linux.util;
import org.bridj.Pointer;
/**
* Class to help with BridJ functionality.
*/
public class BridJHelper {
private static final String EmptyString = "";
/**
* Converts a pointer to a string to a String.
* @param stringPointer The pointer to the string.
* ... | 17,048 |
https://github.com/txchat/dtalk/blob/master/gateway/api/v1/internal/handler/record/pushhandler.go | Github Open Source | Open Source | MIT | 2,022 | dtalk | txchat | Go | Code | 376 | 1,659 | package record
import (
"github.com/gin-gonic/gin"
"github.com/golang/protobuf/proto"
"github.com/txchat/dtalk/gateway/api/v1/internal/logic/record"
"github.com/txchat/dtalk/gateway/api/v1/internal/svc"
"github.com/txchat/dtalk/pkg/api"
xerror "github.com/txchat/dtalk/pkg/error"
comet "github.com/txchat/im/api/... | 41,871 |
https://github.com/AruchomuK/green-peas/blob/master/app/src/main/java/privacyfriendlyshoppinglist/secuso/org/privacyfriendlyshoppinglist/ui/baseactivity/BaseActivity.java | Github Open Source | Open Source | Apache-2.0 | null | green-peas | AruchomuK | Java | Code | 468 | 1,851 | package privacyfriendlyshoppinglist.secuso.org.privacyfriendlyshoppinglist.ui.baseactivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceActivity;
import android.preference.Pref... | 41,769 |
https://github.com/Viincenttt/MollieApi/blob/master/src/Mollie.Api/Client/MandateClient.cs | Github Open Source | Open Source | MIT | 2,023 | MollieApi | Viincenttt | C# | Code | 172 | 719 | using System.Collections.Generic;
using System.Net.Http;
using System.Threading.Tasks;
using Mollie.Api.Client.Abstract;
using Mollie.Api.Extensions;
using Mollie.Api.Models;
using Mollie.Api.Models.List;
using Mollie.Api.Models.Mandate;
using Mollie.Api.Models.Url;
namespace Mollie.Api.Client {
public class Mand... | 30,142 |
https://github.com/simd-everywhere/simde/blob/master/simde/x86/avx512/unpacklo.h | Github Open Source | Open Source | MIT, Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | simde | simd-everywhere | C | Code | 2,346 | 13,410 | /* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, ... | 36,172 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/前程无忧51Job-求职招聘找工作-7.2.1(越狱应用)_headers/XmPushActionContainer.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 175 | 787 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
#import "NSCoding-Protocol.h"
@class NSData, NSString, PushMetaInfo, Target;
@interface XmPushActionContai... | 50,942 |
https://github.com/SalmanZafar1105/LeftAlignLayoutiOS/blob/master/FirstApp/ViewController.swift | Github Open Source | Open Source | MIT | null | LeftAlignLayoutiOS | SalmanZafar1105 | Swift | Code | 258 | 729 | //
// ViewController.swift
// FirstApp
//
// Created by SALMAN ZAFAR on 06/01/20.
// Copyright © 2020 SALMAN ZAFAR. All rights reserved.
//
import UIKit
class ViewController: UIViewController, LeftAlignLayoutDelegate, UICollectionViewDataSource {
@IBOutlet weak var collectionView: UICollectionView!
... | 33,209 |
https://github.com/wjunkin/checkboxapp/blob/master/ipal-android/ipalandroid/src/main/java/com/ipalandroid/questionview/NoQuestion.java | Github Open Source | Open Source | Apache-2.0 | null | checkboxapp | wjunkin | Java | Code | 181 | 621 | package com.ipalandroid.questionview;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import com.ipalandroid.R;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import j... | 13,853 |
https://github.com/paulwratt/cin-5.34.00/blob/master/cint/lib/dll_stl/suncc5_string.h | Github Open Source | Open Source | MIT | 2,021 | cin-5.34.00 | paulwratt | C | Code | 92 | 349 | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#ifndef G__SUNCC5_STRING_H
#define G_... | 9,484 |
https://github.com/Genotypek/Swashbuckle.AspNetCore.Filters/blob/master/src/Swashbuckle.AspNetCore.Filters/Examples/RequestExample.cs | Github Open Source | Open Source | MIT | null | Swashbuckle.AspNetCore.Filters | Genotypek | C# | Code | 484 | 1,559 | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Options;
using Microsoft.OpenApi.Any;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.Filters.Extensions;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Swashbuckle.AspN... | 7,333 |
https://github.com/gandhi56/swift/blob/master/test/DebugInfo/ClangModuleBreadcrumbs.swift | Github Open Source | Open Source | Apache-2.0 | 2,022 | swift | gandhi56 | Swift | Code | 103 | 396 | // RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs \
// RUN: -Xcc -DFOO="foo" -Xcc -UBAR -o - | %FileCheck %s
//
// RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs \
// RUN: -Xcc -DFOO="foo" -Xcc -UBAR -o - -no-clang-module-breadcrumbs \
// RUN: | %FileCheck %s --check-prefix=NONE
import ClangModu... | 47,989 |
https://github.com/asankov/reftools/blob/master/cmd/fillswitch/testdata/typeswitch_2/input.go | Github Open Source | Open Source | BSD-2-Clause | 2,022 | reftools | asankov | Go | Code | 13 | 37 | package p
import "go/ast"
func test(s ast.Stmt) {
switch s.(type) {
}
}
| 40,023 |
https://github.com/Arthur-Z/NetOffice/blob/master/Source/OWC10/DispatchInterfaces/ChSeries.cs | Github Open Source | Open Source | MIT | 2,019 | NetOffice | Arthur-Z | C# | Code | 819 | 3,314 | using System.Reflection;
using System;
using NetRuntimeSystem = System;
using System.ComponentModel;
using NetOffice.Attributes;
namespace NetOffice.OWC10Api
{
/// <summary>
/// DispatchInterface ChSeries
/// SupportByVersion OWC10, 1
/// </summary>
[SupportByVersion("OWC10", 1)]
[EntityType(EntityType.IsDispa... | 23,200 |
https://github.com/samblenny/hd1bhanzi/blob/master/go.mod | Github Open Source | Open Source | MIT, LicenseRef-scancode-unicode, LicenseRef-scancode-unknown-license-reference | 2,021 | hd1bhanzi | samblenny | Go Module | Code | 7 | 51 | module samblenny/hd1bhanzi
go 1.15
require golang.org/x/image v0.0.0-20200927104501-e162460cd6b5
| 11,147 |
https://github.com/Liulinzhe17/FaceRecognition-Objc/blob/master/FaceRecognition-Objc/ViewController.m | Github Open Source | Open Source | MIT | 2,019 | FaceRecognition-Objc | Liulinzhe17 | Objective-C | Code | 236 | 1,146 | //
// ViewController.m
// FaceRecognition-Objc
//
// Created by lianjia on 2019/1/9.
// Copyright © 2019 lianjia. All rights reserved.
//
#import "ViewController.h"
#import "NCNNWrapper.h"
#define IMAGE_HEIGHT [UIScreen mainScreen].bounds.size.height / 4
#define IMAGE_WIDTH [UIScreen mainScreen].bounds.size.widt... | 13,370 |
https://github.com/PhilAndrew/JumpMicro/blob/master/JMResourceRegistry/src/main/scala/jumpmicro/jmresourceregistry/impl/message/MicroServiceMessages.scala | Github Open Source | Open Source | MIT | 2,017 | JumpMicro | PhilAndrew | Scala | Code | 39 | 93 | package jumpmicro.jmresourceregistry.impl.message
//: -------------------------------------------------------------------------------------
//: Copyright © 2017 Philip Andrew https://github.com/PhilAndrew All Rights Reserved.
//: Released under the MIT License, refer to the project website for licence information.
//... | 50,955 |
https://github.com/pathway27/hummingbird/blob/master/test/controllers/users_controller_test.rb | Github Open Source | Open Source | Apache-2.0 | 2,015 | hummingbird | pathway27 | Ruby | Code | 160 | 440 | require 'test_helper'
class UsersControllerTest < ActionController::TestCase
test "can get following" do
get :index, format: :json, followed_by: 'vikhyat'
assert_response 200
assert JSON.parse(@response.body)["users"].any? {|x| x["id"] == 'Josh' }
end
test "can get followers" do
get :index, form... | 14,548 |
https://github.com/testleaf-software/devtools-webdriver/blob/master/src/main/java/com/qeagle/devtools/protocol/commands/Animation.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | devtools-webdriver | testleaf-software | Java | Code | 427 | 1,104 | package com.qeagle.devtools.protocol.commands;
/*-
* #%L
* cdt-java-client
* %%
* Copyright (C) 2018 - 2019 TL
* %%
* 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://ww... | 2,807 |
https://github.com/ezzatron/ssr-sw/blob/master/src/client/component/SignInForm.js | Github Open Source | Open Source | MIT | null | ssr-sw | ezzatron | JavaScript | Code | 50 | 180 | import {useCallback} from 'react'
import {useSignIn} from '~/src/client/context/auth.js'
export default function SignInForm () {
const signIn = useSignIn()
const handleSubmit = useCallback(event => {
event.preventDefault()
signIn(formToObject(event.target))
}, [signIn])
return <form onSubmit={handl... | 21,438 |
https://github.com/maheshkorlam/descriptor-tools/blob/master/tests/test_mixins.py | Github Open Source | Open Source | CC0-1.0 | 2,019 | descriptor-tools | maheshkorlam | Python | Code | 475 | 2,449 | # coding=utf-8
from unittest import TestCase
import test_mocks as mocks
from descriptor_tools import DescDict, id_name_of
from descriptor_tools.mixins import (Getters,
Storage,
Setters)
class Getter_Binding_Test(TestCase):
class Desc(Gette... | 33,705 |
https://github.com/patrickneubauer/XMLIntellEdit/blob/master/use-cases/TOSCA/eu.artist.tosca/src/toscabasetypes/impl/ToscabasetypesPackageImpl.java | Github Open Source | Open Source | MIT | 2,021 | XMLIntellEdit | patrickneubauer | Java | Code | 1,063 | 4,146 | /**
*/
package toscabasetypes.impl;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;... | 2,791 |
https://github.com/speza/recurly-client-go/blob/master/add_on_update.go | Github Open Source | Open Source | MIT | 2,021 | recurly-client-go | speza | Go | Code | 657 | 1,416 | // This file is automatically created by Recurly's OpenAPI generation process
// and thus any edits you make by hand will be lost. If you wish to make a
// change to this file, please create a Github issue explaining the changes you
// need and we will usher them to the appropriate places.
package recurly
import ()
t... | 1,349 |
https://github.com/Lumary2/learn/blob/master/components/atoms/Highlighter/HighlighterStyles.ts | Github Open Source | Open Source | Apache-2.0 | null | learn | Lumary2 | TypeScript | Code | 66 | 214 | import styled from 'styled-components'
interface Props {
isPrism?: boolean
}
export const StyledCodeBlock = styled.div<Props>`
background-color: #e7e7e7;
padding: ${props => props.isPrism
? ''
: '1rem'};
`
export const StyledCodeWrapper = styled.pre<Props>`
background-color: #e7e7e7 !i... | 7,636 |
https://github.com/danielhrisca/vedo/blob/master/examples/other/makeVideo.py | Github Open Source | Open Source | CC0-1.0 | null | vedo | danielhrisca | Python | Code | 123 | 308 | """
Make a video (needs ffmpeg or opencv)
Set offscreen=True to only produce the video
without any graphical window showing
"""
print(__doc__)
from vedo import *
# settings.screeshotScale = 2 # to get higher resolution
# declare the class instance
vp = Plotter(bg='beige', axes=10, offscreen=True)
vp.load(datadir+"... | 6,061 |
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/S3/Custom/Model/Tiering.cs | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | aws-sdk-net | aws | C# | Code | 315 | 683 | /*
*Copyright Amazon.com, Inc.or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
*You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
*or in the "license" file a... | 11,529 |
https://github.com/mnieber/skandha-facets/blob/master/policies/index.ts | Github Open Source | Open Source | MIT | null | skandha-facets | mnieber | TypeScript | Code | 85 | 295 | export { highlightFollowsSelection } from "./highlightFollowsSelection";
export { highlightIsCorrectedOnFilterChange } from "./highlightIsCorrectedOnFilterChange";
export { newItemsAreAddedBelowTheHighlight } from "./newItemsAreAddedBelowTheHighlight";
export { newItemsAreInsertedWhenConfirmed } from "./newItemsAreInse... | 31,002 |
https://github.com/ashariati/gtsam-3.2.1/blob/master/tests/testDoglegOptimizer.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | gtsam-3.2.1 | ashariati | C++ | Code | 606 | 2,336 | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ----... | 2,840 |
https://github.com/andysomers/ax-docs-bootstrap-ui-module/blob/master/docs/modules/ROOT/pages/components/form-controls/numeric.adoc | Github Open Source | Open Source | Apache-2.0 | null | ax-docs-bootstrap-ui-module | andysomers | AsciiDoc | Code | 236 | 1,069 | = NumericFormElement
include::{partialsdir}/_attributes.adoc[]
A `NumericFormElement` writes an `<input>` element with a type="text" to the output.
It uses the {autoNumeric-url}[JQuery autoNumeric plugin] to support decimal precision, localization and adding symbols (eg. for currency).
== Element and builder
The `Vi... | 37,377 |
https://github.com/IceCruelStuff/hhvm/blob/master/hphp/test/zend/good/Zend/tests/add_001.php | Github Open Source | Open Source | Zend-2.0, PHP-3.01, MIT | 2,020 | hhvm | IceCruelStuff | Hack | Code | 70 | 207 | <?hh
<<__EntryPoint>> function main(): void {
$a = varray[1,2,3];
$b = varray["str", "here"];
$c = $a + $b;
var_dump($c);
$a = varray[1,2,3];
$b = varray[1,2,4];
$c = $a + $b;
var_dump($c);
$a = darray["a" => "aaa", 0 => 2, 1 => 3];
$b = darray[0 => 1, 1 => 2, "a" => "bbbbbb"];
$c = $a + $b;
var_dump($c);
$a += $... | 36,341 |
https://github.com/zhanghuichina/metathings/blob/master/pkg/proto/camera/service.pb.go | Github Open Source | Open Source | MIT | 2,018 | metathings | zhanghuichina | Go | Code | 791 | 2,626 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: service.proto
package camera
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import empty "github.com/golang/protobuf/ptypes/empty"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Referen... | 40,658 |
https://github.com/Build-Week-Foodie-Fun-4/Back-End/blob/master/api/users/users-router.js | Github Open Source | Open Source | MIT | 2,021 | Back-End | Build-Week-Foodie-Fun-4 | JavaScript | Code | 173 | 521 | const router = require("express").Router();
const Users = require("../users/users-model");
// get all users
router.get("/", async (req, res) => {
let allUsers = await Users.find();
try {
if (allUsers) {
res.status(200).json(allUsers);
} else {
res.status(404).json("No users to retrieve");
}... | 17,396 |
https://github.com/cantte/Kaizen/blob/master/Kaizen/ClientApp/src/app/modules/clients/components/client-request-detail/client-request-detail.component.ts | Github Open Source | Open Source | MIT | 2,021 | Kaizen | cantte | TypeScript | Code | 128 | 440 | import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { Client } from '@modules/clients/models/client';
import { ClientState } from '@modules/clients/models/client-state';
import { ClientService } from '@modules/clients/services/client.service';
import { Obs... | 9,769 |
https://github.com/AppifySheets/zohocrm-csharp-sdk-2.1/blob/master/ZohoCRM/Com/Zoho/Crm/API/RelatedLists/ResponseHandler.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | zohocrm-csharp-sdk-2.1 | AppifySheets | C# | Code | 9 | 32 | namespace Com.Zoho.Crm.API.RelatedLists
{
public interface ResponseHandler
{
}
} | 10,378 |
https://github.com/somestupidgirl/SEDarwin/blob/master/sedarwin7/src/sedarwin/sedarwin/avc/common_perm_to_string.h | Github Open Source | Open Source | BSD-3-Clause | 2,006 | SEDarwin | somestupidgirl | C | Code | 69 | 514 | /* This file is automatically generated. Do not edit. */
TB_(common_file_perm_to_string)
S_("poll")
S_("ioctl")
S_("read")
S_("write")
S_("create")
S_("getattr")
S_("setattr")
S_("lock")
S_("relabelfrom")
S_("relabelto")
S_("transition")
S_("append")
S_("access")
... | 22,834 |
https://github.com/devpunk/cartesian/blob/master/cartesian/Model/DrawProject/Menu/Edit/Bar/MDrawProjectMenuEditBar.swift | Github Open Source | Open Source | MIT | null | cartesian | devpunk | Swift | Code | 44 | 233 | import Foundation
class MDrawProjectMenuEditBar
{
let items:[MDrawProjectMenuEditBarItem]
init()
{
let itemLink:MDrawProjectMenuEditBarItemLink = MDrawProjectMenuEditBarItemLink()
let itemColor:MDrawProjectMenuEditBarItemColor = MDrawProjectMenuEditBarItemColor()
let itemResize... | 12,333 |
https://github.com/maiduoduo/EJoy/blob/master/imodules/module_iviews/src/main/java/com/module/iviews/easynavigationbar/ui/NavigationBarSetUpViewPagerActivity.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,020 | EJoy | maiduoduo | Java | Code | 141 | 802 | package com.module.iviews.easynavigationbar.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.module.iviews.R;
import com.module.iviews.easynavigationbar.ui.normal.AFragme... | 14,940 |
https://github.com/serbinyo/sportclub.sgu/blob/master/resources/views/menu.blade.php | Github Open Source | Open Source | MIT | null | sportclub.sgu | serbinyo | PHP | Code | 74 | 377 | @extends('layouts.main-layout')
@section('content')
<section>
@if($admin)
@include('common.menu_label')
<ul class="category-list">
<li>
<a href="administrators">
Администраторы
</a>
</... | 27,243 |
https://github.com/deavon/angular2-webpack-starter/blob/master/src/app/+detail/index.ts | Github Open Source | Open Source | MIT | null | angular2-webpack-starter | deavon | TypeScript | Code | 22 | 55 | export {Detail} from './detail.component';
export {Index} from './index.component';
console.log('`Detail` bundle loaded asynchronously');
// Must be exported for WebpackAsyncRoute
export * from './routes'; | 47,597 |
https://github.com/qjhuang/ecs_benchmark/blob/master/libs/entt/test/sparse_set.cpp | Github Open Source | Open Source | MIT | 2,019 | ecs_benchmark | qjhuang | C++ | Code | 801 | 4,114 | #include <gtest/gtest.h>
#include <sparse_set.hpp>
TEST(SparseSetNoType, Functionalities) {
using SparseSet = entt::SparseSet<unsigned int>;
SparseSet set;
ASSERT_TRUE(set.empty());
ASSERT_EQ(set.size(), 0u);
ASSERT_EQ(set.capacity(), 0u);
ASSERT_EQ(set.begin(), set.end());
ASSERT_FALSE(s... | 21,761 |
https://github.com/netceteragroup/ngrx-data-grid/blob/master/projects/data-grid/src/lib/models/index.ts | Github Open Source | Open Source | MIT | 2,022 | ngrx-data-grid | netceteragroup | TypeScript | Code | 36 | 100 | export * from './data-grid-column';
export * from './data-grid-filter';
export * from './data-grid-sort';
export * from './grid-cell';
export * from './locale-texts';
export * from './apply-filter-event';
export * from './toggle-row-selection-event';
export * from './toggle-details-grid-event';
export * from './detail-... | 41,183 |
https://github.com/kelu124/pyS3/blob/master/com/itextpdf/text/pdf/BidiLine.java | Github Open Source | Open Source | MIT | 2,021 | pyS3 | kelu124 | Java | Code | 3,212 | 13,105 | package com.itextpdf.text.pdf;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Image;
import com.itextpdf.text.TabStop;
import com.itextpdf.text.TabStop.Alignment;
import com.itextpdf.text.Utilities;
import com.itextpdf.text.pdf.draw.DrawInterface;
import com.itextpdf.text.pdf.draw.LineSeparator;
import com.i... | 10,114 |
https://github.com/stefLaur62/RogueLite3D/blob/master/Assets/External/Ultimate RPG Items Pack/OBJ/Book3_Closed.obj | Github Open Source | Open Source | CC0-1.0 | 2,021 | RogueLite3D | stefLaur62 | Wavefront Object | Code | 6,608 | 23,748 | # Blender v2.79 (sub 0) OBJ File: 'Book3_Closed.blend'
# www.blender.org
mtllib Book3_Closed.mtl
o Book3_Closed_Cube.049
v -0.154561 -0.394899 0.271377
v -0.154561 0.394899 0.271377
v 0.089733 -0.394899 0.271377
v 0.089733 0.394899 0.271377
v -0.154561 -0.394899 -0.170308
v -0.107380 -0.394899 -0.287144
v -0.146457 -0.... | 7,505 |
https://github.com/CreatioStudio/CreatioBasic/blob/master/src/main/java/vip/creatio/basic/chat/LiteralMessage.java | Github Open Source | Open Source | Apache-2.0 | null | CreatioBasic | CreatioStudio | Java | Code | 35 | 95 | package vip.creatio.basic.chat;
public class LiteralMessage implements Message {
private final String string;
public LiteralMessage(String string) {
this.string = string;
}
public String getString() {
return this.string;
}
public String toString() {
return this.strin... | 33,375 |
https://github.com/java-app-scans/onedev/blob/master/server-core/src/main/java/org/apache/shiro/web/servlet/ShiroHttpServletRequest.java | Github Open Source | Open Source | MIT | 2,022 | onedev | java-app-scans | Java | Code | 895 | 2,406 | /*
* 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 ... | 29,796 |
https://github.com/Vinogradov7511339/GitHubClient/blob/master/GitHub Client/Presentation/Scenes/ExploreFlow/SearchResults/AllResults/ResultsAdapter.swift | Github Open Source | Open Source | MIT | 2,021 | GitHubClient | Vinogradov7511339 | Swift | Code | 323 | 935 | //
// ResultsAdapter.swift
// GitHub Client
//
// Created by Alexander Vinogradov on 23.08.2021.
//
import UIKit
protocol ResultsAdapter: UITableViewDataSource {
func register(_ tableView: UITableView)
func update(_ resultType: SearchResultType)
}
final class ResultsAdapterImpl: NSObject {
private va... | 31,228 |
https://github.com/paullewallencom/android-978-1-7832-8687-4/blob/master/_/AndroidConcurrency/src/main/java/com/packt/androidconcurrency/chapter5/example4/BroadcastReceivingPrimesActivity.java | Github Open Source | Open Source | Apache-2.0 | null | android-978-1-7832-8687-4 | paullewallencom | Java | Code | 248 | 949 | package com.packt.androidconcurrency.chapter5.example4;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import andro... | 9,802 |
https://github.com/Scopetta197/chromium/blob/master/ui/views/view_constants.h | Github Open Source | Open Source | BSD-3-Clause | 2,022 | chromium | Scopetta197 | C | Code | 136 | 280 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_VIEW_CONSTANTS_H_
#define UI_VIEWS_VIEW_CONSTANTS_H_
#pragma once
#include "ui/views/views_export.h"
namespace views {
// Size (wi... | 11,290 |
https://github.com/Jeloo/react-select-tree/blob/master/src/multistep-select/MultistepInput.js | Github Open Source | Open Source | MIT | 2,018 | react-select-tree | Jeloo | JavaScript | Code | 95 | 326 | import React, { Component } from "react";
/**
* @property {Array.<object>} data The data containing strings to find
* @property {String} selected Selected item / list option
*/
export class MultistepInput extends Component {
onSelected(e) {
return this.props.onSelected(e.ta... | 50,708 |
https://github.com/minchuang/td-client-python/blob/master/tdclient/test/job_api_test.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | td-client-python | minchuang | Python | Code | 806 | 3,658 | #!/usr/bin/env python
from __future__ import print_function
from __future__ import unicode_literals
import datetime
import dateutil.tz
import json
try:
from unittest import mock
except ImportError:
import mock
import msgpack
import pytest
from tdclient import api
from tdclient.test.test_helper import *
def ... | 36,247 |
https://github.com/mclintprojects/present-sir/blob/master/PresentSir.Droid/Dialogs/CreateClassDialog.cs | Github Open Source | Open Source | MIT | 2,018 | present-sir | mclintprojects | C# | Code | 158 | 667 | using Alansa.Droid.Utils;
using Alansa.Droid.Views;
using Android.App;
using Android.OS;
using Android.Support.Design.Widget;
using Android.Views;
using Android.Widget;
using PresentSir.Droid.Api;
using PresentSir.Droid.Models;
using System;
using AlertDialog = Android.Support.V7.App.AlertDialog;
using DialogFragment =... | 9,448 |
https://github.com/jolestar/libra/blob/master/language/e2e-tests/src/account.rs | Github Open Source | Open Source | Apache-2.0 | 2,020 | libra | jolestar | Rust | Code | 2,742 | 9,629 | // Copyright (c) The Libra Core Contributors
// SPDX-License-Identifier: Apache-2.0
//! Test infrastructure for modeling Libra accounts.
use crate::{gas_costs, keygen::KeyGen};
use anyhow::{Error, Result};
use libra_crypto::ed25519::*;
use libra_types::{
access_path::AccessPath,
account_address::AccountAddres... | 17,449 |
https://github.com/Mandarin-Medien/MMCmfContentBundle/blob/master/Resources/views/Modal/Form/content_node_edit.html.twig | Github Open Source | Open Source | MIT | null | MMCmfContentBundle | Mandarin-Medien | Twig | Code | 106 | 394 | {% extends "@MMCmfContent/Modal/default_modal.html.twig" %}
{% block modal_content %}
{{ form_start(form, {'attr' : {'onSubmit' : 'submitForm(this);return false;'}}) }}
<div class="modal-header">
{% block modal_header %}
<button type="button" class="close" data-dismiss="modal" aria-label="C... | 19,827 |
https://github.com/gentacle/bigdataprojectR/blob/master/bigdataProject/testR/test1.r | Github Open Source | Open Source | MIT | null | bigdataprojectR | gentacle | R | Code | 56 | 169 | # 초기화
# x <- y
# x -> y
# 실행
# 드래그 + crtl + enter
# 변수var
# test2. 가능
# .test 가능
# .2test 불가
# 2test 불가
# test% 불가
# _test 불가
a <- 1
a+5
x <- c(1,2,3,4,2,1,2,3)
x
v <- c(2,3,5,8,11)
plot(v, type="o")
l <- list("pizza", 3, 119.2) | 32,193 |
https://github.com/jinwoo/bsc-testsuite/blob/master/bsc.bsv_examples/shifter/Example6Q.bsv | Github Open Source | Open Source | BSD-3-Clause | null | bsc-testsuite | jinwoo | Bluespec | Code | 252 | 543 | /*----------------------------------------------------------------------------
Example6 Questions
The functions in this file are list-based versions of those in Example3
(replacing for-loops with list functions).
-----------------------------------------------------------------------------*/
// Need to import the ... | 14,391 |
https://github.com/johnmccawley/openshift-docs/blob/master/admin_guide/sdn_troubleshooting.adoc | Github Open Source | Open Source | Apache-2.0 | null | openshift-docs | johnmccawley | AsciiDoc | Code | 3,891 | 7,576 | [[admin-guide-sdn-troubleshooting]]
= Troubleshooting OpenShift SDN
{product-author}
{product-version}
:data-uri:
:icons:
:experimental:
:toc: macro
:toc-title:
toc::[]
== Overview
As described in the
xref:../architecture/additional_concepts/sdn.adoc#architecture-additional-concepts-sdn[SDN documentation]
there are ... | 11,995 |
https://github.com/concord-consortium/collaborative-learning/blob/master/src/components/document/collapsed-workspace-tab.scss | Github Open Source | Open Source | MIT | 2,020 | collaborative-learning | concord-consortium | SCSS | Code | 104 | 433 | @import "../vars";
.collapsed-workspace-tab {
position: absolute;
top: $header-height;
right: 0;
height: calc(100vh - (#{$header-height} + #{$workspace-content-margin} * 2));
width: 38px;
margin: 4px 4px 0 2px;
padding: 2px;
border-radius: 8px 0 0 0;
box-sizing: border-box;
border-width: 2px;
bor... | 4,262 |
https://github.com/Matthew-Dove/ContainerExpressions/blob/master/src/ContainerExpressions/Containers/Extensions/MaybeTValueExtensions.cs | Github Open Source | Open Source | MIT | null | ContainerExpressions | Matthew-Dove | C# | Code | 2,829 | 6,966 | using System;
using System.Threading.Tasks;
namespace ContainerExpressions.Containers
{
/// <summary>Utility methods for the Maybe<TValue> Container.</summary>
public static class MaybeTValueExtensions
{
#region Miscellaneous
/// <summary>Returns the value of Maybe when the instance is TV... | 29,000 |
https://github.com/foxycom/WatchNextApp/blob/master/app/src/main/java/com/lineargs/watchnext/utils/dbutils/CreditDbUtils.java | Github Open Source | Open Source | MIT | 2,019 | WatchNextApp | foxycom | Java | Code | 238 | 870 | package com.lineargs.watchnext.utils.dbutils;
import android.content.ContentValues;
import com.lineargs.watchnext.data.DataContract;
import com.lineargs.watchnext.utils.retrofit.credits.Cast;
import com.lineargs.watchnext.utils.retrofit.credits.Credits;
import com.lineargs.watchnext.utils.retrofit.credits.Crew;
impo... | 47,833 |
https://github.com/dfraser74/elearning-pwa/blob/master/resources/views/auth/register.blade.php | Github Open Source | Open Source | MIT | 2,017 | elearning-pwa | dfraser74 | Blade | Code | 134 | 500 | @extends('layouts.template')
@section('content')
<div class="container">
<div class="section">
<form class="form-small" role="form" method="POST" action="{{ route('register') }}">
{{ csrf_field() }}
<h4>Register</h4>
<div class="row" style="padding-top:25px">
<div class="input-field... | 18,086 |
https://github.com/tjoen/WebSaver/blob/master/Scr/Input/InputTracker.cs | Github Open Source | Open Source | MIT | 2,013 | WebSaver | tjoen | C# | Code | 317 | 863 | using System;
using System.ComponentModel;
using System.Timers;
namespace Scr.Input
{
// use input activity tracking wrapper
partial class InputTracker : IDisposable
{
public class InputChangedEventArgs : EventArgs
{
public DateTime Initial { get; set; }
public Date... | 38,549 |
https://github.com/ctripcorp/x-pipe/blob/master/redis/redis-keeper/src/main/java/com/ctrip/xpipe/redis/keeper/store/DefaultDumpedRdbStore.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | x-pipe | ctripcorp | Java | Code | 73 | 295 | package com.ctrip.xpipe.redis.keeper.store;
import com.ctrip.xpipe.redis.core.protocal.protocal.EofType;
import com.ctrip.xpipe.redis.core.store.DumpedRdbStore;
import java.io.File;
import java.io.IOException;
/**
* @author wenchao.meng
*
* Aug 26, 2016
*/
public class DefaultDumpedRdbStore extends DefaultRdbSt... | 8,857 |
https://github.com/jkrug/oxid-rest-api/blob/master/app/Http/Controllers/ArticleControllerOxid.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | oxid-rest-api | jkrug | PHP | Code | 107 | 347 | <?php
namespace App\Http\Controllers;
use App\Article;
// OXID classes
use OxidEsales\Eshop\Application\Model\Article as OxidArticle;
use OxidEsales\Eshop\Application\Model\ArticleList as OxidArticleList;
class ArticleControllerOxid extends BaseControllerOxid
{
/**
* Load full OXID article
*
* @... | 47,687 |
https://github.com/rvianello/chemicalite/blob/master/src/mol.hpp | Github Open Source | Open Source | BSD-3-Clause | 2,022 | chemicalite | rvianello | C++ | Code | 90 | 334 | #ifndef CHEMICALITE_MOLECULE_INCLUDED
#define CHEMICALITE_MOLECULE_INCLUDED
#include <string>
namespace RDKit
{
class ROMol;
class RWMol;
} // namespace RDKit
std::string mol_to_binary_mol(const RDKit::ROMol &, int *);
Blob binary_mol_to_blob(const std::string &, int *);
Blob mol_to_blob(const RDKit::ROMol &, int... | 44,055 |
https://github.com/zx-github/KingTV/blob/master/rxjava/src/main/java/com/csizg/rxjava/retrofit/RetrofitManager.java | Github Open Source | Open Source | MIT | 2,020 | KingTV | zx-github | Java | Code | 163 | 621 | package com.csizg.rxjava.retrofit;
import com.csizg.rxjava.Utils.LogUtil;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* Created by Leo on 2018/4/11.
*
* @description:
*/
public class RetrofitMa... | 14,756 |
https://github.com/theDigg/next-peerswap/blob/master/src/components2/MUIDemo/DividerText.tsx | Github Open Source | Open Source | MIT | 2,021 | next-peerswap | theDigg | TSX | Code | 190 | 589 | import * as React from "react";
import { styled } from "@mui/material/styles";
import Divider from "@mui/material/Divider";
import Chip from "@mui/material/Chip";
import MuiGrid from "@mui/material/Grid";
const Root = styled("div")(({ theme }) => ({
width: "100%",
...theme.typography.body2,
"& > :not(style) + :n... | 8,942 |
https://github.com/niazangels/context_attentive_ir/blob/master/neuroir/objects/document.py | Github Open Source | Open Source | MIT | 2,021 | context_attentive_ir | niazangels | Python | Code | 279 | 807 | __author__ = 'wasi'
class Document(object):
"""Document containing annotated text, original text, selection label and
all the extractive spans that can be an answer for the associated question.
"""
def __init__(self, _id=None):
self._id = _id
self._url = None
self._url_tokens ... | 43,447 |
https://github.com/gayoxo/UCMnote/blob/master/src/lector/client/admin/export/admin/ButtonTemplateRep.java | Github Open Source | Open Source | Apache-1.1 | 2,017 | UCMnote | gayoxo | Java | Code | 39 | 152 | package lector.client.admin.export.admin;
import lector.share.model.client.TemplateCategoryClient;
import com.google.gwt.user.client.ui.Button;
public class ButtonTemplateRep extends Button {
private RepresentacionTemplateCategory T;
public ButtonTemplateRep(String name, RepresentacionTemplateCategory t) {
su... | 10,605 |
https://github.com/SolidTeamDev/SolidEngine/blob/master/SolidEngine/Src/Core/taskManager.cpp | Github Open Source | Open Source | MIT | 2,021 | SolidEngine | SolidTeamDev | C++ | Code | 218 | 898 | //
// Created by ryan1 on 09/03/2021.
//
#include <functional>
#include <mutex>
#include "Build/solidAPI.hpp"
#include "Core/task.hpp"
#include "Core/taskManager.hpp"
using namespace Solid;
Solid::TaskManager::TaskManager()
{
taskPool.reserve(50);
}
Task *Solid::TaskManager::getTaskByType(const ETaskType &_s)
{
... | 39,512 |
https://github.com/felixkpt/fool365/blob/master/app/Views/templates/footer.php | Github Open Source | Open Source | MIT | null | fool365 | felixkpt | PHP | Code | 263 | 1,347 | </div>
</div>
<!-- END Main CONTENT-->
<?php require APPPATH."Views/templates/right-nav.php" ?>
</div>
<!--End CONTENT AND RIGHT NAV Row-->
</main>
</div>
<footer id="footer" class="kpt-footer py-5 mt-5 bg-dark">
<div class="modal fade" id="modal1" tabindex="-1" aria-labelledby="mainModalLabel" aria-hidden="tr... | 30,505 |
https://github.com/hexabitzinc/H10R4x-Hardware/blob/master/H10R40/Released/Gerber/copper_bottom.gbr | Github Open Source | Open Source | MIT | 2,019 | H10R4x-Hardware | hexabitzinc | Gerber Image | Code | 8,987 | 96,928 | G04 EAGLE Gerber RS-274X export*
G75*
%MOMM*%
%FSLAX34Y34*%
%LPD*%
%INBottom Copper*%
%IPPOS*%
%AMOC8*
5,1,8,0,0,1.08239X$1,22.5*%
G01*
%ADD10R,1.000000X1.100000*%
%ADD11R,1.500000X1.300000*%
%ADD12C,0.124994*%
%ADD13R,5.699988X5.699988*%
%ADD14R,1.399997X0.400000*%
%ADD15R,1.100000X1.000000*%
%ADD16C,0.499997*%
%ADD17... | 11,963 |
https://github.com/xingxingtx/key_project_manage/blob/master/src/main/java/com/aorise/service/jointguarantee/impl/JointGuaranteeServiceImpl.java | Github Open Source | Open Source | MIT | null | key_project_manage | xingxingtx | Java | Code | 86 | 426 | package com.aorise.service.jointguarantee.impl;
import com.aorise.mapper.jointguarantee.JointGuaranteeMapper;
import com.aorise.model.jointguarantee.JointGuaranteeModel;
import com.aorise.service.jointguarantee.JointGuaranteeService;
import com.aorise.utils.page.Page;
import org.springframework.beans.factory.annotatio... | 38,989 |
https://github.com/plish-plash/gristmill/blob/master/gristmill-2d/src/renderer/mod.rs | Github Open Source | Open Source | MIT | null | gristmill | plish-plash | Rust | Code | 238 | 816 | mod atlas_rect;
use vulkano::command_buffer::SubpassContents;
use gristmill::asset::image::{Image, TileAtlasImage};
use gristmill::renderer::{LoadContext, RenderContext, scene};
use gristmill::geometry2d::*;
use super::{Entity, World};
use atlas_rect::{Texture, TileAtlasTexture, AtlasRectPipeline};
#[derive(Clone)]... | 36,093 |
https://github.com/ttu/kotlin-is-like-csharp/blob/master/code/functions.cs | Github Open Source | Open Source | MIT | 2,022 | kotlin-is-like-csharp | ttu | C# | Code | 24 | 53 | string Greet(string name, string day)
{
return $"Hello {name}, today is {day}.";
}
var text = Greet("Bob", "Tuesday");
// Hello Bob, today is Tuesday | 15,241 |
https://github.com/GongT/elibs/blob/master/projects/tabui/src/components/view.ts | Github Open Source | Open Source | MIT | 2,021 | elibs | GongT | TypeScript | Code | 403 | 1,381 | import { DefineCustomElements, domConvert, DOMEventTrigger, DOMGetSet } from '@gongt/custom-element-helpers';
import { definePublicConstant, Emitter, IDisposable } from '@idlebox/common';
import { ICommunicateObject, IIcon, ISize, ITabBodyConfig } from '../common/type';
export interface IRenderEventData {
root: Shado... | 5,382 |
https://github.com/corbie11/iOS14Headers/blob/master/System/Library/PrivateFrameworks/ChatKit.framework/CKFullScreenBalloonViewControllerPhone.h | Github Open Source | Open Source | MIT | 2,020 | iOS14Headers | corbie11 | Objective-C | Code | 405 | 2,062 | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:12 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias L... | 33,461 |
https://github.com/martonszabolcs/react-native-piano-sampler/blob/master/android/src/main/jni/fluidsynth/src/rvoice/fluid_rev.h | Github Open Source | Open Source | MIT | 2,022 | react-native-piano-sampler | martonszabolcs | C | Code | 281 | 808 | /* FluidSynth - A Software Synthesizer
*
* Copyright (C) 2003 Peter Hanappe and others.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (... | 24,236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.