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/lyandy/EyeSight_iOS/blob/master/EyeSight/Classes/Past/PastDetail/Model/AndyPastDetailListModel.m | Github Open Source | Open Source | MIT | 2,017 | EyeSight_iOS | lyandy | Objective-C | Code | 40 | 149 | //
// AndyPastDetailListModel.m
// EyeSight
//
// Created by 李扬 on 15/11/12.
// Copyright © 2015年 andyli. All rights reserved.
//
#import "AndyPastDetailListModel.h"
#import "MJExtension.h"
#import "AndyPastDetailVideoListModel.h"
@implementation AndyPastDetailListModel
- (NSDictionary *)objectClassInArray
{
... | 36,747 |
https://github.com/ietf-tools/ietf-guides/blob/master/guides/models.py | Github Open Source | Open Source | BSD-3-Clause | 2,023 | ietf-guides | ietf-tools | Python | Code | 625 | 2,255 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
ATTEND_NONE = 'None'
ATTEND_ONE = 'One'
ATTEND_TWO = 'Two'
ATTEND_THREE = 'Three'
ATTEND_CHOICES = (
(ATTEND_NONE,'This is my first IETF meeting'),
(ATTEND_ONE, 'This is m... | 47,196 |
https://github.com/Rich2/openstrat/blob/master/Util/src/pParse/NatHexaToken.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | openstrat | Rich2 | Scala | Code | 157 | 353 | /* Copyright 2018-21 Richard Oliver. Licensed under Apache Licence version 2.0. */
package ostrat; package pParse
/** Common trait for all tokens that can be valid hexadecimal natural numbers. */
trait NatHexaToken extends NatToken
{
def asHexaInt: Int =
{ var acc = 0
implicit val chars: Chars = digitsStr.toCh... | 33,382 |
https://github.com/robertbtown/BtownToolkit/blob/master/Example/Pods/Target Support Files/Pods-BtownToolkit_Tests/Pods-BtownToolkit_Tests-dummy.m | Github Open Source | Open Source | MIT | 2,018 | BtownToolkit | robertbtown | Objective-C | Code | 10 | 56 | #import <Foundation/Foundation.h>
@interface PodsDummy_Pods_BtownToolkit_Tests : NSObject
@end
@implementation PodsDummy_Pods_BtownToolkit_Tests
@end
| 40,646 |
https://github.com/elhadji907/onfp/blob/master/resources/views/courriers/index.blade.php | Github Open Source | Open Source | MIT | null | onfp | elhadji907 | PHP | Code | 659 | 2,898 | @extends('layout.default')
@section('title', 'Onfp | Home')
@section('content')
@hasrole('Administrateur|Courrier|Gestionnaire|Demandeur|ACourrier')
<div class="container-fluid">
<div class="row">
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
... | 5,265 |
https://github.com/NexusMax/yii2-ads/blob/master/backend/config/main.php | Github Open Source | Open Source | BSD-3-Clause | 2,018 | yii2-ads | NexusMax | PHP | Code | 406 | 1,344 | <?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-backend',
'basePath' => dirname(__DIR__),
'control... | 26,352 |
https://github.com/ndq809/EPLUS/blob/master/SQL/master/popup/p003/SPC_P003_LST3.sql | Github Open Source | Open Source | MIT | 2,021 | EPLUS | ndq809 | SQL | Code | 200 | 874 | IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[SPC_P003_LST3]') AND type IN (N'P', N'PC'))
/****** Object: StoredProcedure [dbo].[SPC_M001L_FND1] Script Date: 2017/11/23 16:46:46 ******/
DROP PROCEDURE [dbo].[SPC_P003_LST3]
GO
/****** Object: StoredProcedure [dbo].[SPC_M001L_FND1] S... | 12,708 |
https://github.com/equipe25-GetHub/frontend/blob/master/src/views/404.vue | Github Open Source | Open Source | BSD-Source-Code | null | frontend | equipe25-GetHub | Vue | Code | 22 | 77 | <template>
<div class="not-found flex row justify-center">
Desculpe, página não encontrada, <router-link to="/login">Login</router-link>
</div>
</template>
<script>
export default {
name: 'NotFound'
};
</script>
| 48,653 |
https://github.com/bcgov/sbc-common-components/blob/master/vue/sbc-common-components/src/components/SbcAuthMenu.vue | Github Open Source | Open Source | Apache-2.0 | 2,023 | sbc-common-components | bcgov | Vue | Code | 692 | 2,553 | <template>
<!-- Login Menu -->
<v-card>
<div>
<v-card-title class="body-2 font-weight-bold">Select login method</v-card-title>
<v-divider></v-divider>
</div>
<v-list
tile
dense
>
<v-list-item
v-for="loginOption in loginOptions"
:key="loginOption.idpHint"... | 14,902 |
https://github.com/hongframework/hamster/blob/master/basic/src/main/java/com/hframework/hamster/sec/domain/model/HfsecOrganize_Example.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | hamster | hongframework | Java | Code | 2,321 | 8,713 | package com.hframework.hamster.sec.domain.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HfsecOrganize_Example {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
protected Integer limitStart;
prote... | 2,288 |
https://github.com/franz1981/infinispan/blob/master/commons/all/src/main/java/org/infinispan/commons/dataconversion/EncodingException.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | infinispan | franz1981 | Java | Code | 31 | 102 | package org.infinispan.commons.dataconversion;
import org.infinispan.commons.CacheException;
/**
* @since 9.1
*/
public class EncodingException extends CacheException {
public EncodingException(String message) {
super(message);
}
public EncodingException(String message, Throwable cause) {
supe... | 4,285 |
https://github.com/sw5cc/Excel2MySQL/blob/master/Excel2MySQL/slave.py | Github Open Source | Open Source | MIT | null | Excel2MySQL | sw5cc | Python | Code | 47 | 175 | # -*- utf-8 -*-
from time import sleep
from .utils import pop_request, bytes_to_str
from .dumps import xls2db
class Slave(object):
def next_requests(self):
return pop_request()
def start_requests(self):
return self.next_requests()
def process(self):
while True:
req ... | 40,138 |
https://github.com/CompPhysics/ThesisProjects/blob/master/doc/MSc/msc_students/former/johannes/programs/seriefiler/complex-interaction.f90 | Github Open Source | Open Source | CC0-1.0 | 2,023 | ThesisProjects | CompPhysics | Fortran Free Form | Code | 3,032 | 9,576 | ! Program block complex-interaction.f90
!
! Author: Gaute Hagen and Morten Hjorth-Jensen
! ADDRESS: Dept. Physics, Universities of Bergen and Oslo, Norway
! E-MAIL: gaute.hagen@ift.uib.no, morten.hjorth-jensen@fys.uio.no
! LANGUAGE: F90/F95
! ... | 49,709 |
https://github.com/Zarbokk/HippoCampus_Tools/blob/master/new_pc_tools/tools_install.sh | Github Open Source | Open Source | BSD-3-Clause | null | HippoCampus_Tools | Zarbokk | Shell | Code | 186 | 545 | #!/bin/bash
## Terminator htop system tools ( make git etc etc....)
sudo usermod -a -G dialout $USER
sudo apt-get update -y
sudo apt-get install git zip qtcreator cmake build-essential genromfs ninja-build exiftool astyle -y
# make sure xxd is installed, dedicated xxd package since Ubuntu 18.04 but was squashed into ... | 46,787 |
https://github.com/shenguojun/thomasjungblut-common/blob/master/src/de/jungblut/math/minimize/ParticleSwarmOptimization.java | Github Open Source | Open Source | Apache-2.0 | 2,012 | thomasjungblut-common | shenguojun | Java | Code | 559 | 1,342 | package de.jungblut.math.minimize;
import java.util.Arrays;
import java.util.Random;
import de.jungblut.math.DoubleVector;
import de.jungblut.math.dense.DenseDoubleVector;
/**
* Particle Swarm Optimization algorithm to minimize costfunctions. This works
* quite like {@link GradientDescent}, but for this to work we... | 1,963 |
https://github.com/commercetools/commercetools-dotnet-core-sdk-v2/blob/master/commercetools.Sdk/commercetools.Sdk.HistoryApi/Generated/Models/Changes/ChangeLocalizedEnumValueOrderChange.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | commercetools-dotnet-core-sdk-v2 | commercetools | C# | Code | 87 | 262 | using commercetools.Sdk.HistoryApi.Models.ChangeValues;
using System.Collections.Generic;
using System.Linq;
namespace commercetools.Sdk.HistoryApi.Models.Changes
{
public partial class ChangeLocalizedEnumValueOrderChange : IChangeLocalizedEnumValueOrderChange
{
public string Type { get; set; }
... | 36,776 |
https://github.com/Langqs/--/blob/master/src/views/product/Spu/index.vue | Github Open Source | Open Source | MIT | null | -- | Langqs | Vue | Code | 410 | 2,189 | <template>
<div>
<el-table :data="skuList.records" border style="width: 100%">
<el-table-column type="index" label="序号" width="80">
</el-table-column>
<el-table-column prop="skuName" label="名称" width="width">
</el-table-column>
<el-table-column pro... | 6,721 |
https://github.com/gregoryduckworth/sloot-ainoga/blob/master/resources/views/admin/index.blade.php | Github Open Source | Open Source | MIT | null | sloot-ainoga | gregoryduckworth | PHP | Code | 34 | 160 | @extends('standard')
@section('title', 'Welcome')
@section('content')
<div class="col">
<div class="text-center">
Welcome to Agonia Tools - Admin Section!
</div>
<div class="col mx-auto mh-100" style="padding-top: 20px;">
<li><a href="/admin/update-info">Update Info... | 2,796 |
https://github.com/bhuman/BHumanCodeRelease/blob/master/Src/Modules/Perception/Scanlines/ScanLineRegionizer.h | Github Open Source | Open Source | BSD-2-Clause | 2,023 | BHumanCodeRelease | bhuman | C++ | Code | 2,015 | 4,518 | /**
* @file ScanLineRegionizer.h
*
* This file declares a module that segments the image horizontally and
* vertically by detecting edges and applying heuristics to classify
* the regions between them.
*
* @author Lukas Malte Monnerjahn
* @author Arne Hasselbring
*/
#pragma once
#include "Representations/Con... | 28,527 |
https://github.com/Joshb888/dd/blob/master/dashboard/public/bower_components/ckeditor/plugins/bidi/lang/oc.js | Github Open Source | Open Source | MIT | 2,022 | dd | Joshb888 | JavaScript | Code | 21 | 70 | CKEDITOR.plugins.setLang("bidi", "oc", {
ltr: "Direccion del tèxte d'esquèrra cap a dreita",
rtl: "Direccion del tèxte de dreita cap a esquèrra",
});
| 14,847 |
https://github.com/siddhant3030/djangoecommerce/blob/master/satchmo/satchmo/projects/simple/urls.py | Github Open Source | Open Source | BSD-2-Clause | 2,019 | djangoecommerce | siddhant3030 | Python | Code | 15 | 56 | from django.conf.urls import url, include
from satchmo_store.urls import urlpatterns
urlpatterns += [
url(r'test/', include('simple.localsite.urls'))
]
| 2,458 |
https://github.com/AhmedSafwat1/I-learn-backend/blob/master/Modules/Learn/Database/Seeders/LearnDatabaseSeeder.php | Github Open Source | Open Source | MIT | null | I-learn-backend | AhmedSafwat1 | PHP | Code | 33 | 132 | <?php
namespace Modules\Learn\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Modules\Learn\Database\Seeders\SubjectTableSeeder;
class LearnDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()... | 42,903 |
https://github.com/ArthurFerreira2/herve/blob/master/C-tests/2-main.s | Github Open Source | Open Source | MIT | 2,021 | herve | ArthurFerreira2 | GAS | Code | 71 | 316 | .file "2-main.c"
.option nopic
.attribute arch, "rv32i2p0_m2p0"
.attribute unaligned_access, 0
.attribute stack_align, 16
.text
.section .rodata.str1.4,"aMS",@progbits,1
.align 2
.LC0:
.string "Hello World !\n"
.section .text.startup,"ax",@progbits
.align 2
.globl main
.type main, @function
main:
lui a5,%... | 20,156 |
https://github.com/andyshep/OrigamiEngine/blob/master/Example/OSX/OrigamiEngine Example/AppDelegate.m | Github Open Source | Open Source | MIT | 2,020 | OrigamiEngine | andyshep | Objective-C | Code | 44 | 155 | //
// ORGMAppDelegate.m
// OrigamiEngine Example
//
// Created by Arthur Evstifeev on 9/02/13.
//
//
#import "AppDelegate.h"
#import "PlayerViewController.h"
@interface AppDelegate ()
@property (strong, nonatomic) PlayerViewController *playerViewController;
@end
@implementation AppDelegate
- (void)applicationDid... | 32,954 |
https://github.com/Clever/wag/blob/master/tracing/go.mod | Github Open Source | Open Source | Apache-2.0 | 2,023 | wag | Clever | Go Module | Code | 35 | 298 | module github.com/Clever/wag/tracing
go 1.16
require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.2 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.0
go.opentelemetry.io/otel v1.10.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0
go.opentelemetry.io/otel/exporters/... | 6,298 |
https://github.com/gii-is-DP2/DP2-1920-G1-08/blob/master/src/test/java/org/springframework/inmocasa/service/ViviendaServiceTests.java | Github Open Source | Open Source | LicenseRef-scancode-generic-cla, Apache-2.0 | 2,020 | DP2-1920-G1-08 | gii-is-DP2 | Java | Code | 384 | 2,236 | package org.springframework.inmocasa.service;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertTrue;
import java.time.LocalDate;
import java.util.Collection;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | 28,812 |
https://github.com/kbr-ucl/Hands-On-Domain-Driven-Design-with-.NET-Core/blob/master/Chapter13/src/Marketplace.EventStore/EsCheckpointStore.cs | Github Open Source | Open Source | MIT | 2,020 | Hands-On-Domain-Driven-Design-with-.NET-Core | kbr-ucl | C# | Code | 145 | 528 | using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EventStore.ClientAPI;
using Marketplace.EventSourcing;
using Newtonsoft.Json;
namespace Marketplace.EventStore
{
public class EsCheckpointStore : ICheckpointStore
{
const string CheckpointStreamPrefix = "checkpoint:... | 37,269 |
https://github.com/maniero/SOpt/blob/master/Java/OOP/SetterInherited.java | Github Open Source | Open Source | MIT | 2,023 | SOpt | maniero | Java | Code | 13 | 51 | @Override
public void setA(int value) {
if (value > 0) super.setA(value);
}
//https://pt.stackoverflow.com/q/463283/101
| 35,387 |
https://github.com/w0shiliyang/Yuncai/blob/master/YBL365/Class/Profile/Section3/GoodManage/EditGood/GoodAllInfos/ViewModel/YBLGoodAllInfosViewModel.m | Github Open Source | Open Source | MIT | 2,020 | Yuncai | w0shiliyang | Objective-C | Code | 56 | 204 | //
// YBLGoodAllInfosViewModel.m
// YC168
//
// Created by 乔同新 on 2017/5/12.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import "YBLGoodAllInfosViewModel.h"
#import "YBLGoodModel.h"
@implementation YBLGoodAllInfosViewModel
- (NSMutableArray *)companyTypeDataArray{
if (!_companyTypeDataArray) {
... | 32,767 |
https://github.com/Framstag/urlstr/blob/master/urlstr-backend/src/main/java/com/framstag/urlstr/Main.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | urlstr | Framstag | Java | Code | 142 | 652 | package com.framstag.urlstr;
import io.quarkus.runtime.Quarkus;
import io.quarkus.runtime.QuarkusApplication;
import io.quarkus.runtime.annotations.QuarkusMain;
import org.neo4j.configuration.GraphDatabaseSettings;
import org.neo4j.configuration.connectors.BoltConnector;
import org.neo4j.configuration.helpers.SocketAd... | 24,980 |
https://github.com/ilkrbk/Apartment-app/blob/master/front/components/main/main-about/_main-about.sass | Github Open Source | Open Source | BSD-2-Clause | 2,021 | Apartment-app | ilkrbk | Sass | Code | 112 | 398 | .main-about
padding: 100px 0
position: relative
&::after
content: ''
background: url('../../../public/img/bg-main-about.svg') 50% 50% no-repeat
width: 30%
height: 100%
position: absolute
left: 12%
top: 0
@include largeDevice
padding: 80px 0... | 41,821 |
https://github.com/twopointzero/TJAPlayer3/blob/master/TJAPlayer3/Stages/07.Game/Taiko/CAct演奏Drums判定文字列.cs | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference | 2,021 | TJAPlayer3 | twopointzero | C# | Code | 447 | 1,763 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Runtime.InteropServices;
using SlimDX;
namespace TJAPlayer3
{
internal class CAct演奏Drums判定文字列 : CAct演奏判定文字列共通
{
// コンストラクタ
public CAct演奏Drums判定文字列()
{
this.stレーンサイズ = new STレーンサイズ[ 12 ];
base.b活性化し... | 15,201 |
https://github.com/joaovitormarianocorreia/trabalho-compiladores/blob/master/T2.h | Github Open Source | Open Source | MIT | null | trabalho-compiladores | joaovitormarianocorreia | C | Code | 164 | 485 | #define MAX 50
void ERRO_SINTATICO(char tipo[MAX], int linha);
void PROX_TOKEN(FILE *input, char token[], int linha);
void PROGRAM(FILE *input, char token[], int linha);
void BLOCO(FILE *input, char token[], int linha);
void VARIAVEIS(FILE *input, char token[], int linha);
void VARIAVEIS2(FILE *input, char token[], in... | 7,018 |
https://github.com/htpans/htpans/blob/master/ImageJ_Macros/Background_Subtraction.ijm | Github Open Source | Open Source | MIT | 2,020 | htpans | htpans | ImageJ Macro | Code | 36 | 139 | dir1 = getDirectory("Choose Source Directory ");
dir2 = getDirectory("Choose Destination Directory ");
list = getFileList(dir1);
setBatchMode(true);
for (k=0; k<list.length; k++) {
showProgress(k+1, list.length);
open(dir1+list[k]);
title = getTitle();
//print(title);
run("Subtract Background...", "rolling=... | 25,758 |
https://github.com/Hiswe/concompte/blob/master/acount-helpers/src/filter-array-with-object.ts | Github Open Source | Open Source | MIT | null | concompte | Hiswe | TypeScript | Code | 151 | 399 | import merge from 'lodash.merge'
import isObject from 'lodash.isobject'
// {foo: `bar`} [{foo: `bar`}, {foo: `baz`}] => [{foo: `baz`}]
interface Params<T, K> {
defaultObject: T
array: Array<K>
}
export function filterArrayWithObject<T, K>({
defaultObject,
array,
}: Params<T, K>): K[] {
if (!Array.isArray(ar... | 39,067 |
https://github.com/kevinzhwl/ObjectARXCore/blob/master/2007/utils/Atil/Inc/RgbPaletteModel.h | Github Open Source | Open Source | MIT | 2,021 | ObjectARXCore | kevinzhwl | C | Code | 583 | 1,289 | ///////////////////////////////////////////////////////////////////////////////
//
//
// (C) Copyright 2005 by Autodesk, Inc. All rights reserved.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above co... | 45,627 |
https://github.com/SALUD-AR/sigep/blob/master/aviso.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | sigep | SALUD-AR | PHP | Code | 295 | 1,466 | <?php
require_once("config.php");
//error_reporting(8);
include "modulos/tareas/funcion.php";
echo $html_header;
// Variables
$id=$_GET["id"] or $id=$_POST["id"];
$cmd=$_POST["cmd"];
// Funciones
function actualiza () {
$sql="select id_tarea,anuncio from tareas where
(asignado ilike '%|".$_ses_user["login"].... | 2,574 |
https://github.com/DataDog/integrations-core/blob/master/kafka_consumer/tests/docker/kerberos/kdc/start.sh | Github Open Source | Open Source | BSD-3-Clause, MIT, BSD-3-Clause-Modification, Unlicense, Apache-2.0, LGPL-3.0-only, LicenseRef-scancode-public-domain, BSD-2-Clause, CC0-1.0 | 2,023 | integrations-core | DataDog | Shell | Code | 129 | 502 | #!/usr/bin/env bash
rm /var/lib/secret/*.key
# Kafka service principal:
kadmin.local -w password -q "add_principal -randkey kafka/broker.kerberos-demo.local@TEST.CONFLUENT.IO" > /dev/null
# Zookeeper service principal:
kadmin.local -w password -q "add_principal -randkey zookeeper/zookeeper.kerberos-demo.local@TEST.... | 8,541 |
https://github.com/Maqsim/stackoverflow-app/blob/master/src/models/index.ts | Github Open Source | Open Source | MIT | 2,022 | stackoverflow-app | Maqsim | TypeScript | Code | 20 | 70 | export * from './extensions/with-environment';
export * from './extensions/with-root-store';
export * from './root-store/root-store';
export * from './root-store/root-store-context';
export * from './root-store/setup-root-store';
| 17,695 |
https://github.com/vitaxa/telegramit/blob/master/telegramit-core/src/test/kotlin/org/botlaxy/telegramit/core/client/TelegramPollingClientTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,021 | telegramit | vitaxa | Kotlin | Code | 94 | 500 | package org.botlaxy.telegramit.core.client
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import io.mockk.*
import io.mockk.impl.annotations.MockK
import org.botlaxy.telegramit.core.TelegramBot
import org.botlaxy.telegramit.core.client.api.TelegramAp... | 27,063 |
https://github.com/NF-TopSky-Team/TopskyHotelManagerSystem/blob/master/SYS.FormUI/AppFunction/FrmAboutUs.cs | Github Open Source | Open Source | MIT | 2,022 | TopskyHotelManagerSystem | NF-TopSky-Team | C# | Code | 290 | 704 | /*
* MIT License
*Copyright (c) 2021 咖啡与网络(java-and-net)
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this software and associated documentation files (the "Software"), to deal
*in the Software without restriction, including without limitation the rights
*to use, copy, modif... | 14,875 |
https://github.com/parakhnr/TestHarness/blob/master/CppCommWithFileXfer/Utilities/DirExplorer-Template/Application.h | Github Open Source | Open Source | MIT | null | TestHarness | parakhnr | C | Code | 379 | 875 | #pragma once
///////////////////////////////////////////////////////////////////////
// Application.h - provides demonstration methods doFile and doDir //
// ver 1.1 //
// Jim Fawcett, CSE687 - Object Oriented Design, Fall 2018 //
///////////////////... | 47,227 |
https://github.com/osidufg/osibot/blob/master/commands/np.js | Github Open Source | Open Source | MIT | 2,021 | osibot | osidufg | JavaScript | Code | 112 | 440 | const { MessageEmbed } = require("discord.js");
const { splitBar } = require("string-progressbar");
module.exports = {
name: "np",
aliases: ["nowplaying"],
execute(message) {
const queue = message.client.queue.get(message.guild.id);
if (!queue) return message.channel.send("gada queueu... | 43,516 |
https://github.com/patrickwilmes/serenity/blob/master/Kernel/Graphics/Intel/NativeGraphicsAdapter.cpp | Github Open Source | Open Source | BSD-2-Clause | null | serenity | patrickwilmes | C++ | Code | 2,023 | 9,295 | /*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/x86/IO.h>
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Graphics/Console/ContiguousFramebufferConsole.h>
#include <Kernel/Graphics/Definitions.h>
#include <Kernel/Graphics/GraphicsManageme... | 608 |
https://github.com/ddd-ruby/attr_validator/blob/master/lib/pure_validator/validation_errors.rb | Github Open Source | Open Source | MIT | 2,021 | attr_validator | ddd-ruby | Ruby | Code | 1,019 | 2,377 | class PureValidator::ValidationErrors
attr_reader :messages
def initialize
@messages = {}
end
# Clear the error messages.
#
# errors.full_messages # => ["name can not be nil"]
# errors.clear
# errors.full_messages # => []
def clear
messages.clear
end
# Returns +true+ if the error ... | 45,148 |
https://github.com/zhangjunfeng123/SwiftHttp/blob/master/HDPhone/HDPhone/HDViewController.swift | Github Open Source | Open Source | MIT | 2,015 | SwiftHttp | zhangjunfeng123 | Swift | Code | 163 | 540 | //
// HDViewController.swift
// HDPhone
//
// Created by 张达棣 on 14-11-14.
// Copyright (c) 2014年 张达棣. All rights reserved.
//
import UIKit
import HDNetwork
class HDViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
var imageData = NSData(contentsOfFil... | 8,051 |
https://github.com/ameerthehacker/letschat/blob/master/src/app/components/threads/thread-list/thread-list.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,020 | letschat | ameerthehacker | TypeScript | Code | 58 | 198 | import { Component,
OnInit,
Input,
EventEmitter,
Output } from '@angular/core';
import { Thread } from "../../../models/thread";
import { User } from '../../../models/user';
@Component({
selector: 'lc-thread-list',
templateUrl: './thread-list.component.html',
styleUrls: ['./thread-list.component.scss... | 24,466 |
https://github.com/costrouc/matchpy/blob/master/matchpy/expressions/functions.py | Github Open Source | Open Source | MIT | 2,022 | matchpy | costrouc | Python | Code | 501 | 1,594 | from functools import singledispatch
from typing import Dict
from .expressions import (
Expression, Operation, Wildcard, AssociativeOperation, CommutativeOperation, SymbolWildcard, Pattern, OneIdentityOperation
)
__all__ = [
'is_constant', 'is_syntactic', 'get_head', 'match_head', 'preorder_iter', 'preorder_i... | 27,037 |
https://github.com/Ferlab-Ste-Justine/ferload/blob/master/app/auth/UserRequest.scala | Github Open Source | Open Source | Apache-2.0 | null | ferload | Ferlab-Ste-Justine | Scala | Code | 24 | 93 | package auth
import org.keycloak.representations.AccessToken
import play.api.mvc.{Request, WrappedRequest}
case class UserRequest[A](accessToken: AccessToken, token: String, request: Request[A]) extends WrappedRequest[A](request) {
val isRpt: Boolean = Option(accessToken.getAuthorization).isDefined
}
| 45,648 |
https://github.com/Folivi95/CleanArchitecture-2/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | CleanArchitecture-2 | Folivi95 | Ignore List | Code | 7 | 68 | .vs/*
.vscode/*
/CleanArchitecture.Presentation/obj/
/CleanArchitecture.Core/obj/
/CleanArchitecture.Infrastructure/obj/
/CleanArchitecture.Tests/obj/
/CleanArchitecture.Tests/bin/
| 28,287 |
https://github.com/acidicMercury8/xray-1.0/blob/master/sdk/boost_1_30_0/libs/graph/example/undirected_dfs.cpp | Github Open Source | Open Source | Linux-OpenIB | 2,020 | xray-1.0 | acidicMercury8 | C++ | Code | 363 | 985 | //=======================================================================
// Copyright 2002 Jeremy G. Siek, Andrew Lumsdaine, Lie-Quan Lee,
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// Boost Graph Library along with the software; see the f... | 26,989 |
https://github.com/ryanliszewski/Roomy/blob/master/roomy/Pods/ParseLiveQuery/Sources/ParseLiveQuery/Internal/BoltsHelpers.swift | Github Open Source | Open Source | MIT | null | Roomy | ryanliszewski | Swift | Code | 166 | 431 | /**
* Copyright (c) 2016-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Bolts
... | 47,688 |
https://github.com/stokpop/spring-cloud-sleuth/blob/master/tests/brave/spring-cloud-sleuth-instrumentation-feign-tests/src/test/java/org/springframework/cloud/sleuth/brave/instrument/feign/issues/issue393/Issue393Tests.java | Github Open Source | Open Source | Apache-2.0 | null | spring-cloud-sleuth | stokpop | Java | Code | 357 | 1,317 | /*
* Copyright 2013-2020 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 20,873 |
https://github.com/TheArijitSaha/MyMDb-RN-App/blob/master/Client/components/SeriesListItem/index.tsx | Github Open Source | Open Source | MIT | null | MyMDb-RN-App | TheArijitSaha | TypeScript | Code | 188 | 676 | import React, { PureComponent } from "react";
import {
ImageBackground,
StyleSheet,
Text,
View,
TouchableOpacity,
} from "react-native";
import { LinearGradient } from "expo-linear-gradient";
import SeriesProgress from "./SeriesProgress";
interface SeriesListItemProps {
series: Series;
navigation: any;... | 25,805 |
https://github.com/aa2g/ReiEdit-AA2/blob/master/AA2Lib/Effects/BrightnessShiftEffect.cs | Github Open Source | Open Source | MIT | 2,019 | ReiEdit-AA2 | aa2g | C# | Code | 113 | 384 | // --------------------------------------------------
// AA2Lib - BrightnessShiftEffect.cs
// --------------------------------------------------
using System;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Effects;
namespace AA2Lib.Effects
{
public class BrightnessShiftEffect : Shad... | 16 |
https://github.com/NexusLinkTeam/WeNavi/blob/master/app/src/main/java-gen/com/nexuslink/wenavi/FriendVerifyDao.java | Github Open Source | Open Source | Apache-2.0 | null | WeNavi | NexusLinkTeam | Java | Code | 525 | 1,428 | package com.nexuslink.wenavi;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao.internal.DaoConfig;
import com.nexuslink.wenavi.FriendVerify;
... | 1,191 |
https://github.com/koobitor/class-webpro/blob/master/lesson/week1/57090500414_Thanawat_HW1/login | Github Open Source | Open Source | MIT | 2,016 | class-webpro | koobitor | Shell | Code | 28 | 126 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title> Ragnarok Online Login</title>
</head>
<body>
<center>
<form>
<fieldset>
<legend>Login:</legend>
Username: <input type="text"><br>
Password: <input type="text"><br>
</fieldset>
</form>
</center>
</body>
</html>
| 479 |
https://github.com/fossabot/desktop-2/blob/master/packages/desktop-core/src/session/iSessionService.ts | Github Open Source | Open Source | ISC | null | desktop-2 | fossabot | TypeScript | Code | 31 | 66 | import { ISessionConfiguration } from "../configuration";
export interface ISessionService {
/**
* Configure the session based on the given configuration.
* @param configuration The session configuration
*/
configureSession(configuration: ISessionConfiguration): Promise<void>;
}
| 12,943 |
https://github.com/inishchith/DeepSpeech/blob/master/swig/Examples/test-suite/ocaml/inout_runme.ml | Github Open Source | Open Source | LicenseRef-scancode-swig, GPL-3.0-or-later, LicenseRef-scancode-unknown-license-reference, GPL-3.0-only, Apache-2.0 | 2,020 | DeepSpeech | inishchith | OCaml | Code | 30 | 75 | open Swig
open Inout
let _ =
assert (_AddOne1 '(1.) as float = 2.);
assert (_AddOne3 '(1, 1, 1) = C_list ['2.;'2.;'2.]);
assert (_AddOne1r '(1.) as float = 2.);
;;
| 16,247 |
https://github.com/sadikovi/Pulsar/blob/master/demo/js/util.js | Github Open Source | Open Source | Apache-2.0 | null | Pulsar | sadikovi | JavaScript | Code | 1,290 | 3,888 | var Util = function() {
return {
/* check for old IE versions */
isBadIE: function() {
if (window.attachEvent && !window.addEventListener) {
return true;
} else {
return false;
}
},
/* check if object is array */
... | 8,663 |
https://github.com/stevecaldwell77/Net-Amazon-DynamoDB-Marshaler/blob/master/t/basic.t | Github Open Source | Open Source | Artistic-1.0 | null | Net-Amazon-DynamoDB-Marshaler | stevecaldwell77 | Perl | Code | 2,295 | 5,970 | use strict;
use warnings;
use Test::More;
use Test::Deep;
use Test::Fatal;
use boolean;
use IO::Handle;
use Set::Object;
BEGIN { use_ok('Net::Amazon::DynamoDB::Marshaler'); }
# If the value is undef, use Null ('NULL')
sub test_undef() {
my $item = {
user_id => undef,
};
my $item_dynamodb = {
... | 35,528 |
https://github.com/FutaGuard/python-adguardhome/blob/master/adguardhome/types/filtering/__init__.py | Github Open Source | Open Source | MIT | null | python-adguardhome | FutaGuard | Python | Code | 8 | 17 | from .check_host import Check_Host
from .status import Status
| 1,247 |
https://github.com/trofi/re2c/blob/master/examples/rust/eof/03_eof_rule.rs | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain | 2,022 | re2c | trofi | Rust | Code | 385 | 1,090 | /* Generated by re2c */
// re2rust $INPUT -o $OUTPUT
// Expect a null-terminated string.
fn lex(s: &[u8]) -> isize {
let (mut cur, mut mar) = (0, 0);
let lim = s.len() - 1; // null-terminator not included
let mut count = 0;
'lex: loop {
{
#[allow(unused_assignments)]
let mut yych : u8 = 0;
let mut ... | 7,534 |
https://github.com/lalilaloe/carbon-ds/blob/master/components/file-uploader.ds.js | Github Open Source | Open Source | MIT | 2,021 | carbon-ds | lalilaloe | JavaScript | Code | 614 | 3,820 | export default {
displayName: "file-uploader",
name: "file-uploader",
homepage: "https://www.carbondesignsystem.com/components/file-uploader"
}
export const variants = [
{
displayName:"file-uploader",
picture:{
src:"./pictures/file-uploader/file-uploader.png",
width:281,
height:172},
snippet:{
html:`
<div... | 18,735 |
https://github.com/jagp2097/bb3d/blob/master/app/Policies/CompraPolicy.php | Github Open Source | Open Source | MIT | null | bb3d | jagp2097 | PHP | Code | 35 | 119 | <?php
namespace bagrap\Policies;
use bagrap\User;
use bagrap\Compra;
use bagrap\Pedido;
use Illuminate\Support\Facades\Auth;
use Illuminate\Auth\Access\HandlesAuthorization;
class CompraPolicy
{
use HandlesAuthorization;
public function index(User $user)
{
return Auth::check() && $user->role_id == 2 ? tru... | 26,294 |
https://github.com/ChristopherAsakiewicz/ASKquestions/blob/master/questions-with-classifier-ega-test/src/it/java/com/ibm/watson/app/qaclassifier/selenium/WelcomePageIT.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | ASKquestions | ChristopherAsakiewicz | Java | Code | 253 | 762 | /* Copyright IBM Corp. 2015
*
* 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 wr... | 96 |
https://github.com/laddushashavali123/Selenified_Java_Framework/blob/master/src/main/java/com/coveros/selenified/OutputFile.java | Github Open Source | Open Source | Apache-2.0 | null | Selenified_Java_Framework | laddushashavali123 | Java | Code | 3,240 | 9,020 | /*
* Copyright 2018 Coveros, Inc.
*
* This file is part of Selenified.
*
* Selenified is 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... | 50,513 |
https://github.com/nagaseshadri/puppet-vagrant-oc11.1/blob/master/modules/custom/sqldeveloper/lib/facter/sqldeveloper_installed.rb | Github Open Source | Open Source | MIT | 2,018 | puppet-vagrant-oc11.1 | nagaseshadri | Ruby | Code | 16 | 73 | require 'facter'
Facter.add(:sqldeveloper_installed) do
setcode do
if File.exist?Facter.value(:root_install_directory) + '/sqldeveloper/sqldeveloper.sh'
true
else
false
end
end
end | 18,536 |
https://github.com/jscalvo16/Php-Project-Up/blob/master/resources/views/autenticacion/cambiarContrasena.blade.php | Github Open Source | Open Source | MIT | null | Php-Project-Up | jscalvo16 | PHP | Code | 211 | 971 | <!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>ProjectUp</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<meta content="Author" name="SENA">
<!-- Favicons -->
<link href=" {{ as... | 5,476 |
https://github.com/gdelfiol/ClinicalKnowledgeSummary/blob/master/CKSapplication/src/app/clickTracker.directive.ts | Github Open Source | Open Source | Apache-2.0 | null | ClinicalKnowledgeSummary | gdelfiol | TypeScript | Code | 79 | 245 | import { Directive, ElementRef, HostListener } from '@angular/core';
import {DataService} from './services/data.service';
@Directive({
selector: '[clickTracker]'
})
export class ClickTrackerDirective {
constructor(public element: ElementRef, public dataService: DataService) { }
@HostListener('click', ['$event'... | 40,743 |
https://github.com/EduCordova/phpApiRest/blob/master/database/factories/TransactionFactory.php | Github Open Source | Open Source | MIT | 2,018 | phpApiRest | EduCordova | PHP | Code | 38 | 164 | <?php
use App\Transaction;
use App\Seller;
use App\User;
use Faker\Generator as Faker;
$factory->define(Transaction::class, function (Faker $faker) {
$vendedor = Seller::has('products')->get()->random();
$comprador = User::all()->except($vendedor->id)->random();
return [
// 'name' => $faker->word,
... | 25,226 |
https://github.com/GrigoryTsuryev/getpack/blob/master/src/schemas/delivery.ts | Github Open Source | Open Source | MIT | null | getpack | GrigoryTsuryev | TypeScript | Code | 56 | 164 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export type DeliveryDocument = Delivery & Document;
@Schema()
export class Delivery {
@Prop()
id: number;
@Prop()
packageSize: number;
@Prop()
cost: number;
@Prop()
description: string;
@Prop()
dat... | 24,601 |
https://github.com/BearerPipelineTest/botbuilder-dotnet/blob/master/libraries/Microsoft.Bot.Builder.AI.QnA/Models/KnowledgeBaseAnswerSpan.cs | Github Open Source | Open Source | MIT | 2,019 | botbuilder-dotnet | BearerPipelineTest | C# | Code | 172 | 366 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using Newtonsoft.Json;
namespace Microsoft.Bot.Builder.AI.QnA.Models
{
/// <summary>
/// Gets or sets precise answer of query from Knowledge Base.
/// </summary>
internal class KnowledgeBaseA... | 17,304 |
https://github.com/colombod/corefxlab/blob/master/src/ALCProxy.Communication/ALCClient.cs | Github Open Source | Open Source | MIT | 2,022 | corefxlab | colombod | C# | Code | 959 | 2,197 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflectio... | 310 |
https://github.com/bhenriq-souza/GraphQL-Booking-App-API/blob/master/database/mongo/index.js | Github Open Source | Open Source | MIT | null | GraphQL-Booking-App-API | bhenriq-souza | JavaScript | Code | 92 | 285 | const { Logger } = require('../../utils');
class MongooseConnection {
/**
* Initializes the Mongoose Connection Class
*
* @param {*} mongoose
* @param {*} config
*/
constructor(mongoose, config) {
this.mongoose = mongoose;
this.config = config;
this.logger = Logger.createLogger('info');
... | 24,757 |
https://github.com/IgnoredAmbience/test262/blob/master/implementation-contributed/javascriptcore/stress/scoped-arguments-test.js | Github Open Source | Open Source | BSD-3-Clause | null | test262 | IgnoredAmbience | JavaScript | Code | 54 | 136 | function foo(a)
{
(function() { return a; })();
return [arguments[0], arguments];
}
noInline(foo);
for (var i = 0; i < 10000; ++i) {
var result = foo(42);
if (result[0] != 42)
throw new Error("result[0] is not 42: " + result[0]);
if (result[1][0] != 42)
throw new Error("result[1][0... | 37,748 |
https://github.com/suryajayantara/InternCompetitionElectro/blob/master/app/InstalasiPenerangan.php | Github Open Source | Open Source | MIT | null | InternCompetitionElectro | suryajayantara | PHP | Code | 15 | 77 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class InstalasiPenerangan extends Model
{
protected $fillable = ['nama','nim','kelas','no_telpon','konsumsi','prodi','semester','id_line','status_bayar'];
}
| 18,419 |
https://github.com/openforis/calc/blob/master/calc-core/src/main/java/org/openforis/calc/chain/export/BaseUnitWeightROutputScript.java | Github Open Source | Open Source | MIT | 2,020 | calc | openforis | Java | Code | 106 | 439 | package org.openforis.calc.chain.export;
import org.apache.commons.lang3.StringUtils;
import org.openforis.calc.engine.Workspace;
import org.openforis.calc.metadata.Entity;
import org.openforis.calc.metadata.SamplingDesign;
import org.openforis.calc.r.RScript;
import org.openforis.calc.r.RVariable;
import org.openfori... | 25,054 |
https://github.com/ima-tech/pristine-ts/blob/master/packages/common/src/interfaces/dynamic-configuration-resolver.interface.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | pristine-ts | ima-tech | TypeScript | Code | 118 | 190 | import {InjectionToken} from "tsyringe";
/**
* This interface specifies what a DynamicConfigurationResolver should look like.
* A DynamicConfigurationResolver is used in configurations when you need an initialized instance of a service to resolve the value of the configuration.
* Beware that the service resolved by... | 42,635 |
https://github.com/jcmnunes/phd-calculation-routines/blob/master/peclet.m | Github Open Source | Open Source | MIT | 2,019 | phd-calculation-routines | jcmnunes | MATLAB | Code | 99 | 191 | function Pe = peclet(rp, Kd, Kc, Jv, D, Lp)
% PECLET Compute Pe number
% PE = PECLET(RP, KD, KC, JV, D, LP) evalutes
% the Peclet number (PE). Input arguments are:
% * RP - Membrane pore radius [m]
% * KD - Hindrance diffusion coefficient
% * KC - Hindrance convection coefficient
% * JV - ... | 35,484 |
https://github.com/boris-guzeev/test_news/blob/master/module/Application/src/Controller/IndexController.php | Github Open Source | Open Source | BSD-3-Clause | 2,020 | test_news | boris-guzeev | PHP | Code | 172 | 641 | <?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Application\Controller;
use A... | 13,271 |
https://github.com/masroore/CTEX/blob/master/resources/lang/ja/notifications.php | Github Open Source | Open Source | MIT | 2,021 | CTEX | masroore | PHP | Code | 19 | 87 | <?php
return [
'title' => '通知',
'page_title' => '通知',
'page_title_desc' => '取引所サービスからの通知',
'tag' => '通知',
'no_content_msg' => '内容がありません'
]; | 28,289 |
https://github.com/Cadris/roslyn/blob/master/src/VisualStudio/Core/Def/EditorConfigSettings/ISettingsEditorView.cs | Github Open Source | Open Source | MIT | 2,022 | roslyn | Cadris | C# | Code | 68 | 163 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading.Tasks;
using System.Windows.Controls;
using Microsoft.CodeAnalysis.Text;
using Microsoft.Vis... | 38,144 |
https://github.com/pllemon/tyyMusic/blob/master/src/layout/components/Navbar.vue | Github Open Source | Open Source | MIT | null | tyyMusic | pllemon | Vue | Code | 97 | 438 | <template>
<div class="navbar fx-cb">
<div class="fx-cs">
<hamburger :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
<p class="page-title">{{$route.meta.title}}</p>
</div>
<div>
<el-button type="text" @click="back" v-show="$route.meta.inlinePage"><... | 200 |
https://github.com/AkcayHasan/KotlinApp/blob/master/app/src/main/java/com/hasanakcay/kotlinapp/viewmodel/AlbumsPageViewModel.kt | Github Open Source | Open Source | MIT | null | KotlinApp | AkcayHasan | Kotlin | Code | 66 | 323 | package com.hasanakcay.kotlinapp.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.hasanakcay.kotlinapp.model.Album
import com.hasanakcay.kotlinapp.service.AlbumsAPIService
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Composit... | 24,192 |
https://github.com/mingdaocom/pd-openweb/blob/master/src/components/common/function.js | Github Open Source | Open Source | Apache-2.0 | 2,023 | pd-openweb | mingdaocom | JavaScript | Code | 1,263 | 4,372 | import { AT_ALL_TEXT } from 'src/components/comment/config';
import { upgradeVersionDialog, htmlEncodeReg } from 'src/util';
import Emotion from 'src/components/emotion/emotion';
import weixin from 'src/api/weixin';
import { index as dialog } from 'src/components/mdDialog/dialog';
import projectAjax from 'src/api/proj... | 31,514 |
https://github.com/chimera-linux/cports/blob/master/main/base-cbuild-host/template.py | Github Open Source | Open Source | BSD-2-Clause | 2,023 | cports | chimera-linux | Python | Code | 42 | 139 | pkgname = "base-cbuild-host"
pkgver = "0.1"
pkgrel = 1
build_style = "meta"
depends = [
"apk-tools",
"openssl",
"git",
"bubblewrap",
"chimerautils",
"python",
]
pkgdesc = "Everything one needs to use cbuild and cports"
maintainer = "q66 <q66@chimera-linux.org>"
license = "custom:meta"
url = "htt... | 43,320 |
https://github.com/RogerioTostes/AnalisedeRepositorioGitHub/blob/master/IC2020/Models/Repos.cs | Github Open Source | Open Source | MIT | null | AnalisedeRepositorioGitHub | RogerioTostes | C# | Code | 111 | 225 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace IC2020.Models
{
public class Item
{
public string url { get; set; }
public string tag_name { get; set; }
public DateTime published_at { get; set; }
public Author author { ... | 18,518 |
https://github.com/liulq315/auto_parcel/blob/master/Compiler/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,020 | auto_parcel | liulq315 | Gradle | Code | 52 | 266 | apply plugin: 'java'
apply plugin: 'com.novoda.bintray-release'
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.google.auto.service:auto-service:1.0-rc6'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc6'
}
// 新增
publish {
userOrg = 'lqos' ... | 43,097 |
https://github.com/Werdenruhm/CommonLib/blob/master/src/CommonLib/XmlSettingsBase.java | Github Open Source | Open Source | MIT | null | CommonLib | Werdenruhm | Java | Code | 461 | 1,358 | package CommonLib;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Properties;
/**
*
*
* @param <E>
*/
public class XmlSettingsBase<E extends Enum<E>> {
final Properties ... | 346 |
https://github.com/michaeljb/18xx.games/blob/master/lib/engine/game/g_1840/step/special_track.rb | Github Open Source | Open Source | MIT | null | 18xx.games | michaeljb | Ruby | Code | 272 | 1,005 | # frozen_string_literal: true
require_relative '../../../step/track'
module Engine
module Game
module G1840
module Step
class SpecialTrack < Engine::Step::Track
ACTIONS_WITH_PASS = %w[lay_tile pass].freeze
def actions(entity)
return [] unless entity == pending_enti... | 15,729 |
https://github.com/sailfish009/unpythonic/blob/master/unpythonic/syntax/util.py | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,020 | unpythonic | sailfish009 | Python | Code | 2,781 | 6,609 | # -*- coding: utf-8 -*-
"""Utilities for working with syntax."""
from functools import partial
from copy import deepcopy
import re
from ast import (Call, Name, Attribute, Lambda, FunctionDef,
If, Num, NameConstant, For, While, With, Try, ClassDef,
withitem)
from .astcompat import Asy... | 3,997 |
https://github.com/leha-bot/eve/blob/master/test/unit/module/real/core/bit_shl.cpp | Github Open Source | Open Source | MIT | 2,022 | eve | leha-bot | C++ | Code | 362 | 1,486 | /**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#include "test.hpp"
#include <eve/constant/valmax.hpp>
#include <eve/constant/valmin.hpp>
#include <ev... | 9,848 |
https://github.com/mherde/modAL/blob/master/modAL/utils/parzen_window_classifier.py | Github Open Source | Open Source | MIT | null | modAL | mherde | Python | Code | 871 | 2,413 | import numpy as np
from sklearn.base import BaseEstimator, ClassifierMixin
from sklearn.metrics.pairwise import pairwise_kernels
from sklearn.utils import check_random_state, check_array
class PWC(BaseEstimator, ClassifierMixin):
"""PWC
The Parzen window classifier (PWC) is a simple and probabilistic classi... | 15,996 |
https://github.com/reislerjul/HoloIoT/blob/master/UnityProject/HoloIoT/Assets/MeshChart/Script/BarChart.cs | Github Open Source | Open Source | MIT | 2,017 | HoloIoT | reislerjul | C# | Code | 521 | 2,146 | using UnityEngine;
using System.Collections;
public class BarChart : Chart {
public float mBarWidth = 0.2f;
public Color[] mBaseColor;
public float MaxValue = 1.0f, MinValue = 0.0f;
public bool AutoRange = true;
public float alpha = 1.0f;
public bool Stacked = true;
public float mDepthPitch = 0.001f;
... | 14,011 |
https://github.com/eduardordm/enginevib/blob/master/test/soft_ticker_test.rb | Github Open Source | Open Source | MIT | 2,021 | enginevib | eduardordm | Ruby | Code | 14 | 78 | require 'test_helper'
class SofTickerTest < Minitest::Test
def test_must_comply_with_contract
Enginevib::SoftTicker.respond_to? :preempt_rt
Enginevib::SoftTicker.respond_to? :delay_rt
end
end
| 46,528 |
https://github.com/VisionGameOrg/enjin-csharp-sdk/blob/master/EnjinCSharpSDK/Models/Asset.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | enjin-csharp-sdk | VisionGameOrg | C# | Code | 347 | 757 | /* Copyright 2021 Enjin Pte. Ltd.
*
* 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... | 35,953 |
https://github.com/zxfrdas/ZTLib/blob/master/source/test/src/com/example/test/SourceController.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | ZTLib | zxfrdas | Java | Code | 166 | 533 | package com.example.test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
public class SourceController {
private List<String> mOrderSources;
private SourceMap mSpecificVideoSources;
private static final class SourceMap extends H... | 17,620 |
https://github.com/MikeIceman/tg-php/blob/master/WebService/Library/iniparser.class.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | tg-php | MikeIceman | PHP | Code | 304 | 1,016 | <?php
// INI Parser Class File V.1 By ArioWeb Tech Media Inc.
// Author : NIMIX3 ( www.NIMIX3.com )
// Under GPL3 License
function write_ini_file($array, $file)
{
$res = array();
foreach($array as $key => $val)
{
if(is_array($val))
{
$res[] = "[$key]";
foreach($val as... | 10,413 |
https://github.com/USDA-FSA/fsa-design-system/blob/master/js/components/ds-page-toggle.js | Github Open Source | Open Source | CC0-1.0 | 2,022 | fsa-design-system | USDA-FSA | JavaScript | Code | 168 | 431 | var Storage = require('../utilities/storage');
var PageToggle = function () {
var key, toggle, toggleState, toggleId, bodyClass, useStorage;
// Toggle ON setter
var setOn = function(){
document.body.classList.add(bodyClass);
setState(true);
}
// Toggle OFF setter
var setOff = function(){
doc... | 29,762 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.