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/andrey625/query/blob/master/src/Field.php | Github Open Source | Open Source | MIT | 2,017 | query | andrey625 | PHP | Code | 379 | 1,138 | <?php
namespace Vda\Query;
use Vda\Query\Operator\CompositeOperator;
use Vda\Query\Operator\Operator;
/**
* @method Alias as(string $alias) Create an alias for this field
*/
class Field implements IExpression
{
private $type;
private $name;
private $propertyName;
private $scope;
public function... | 11,736 |
https://github.com/ilivewithian/sanity/blob/master/packages/@sanity/default-layout/src/stories/searchFieldMobile.tsx | Github Open Source | Open Source | MIT | 2,021 | sanity | ilivewithian | TSX | Code | 120 | 439 | import React from 'react'
import {action} from 'part:@sanity/storybook/addons/actions'
import {text, boolean, number} from 'part:@sanity/storybook/addons/knobs'
import SearchField from '../navbar/search/SearchField'
import SearchResults from '../navbar/search/SearchResults'
export function SearchFieldMobileStory() {
... | 39,926 |
https://github.com/laigukf/LaiguSDK-iOS/blob/master/Laigu-SDK-Demo/Laigu-SDK-Demo/ViewController.m | Github Open Source | Open Source | MIT | 2,021 | LaiguSDK-iOS | laigukf | Objective-C | Code | 493 | 2,607 | //
// ViewController.m
// Laigu-SDK-Demo
//
// Created by zhangshunxing on 2017/12/18.
// Copyright © 2017年 Laigu. All rights reserved.
//
#import "ViewController.h"
#import "LGChatViewManager.h"
#import "LGChatDeviceUtil.h"
#import "DevelopViewController.h"
#import <LaiGuSDK/LaiguSDK.h>
#import "NSArray+LGFunctio... | 23,453 |
https://github.com/DJC-1984/DJC-1984.github.io/blob/master/widgets/Swipe/setting/nls/lv/strings.js | Github Open Source | Open Source | Apache-2.0 | 2,019 | DJC-1984.github.io | DJC-1984 | JavaScript | Code | 55 | 217 | define({
"styleText": "Izvēlieties pārvilkšanas rīka stilu",
"vertical": "Vertikālā josla",
"horizontal": "Horizontālā josla",
"scope": "Tālskatis",
"barColor": "Joslas krāsa",
"layerText": "Izvēlieties slāni, kas jāpārvelk pēc noklusējuma.",
"spyglassText": "Izvēlieties slāni, kas tiks rādīts tālskatī pē... | 1,076 |
https://github.com/kraushm/hpctools/blob/master/reframechecks/debug/src_cuda/GDB/clist.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | hpctools | kraushm | Python | Code | 36 | 107 | # call with: source ./thisfile.py
# if interactive, uncomment:
#uncomment: python
import re
txt=gdb.execute('info args', to_string=True)
regex = r'\s+clist = std::vector of length (\d+),'
res = re.findall(regex, txt)
gdb.execute('set $clist_len = %s' % res[0])
#uncomment: end
| 14,404 |
https://github.com/v-yahan/Interop-TestSuites/blob/master/ExchangeWebServices/Source/MS-OXWSCONT/Adapter/CaptureCode.cs | Github Open Source | Open Source | MIT | 2,022 | Interop-TestSuites | v-yahan | C# | Code | 8,275 | 26,973 | namespace Microsoft.Protocols.TestSuites.MS_OXWSCONT
{
using System;
using Microsoft.Protocols.TestSuites.Common;
using Microsoft.Protocols.TestTools;
/// <summary>
/// The class provides methods to verify data/operation format in MS-OXWSCONT.
/// </summary>
public partial class MS_OXWS... | 1,791 |
https://github.com/Shada/edit87/blob/master/Interface/Interface/Forms/PanTextures.Designer.cs | Github Open Source | Open Source | MIT | 2,021 | edit87 | Shada | C# | Code | 251 | 1,036 | namespace LevelEditor
{
partial class PanTextures
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <... | 25,984 |
https://github.com/connectomes/cellSketches/blob/master/components/iplChart/iplHistogram.directive.js | Github Open Source | Open Source | MIT | null | cellSketches | connectomes | JavaScript | Code | 636 | 2,394 | (function () {
'use strict';
angular.module('app.iplChartModule')
.directive('iplHistogram', iplHistogram);
iplHistogram.$inject = ['$log', 'visUtils', 'iplChartData'];
function iplHistogram($log, visUtils, iplChartData) {
return {
scope: {
value: '=',
... | 24,573 |
https://github.com/shenqiang-Yuan/mysecondRepo/blob/master/semantic-segmentation/libraries/semantic/fcn.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | mysecondRepo | shenqiang-Yuan | Python | Code | 972 | 3,579 | #!/usr/bin/python3
import os
import random
import datetime
import re
import math
import logging
import multiprocessing
import h5py
import numpy as np
import tensorflow as tf
import keras
import keras.backend as KB
import keras.callbacks as KC
import keras.layers as KL
import keras.engine as KE
import keras.models as K... | 20,790 |
https://github.com/airicyu/fortel-codex/blob/master/main.js | Github Open Source | Open Source | MIT | 2,022 | fortel-codex | airicyu | JavaScript | Code | 9 | 27 | 'use strict';
const codex = require('./src/codex');
module.exports = codex;
| 11,573 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/d/dumfan/telegram/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 49 | 100 | FROM mhart/alpine-node
WORKDIR /app
ADD . .
# If you have native dependencies, you'll need extra tools
# RUN apk add --no-cache make gcc g++ python
# If you need npm, don't use a base tag
RUN npm install --production && npm run build
EXPOSE 3000
CMD ["npm", "start"]
| 17,974 |
https://github.com/kib-ev/laravel-shop/blob/master/app/Http/Controllers/ProductCategoryController.php | Github Open Source | Open Source | MIT | 2,020 | laravel-shop | kib-ev | PHP | Code | 102 | 374 | <?php
namespace App\Http\Controllers;
use App\Models\Meta;
use App\Models\Product;
use App\Models\ProductCategory;
use Illuminate\Http\Request;
class ProductCategoryController extends Controller
{
public function index()
{
//
}
public function create()
{
//
}
public func... | 8,696 |
https://github.com/augustoperes1/samourai-wallet-android/blob/master/app/src/main/java/com/samourai/wallet/whirlpool/newPool/WhirlpoolDialog.java | Github Open Source | Open Source | Unlicense | 2,022 | samourai-wallet-android | augustoperes1 | Java | Code | 150 | 835 | package com.samourai.wallet.whirlpool.newPool;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
import androidx.coordinatorlayout.widget.Coord... | 2,534 |
https://github.com/netrek/netrek-client-mactrek/blob/master/netrek-server-vanilla/ntserv/data.c | Github Open Source | Open Source | ClArtistic | null | netrek-client-mactrek | netrek | C | Code | 2,284 | 7,178 | /* $Id: data.c,v 1.7 2006/05/06 12:06:39 quozl Exp $
*/
#include "copyright.h"
#include "config.h"
#include "defs.h"
#include "struct.h"
#include "data.h"
struct player *players;
struct player *me;
struct torp *torps;
struct context *context;
struct status *status;
struct ship *myship;
struct stats *mystats;
struct ... | 16,161 |
https://github.com/davignola/olcPixelGameEngineManaged/blob/master/Extensions/Managed/Includes.cpp | Github Open Source | Open Source | BSD-3-Clause | 2,020 | olcPixelGameEngineManaged | davignola | C++ | Code | 16 | 62 | #pragma once
#define OLC_PGE_APPLICATION
#include "PixelGameEngineManaged.h"
void Dummy_ExportTemplated()
{
auto vec = gcnew olc::managed::vi2dm(0, 0);
} | 25,388 |
https://github.com/franciscosolla/react-native-firebase/blob/master/packages/analytics/e2e/analytics.e2e.js | Github Open Source | Open Source | Apache-2.0, CC-BY-3.0, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference | 2,020 | react-native-firebase | franciscosolla | JavaScript | Code | 2,245 | 6,573 | /*
* Copyright (c) 2016-present Invertase Limited & Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this library except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 2,523 |
https://github.com/bodasheera/ds-ui-appcenter/blob/master/src/app/dashboard/interactions/node-info/node-info.component.ts | Github Open Source | Open Source | Apache-2.0 | null | ds-ui-appcenter | bodasheera | TypeScript | Code | 847 | 2,593 | import { Component, OnInit, Input } from '@angular/core';
import { FlowData, NodeData } from '../interactions.model';
import { AppService } from 'src/app/service/app.service';
@Component({
selector: 'odp-node-info',
templateUrl: './node-info.component.html',
styleUrls: ['./node-info.component.scss']
})
export cl... | 33,801 |
https://github.com/tony2u/Medusa/blob/master/Medusa/Medusa/Node/Input/Gesture/StrokeGestureRecognizer.h | Github Open Source | Open Source | MIT | 2,022 | Medusa | tony2u | C | Code | 102 | 377 | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#pragma once
#include "Node/Input/Gesture/IGestureRecognizer.h"
#include "Node/Input/Gesture/Stroke/SingleStrokeTemplate.h"
#include "Node/Input/Gesture/Stroke/Single... | 501 |
https://github.com/darthjee/danica/blob/master/spec/support/models/operator/my_operator.rb | Github Open Source | Open Source | MIT | 2,019 | danica | darthjee | Ruby | Code | 22 | 98 | # frozen_string_literal: true
class MyOperator < Danica::Operator
variables :x
def to_f
(x**Danica::PI).to_f
end
def to_tex
"#{x.to_tex}^{\\pi}"
end
def to_gnu
"#{x.to_tex}**(pi)"
end
end
| 22,108 |
https://github.com/curiousTauseef/Weather-App-1/blob/master/backend/app/helpers/index.js | Github Open Source | Open Source | MIT | 2,020 | Weather-App-1 | curiousTauseef | JavaScript | Code | 22 | 52 | const { sleep } = require('./sleep');
const { Ajax } = require('./Ajax');
const helpers = {
sleep,
Ajax
};
module.exports.helpers = helpers;
| 26,422 |
https://github.com/serval-uni-lu/creos.simSG.website/blob/master/src/plugin/action/loadApprox/load-approx-msg.d.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | creos.simSG.website | serval-uni-lu | TypeScript | Code | 24 | 84 | import {Message} from "@/ts/types/ws-message";
import {GridJson} from "@/ts/types/sg-json.types";
type ApproximationType = "naive" | "bs_rule";
interface LoadApproxMsg extends Message {
grid: GridJson;
approximationType?: ApproximationType;
}
| 28,929 |
https://github.com/yoya/x.org/blob/master/X11R6/contrib/lib/auis-6.3/ams/msclients/vui/keycodes.h | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-public-domain | 2,023 | x.org | yoya | C | Code | 411 | 1,117 | /* ********************************************************************** *\
* Copyright IBM Corporation 1988,1991 - All Rights Reserved *
* For full copyright information see:'andrew/config/COPYRITE' *
\* ********************************************************************** */
/*
$Disclaim... | 34,654 |
https://github.com/tails5555/Our_Title_Academy_2018_Web/blob/master/src/reducer/reducer_user.js | Github Open Source | Open Source | MIT | 2,018 | Our_Title_Academy_2018_Web | tails5555 | JavaScript | Code | 597 | 1,599 | import {
USER_FETCH_MY_SIGN_INFO, USER_FETCH_MY_SIGN_INFO_SUCCESS, USER_FETCH_MY_SIGN_INFO_FAILURE, RESET_USER_FETCH_MY_SIGN_INFO,
USER_UPDATE_MY_SIGN_INFO, USER_UPDATE_MY_SIGN_INFO_SUCCESS, USER_UPDATE_MY_SIGN_INFO_FAILURE, RESET_USER_UPDATE_MY_SIGN_INFO
} from "../action/type/type_user";
import {
USER_LO... | 39,390 |
https://github.com/JAN358/gatsby-test/blob/master/public/path----557518bd178906f8d58a.js | Github Open Source | Open Source | MIT | null | gatsby-test | JAN358 | JavaScript | Code | 3 | 59 | webpackJsonp([60335399758886],{988:function(o,t){o.exports={layoutContext:{}}}});
//# sourceMappingURL=path----557518bd178906f8d58a.js.map | 31,112 |
https://github.com/localparty/Inletclient/blob/master/Inletclient/Classes/brand profile 2018-12-19/SupportEmail.swift | Github Open Source | Open Source | MIT | null | Inletclient | localparty | Swift | Code | 68 | 200 | //
// SupportEmail.swift
// Model Generated using http://www.jsoncafe.com/
// Created on December 19, 2018
import Foundation
struct SupportEmail : Codable {
let supportEmailName : String?
let supportEmailValue : String?
enum CodingKeys: String, CodingKey {
case supportEma... | 37,378 |
https://github.com/Mr-Leonerrr/Leonies/blob/master/commands/Fun/say.js | Github Open Source | Open Source | MIT | 2,021 | Leonies | Mr-Leonerrr | JavaScript | Code | 54 | 170 | const { Util, Message } = require("discord.js");
module.exports = {
name: "say",
description: "I will repeat what you say.",
usage: "<your message>",
group: "Fun",
memberName: "Say",
clientPerms: ["MANAGE_MESSAGES"],
args: true,
guildOnly: true,
cooldown: 5,
/**
* @param {Message} message
* @... | 8,118 |
https://github.com/curiousdannii/parchment/blob/master/.gitignore | Github Open Source | Open Source | MIT, GPL-2.0-only, BSD-2-Clause, Glulxe, GPL-3.0-only | 2,023 | parchment | curiousdannii | Ignore List | Code | 8 | 39 | dist
node_modules
package-lock.json
tests/ifsitegen.py
tests/Release
/*.js
/*.ulx
/*.z5 | 13,862 |
https://github.com/xebialabs-community/xld-ucp-plugin/blob/master/settings.gradle | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,019 | xld-ucp-plugin | xebialabs-community | Gradle | Code | 3 | 15 | rootProject.name = 'xld-ucp-plugin' | 32,751 |
https://github.com/panchalneel/DisponioAPI/blob/master/libs/logger.js | Github Open Source | Open Source | MIT | null | DisponioAPI | panchalneel | JavaScript | Code | 61 | 323 | 'use strict';
const LEVEL_TRACE='trace';
const LEVEL_DEBUG='debug';
const LEVEL_INFO='info';
const LEVEL_WARN='warn';
const LEVEL_ERROR='error';
module.exports= class Logger {
log(message){
doLog(LEVEL_INFO,message);
}
trace(message){
doLog(LEVEL_TRACE,message);
}
debug(message){
doLog(LEVEL_DEBUG,message);... | 34,729 |
https://github.com/ButteryCrumpet/reiterator/blob/master/tests/Iterators/MapTest.php | Github Open Source | Open Source | MIT | null | reiterator | ButteryCrumpet | PHP | Code | 67 | 203 | <?php
/**
* Created by PhpStorm.
* User: apple
* Date: 2019-02-08
* Time: 13:53
*/
use ReIterator\Iterators\Map;
use PHPUnit\Framework\TestCase;
class MapTest extends TestCase
{
public function test__construct()
{
$this->assertInstanceOf(
Map::class,
new Map(new ArrayIter... | 6,497 |
https://github.com/lixcoder/ExposeInventory/blob/master/app/models/Category.php | Github Open Source | Open Source | MIT | null | ExposeInventory | lixcoder | PHP | Code | 25 | 72 | <?php
class Category extends Eloquent{
//Define database table to associate with model
protected $table='categories';
/**
*DEFINE RELATIONSHIPS
*
*/
public function assets(){
$this->hasMany('asset');
}
} | 36,894 |
https://github.com/andreypopp/markstruct/blob/master/example/Makefile | Github Open Source | Open Source | MIT | 2,013 | markstruct | andreypopp | Makefile | Code | 129 | 451 | all: ./build ./build/index.html ./build/assets ./build/assets/bundle.compressed.js
publish: clean all
(cd ./build; git init; \
git add .; \
git commit -m 'init'; \
git push -f git@github.com:andreypopp/markstruct.git master:gh-pages)
clean:
rm -rf ./build
./build:
mkdir -p build
./build/assets:
mkdir -p b... | 26,530 |
https://github.com/korzhevdp/imp/blob/master/application/views/shared/shared_js_css.php | Github Open Source | Open Source | MIT | null | imp | korzhevdp | PHP | Code | 48 | 370 | <meta name='yandex-verification' content='74872298f6a53977'>
<meta name="keywords" content="<?=$keywords;?>">
<!-- API 2.0 -->
<script type="text/javascript" src="<?=$this->config->item('api');?>/jscript/jquery.js"></script>
<script src="http://api-maps.yandex.ru/2.0/?coordorder=longlat&load=package.full&lang=<... | 5,640 |
https://github.com/facebook/hhvm/blob/master/hphp/hack/src/utils/signed_source.mli | Github Open Source | Open Source | MIT, PHP-3.01, Zend-2.0 | 2,023 | hhvm | facebook | OCaml | Code | 159 | 260 | (*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** The signing token, which you must embed in the file you wish to sign.
Generally, you should put this in a header comment. *)
val ... | 44,099 |
https://github.com/zhangylz/BugFree/blob/master/protected/service/TestOptionService.php | Github Open Source | Open Source | BSD-2-Clause | 2,022 | BugFree | zhangylz | PHP | Code | 179 | 672 | <?php
/*
* BugFree is free software under the terms of the FreeBSD License.
* @link http://www.bugfree.org.cn
* @package BugFree
*/
/**
* Description of TestOptionService
*
* @author youzhao.zxw<swustnjtu@gmail.com>
* @version 3.0
*/
class TestOptionService
{
public static function editOpt... | 21,646 |
https://github.com/yanghongkjxy/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/map/QueryCache.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | hazelcast | yanghongkjxy | Java | Code | 860 | 1,926 | /*
* Copyright (c) 2008-2019, Hazelcast, Inc. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 21,174 |
https://github.com/dave-read/vdc/blob/master/docs/extend/integration-testing.adoc | Github Open Source | Open Source | MIT | 2,019 | vdc | dave-read | AsciiDoc | Code | 1,279 | 2,896 | = Integration testing
The toolkit includes an integration testing feature that allows you to test your deployments against simulated HTTP responses from the Azure platform. This enables you to quickly verify that your deployment templates and parameter files work as expected.
This integration testing feature is built... | 34,239 |
https://github.com/tomMoral/braindecode/blob/master/braindecode/training/__init__.py | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,021 | braindecode | tomMoral | Python | Code | 16 | 65 | """
Functionality for skorch-based training.
"""
from .losses import CroppedLoss
from .scoring import (CroppedTrialEpochScoring, PostEpochTrainScoring,
trial_preds_from_window_preds,) | 45,378 |
https://github.com/daniloaspk/biocharScience/blob/master/pages/projetos/home.py | Github Open Source | Open Source | MIT | null | biocharScience | daniloaspk | Python | Code | 218 | 512 | import streamlit as st
import pages.projetos.projeto01 as PageProjetos01
import pages.projetos.projeto02 as PageProjetos02
import pages.projetos.papers as papers
import pages.projetos.sprints as sprints
def home():
text01 = "<h1 style='text-align: center; line-height: 1.15'> Potencial de uso de biocarvões como co... | 3,651 |
https://github.com/chimerast/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/resource/AbstractResource.java | Github Open Source | Open Source | Apache-2.0 | null | wicket | chimerast | Java | Code | 2,104 | 5,747 | /*
* 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 ... | 17,444 |
https://github.com/ChilliCream/hotchocolate-examples/blob/master/workshop/src/Client/Blazor/Components/Auth/SignUpForm.razor | Github Open Source | Open Source | MIT | 2,023 | hotchocolate-examples | ChilliCream | HTML+Razor | Code | 113 | 450 | <div class="dialog">
<header>
<h1>Sign Up</h1>
<p>Please fill in this form to create an account!</p>
</header>
<EditForm Model="@_model" OnValidSubmit="OnValidSubmit">
<DataAnnotationsValidator />
<ValidationSummary />
<label>
<InputText
type="text"
placeholder="Name"
... | 3,600 |
https://github.com/luoyefeiwu/learn_springcloudalibab/blob/master/jerry-spring-cloud-alibaba-nacos-consumer-feign/src/main/java/com/jerry/service/EchoServiceFallback.java | Github Open Source | Open Source | Apache-2.0 | null | learn_springcloudalibab | luoyefeiwu | Java | Code | 22 | 67 | package com.jerry.service;
import org.springframework.stereotype.Component;
@Component
public class EchoServiceFallback implements EchoService {
@Override
public String echo(String message) {
return "echo fallback";
}
}
| 49,201 |
https://github.com/tetched/tetalert/blob/master/packages/client/src/pages/Settings/components/NotificationsSettings/components/Webhooks/Webhooks.tsx | Github Open Source | Open Source | Apache-2.0 | 2,022 | tetalert | tetched | TypeScript | Code | 153 | 490 | import React from 'react'
import SVG from 'react-inlinesvg'
import _clone from 'lodash/clone'
import { Divider, Input, Button } from 'ui'
import * as S from './styled'
type Props = {
data: string[]
onChange: (data: string[]) => void
}
const Webhooks = ({ data, onChange }: Props) => {
const handleInputChange =... | 42,221 |
https://github.com/doldecomp/pikmin/blob/master/asm/plugPikiYamashita/TAImar.s | Github Open Source | Open Source | Unlicense | 2,021 | pikmin | doldecomp | GAS | Code | 20,000 | 49,381 | .include "macros.inc" .section .text, "ax" # 0x80005560 - 0x80221F60 .global __ct__16TAImarSoundTableFv __ct__16TAImarSoundTableFv: /* 801A5774 001A26D4 7C 08 02 A6 */ mflr r0 /* 801A5778 001A26D8 38 80 00 06 */ li r4, 6 /* 801A577C 001A26DC 90 01 00 04 */ stw r0, 4(r1) /* 801A5780 001A26E0 94 21 FF E0 */ stwu r1, -0x2... | 4,648 |
https://github.com/geosmart/flinkx/blob/master/flinkx-connectors/flinkx-connector-sqlservercdc/src/main/java/com/dtstack/flinkx/connector/sqlservercdc/inputFormat/SqlServerCdcInputFormatBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | flinkx | geosmart | Java | Code | 513 | 2,165 | /*
* 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 ... | 3,981 |
https://github.com/wellengineered-us/ninnel/blob/master/src/WellEngineered.Ninnel.Configuration/HostConfiguration.async.cs | Github Open Source | Open Source | MIT | null | ninnel | wellengineered-us | C# | Code | 378 | 1,325 | /*
Copyright ©2020-2022 WellEngineered.us, all rights reserved.
Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
#if ASYNC_ALL_THE_WAY_DOWN
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tas... | 37,967 |
https://github.com/miguelwdmachado/docker/blob/master/app/Http/Requests/UpdateCreateCorredoresRequest.php | Github Open Source | Open Source | MIT | null | docker | miguelwdmachado | PHP | Code | 101 | 274 | <?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateCreateCorredoresRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/*... | 11,233 |
https://github.com/xfreshx/coreroller/blob/master/backend/vendor/src/github.com/mgutz/minimist/tasks/Godofile.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | coreroller | xfreshx | Go | Code | 30 | 89 | package main
import . "github.com/mgutz/godo/v1"
// Tasks is the entry point for Godo.
func Tasks(p *Project) {
p.Task("test", W{"*.go"}, func() {
Run("go test")
})
}
func main() {
Godo(Tasks)
}
| 50,874 |
https://github.com/Commantary/Conqueror-s-bot/blob/master/module/arriverdeparts.js | Github Open Source | Open Source | MIT | null | Conqueror-s-bot | Commantary | JavaScript | Code | 133 | 385 | /*
*
* @para {Client} client - The discord.js client.
*
*/
const request = require('request')
module.exports = function (client) {
// LES VARIABLES
// QUAND UN MEMBRE REJOINT LE SERVEUR
client.on('guildMemberAdd', member => {
var channelId = member.guild.channels.find("name", "nouveaux-seigneurs");
... | 17,988 |
https://github.com/biz2013/xwjy/blob/master/coinExchange/trading/views/models/userexternalwalletaddrinfo.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | xwjy | biz2013 | Python | Code | 24 | 71 | class UserExternalWalletAddressInfo(object):
def __init__(self, id, userId, alias, address, crypto):
self.id = id
self.userid = userId
self.alias = alias
self.address = address
self.crypto = crypto
| 13,169 |
https://github.com/fm-reda/twitter-project-server/blob/master/app/Twitter.php | Github Open Source | Open Source | MIT | 2,020 | twitter-project-server | fm-reda | PHP | Code | 29 | 93 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Twitter extends Model
{
protected $table = 'twitters';
protected $fillable = ['twitterID', 'name', 'text', 'avatar'];
public function user()
{
return $this->belongsTo('App\User');
}
}
| 8,596 |
https://github.com/BlockChain-UROP/Analyzing-Smart-Contract-Interactions-and-Contract-Level-State-Consensus/blob/master/contracts/ICustodian.sol | Github Open Source | Open Source | MIT | 2,021 | Analyzing-Smart-Contract-Interactions-and-Contract-Level-State-Consensus | BlockChain-UROP | Solidity | Code | 103 | 264 | pragma solidity ^0.4.24;
contract ICustodian {
uint8 public THRESHOLD_OF_PARTICIPANTS;
uint256 public numOfTotalVoterClients;
bytes32 public newly_opened_seq;
bytes32 public last_finalized_seq;
mapping (bytes32 => uint256) public votesCountOnCamp; // Total number of votes
... | 9,136 |
https://github.com/stwind/umbrella/blob/master/packages/bench/src/index.ts | Github Open Source | Open Source | Apache-2.0 | null | umbrella | stwind | TypeScript | Code | 275 | 510 | export type TimingResult<T> = [T, number];
/**
* Calls function `fn` without args, prints elapsed time and returns
* fn's result. The optional `prefix` will be displayed with the output,
* allowing to label different measurements.
*
* @param fn
* @param prefix
*/
export const timed = <T>(fn: () => T, prefix = "... | 22,407 |
https://github.com/PhilipPurwoko/PHP-GamePenjumlahan/blob/master/index.php | Github Open Source | Open Source | MIT | 2,021 | PHP-GamePenjumlahan | PhilipPurwoko | PHP | Code | 162 | 891 | <?php
require_once('create.php');
if (isset($_POST['submit'])) {
setcookie("name", $_POST['name'], time() + 3 * 30 * 24 * 3600, "/");
setcookie("email", $_POST['email'], time() + 3 * 30 * 24 * 3600, "/");
header("Location:index.php");
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<scrip... | 3,218 |
https://github.com/madisonbikes/cyclists_of_msn/blob/master/src/main/kotlin/org/madisonbikes/cyclistsofmsn/common/CommonConfiguration.kt | Github Open Source | Open Source | Apache-2.0 | 2,020 | cyclists_of_msn | madisonbikes | Kotlin | Code | 54 | 102 | /*
* Copyright (c) 2020 Madison Bikes, Inc.
*/
package org.madisonbikes.cyclistsofmsn.common
/**
* Common configuration attributes that may be used by multiple tasks.
*/
interface CommonConfiguration {
/** dry run mode should limit filesystem and network? calls */
val dryRun: Boolean
/** prepend a r... | 3,388 |
https://github.com/LiamBirt/dpc-app/blob/master/dpc-go/dpc-api/src/main.go | Github Open Source | Open Source | CC0-1.0 | 2,021 | dpc-app | LiamBirt | Go | Code | 91 | 459 | package main
import (
"context"
"fmt"
"net/http"
"github.com/CMSgov/dpc/api/client"
"github.com/CMSgov/dpc/api/conf"
"github.com/CMSgov/dpc/api/logger"
"github.com/CMSgov/dpc/api/router"
v2 "github.com/CMSgov/dpc/api/v2"
"go.uber.org/zap"
)
func main() {
conf.NewConfig()
ctx := context.Background()
defer... | 22,974 |
https://github.com/The-Compiler/pytest-bdd/blob/master/tests/feature/test_scenarios.py | Github Open Source | Open Source | MIT | 2,016 | pytest-bdd | The-Compiler | Python | Code | 152 | 636 | """Test scenarios shortcut."""
import textwrap
def test_scenarios(testdir):
"""Test scenarios shortcut."""
testdir.makeconftest("""
import pytest
from pytest_bdd import given
@given('I have a bar')
def i_have_bar():
print('bar!')
return 'bar'
""")
... | 3,967 |
https://github.com/FiveTimesTheFun/buildtools/blob/master/src/Microsoft.Cci.Extensions/Internal/DisposeAction.cs | Github Open Source | Open Source | MIT | 2,020 | buildtools | FiveTimesTheFun | C# | Code | 70 | 143 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace System
{
// Helper that could be part of the BCL
internal class DisposeAction : IDisposable
{
private Action _action;
public Disp... | 32,052 |
https://github.com/YannickBochatay/react-toolbox/blob/master/lib/Clock/descript.js | Github Open Source | Open Source | MIT | 2,017 | react-toolbox | YannickBochatay | JavaScript | Code | 108 | 323 | "use strict";
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
var _ = require("./");
var _2 = _interopRequireDefault(_);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = {
categ: "UI components",
description: "Affic... | 33,478 |
https://github.com/linearregression/jwt-erl/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,014 | jwt-erl | linearregression | Makefile | Code | 8 | 20 | PROJECT = jwt
DEPS = jsx
include erlang.mk
| 9,186 |
https://github.com/simonw/sqlite-utils/blob/master/tests/test_analyze.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | sqlite-utils | simonw | Python | Code | 125 | 701 | import pytest
@pytest.fixture
def db(fresh_db):
fresh_db["one_index"].insert({"id": 1, "name": "Cleo"}, pk="id")
fresh_db["one_index"].create_index(["name"])
fresh_db["two_indexes"].insert({"id": 1, "name": "Cleo", "species": "dog"}, pk="id")
fresh_db["two_indexes"].create_index(["name"])
fresh_db... | 50,930 |
https://github.com/roboconf/roboconf-platform/blob/master/core/roboconf-core/src/test/java/net/roboconf/core/dsl/ParsingModelIoTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | roboconf-platform | roboconf | Java | Code | 730 | 2,167 | /**
* Copyright 2014-2017 Linagora, Université Joseph Fourier, Floralis
*
* The present code is developed in the scope of the joint LINAGORA -
* Université Joseph Fourier - Floralis research program and is designated
* as a "Result" pursuant to the terms and conditions of the LINAGORA
* - Université Joseph Fourie... | 30,911 |
https://github.com/peyoo/iVersion/blob/master/Examples/iPhone Demo/Classes/iVersionViewController.m | Github Open Source | Open Source | Zlib | 2,015 | iVersion | peyoo | Objective-C | Code | 34 | 110 | //
// iVersionViewController.m
// iVersion
//
// Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design. All rights reserved.
//
#import "iVersionViewController.h"
@implementation iVersionViewController
- (BOOL)shouldAutorotateToInterfaceOrientation:(__unused UIInterfaceOrientation)toInterface... | 8,235 |
https://github.com/universalvr/universalvr.org/blob/master/pages/guidelines/visual.js | Github Open Source | Open Source | Apache-2.0 | null | universalvr.org | universalvr | JavaScript | Code | 400 | 784 | import BackTo from '../../components/back-to'
import Container from '../../components/container'
import GuidelinesList from '../../components/guideline-list'
import H1 from '../../components/typography/h1'
import Head from 'next/head'
import Link from 'next/link'
import P from '../../components/typography/p'
import Rea... | 18,368 |
https://github.com/rbsheth/cppcodec/blob/master/test/benchmark_cppcodec.cpp | Github Open Source | Open Source | MIT | 2,022 | cppcodec | rbsheth | C++ | Code | 652 | 2,008 | /**
* Copyright (C) 2018 Jakob Petsovits
* 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
* rights t... | 8,422 |
https://github.com/FlorianLudwig/home-assistant/blob/master/homeassistant/components/google_travel_time/sensor.py | Github Open Source | Open Source | Apache-2.0 | 2,017 | home-assistant | FlorianLudwig | Python | Code | 827 | 3,018 | """
Support for Google travel time sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.google_travel_time/
"""
import logging
from datetime import datetime
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.... | 23,626 |
https://github.com/VN-Jobs/pureview/blob/master/resources/assets/vue/components/upload-image.vue | Github Open Source | Open Source | MIT | null | pureview | VN-Jobs | Vue | Code | 316 | 1,198 | <template>
<div id="dropzone" class="dropzone"></div>
</template>
<script>
var axios = require('axios');
var Dropzone = require("dropzone");
Dropzone.autoDiscover = false;
var route = window.router || window.laroute || window.laroute;
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
... | 5,732 |
https://github.com/HatTrickLabs/dbExpression/blob/master/src/HatTrick.DbEx.Sql/Converter/DelegateValueConverter{T}.cs | Github Open Source | Open Source | Apache-2.0 | null | dbExpression | HatTrickLabs | C# | Code | 202 | 490 | #region license
// Copyright (c) HatTrick Labs, LLC. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | 20,400 |
https://github.com/Franklin89/OTA-Library/blob/master/src/OTA-Library/TravelerInfoSummaryTypePriceRequestInformationDiscountPricing.cs | Github Open Source | Open Source | MIT | 2,018 | OTA-Library | Franklin89 | C# | Code | 167 | 793 | using System.Collections.Generic;
namespace MLSoftware.OTA
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serializat... | 7,988 |
https://github.com/erikmuttersbach/ZeusJSON/blob/master/ZeusJSON/ZeusJSON.h | Github Open Source | Open Source | MIT | 2,017 | ZeusJSON | erikmuttersbach | C | Code | 35 | 106 | //
// ZeusJSON.h
// ZeusJSON
//
// Created by Erik Muttersbach on 14/03/14.
// Copyright (c) 2014 Pablo Guide UG. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZeusJSON : NSObject
+ (NSObject*) deserializeJSONToObject:(NSData*)data withClass:(Class)klass;
@end
| 16,789 |
https://github.com/Silver-IT/chipshop-contracts/blob/master/contracts/NSAG.sol | Github Open Source | Open Source | MIT | 2,022 | chipshop-contracts | Silver-IT | Solidity | Code | 27 | 145 | //SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "./utils/TokenWithdrawable.sol";
contract FaraCrystal is ERC20, ERC20Burnable, TokenWithdrawable {
constructor() ERC20("... | 2,234 |
https://github.com/fel88/AutoUI/blob/master/AutoUI/XmlParseAttribute.cs | Github Open Source | Open Source | MIT | null | AutoUI | fel88 | C# | Code | 20 | 44 | using System;
namespace AutoUI
{
public class XmlParseAttribute : Attribute
{
public string XmlKey { get; set; }
}
}
| 2,056 |
https://github.com/DevopsChina/conf/blob/master/out-tsc/src/redux/actions/subscribe.js | Github Open Source | Open Source | MIT | null | conf | DevopsChina | JavaScript | Code | 124 | 379 | import { SET_DIALOG_DATA, SUBSCRIBE } from '../constants';
import { db } from '../db';
import { store } from '../store';
import { helperActions } from './helper';
import { toastActions } from './toast';
export const subscribeActions = {
subscribe: (data) => (dispatch) => {
const id = data.email.replace(/[^\... | 28,489 |
https://github.com/parinisantiago/buffetInfo-CodeIgniter/blob/master/final/application/views/MainNavTemplate.twig | Github Open Source | Open Source | MIT | null | buffetInfo-CodeIgniter | parinisantiago | Twig | Code | 52 | 241 | <ul class="navbar" id="navbar">
<li class="loginNavbar">
<form class="login" id="login" method="post" action="/LoginController"
name="login">
<label class="loginInputText" for="user">Nombre de usuario:</label>
<input type="text" id="user" name="use... | 40,159 |
https://github.com/Joblyn/team-344-group-a/blob/master/work-cradle/src/Components/pages/Dashboard/My-bids.js | Github Open Source | Open Source | MIT | null | team-344-group-a | Joblyn | JavaScript | Code | 410 | 1,758 | import React, { Component } from 'react';
class MyBids extends Component {
render() {
return (
<>
<div className="dashboard-headline">
<h3>My Active Bids</h3>
{/* <!-- Breadcrumbs --> */}
<nav id="breadcrumbs" className="dark">
<ul>
<li><a h... | 42,508 |
https://github.com/cadmium-org/cadmium-cms/blob/master/www/engine/System/Languages/uk-UA/Phrases/Site.php | Github Open Source | Open Source | MIT | 2,017 | cadmium-cms | cadmium-org | PHP | Code | 88 | 472 | <?php
/**
* @package Cadmium\System\Languages\uk-UA
* @author Dariia Romanova
* @copyright Copyright (c) 2015-2017, Dariia Romanova
* @link http://cadmium-cms.com
*/
return [
# Titles
'TITLE_PROFILE_AUTH_LOGIN' => 'Вхід',
'TITLE_PROFILE_AUTH_RESET' => 'Відновлення пароля',
... | 6,385 |
https://github.com/SankarNiit/aws-codepipeline-codebuild-with-postman/blob/master/node_modules/uvm/firmware/sandbox-base.js | Github Open Source | Open Source | MIT-0 | 2,022 | aws-codepipeline-codebuild-with-postman | SankarNiit | JavaScript | Code | 32 | 104 | module.exports = `
(function (self) {
var init = function (e) {
self.removeEventListener('message', init);
// eslint-disable-next-line no-eval
(e && e.data && (typeof e.data.__init_uvm === 'string')) && eval(e.data.__init_uvm);
};
self.addEventListener('message', init);
}(self));
`;
| 22,454 |
https://github.com/cutesthypnotist/HakanaiShaderCommonsExamples/blob/master/Assets/Shaders/Magic Die V4/Magic Die V4.shader | Github Open Source | Open Source | MIT | null | HakanaiShaderCommonsExamples | cutesthypnotist | GLSL | Code | 235 | 828 | Shader "Hakanai/Magic Die V4"
{
Properties
{
_MainTex ("Albedo Map", 2D) = "white" {}
[HDR]
_Color ("Albedo Tint", Color) = (1.0, 1.0, 1.0, 1.0)
[Space(20)]
_NormalMap ("Normal Map", 2D) = "bump" {}
[Space(20)]
_MetallicTex ("Metallic/Smoothness Map", 2D... | 47,187 |
https://github.com/unite-deals/Vedio-Depth-Estimation/blob/master/part_4_depth_video/pairwise_structure.m | Github Open Source | Open Source | MIT | 2,020 | Vedio-Depth-Estimation | unite-deals | MATLAB | Code | 309 | 968 | %% This file is to generate pairwise
function pairwise = pairwise_structure(img1,Ws,epsilon)
disp('------compute pairwise-------');
H = size(img1,1); % image width
W = size(img1,2); % image Height
N = W * H; % number of pixels
pairwise_x = [];
pairwise_y = [];
lambda = [];
% compute distance
for row = 0:H-1
for col ... | 9,356 |
https://github.com/FoxMinecraft/Paradox/blob/master/src/main/java/com/loohp/limbo/events/Event.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | Paradox | FoxMinecraft | Java | Code | 8 | 24 | package com.loohp.limbo.events;
public abstract class Event {
}
| 15,772 |
https://github.com/lajennylove/sessions/blob/master/app/Http/Controllers/PageController.php | Github Open Source | Open Source | MIT | 2,019 | sessions | lajennylove | PHP | Code | 866 | 3,364 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use App\User;
use App\Band;
use App\Vote;
use App\State;
use App\Profile;
class PageController extends Controller
{
public function login()
{
$states = Sta... | 31,188 |
https://github.com/younessaitali/Color_game/blob/master/Assets/level 3/Scripts/button.cs | Github Open Source | Open Source | MIT | 2,021 | Color_game | younessaitali | C# | Code | 88 | 425 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class button : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void clickCheck()
{
if (FindObjectOfType<manage>().currentTi... | 21,673 |
https://github.com/DeVitoC/Labs25-Ecosoap-TeamA-IOS/blob/master/EcoSoapBankTests/ProfileTests.swift | Github Open Source | Open Source | MIT | 2,021 | Labs25-Ecosoap-TeamA-IOS | DeVitoC | Swift | Code | 660 | 2,370 | //
// ProfileTests.swift
// EcoSoapBankTests
//
// Created by Jon Bash on 2020-09-04.
// Copyright © 2020 Spencer Curtis. All rights reserved.
//
// swiftlint:disable weak_delegate
// ^^ Disabled because a strong reference is required to keep a reference to it
import XCTest
@testable import EcoSoapBank
import Keyc... | 22,874 |
https://github.com/desiby/generator-jvm/blob/master/generators/app/templates/java-wildfly-swarm/src/main/java/daggerok/rest/MessageResource.java | Github Open Source | Open Source | MIT | 2,021 | generator-jvm | desiby | Java | Code | 58 | 260 | package daggerok.rest;
import daggerok.events.DomainEvent;
import daggerok.events.MessageCreated;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import java.util.UUID;
import static java.lang.String.format;
import static javax.w... | 40,841 |
https://github.com/TwoSails/WeatherDashboard/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | WeatherDashboard | TwoSails | Ignore List | Code | 6 | 21 | /weatherapp/util/config.yml
# Project exclude paths
/venv/ | 48,662 |
https://github.com/harshp8l/deep-learning-lang-detection/blob/master/data/train/python/5447939837efadfb14b4143d8edfc5abdc001ab4test_0530_repository_admin_feature.py | Github Open Source | Open Source | MIT | 2,021 | deep-learning-lang-detection | harshp8l | Python | Code | 921 | 2,861 | import logging
from tool_shed.base.twilltestcase import common, ShedTwillTestCase
log = logging.getLogger( __name__ )
repository_name = 'filtering_0530'
repository_description = 'Filtering repository for test 0530'
repository_long_description = 'This is the filtering repository for test 0530.'
category_name = 'Test ... | 45,048 |
https://github.com/fakufaku/timeseries-api/blob/master/clients/python_viewer/api_access.py | Github Open Source | Open Source | MIT | 2,019 | timeseries-api | fakufaku | Python | Code | 270 | 827 |
import argparse
import requests
URL_API = 'https://data.robinscheibler.org/api'
'''
TODO
----
API:
Add endpoints:
/series/<series_id>/fields -> return all fields
/series/<series_id>/count -> return the count
Update endpoint
/series/<series_id> so that it deletes all the datapoints ... | 1,077 |
https://github.com/ethanjli/octopi-driver-board/blob/master/ODSv1.0.0-BP-Jmp/IO Expander.sch | Github Open Source | Open Source | Apache-2.0 | 2,022 | octopi-driver-board | ethanjli | Eagle | Code | 5,680 | 14,615 | EESchema Schematic File Version 4
EELAYER 30 0
EELAYER END
$Descr USLetter 11000 8500
encoding utf-8
Sheet 9 9
Title "Breakout Plane for Jumper Wires"
Date "2021-03-11"
Rev "v0.2.0"
Comp "Prakash Lab/Octopi Team"
Comment1 "Designer: Ethan Li"
Comment2 "License: SHL-2.1"
Comment3 ""
Comment4 "Octopi Driver Stack v1.0.0:... | 25,902 |
https://github.com/doorisopen/ga/blob/master/back/src/main/java/com/gagi/market/core/domain/dto/PageInfo.java | Github Open Source | Open Source | MIT | 2,021 | ga | doorisopen | Java | Code | 103 | 312 | package com.gagi.market.core.domain.dto;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;
import java.io.Serializable;
@Getter
@Setter
public class PageInfo implements Serializable {
private static final long serialVersionUID =... | 23,930 |
https://github.com/ccbrantley/Formal-Logic-Aiding-Tutor/blob/master/src/main/java/com/flat/view/main/panes/center/children/algorithmvisualselection/children/buttons/truthtree/TruthTreeButton.java | Github Open Source | Open Source | MIT | 2,021 | Formal-Logic-Aiding-Tutor | ccbrantley | Java | Code | 63 | 362 | package com.flat.view.main.panes.center.children.algorithmvisualselection.children.buttons.truthtree;
import com.flat.controller.Controller;
import com.flat.models.data.miscellaneous.ButtonsLabels;
import com.flat.view.main.panes.center.children.algorithmvisualselection.children.buttons.truthtree.events.TruthTreeButto... | 38,595 |
https://github.com/VITObelgium/cpp-infra/blob/master/include/infra/size.h | Github Open Source | Open Source | MIT | 2,022 | cpp-infra | VITObelgium | C | Code | 118 | 318 | #pragma once
#include <cinttypes>
#include <fmt/core.h>
#include <limits>
namespace inf {
struct Size
{
constexpr Size() = default;
constexpr Size(int32_t width_, int32_t height_) noexcept
: width(width_), height(height_)
{
}
constexpr bool operator==(const Size& other) const
{
r... | 43,587 |
https://github.com/STEllAR-GROUP/hpx/blob/master/libs/core/datastructures/tests/unit/bitset_test.hpp | Github Open Source | Open Source | BSL-1.0, LicenseRef-scancode-free-unknown | 2,023 | hpx | STEllAR-GROUP | C++ | Code | 4,871 | 14,728 | // Copyright (c) 2022 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0 Distributed under the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// This code was adapted from boost dynamic_bitset
//
// Copyright (c) 2001 Jeremy S... | 43,432 |
https://github.com/shreeca/BarcodeFoundry/blob/master/src/main/java/com/generator/RestController.java | Github Open Source | Open Source | MIT | 2,020 | BarcodeFoundry | shreeca | Java | Code | 665 | 2,786 | package com.generator;
import com.google.gson.JsonObject;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.QRCodeWriter;
import com.google.zxing.qrcode.decoder.ErrorCorrection... | 1,913 |
https://github.com/SeanMelody/BurgerEater/blob/master/config/connection.js | Github Open Source | Open Source | MIT | null | BurgerEater | SeanMelody | JavaScript | Code | 72 | 189 | // Const for MySQL!
const mysql = require("mysql");
//JawsDB for Heroku
var connection;
if (process.env.JAWSDB_URL) {
connection = mysql.createConnection(process.env.JAWSDB_URL);
} else {
// Connect to the Database!
connection = mysql.createConnection({
host: 'localhost',
// My port
... | 8,468 |
https://github.com/Ikziriv/jual/blob/master/database/seeds/UserTableSeeder.php | Github Open Source | Open Source | MIT | null | jual | Ikziriv | PHP | Code | 59 | 209 | <?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use App\Models\Role;
use App\Models\User;
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create([
'username' => 'GreatAdmin',
... | 38,720 |
https://github.com/MaxStrange/ArtieInfant/blob/master/Artie/internals/som/som.py | Github Open Source | Open Source | MIT | 2,018 | ArtieInfant | MaxStrange | Python | Code | 2,411 | 5,670 | """
Self-Organizing Map
This module contains code for creating and running a self-organizing map.
"""
import itertools
import math
import numpy as np
import random
class SelfOrganizingMap:
"""
The main class for this module. This is the interface to use for creating and using
a Self Organizing Map.
T... | 48,942 |
https://github.com/apache/hudi/blob/master/hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/rollback/TestMergeOnReadRollbackActionExecutor.java | Github Open Source | Open Source | CC0-1.0, MIT, JSON, Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | hudi | apache | Java | Code | 1,183 | 6,045 | /*
* 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 ... | 5,873 |
https://github.com/naramski/ShareFile-Java/blob/master/ShareFileJavaSDK/src/com/citrix/sharefile/api/models/SFAddress.java | Github Open Source | Open Source | MIT | 2,020 | ShareFile-Java | naramski | Java | Code | 215 | 714 |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Copyright (c) 2017 Citrix ShareFile. All rights... | 34,393 |
https://github.com/abikoraj/Company/blob/master/resources/views/front/page.blade.php | Github Open Source | Open Source | MIT | null | Company | abikoraj | PHP | Code | 146 | 613 | @extends('front.layout')
@section('css')
<style>
.text-brand {
color: #667EEA !important;
}
.otherheader {
background: white;
/* background: url('/img/cta.png'); */
background-position: center;
background-size: auto 100%;
}
.nav-link {
color: #667EEA... | 20,900 |
https://github.com/Xmader/ipfs-action/blob/master/node_modules/@pinata/sdk/src/commands/data/pinList/queryBuilder.js | Github Open Source | Open Source | MIT | 2,021 | ipfs-action | Xmader | JavaScript | Code | 808 | 2,185 | function validateAndReturnDate(dateToValidate) {
let dateParsed = new Date(Date.parse(dateToValidate));
try {
if (dateParsed.toISOString() === dateToValidate) {
return dateToValidate;
}
throw new Error('dates must be in valid ISO_8601 format');
} catch (e) {
thr... | 12,178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.