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/pythonitalia/pycon/blob/master/frontend/src/helpers/olark.ts | Github Open Source | Open Source | MIT | 2,023 | pycon | pythonitalia | TypeScript | Code | 258 | 625 | /* eslint-disable @typescript-eslint/ban-ts-comment */
import { USER_INFO_CACHE } from "~/components/profile/hooks";
export const updateOlarkFields = (newData: any = null) => {
// @ts-ignore
if (typeof window.olark === "undefined") {
return;
}
if (newData) {
// If we have new data from GraphQL
// ... | 34,753 |
https://github.com/sopiehalimah/shopiee/blob/master/resources/views/content/checkout/checkout1data.blade.php | Github Open Source | Open Source | MIT | null | shopiee | sopiehalimah | PHP | Code | 285 | 1,407 | @extends('layout.app')
@section('content')
<div id="all">
<div id="content">
<div class="container">
<div class="col-md-12">
<ul class="breadcrumb">
<li><a href="#">Home</a>
</li>
<li>... | 50,166 |
https://github.com/jostarlink/sblog.net/blob/master/sBlog.Net.MetaData/MetaData/DatabaseSetupModelMetaData.cs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | sblog.net | jostarlink | C# | Code | 28 | 89 | using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace sBlog.Net.MetaData.MetaData
{
public class DatabaseSetupModelMetaData
{
[Required(ErrorMessage = "Connction string is required")]
[DisplayName("Connection String")]
public object ConnectionString { get;... | 4,531 |
https://github.com/ZoePorta/entregas-hab/blob/master/frontend/hackamusic/src/components/FooterCustom.vue | Github Open Source | Open Source | MIT | null | entregas-hab | ZoePorta | Vue | Code | 25 | 93 | <template>
<div>
<p class="footer">Zoe 2020</p>
</div>
</template>
<script>
export default {
name: "FooterCustom",
};
</script>
<style scoped>
p.footer {
padding: 2rem;
font-size: 0.75rem;
}
</style>
| 24,749 |
https://github.com/pedroqm/FOrder/blob/master/app/Resources/views/mesa/modificar_mesa.html.twig | Github Open Source | Open Source | MIT | null | FOrder | pedroqm | Twig | Code | 38 | 110 | {% extends '::index.html.twig' %}
{% block title %}Modificar mesa {% endblock %}
{% block content %}
<h1 class="well">Modificar datos de mesa</h1>
{{ form(formulario) }}
<a href="{{ path('mesa_listar') }}" class="btn btn-info">Volver al listado de mesa </a>
{% endblock %} | 22,644 |
https://github.com/JuniorNunes15/PyMove/blob/master/pymove/utils/datetime.py | Github Open Source | Open Source | MIT | 2,022 | PyMove | JuniorNunes15 | Python | Code | 1,973 | 6,049 | """
Datetime operations.
date_to_str,
str_to_datetime,
datetime_to_str,
datetime_to_min,
min_to_datetime,
to_day_of_week_int,
working_day,
now_str,
deltatime_str,
timestamp_to_millis,
millis_to_timestamp,
time_to_str,
str_to_time,
elapsed_time_dt,
diff_time,
create_time_slot_in_minute,
generate_time_statistics,
thresh... | 25,454 |
https://github.com/fjtc/mvn-versions/blob/master/libs/maven-versions-core/src/main/java/br/com/brokenbits/mvn/versions/VersionString.java | Github Open Source | Open Source | BSD-2-Clause | 2,014 | mvn-versions | fjtc | Java | Code | 65 | 177 | package br.com.brokenbits.mvn.versions;
/**
*
* @author fjtc
* @since 2014.07.21
*/
public class VersionString extends Version {
private String version;
public VersionString(String version) throws IllegalArgumentException {
this.setString(version);
}
public void setString(String version){
if (version... | 34,199 |
https://github.com/IoTCrawler/Search-Enabler/blob/master/src/main/java/com/agtinternational/iotcrawler/graphqlEnabler/Wiring.java | Github Open Source | Open Source | Apache-2.0 | null | Search-Enabler | IoTCrawler | Java | Code | 137 | 297 | package com.agtinternational.iotcrawler.graphqlEnabler;
/*-
* #%L
* search-enabler
* %%
* Copyright (C) 2019 - 2020 AGT International. Author Pavel Smirnov (psmirnov@agtinternational.com)
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 10,752 |
https://github.com/benrey/ever-gauzy/blob/master/apps/gauzy/src/app/@shared/status-badge/status-badge.component.ts | Github Open Source | Open Source | PostgreSQL | 2,022 | ever-gauzy | benrey | TypeScript | Code | 90 | 308 | import { Component, OnInit, Input } from '@angular/core';
import { ComponentLayoutStyleEnum } from '@gauzy/contracts';
@Component({
selector: 'ga-status-badge',
templateUrl: './status-badge.component.html',
styleUrls: ['./status-badge.component.scss']
})
export class StatusBadgeComponent implements OnInit {
@Input... | 49,776 |
https://github.com/heyogrady/jumpstart/blob/master/config/routes/contacts.rb | Github Open Source | Open Source | MIT | 2,015 | jumpstart | heyogrady | Ruby | Code | 4 | 13 | resources :contacts, only: [:create]
| 8,869 |
https://github.com/HakimFractal/shopsys/blob/master/packages/framework/src/Model/Sitemap/SitemapDumperFactory.php | Github Open Source | Open Source | PostgreSQL | null | shopsys | HakimFractal | PHP | Code | 135 | 681 | <?php
namespace Shopsys\FrameworkBundle\Model\Sitemap;
use League\Flysystem\FilesystemInterface;
use League\Flysystem\MountManager;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Filesystem\Filesystem;
class SitemapDumperFactory
{
/** @access protected */
const MAX_ITEM... | 41,113 |
https://github.com/tlklan/yii-bootstrap-git/blob/master/demo/yii/validators/CCompareValidator.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | yii-bootstrap-git | tlklan | PHP | Code | 827 | 2,594 | <?php
/**
* CCompareValidator class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2011 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CCompareValidator compares the specified attribute value with another valu... | 29,768 |
https://github.com/Vivekyadavgithub/ChernoLights/blob/master/Cherno2D/Basicvertex.glsl | Github Open Source | Open Source | MIT | 2,021 | ChernoLights | Vivekyadavgithub | GLSL | Code | 60 | 148 | layout(location = 0) in vec3 position;
layout(location = 1) in vec3 aNormal;
layout(location = 2) in vec2 texCoords;
out vec3 Normal;
out vec3 FragPos;
out vec2 TexCoord;
uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;
void main()
{
FragPos = vec3(model * vec4(position, 1.0));
TexCoord = texCoords;... | 39,039 |
https://github.com/wizzzet/github_backend/blob/master/apps/integrations/github/resources/__init__.py | Github Open Source | Open Source | MIT | null | github_backend | wizzzet | Python | Code | 30 | 65 | from .users import UsersListResource # NOQA
from .users import UserResource # NOQA
from .followers import FollowersListResource # NOQA
from .repos import ReposListResource # NOQA
from .repos import RepoResource # NOQA
| 2,625 |
https://github.com/veereshnm/ctscypress/blob/master/public/js/controllers.js | Github Open Source | Open Source | MIT | null | ctscypress | veereshnm | JavaScript | Code | 37 | 128 | 'use strict';
/* Controllers */
angular.module('myApp.controllers', []).
controller('AppCtrl', ['$timeout', '$location', '$scope', '$http', '$route', function ($timeout, $location, $scope, $http, $route) {
}]).controller('childCtrl', ['$timeout', '$location', '$scope', '$http', '$route', function ($timeout,... | 32,752 |
https://github.com/jonj-src/jonj/blob/master/ext/mbstring/mbstring.h | Github Open Source | Open Source | PHP-3.01 | null | jonj | jonj-src | C | Code | 594 | 2,576 | /*
+----------------------------------------------------------------------+
| JONJ Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The JONJ Group |
+-------... | 41,687 |
https://github.com/MikeyBurkman/fhclogs/blob/master/lib/commands/apps.js | Github Open Source | Open Source | MIT | 2,017 | fhclogs | MikeyBurkman | JavaScript | Code | 25 | 68 | 'use strict';
const config = require('../config');
exports.command = 'apps';
exports.desc = 'List all apps found in the config file';
exports.handler = function() {
console.log(config.getAllAppNames().join('\n'));
};
| 1,777 |
https://github.com/corindwyer/titus-control-plane/blob/master/titus-server-master/src/test/java/com/netflix/titus/master/kubernetes/pod/legacy/PodContainerInfoFactoryTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | titus-control-plane | corindwyer | Java | Code | 261 | 1,286 | /*
* Copyright 2021 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 47,224 |
https://github.com/benesch/cpp_demangle/blob/master/src/logging.rs | Github Open Source | Open Source | Apache-2.0, MIT | 2,022 | cpp_demangle | benesch | Rust | Code | 51 | 144 | #[cfg(feature = "logging")]
macro_rules! log {
( $fmt:expr ) => {
println!($fmt);
};
( $fmt:expr, $($x:tt)* ) => {
println!($fmt, $($x)*);
}
}
#[cfg(not(feature = "logging"))]
macro_rules! log {
( $fmt:expr ) => {};
( $fmt:expr, $($x:tt)* ) => {
if false { let _ = format... | 33,395 |
https://github.com/KazanExpress/docker-images/blob/master/images/chproxy/v1.14.0/sources/main.go | Github Open Source | Open Source | MIT | null | docker-images | KazanExpress | Go | Code | 867 | 3,071 | package main
import (
"context"
"crypto/tls"
"flag"
"fmt"
"net"
"net/http"
"os"
"os/signal"
"strings"
"sync/atomic"
"syscall"
"time"
"github.com/Vertamedia/chproxy/config"
"github.com/Vertamedia/chproxy/log"
"github.com/prometheus/client_golang/prometheus/promhttp"
"golang.org/x/crypto/acme/autocert"
... | 14,188 |
https://github.com/seil-smf/armsd/blob/master/Makefile.in | Github Open Source | Open Source | BSD-2-Clause | 2,012 | armsd | seil-smf | Makefile | Code | 151 | 687 | DESTDIR=
prefix=@prefix@
exec_prefix=@exec_prefix@
sbindir=@sbindir@
datadir=@datadir@
sysconfdir=@sysconfdir@
localstatedir=@localstatedir@
cachedir=${localstatedir}/armsd
exampledir=${datadir}/armsd
CFLAGS= -O2 -Wall -Werror @DEFS@ @CPPFLAGS@ @CFLAGS@
CFLAGS_COV= $(CFLAGS) -fprofile-arcs -ftest-coverage
LDFLAGS= -... | 22,122 |
https://github.com/inferno211/Warn-Info/blob/master/inc/languages/polish/warninfo.lang.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | Warn-Info | inferno211 | PHP | Code | 34 | 172 | <?php
$l['warninfo_info'] = '<strong>Autor tego posta otrzymał ostrzeżenie.</strong>';
$l['warninfo_reason'] = '<strong>Powód:</strong> ';
$l['warninfo_date'] = '<strong>Data:</strong> ';
$l['warninfo_expires'] = '<strong>Wygasa:</strong> ';
$l['warninfo_expired'] = 'Wygasł';
$l['warninfo_admin'] = '<strong>Admin:</str... | 29,383 |
https://github.com/m6s/android-githubbrowser/blob/master/libraries/network/src/main/java/info/mschmitt/githubbrowser/network/responses/GetRepositoriesResponseItem.java | Github Open Source | Open Source | CC-BY-3.0, Unlicense, LicenseRef-scancode-public-domain | 2,017 | android-githubbrowser | m6s | Java | Code | 109 | 318 | package info.mschmitt.githubbrowser.network.responses;
import com.google.gson.annotations.SerializedName;
/**
* @author Matthias Schmitt
*/
public class GetRepositoriesResponseItem {
public long id;
public User owner;
public String name;
public String fullName;
public String description;
@Se... | 38,067 |
https://github.com/Fractal-Idea/devilution/blob/master/Source/diablo.cpp | Github Open Source | Open Source | Unlicense | null | devilution | Fractal-Idea | C++ | Code | 6,330 | 21,476 | //HEADER_GOES_HERE
#include "../types.h"
int diablo_cpp_init_value; // weak
HWND ghMainWnd;
int glMid1Seed[NUMLEVELS];
int glMid2Seed[NUMLEVELS];
int gnLevelTypeTbl[NUMLEVELS];
int MouseY; // idb
int MouseX; // idb
bool gbGameLoopStartup; // idb
int glSeedTbl[NUMLEVELS];
int gbRunGame; // weak
int glMid3Seed[NUMLEVEL... | 45,997 |
https://github.com/ye-yeshun/box86/blob/master/src/wrapped/generated/wrappedlibx11defs.h | Github Open Source | Open Source | MIT | 2,022 | box86 | ye-yeshun | C | Code | 17 | 83 | /*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.0.0.10) *
*******************************************************************/
#ifndef __wrappedlibx11DEFS_H_
#define __wrappedlibx11DEFS_H_
#endif // __wrappedlibx11DEFS_H_
| 23,502 |
https://github.com/toothedsword/.tmux/blob/master/src/gitstatus.pl | Github Open Source | Open Source | WTFPL, MIT | null | .tmux | toothedsword | Perl | Code | 25 | 86 | use strict;
use warnings;
use utf8;
my $t = `git status -s`;
$t =~ s/\n/|/g;
$t =~ s/^\s*//;
$t = "|$t";
$t =~ s/\s[^\|]\|//g;
print($t);
| 42,070 |
https://github.com/DNikitenko/design-patterns/blob/master/Patterns/State/StateTest.cs | Github Open Source | Open Source | MIT | null | design-patterns | DNikitenko | C# | Code | 47 | 143 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Patterns.State
{
class StateTest : IPatternTest
{
public void Run()
{
var wizard = new Wizard();
while (!wizard.IsCompleted())
{
... | 5,313 |
https://github.com/robertorlowski/video-downloader/blob/master/src/components/Title.vue | Github Open Source | Open Source | MIT | 2,020 | video-downloader | robertorlowski | Vue | Code | 58 | 277 | <template>
<div class="discover-banner max-w-full text-white pl-8 rounded-bl-lg pt-4 mb-8 flex">
<div class="w-1/2 flex-1">
<h1 class="font-normal mb-2">Video Downloader</h1>
<h3 class="font-normal w-64 leading-normal text-grey-lighter">{{title}}</h3>
</div>
<div class="w-1/2 py-1 px-1 pr-12 t... | 15,228 |
https://github.com/jonathanortegacardenas/mailcreator/blob/master/app/Http/Controllers/BlocksController.php | Github Open Source | Open Source | MIT | 2,021 | mailcreator | jonathanortegacardenas | PHP | Code | 497 | 3,496 | <?php
namespace mailCreator\Http\Controllers;
use Symfony\Component\HttpFoundation\Session\Session;
use mailCreator\Blocks;
use mailCreator\Campaigns;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\File;
use Illuminate\Http\Response;
class BlocksController extends C... | 26,472 |
https://github.com/stari-kashka/gatling-picatinny/blob/master/src/main/scala/ru/tinkoff/gatling/feeders/CurrentDateFeeder.scala | Github Open Source | Open Source | Apache-2.0 | null | gatling-picatinny | stari-kashka | Scala | Code | 28 | 141 | package ru.tinkoff.gatling.feeders
import io.gatling.core.feeder.Feeder
import ru.tinkoff.gatling.utils.RandomDataGenerators
import java.time.ZoneId
import java.time.format.DateTimeFormatter
object CurrentDateFeeder {
def apply(paramName: String,
datePattern: DateTimeFormatter,
timezone: Z... | 7,404 |
https://github.com/laashub/LaasOps/blob/master/distribution/service/data/struct.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | LaasOps | laashub | Python | Code | 186 | 649 | import json
from flask import Blueprint
from ...component import form
from ...component import mymysql
app = Blueprint('distribution_data_struct', __name__,
url_prefix='/distribution/data/struct')
@app.route('/select', methods=['POST'])
def select():
request_data = form.check(["did"])
retur... | 34,780 |
https://github.com/solgenomics/sgn/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,023 | sgn | solgenomics | Ignore List | Code | 50 | 290 | *~
TAGS
static/documents/tempfiles
!exists
!.exists
_build
/Build
MYMETA.yml
*.sw?
test.sh
blib/*
.#*
*.bak
static/data
static/static_content
cover_db
lib/MyDevLibs.pm
static/documents/img/secretom/.directory
programs/*.o
programs/draw_contigalign
programs/fast_mapping
sgn_local.conf
sgn_testing.conf
sgn_fixture.conf
t... | 12,004 |
https://github.com/bugaoshuni/WeChatSportTweak/blob/master/WeChatHeads/APBase.h | Github Open Source | Open Source | MIT | 2,018 | WeChatSportTweak | bugaoshuni | Objective-C | Code | 330 | 1,059 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "MMObject.h"
#import "WCTTableCoding.h"
@class NSString, PublicWifiCache, PublicWifiPageInfo;
@interface APBase : MMObject <WCTTableCoding>
{
NSString *ssid;
NSSt... | 18,128 |
https://github.com/cecelo01/ServiceLocatorPatternDI-LocalizadorDeServico/blob/master/build/classes/service/locator/pattern/di/localiazadordeservico/ServicoEmail.rs | Github Open Source | Open Source | MIT | null | ServiceLocatorPatternDI-LocalizadorDeServico | cecelo01 | Rust | Code | 1 | 12 | service.locator.pattern.ServicoEmail
| 32,336 |
https://github.com/VaibhavBhujade/Blockchain-ERP-interoperability/blob/master/odoo-13.0/addons/im_livechat/models/mail_channel.py | Github Open Source | Open Source | MIT | null | Blockchain-ERP-interoperability | VaibhavBhujade | Python | Code | 697 | 2,440 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
class ChannelPartner(models.Model):
_inherit = 'mail.channel.partner'
@api.model
def unpin_old_livechat_sessions(self):
""" Unpin livechat sessions with no ac... | 23,157 |
https://github.com/flixtechs-labs/laravel-bytepoint/blob/master/config/bytepoint.php | Github Open Source | Open Source | MIT | 2,023 | laravel-bytepoint | flixtechs-labs | PHP | Code | 16 | 76 | <?php
// config for FlixtechsLabs/Bytepoint
return [
'token' => env('BYTEPOINT_TOKEN', ''),
'url' => env('BYTEPOINT_URL', 'https://bytepoint.flixtechs.co.zw/api/v1/images'),
];
| 28,235 |
https://github.com/wenleix/presto/blob/master/presto-main/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PruneIndexSourceColumns.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | presto | wenleix | Java | Code | 198 | 784 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 15,396 |
https://github.com/buxinzeyou/vue-music/blob/master/src/components/tabbar/hotsong.vue | Github Open Source | Open Source | MIT | null | vue-music | buxinzeyou | Vue | Code | 247 | 1,060 | <template>
<div class="hot-container">
<div class="header">
<div class="header">
<img
src="http://s3.music.126.net/mobile-new/img/hot_music_bg_2x.jpg?f01a252389c26bcf016816242eaa6aee="
alt
/>
</div>
<div class="jingling title"></div>
<span>更新时间:04月13日</s... | 40 |
https://github.com/rajeshroy402/DeepStream-6.0-dGPU-Installation/blob/master/03_install_deepstream.sh | Github Open Source | Open Source | CC0-1.0 | null | DeepStream-6.0-dGPU-Installation | rajeshroy402 | Shell | Code | 136 | 932 | #! /bin/bash
#author - rajeshroy402@gmail.com
sudo echo "Hey, let's do the final hooby-dooby here!"
cd ~/nvidia-debians-by-rajesh
# Installing CUDA
sudo sh cuda_11.4.3_470.82.01_linux.run
sudo printf "export PATH=/usr/local/cuda-11.4/bin${PATH:+:${PATH}}\nexport LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64\${LD_LIBRARY... | 9,018 |
https://github.com/Demivan/unplugin-auto-import/blob/master/test/fixtures/vue.js | Github Open Source | Open Source | MIT | 2,022 | unplugin-auto-import | Demivan | JavaScript | Code | 4 | 9 | const a = ref(0)
| 9,892 |
https://github.com/lainproliant/xeno/blob/master/xeno/recipe.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | xeno | lainproliant | Python | Code | 2,135 | 6,987 | # --------------------------------------------------------------------
# recipe.py
#
# Author: Lain Musgrove (lain.proliant@gmail.com)
# Date: Thursday March 9, 2023
#
# Distributed under terms of the MIT license.
# --------------------------------------------------------------------
import asyncio
import inspect
impo... | 15,350 |
https://github.com/naughty7878/spring-framework-5.2.4/blob/master/spring-my/src/main/java/com/test/circulardependence/doc/ObjectFactory.java | Github Open Source | Open Source | Apache-2.0 | null | spring-framework-5.2.4 | naughty7878 | Java | Code | 54 | 154 | package com.test.circulardependence.doc;
import org.springframework.beans.BeansException;
/***
* @Author 徐庶 QQ:1092002729
* @Slogan 致敬大师,致敬未来的你
*/
@FunctionalInterface
public interface ObjectFactory<T> {
/**
* Return an instance (possibly shared or independent)
* of the object managed by this fact... | 15,408 |
https://github.com/andela/ah-backend-stark/blob/master/authors/apps/profiles/urls.py | Github Open Source | Open Source | BSD-3-Clause | null | ah-backend-stark | andela | Python | Code | 33 | 177 | """profile app url file"""
from django.urls import path
from .views import (UserProfile, ListProfiles, UserFollow, UserFollowers,
UserFollowing, UserUnfollow)
urlpatterns = [
path('profile/<str:username>/', UserProfile.as_view()),
path('profiles/', ListProfiles.as_view()),
path('profile... | 8,393 |
https://github.com/commodityfx/weivim/blob/master/exchange/src/test/java/town/lost/examples/exchange/dto/OpeningBalanceEventTest.java | Github Open Source | Open Source | MIT | null | weivim | commodityfx | Java | Code | 105 | 547 | package town.lost.examples.exchange.dto;
import net.openhft.chronicle.bytes.BytesStore;
import net.openhft.chronicle.core.time.SetTimeProvider;
import net.openhft.chronicle.decentred.util.DecentredUtil;
import net.openhft.chronicle.decentred.util.KeyPair;
import net.openhft.chronicle.wire.Marshallable;
import org.juni... | 5,087 |
https://github.com/sliverTwo/vue-panel-selector/blob/master/src/App.vue | Github Open Source | Open Source | Unlicense | null | vue-panel-selector | sliverTwo | Vue | Code | 249 | 923 | <template>
<div id="app" style="margin:5% auto;">
<h1>ok</h1>
<vue-panel-selector :items="items"></vue-panel-selector>
</div>
</template>
<script>
let myCityData = [{
id: '100',
name: '湖南',
children: [{
id: '102',
name: '湘潭',
children: []
}, {
id: '110',
name: '长沙',
children: [{
id: '111',... | 41,661 |
https://github.com/sathishid/PTS/blob/master/app/src/main/java/com/ara/approvalshipment/models/OrderItem.java | Github Open Source | Open Source | Apache-2.0 | null | PTS | sathishid | Java | Code | 88 | 308 | package com.ara.approvalshipment.models;
import com.google.gson.annotations.SerializedName;
public class OrderItem {
@SerializedName("oa_goods_id")
private int gradeId;
@SerializedName("oa_goods_code")
private String gradeCode;
@SerializedName("oa_goods_name")
private String gradeName;
pri... | 32,068 |
https://github.com/Tiger-Team-01/DSA-A-Z-Practice/blob/master/Sid's Levels/Level - 2/Greedy/FractionalKnapsack.cpp | Github Open Source | Open Source | MIT | 2,022 | DSA-A-Z-Practice | Tiger-Team-01 | C++ | Code | 200 | 599 | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
struct Item{
int value;
int weight;
};
// } Driver Code Ends
//class implemented
/*
struct Item{
int value;
int weight;
};
*/
// function to return fractionalweights
class Solution
{
public:
//OM GAN GANAPATHAYE NAMO NAMA... | 3,045 |
https://github.com/UCLA-SEAL/JShrink/blob/master/code/jshrink/jshrink-app/src/test/resources/bukkit/src/main/java/org/bukkit/event/vehicle/VehicleUpdateEvent.java | Github Open Source | Open Source | BSD-3-Clause | 2,021 | JShrink | UCLA-SEAL | Java | Code | 52 | 150 | package org.bukkit.event.vehicle;
import org.bukkit.entity.Vehicle;
import org.bukkit.event.HandlerList;
/**
* Called when a vehicle updates
*/
public class VehicleUpdateEvent extends VehicleEvent {
private static final HandlerList handlers = new HandlerList();
public VehicleUpdateEvent(final Vehicle vehic... | 14,752 |
ERROR: type should be string, got "https://github.com/dxg4268/pyExercises/blob/master/cbseBoard%.py" | Github Open Source | Open Source | MIT | null | pyExercises | dxg4268 | Python | Code | 143 | 287 | # Program to find persentage acc to the input
print("Enter Marks in 5 subjects accordingly !")
# subjectsNum = str(input("Enter No. of Subjects from 5 to 10 : "))
sub1 = int(input("Subject 1 : "))
sub2 = int(input("Subject 2 : "))
sub3 = int(input("Subject 3 : "))
sub4 = int(input("Subject 4 : "))
sub5 = int(input(... | 44,392 |
https://github.com/IndahSeptiana/tugasweb/blob/master/application/views/admin/v_tambah_dosen.php | Github Open Source | Open Source | MIT | null | tugasweb | IndahSeptiana | PHP | Code | 46 | 242 | <div class="col-md-6 offset-md-3">
<div class="card">
<div class="card-header" style="background-color:pink"> <?php echo $sub_judul ?> </div>
<div class="card-body">
<form action="" method="post">
<div class="form-group">
<label>Nik</label>
<input type="text" class="form-control" name="nim">
... | 6,373 |
https://github.com/NanoFabricFX/asset-manager/blob/master/src/AssetManager.Web/Views/StatusLabels/Delete.cshtml | Github Open Source | Open Source | MIT | 2,020 | asset-manager | NanoFabricFX | HTML+Razor | Code | 102 | 464 | @model AssetManager.Web.ViewModels.StatusLabelViewModel
@{
ViewData["Title"] = "Delete";
}
<div class="header-content">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-8">
<p class="header-content-title">Delete Status Label</p>
</div>
<div class="col-md-6 col-sm-6 c... | 34,155 |
https://github.com/UVA-DSA/OpenPilot0.3.5/blob/master/selfdrive/common/params.h | Github Open Source | Open Source | MIT | 2,017 | OpenPilot0.3.5 | UVA-DSA | C | Code | 143 | 351 | #ifndef _SELFDRIVE_COMMON_PARAMS_H_
#define _SELFDRIVE_COMMON_PARAMS_H_
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
int write_db_value(const char* params_path, const char* key, const char* value,
size_t value_size);
// Reads a value from the params database.
// Inputs:
// params_p... | 34,462 |
https://github.com/madedit/aclang/blob/master/src/yyparser.cpp | Github Open Source | Open Source | MIT | 2,021 | aclang | madedit | C++ | Code | 14,368 | 48,988 | /* A Bison parser, made by GNU Bison 3.0.2. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by... | 20,082 |
https://github.com/alexander-pimenov/lessons-job4j/blob/master/chapter_tutorial/src/main/java/ru/job4j/tutorial/yandex_tasks/test_april/CipherCode.java | Github Open Source | Open Source | Apache-2.0 | null | lessons-job4j | alexander-pimenov | Java | Code | 465 | 1,440 | package ru.job4j.tutorial.yandex_tasks.test_april;
import java.util.Scanner;
/**
* Здесь рассмотрены некоторые варианты кодировки или просто сдвига посимвольно в строке
*/
public class CipherCode {
static String alfa = "абвгдежзиклмнопрстуфхцчшщъыьэюяАБВГДЕЖЗИКЛМНОПРСТУФХЦЧШЩЪЫьЭЮЯ !?.,";
public static v... | 14,474 |
https://github.com/prashanthkk/imx-atf/blob/master/lib/libc/memset.c | Github Open Source | Open Source | BSD-3-Clause | 2,019 | imx-atf | prashanthkk | C | Code | 39 | 107 | /*
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stddef.h>
void *memset(void *dst, int val, size_t count)
{
char *ptr = dst;
while (count--)
*ptr++ = val;
return dst;
}
| 27,487 |
https://github.com/dotnetkits/Mapster/blob/master/src/Mapster/Models/KeyValuePairModel.cs | Github Open Source | Open Source | MIT | 2,022 | Mapster | dotnetkits | C# | Code | 119 | 368 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace Mapster.Models
{
public class KeyValuePairModel : IMemberModelEx
{
readonly Func<Expression, Expression, Expression> _getFn;
readonly Func<Expression, Expression... | 12,380 |
https://github.com/cpehle/SciLean/blob/master/SciLean/Mechanics.lean | Github Open Source | Open Source | Apache-2.0 | 2,022 | SciLean | cpehle | Lean | Code | 2 | 11 | import SciLean.Mechanics.Basic
| 18,296 |
https://github.com/marco-c/gecko-dev-wordified/blob/master/gfx/harfbuzz/src/hb-ot-var-avar-table.hh | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT-Modern-Variant, LicenseRef-scancode-other-permissive | 2,023 | gecko-dev-wordified | marco-c | C++ | Code | 1,547 | 3,703 | /
*
*
Copyright
2017
Google
Inc
.
*
*
This
is
part
of
HarfBuzz
a
text
shaping
library
.
*
*
Permission
is
hereby
granted
without
written
agreement
and
without
*
license
or
royalty
fees
to
use
copy
modify
and
distribute
this
*
software
and
its
documentation
for
any
purpose
provided
that
the
*
above
copyright
notice
and
... | 45,783 |
https://github.com/sendevman/rctvertex/blob/master/packages/material-hooks/src/phong/attenuation.glsl | Github Open Source | Open Source | MIT | 2,022 | rctvertex | sendevman | GLSL | Code | 53 | 163 | // attenuation by Tom Madams
// Simple:
// https://imdoingitwrong.wordpress.com/2011/01/31/light-attenuation/
//
// Improved
// https://imdoingitwrong.wordpress.com/2011/02/10/improved-light-attenuation/
float attenuation(float r, float f, float d) {
float denom = d / r + 1.0;
float attenuation = 1.0 / (denom*den... | 24,310 |
https://github.com/own-character-in-pocket/client-desktop/blob/master/app/request/schema/AudioType/AudioWavType/index.ts | Github Open Source | Open Source | MIT | 2,020 | client-desktop | own-character-in-pocket | TypeScript | Code | 48 | 136 | import { GraphQLID, GraphQLNonNull, GraphQLObjectType, GraphQLString } from 'graphql';
import { NodeInterface } from '../../NodeInterface';
import { AudioInterface } from '../AudioInterface';
export const AudioWavType = new GraphQLObjectType({
name: 'AudioWavType',
interfaces: [NodeInterface, AudioInterface],
fi... | 22,238 |
https://github.com/Ical852/Mechanical-Engineering-System---OEE/blob/master/application/views/sql.sql | Github Open Source | Open Source | MIT | null | Mechanical-Engineering-System---OEE | Ical852 | SQL | Code | 131 | 452 | SELECT t.nama_mesin, t.date, t.OEE
FROM oee_data t
INNER JOIN (SELECT nama_mesin, MAX(date) AS MaxDate
FROM oee_data
GROUP BY nama_mesin)
tm ON t.nama_mesin = tm.nama_mesin AND t.date = tm.MaxDate
SELECT t.nama_mesin, t.date, t.OEE
FROM oee_data_daily t
INNER JOIN (SELECT nama_mesi... | 45,281 |
https://github.com/mmrath/Highlander.Net/blob/master/Tests/FpML.V5r3.Analytics.Tests/SABRModel/SABRCalibrationSettingsUnitTests.cs | Github Open Source | Open Source | BSD-3-Clause | null | Highlander.Net | mmrath | C# | Code | 134 | 428 | using Orion.Analytics.Stochastics.SABR;
using Orion.Analytics.Utilities;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Orion.Analytics.Tests.SABRModel
{
/// <summary>
/// Unit Tests for the class SABRCalibrationSettings.
/// </summary>
[TestClass]
public class SABRCalibrationSettin... | 18,278 |
https://github.com/amoudgl/leetcode-solutions/blob/master/src/substring-with-concatenation-of-all-words.cpp | Github Open Source | Open Source | MIT | null | leetcode-solutions | amoudgl | C++ | Code | 181 | 624 | // Author: Abhinav Moudgil [ https://leetcode.com/amoudgl/ ]
class Solution {
public:
vector<int> findSubstring(string s, vector<string>& words) {
unordered_map<char, int> m;
unordered_set<string> st;
int count = 0, l = s.length();
sort(words.begin(), words.end());
for (int i... | 50,950 |
https://github.com/eserozvataf/BasketForm/blob/master/BasketForm/frmMain.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | BasketForm | eserozvataf | C# | Code | 577 | 1,719 | // -----------------------------------------------------------------------
// <copyright file="frmMain.cs" company="-">
// Copyright (c) 2013 larukedi (eser@sent.com). All rights reserved.
// </copyright>
// <author>larukedi (http://github.com/larukedi/)</author>
// ----------------------------------------------------... | 2,198 |
https://github.com/irebollo/stomach_brain_Scripts/blob/master/review_controlPower.m | Github Open Source | Open Source | MIT | 2,018 | stomach_brain_Scripts | irebollo | MATLAB | Code | 332 | 1,542 | % review_controlPower
insideBrain= tools_getIndexBrain('inside');
subjects = global_subjectList
cfgMain = global_getcfgmain;
peak = global_getEGGpeaks
SpectrumXSignalXSubject=zeros(30,2,93); % subjects, cominations freqsbins
SpectrumXSignalXSubjectPeak = zeros (30,2,61);
%%
DMNcenter_tal = [-5 -49 40];% tal Fox ... | 12,152 |
https://github.com/fineanmol/30-Days-of-Python/blob/master/tutorial-reference/Day 23/cli_sys.py | Github Open Source | Open Source | MIT | 2,022 | 30-Days-of-Python | fineanmol | Python | Code | 26 | 82 | import sys
if __name__== "__main__":
try:
name = sys.argv[1]
except:
name = input("What's your name?\n")
from getpass import getpass
pw = getpass("What's your password?\n")
print(name, pw)
| 44,192 |
https://github.com/deimspb/TSParser/blob/master/TSParser/Descriptors/Dvb/TerrestrialDeliverySystemDescriptor_0x5A.cs | Github Open Source | Open Source | Apache-2.0 | null | TSParser | deimspb | C# | Code | 582 | 1,667 | // Copyright 2021 Eldar Nizamutdinov deim.mobile<at>gmail.com
//
// 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 requir... | 5,477 |
https://github.com/yurimelo96/MantisBt/blob/master/Mantis/src/test/java/page/LoginPage.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | MantisBt | yurimelo96 | Java | Code | 422 | 1,984 | package page;
import static util.EvidenceManager.GerarEvidencia;
import org.openqa.selenium.By;
import core.BasePage;
import core.Elemento;
import io.cucumber.java.pt.Dado;
import io.cucumber.java.pt.E;
import io.cucumber.java.pt.Entao;
import io.cucumber.java.pt.Quando;
public class LoginPage extends BasePage {
p... | 48,719 |
https://github.com/abdul-kader138/exambooking/blob/master/application/models/admin/Exam_attribute_model.php | Github Open Source | Open Source | MIT | null | exambooking | abdul-kader138 | PHP | Code | 381 | 1,672 | <?php
class Exam_attribute_model extends CI_Model
{
public function add_exam_attribute($data)
{
$this->db->insert('ci_exam_instrument_product', $data);
return true;
}
//---------------------------------------------------
public function get_all_exam_attribute()
{
$wh = a... | 5,045 |
https://github.com/nylas/nylas-python/blob/master/tests/test_scheduler.py | Github Open Source | Open Source | MIT | 2,023 | nylas-python | nylas | Python | Code | 767 | 4,146 | import json
from datetime import datetime
import pytest
import responses
from nylas.client.restful_models import Scheduler, Calendar
from nylas.client.scheduler_models import SchedulerTimeSlot, SchedulerBookingRequest
def blank_scheduler_page(api_client):
scheduler = api_client.scheduler.create()
scheduler.a... | 38,164 |
https://github.com/kiransabne/calmecac/blob/master/app/policies/my_classroom_policy.rb | Github Open Source | Open Source | MIT | 2,018 | calmecac | kiransabne | Ruby | Code | 11 | 40 | class MyClassroomPolicy < Struct.new(:user, :my_classroom)
def index?
user.has_role? :student
end
end
| 50,362 |
https://github.com/Missouri-BMI/popmednet/blob/master/Plugins/Lpp.Dns.General.Metadata/Views/DisplayRequest.cshtml | Github Open Source | Open Source | Apache-2.0 | 2,021 | popmednet | Missouri-BMI | C# | Code | 736 | 3,647 | @using Lpp.Mvc
@using Lpp.Dns.Portal
@model Lpp.Dns.General.Metadata.Models.MetadataSearchModel
@{
this.Stylesheet("MetadataSearch.css");
var id = Html.UniqueId();
}
<script type="text/javascript">
var KOViewModel = true; // indicates this page is built with KO templates
</script>
<div id="AgeRangeT... | 33,650 |
https://github.com/anniyanvr/gravitee-gateway/blob/master/gravitee-apim-rest-api/gravitee-apim-rest-api-management/gravitee-apim-rest-api-management-rest/src/main/java/io/gravitee/rest/api/management/rest/resource/param/AuditType.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | gravitee-gateway | anniyanvr | Java | Code | 149 | 438 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 22,577 |
https://github.com/joseacevedo9698/prueba-tecnica-slab-code/blob/master/src/Models/index.ts | Github Open Source | Open Source | MIT | null | prueba-tecnica-slab-code | joseacevedo9698 | TypeScript | Code | 12 | 25 | export * from './Interfaces'
export * from './Structures'
export * from './Schemas'
| 44,579 |
https://github.com/onpointtech/agency-portal-v2/blob/master/ClaimantServiceNew/src/main/java/com/opt/optimum/ui/benefits/claimant/business/ClaimantBusinessServiceImpl.java | Github Open Source | Open Source | Unlicense | null | agency-portal-v2 | onpointtech | Java | Code | 132 | 697 | package com.opt.optimum.ui.benefits.claimant.business;
import java.time.OffsetDateTime;
import java.util.List;
import org.modelmapper.ModelMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
imp... | 48,481 |
https://github.com/9d77v/leetcode/blob/master/internal/lcof/32.cong-shang-dao-xia-da-yin-er-cha-shu/main.go | Github Open Source | Open Source | BSD-3-Clause | null | leetcode | 9d77v | Go | Code | 85 | 374 | package main
import (
. "github.com/9d77v/leetcode/pkg/algorithm/binarytree"
)
/*
题目:从上到下打印二叉树
从上到下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-lcof/
*/
/*
方法一:bfs
时间复杂度:О(n)
空间复杂度:О(n)
运行时间:0 ms 内存消耗:2.7 MB
*/
func levelOrder(root *TreeNod... | 4,066 |
https://github.com/pattayatus/Nextjs-Car-Market/blob/master/pages/HomePage.js | Github Open Source | Open Source | MIT | null | Nextjs-Car-Market | pattayatus | JavaScript | Code | 456 | 1,881 | import React from "react";
import Link from "next/link";
// plugin that creates slider
import Slider from "nouislider";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
import InputAdornment from "@material-ui/core/InputAdornment";
import FormControlLabel from "@material-ui/core/F... | 33,931 |
https://github.com/Robotron-GmbH/splunk-youtube-material/blob/master/Saegewerk/bin/Saegewerk.py | Github Open Source | Open Source | MIT | 2,021 | splunk-youtube-material | Robotron-GmbH | Python | Code | 624 | 6,020 | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 11:09:31 2020
@author: stephan.fuchs
"""
import sys
import os
sys.path.insert(0, "..")
import datetime
import time
import random
from random import randrange
import math
Erstelle_Lookup=False
kunden=int(sys.argv[1]) #Anzahl der Sekunden wie lange das Skript la... | 42,085 |
https://github.com/lmachens/aeternum-map/blob/master/src/app/utils/useReadLivePosition.ts | Github Open Source | Open Source | MIT | 2,022 | aeternum-map | lmachens | TypeScript | Code | 481 | 1,487 | import { useEffect, useState } from 'react';
import { io } from 'socket.io-client';
import { useAccount } from '../contexts/UserContext';
import { getJSONItem } from './storage';
import { toast } from 'react-toastify';
import useGroupPositions from '../components/WorldMap/useGroupPositions';
import { usePlayer } from '... | 23,773 |
https://github.com/tmancal74/quantarhei/blob/master/quantarhei/wizard/benchmarks/bm_001.py | Github Open Source | Open Source | MIT | 2,023 | quantarhei | tmancal74 | Python | Code | 44 | 222 | # -*- coding: utf-8 -*-
import quantarhei as qr
def main():
with qr.energy_units("1/cm"):
mol1 = qr.Molecule([0.0, 12000.0])
mol2 = qr.Molecule([0.0, 12100.0])
mol3 = qr.Molecule([0.0, 12100.0])
agg = qr.Aggregate([mol1, mol2, mol3])
m1 = qr.Mode(100)
... | 1,255 |
https://github.com/WuSantaFe/YiShaAdmin/blob/master/YiSha.Web/YiSha.Admin.Web/Areas/OrganizationManage/Views/Department/DepartmentForm.cshtml | Github Open Source | Open Source | MIT | 2,021 | YiShaAdmin | WuSantaFe | C# | Code | 284 | 1,284 | @{
Layout = "~/Views/Shared/_FormWhite.cshtml";
}
<div class="wrapper animated fadeInRight">
<form id="form" class="form-horizontal m">
<div class="form-group">
<label class="col-sm-3 control-label ">上级部门</label>
<div class="col-sm-8">
<div id="parentId" col="Pa... | 19,675 |
https://github.com/Clay-Ferguson/quantizr/blob/master/src/main/java/quanta/service/LuceneService.java | Github Open Source | Open Source | MIT | 2,023 | quantizr | Clay-Ferguson | Java | Code | 221 | 561 | package quanta.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import quanta.config.ServiceBase;
import quanta.mongo.MongoSession;
import quanta.mongo.model.SubNode;
import quanta.response.LuceneIndexResponse;
import quanta.response.LuceneSearchRespons... | 35,822 |
https://github.com/stephenstengel/361-lab5/blob/master/ShortThrower.cpp | Github Open Source | Open Source | MIT | null | 361-lab5 | stephenstengel | C++ | Code | 90 | 308 | /*
* Stephen Stengel <stephen.stengel@cwu.edu> 40819903
*
* ShortThrower.cpp
*
* ShortThrower ant. Inherits from Ant
*
*/
#include "ShortThrower.h"
#include "GameBoard.h"
ShortThrower::ShortThrower()
{
setType("ShortThrower");
setHealthRemaining(SHORT_THROWER_STARTING_HEALTH);
}
ShortThrower::~ShortThrower... | 12,882 |
https://github.com/binh-lashic/lashic-care-web/blob/master/fuel/app/com/gmo_pg/client/output/SearchRecurringResultOutput.php | Github Open Source | Open Source | MIT | null | lashic-care-web | binh-lashic | PHP | Code | 1,034 | 4,227 | <?php
require_once ('com/gmo_pg/client/output/BaseOutput.php');
/**
* <b>自動売上自動売上結果照会 出力パラメータクラス</b>
*
* @package com.gmo_pg.client
* @subpackage output
* @see outputPackageInfo.php
* @author GMO PaymentGateway
*/
class SearchRecurringResultOutput extends BaseOutput {
/**
* @var string 課金手段
*/
var $metho... | 22,021 |
https://github.com/nethkenn/ultraproactive/blob/master/app/Http/Controllers/AdminFaqController.php | Github Open Source | Open Source | MIT | null | ultraproactive | nethkenn | PHP | Code | 193 | 1,048 | <?php namespace App\Http\Controllers;
use DB;
use Redirect;
use Request;
use App\Classes\Image;
use App\Classes\Admin;
use App\Classes\Log;
class AdminFaqController extends AdminController
{
public function index()
{
$data["category"] = Request::input("type");
$data["_product"] = DB::table("tbl_faq")->where("faq_... | 27,596 |
https://github.com/Dhruv-Sachdev1313/macports-webapp/blob/master/app/port/migrations/0006_port_subscribers.py | Github Open Source | Open Source | BSD-2-Clause | 2,022 | macports-webapp | Dhruv-Sachdev1313 | Python | Code | 40 | 174 | # Generated by Django 2.2.10 on 2020-07-10 12:49
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('port', '0005_auto_20200625_1819'),
]
operations... | 2,189 |
https://github.com/LaudateCorpus1/smart-test-framework/blob/master/stf-desktop-automation-lib/src/main/java/com/github/jeansantos38/stf/framework/ui/UiAutomationHelper.java | Github Open Source | Open Source | MIT | 2,020 | smart-test-framework | LaudateCorpus1 | Java | Code | 1,381 | 4,559 | package com.github.jeansantos38.stf.framework.ui;
import com.github.jeansantos38.stf.enums.UiMouseButton;
import com.github.jeansantos38.stf.framework.io.InputOutputHelper;
import com.github.jeansantos38.stf.framework.misc.CalendarHelper;
import com.github.jeansantos38.stf.framework.misc.RandomValuesHelper;
import com... | 41,306 |
https://github.com/alisw/AliPhysics/blob/master/PWGDQ/dielectron/macrosLMEE/ConfigRemiLMEEPbPb2011AOD.C | Github Open Source | Open Source | 2,023 | AliPhysics | alisw | C | Code | 1,980 | 14,833 | //#include "PWGDQ/dielectron/macrosLMEE/LMEECutLib.C"
void InitHistograms(AliDielectron *die, Int_t cutDefinition);
void InitCF(AliDielectron* die, Int_t cutDefinition);
void EnableMC();
TString names=("noPairing;ITSTPCTOFCentnoRej;ITSTPCTOFSemiCent1noRej;ITSTPCTOFSemiCent2noRej;ITSTPCTOFPerinoRej;ITSTPCTOFCentInvMLow... | 9,740 | |
https://github.com/sylarsykes/java-spring-boot-meal-builder/blob/master/common/common-util/src/main/java/org/sylrsykssoft/springboot/common/util/mapper/ModelMapperFunction.java | Github Open Source | Open Source | Apache-2.0 | null | java-spring-boot-meal-builder | sylarsykes | Java | Code | 121 | 391 | /**
* ModelMapperFunction.java 31 ene. 2021
*
*/
package org.sylrsykssoft.springboot.common.util.mapper;
import java.util.function.Function;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.extern.slf4j.Slf4j;
/**
* Mapper entity to resource or res... | 1,794 |
https://github.com/ray-ruisun/FedML/blob/master/app/fedcv/object_detection/model/__init__.py | Github Open Source | Open Source | Apache-2.0 | null | FedML | ray-ruisun | Python | Code | 6 | 16 | from .yolo.models.yolo import Model as YOLO
| 31,967 |
https://github.com/ravamo/hop/blob/master/plugins/transforms/http/src/test/java/org/apache/hop/pipeline/transforms/http/HttpTest.java | Github Open Source | Open Source | Apache-2.0 | null | hop | ravamo | Java | Code | 480 | 1,376 | /*! ******************************************************************************
*
* Hop : The Hop Orchestration Platform
*
* http://www.project-hop.org
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | 39,368 |
https://github.com/ErnstThalmann/2019-fall-polytech-cs/blob/master/Rosch-exs-1-2-2.py | Github Open Source | Open Source | MIT | null | 2019-fall-polytech-cs | ErnstThalmann | Python | Code | 47 | 163 | def factorial(Number):
factorial_value = 1
for i in range(1, Number+1):
factorial_value *= i
return factorial_value
def distribution_options_top3(func):
print(abs(func(Number)//(func(Number-3))))
def distribution_options_all(func):
print(abs(func(Number)))
print("Enter number of attendees: ")
Number = int(... | 33,740 |
https://github.com/Stratus3D/dotfiles/blob/master/vim/UltiSnips/sh.snippets | Github Open Source | Open Source | MIT | 2,023 | dotfiles | Stratus3D | Vim Snippet | Code | 187 | 492 | # Many of these snippets were taken from my own Bash scripts, or from places
# like:
# * https://betterdev.blog/minimal-safe-bash-script-template/
# * https://dougrichardson.us/2018/08/03/fail-fast-bash-scripting.html
# * https://github.com/ralish/bash-script-template
snippet shebang "The Bash shebang line I typically... | 30,824 |
https://github.com/Philippe-Morin/azure-powershell/blob/master/src/ResourceManager/PolicyInsights/Commands.PolicyInsights/Cmdlets/GetAzureRmPolicyState.cs | Github Open Source | Open Source | MIT | null | azure-powershell | Philippe-Morin | C# | Code | 1,188 | 4,168 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | 49,459 |
https://github.com/dewpey/GlobalHealth/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | GlobalHealth | dewpey | Ignore List | Code | 12 | 125 |
Server/vaccine_checker.py
Server/Tierion_check.py
Server/raw_data.csv
Server/medicaid.pyc
Server/medicaid.py
Server/BetterDoctor.py
Server/BetterDoctor.js
Server/__pycache__/medicaid.cpython-36.pyc
Server/__pycache__/insuranceinfo.cpython-37.pyc
Server/.DS_Store
.DS_Store
Xcode/GlobalHealth/Pods/
| 33,410 |
https://github.com/arielhenryson/Socotra/blob/master/src/public/app/app.component.spec.ts | Github Open Source | Open Source | MIT | 2,016 | Socotra | arielhenryson | TypeScript | Code | 87 | 233 | import { TestBed } from '@angular/core/testing'
import { App } from './app.component'
import { BrowserDynamicTestingModule,
platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'
import { RouterTestingModule } from '@angular/router/testing'
let fixture
let comp
describe('1st tests', () ... | 50,203 |
https://github.com/majk1/netbeans-mmd-plugin/blob/master/mind-map/nb-mind-map/src/main/java/com/igormaznitsa/nbmindmap/nb/refactoring/MindMapLink.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | netbeans-mmd-plugin | majk1 | Java | Code | 455 | 1,279 | /*
* Copyright 2015-2018 Igor Maznitsa.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 30,637 |
https://github.com/openopt/copt/blob/master/ci/test.sh | Github Open Source | Open Source | BSD-3-Clause | 2,023 | copt | openopt | Shell | Code | 56 | 165 | #!/bin/sh
#
pip install -r requirements.txt
pip install pytest-parallel # run tests in parallel
python setup.py install
# py.test --workers auto
# pylint
pip install pylint anybadge
pylint --rcfile=ci/pylintrc --output-format=text copt tests/*.py examples/*.py examples/*/*.py | tee pylint.txt
score=$(sed -n 's/^Your ... | 26,225 |
https://github.com/vandermerwewaj/RED4ext.SDK/blob/master/include/RED4ext/Scripting/Natives/Generated/anim/CurvePathBakerAdvancedUserInput.hpp | Github Open Source | Open Source | MIT | 2,021 | RED4ext.SDK | vandermerwewaj | C++ | Code | 60 | 201 | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/CurvePathPartInput.hpp>
namespace RED4ext
{
namespace anim {
struct CurvePathBakerAdvancedUserInput
{
stat... | 179 |
https://github.com/WhitingHuo/apollo/blob/master/modules/v2x/fusion/libs/fusion/test_tools.h | Github Open Source | Open Source | Apache-2.0 | null | apollo | WhitingHuo | C | Code | 312 | 892 | /******************************************************************************
* Copyright 2020 The Apollo Authors. 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
... | 19,531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.