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/ruanlinos/react-native-google-fit/blob/master/android/src/main/java/com/reactnative/googlefit/HelperUtil.java | Github Open Source | Open Source | MIT | 2,021 | react-native-google-fit | ruanlinos | Java | Code | 49 | 190 | package com.reactnative.googlefit;
import java.util.concurrent.TimeUnit;
final class HelperUtil {
public static TimeUnit processBucketUnit(String buckUnit) {
switch (buckUnit){
case "NANOSECOND": return TimeUnit.NANOSECONDS;
case "MICROSECOND": return TimeUnit.MICROSECONDS;
... | 23,239 |
https://github.com/DeyvidJLira/Popular-Movies/blob/master/app/src/main/java/br/com/deyvidjlira/popularmovies/util/AsyncDelegate.java | Github Open Source | Open Source | MIT | null | Popular-Movies | DeyvidJLira | Java | Code | 26 | 106 | package br.com.deyvidjlira.popularmovies.util;
import java.util.List;
import br.com.deyvidjlira.popularmovies.data.models.Movie;
/**
* Created by Deyvid on 04/01/2017.
*/
public interface AsyncDelegate {
public void asyncInit();
public void asyncComplete(List<Movie> movieList);
}
| 19,020 |
https://github.com/v-kydela/BotFramework-Composer-1/blob/master/Composer/packages/client/__tests__/messenger/ApiClient.test.ts | Github Open Source | Open Source | MIT | 2,021 | BotFramework-Composer-1 | v-kydela | TypeScript | Code | 203 | 562 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import nanoid from 'nanoid';
import ApiClient from '../../src/messenger/ApiClient';
jest.mock('nanoid');
(nanoid as jest.Mock).mockReturnValue('uniqueId');
const oldPostMessage = window.postMessage;
describe('ApiClient', () => {
let clie... | 26,512 |
https://github.com/cazzer/hey-fridge/blob/master/src/data.js | Github Open Source | Open Source | CC0-1.0 | 2,016 | hey-fridge | cazzer | JavaScript | Code | 109 | 363 | import io from 'socket.io-client'
import { routeActions } from 'redux-simple-router'
import { API, SERVER} from './variables'
import { onEvent } from './api'
export default class Data {
constructor(store) {
this.store = store
onEvent('set', data => store.dispatch({type: 'set', data}))
onEvent('added', d... | 15,371 |
https://github.com/lfl-0/lfl-pages/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,020 | lfl-pages | lfl-0 | Ignore List | Code | 4 | 21 | node_modules/
.DS_Store
yarn.lock
*.log | 48,541 |
https://github.com/alibabacloud-sdk-php/dingtalk/blob/master/src/ats_1_0/Models/QueryInterviewsRequest.php | Github Open Source | Open Source | Apache-2.0 | 2,023 | dingtalk | alibabacloud-sdk-php | PHP | Code | 244 | 836 | <?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dingtalk\Vats_1_0\Models;
use AlibabaCloud\Tea\Model;
class QueryInterviewsRequest extends Model
{
/**
* @example ddats
*
* @var string
*/
public $bizCode;
/**
* @example xxx
*
* @... | 43,435 |
https://github.com/Bartlett-RC3/skilling-module-1-monxia/blob/master/Assets/Scripts/School/Session_1_20.cs | Github Open Source | Open Source | MIT | null | skilling-module-1-monxia | Bartlett-RC3 | C# | Code | 251 | 666 | // LIBRARIES
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// CODE STRUCTURE
public class Session_1_20 : MonoBehaviour
{
// 1.VARIABLES - data that is stored in your computer memory
// Declaring Variables: Scope (visibility) -- Type -- Name -- Value (optional)
// Numbers... | 24,481 |
https://github.com/Coron4444/BalloonWorld/blob/master/Document/html/dir_e2f6dcd6052d04a1f65079a0782cb32a.js | Github Open Source | Open Source | MIT | null | BalloonWorld | Coron4444 | JavaScript | Code | 15 | 76 | var dir_e2f6dcd6052d04a1f65079a0782cb32a =
[
[ "Controller.cpp", "_controller_8cpp.html", "_controller_8cpp" ],
[ "Controller.h", "_controller_8h.html", "_controller_8h" ]
]; | 50,595 |
https://github.com/JeffScherrer/ChakraCore/blob/master/lib/Common/DataStructures/GrowingArray.h | Github Open Source | Open Source | MIT | null | ChakraCore | JeffScherrer | C | Code | 339 | 1,100 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 36,149 |
https://github.com/S8msGITcode/Lightcord/blob/master/modules/discord_krisp/index.js | Github Open Source | Open Source | MIT | 2,021 | Lightcord | S8msGITcode | JavaScript | Code | 36 | 140 | const KrispModule = require('./discord_krisp_'+process.platform+'.node');
KrispModule._initialize();
KrispModule.getNcModels = function() {
return new Promise(resolve => {
KrispModule._getNcModels(models => resolve(models));
});
};
KrispModule.getVadModels = function() {
return new Promise(resolve => {
... | 36,262 |
https://github.com/bradzacher/eslint-config-brad/blob/master/src/types/react/jsx-boolean-value.ts | Github Open Source | Open Source | MIT | 2,023 | eslint-config-brad | bradzacher | TypeScript | Code | 88 | 230 | // this file is auto-generated. Run `make regenerate-types` to regenerate it.
type JsxBooleanValue0 =
| ['off' | 'error' | 'warn']
| ['off' | 'error' | 'warn', 'always' | 'never']
| ['off' | 'error' | 'warn']
| ['off' | 'error' | 'warn', 'always']
| [
'off' | 'error' | 'warn',
'always',
{
... | 27,830 |
https://github.com/jclcdev7/world_client/blob/master/src/app/components/country/country.component.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | world_client | jclcdev7 | TypeScript | Code | 81 | 209 | import { Component, OnInit, OnChanges } from '@angular/core';
import { CountryService } from '../../services/country.service';
declare let componentHandler: any; // need to use external in angular2? Ok no pb, but declare it before like that
@Component({
selector: 'country',
templateUrl: './country.component.html',... | 42,975 |
https://github.com/pobear/tidb-operator/blob/master/checkout-pr-branch.sh | Github Open Source | Open Source | Apache-2.0 | null | tidb-operator | pobear | Shell | Code | 102 | 285 | #!/usr/bin/env bash
# This script is used to checkout a tidb-operator PR branch in a forked repo.
if [[ -z ${1:-} ]]; then
echo "\
This script is used to checkout a tidb-operator PR branch in a forked repo
Usage:
checkout-pr-branch.sh [github-username]:[pr-branch]
The argument can be copied directly from github ... | 13,130 |
https://github.com/Damoness/react-native-http-cache/blob/master/ios/DMNHttpCache.m | Github Open Source | Open Source | MIT | 2,021 | react-native-http-cache | Damoness | Objective-C | Code | 71 | 397 | //
// DMNHttpCache.m
// QiChangBuyCar
//
// Created by Damoness on 2019/8/30.
// Copyright © 2019 Facebook. All rights reserved.
//
#import "DMNHttpCache.h"
@implementation DMNHttpCache
RCT_EXPORT_MODULE(DMNHttpCache);
//1.2.0
RCT_EXPORT_METHOD(getHttpCacheSize:(RCTPromiseResolveBlock)resolve reject:(RCTPromise... | 9,929 |
https://github.com/MattWindsor91/roslyn/blob/master/src/Compilers/CSharp/Portable/Symbols/Synthesized/SynthesizedWitnessMethodSymbol.cs | Github Open Source | Open Source | Apache-2.0 | 2,017 | roslyn | MattWindsor91 | C# | Code | 383 | 983 | // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Immutable;
using System.Diagnostics;
namespace Microsoft.CodeAnalysis.CSharp.Symbols
{
/// <summary>
/// Symb... | 6,516 |
https://github.com/xgeekshq/spring-boot-jdbc-template-sample/blob/master/src/main/java/io/xgeeks/examples/spring/CarService.java | Github Open Source | Open Source | MIT | 2,021 | spring-boot-jdbc-template-sample | xgeekshq | Java | Code | 111 | 423 | package io.xgeeks.examples.spring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@Service
public class CarService {
private final ... | 32,441 |
https://github.com/mervecrk/bilge-adam-java-course1/blob/master/week-08-exceptions/custom-exception-classes/src/com/bilgeadam/Multiply.java | Github Open Source | Open Source | MIT | null | bilge-adam-java-course1 | mervecrk | Java | Code | 38 | 117 | package com.bilgeadam;
import com.bilgeadam.exceptions.MultiplyException;
public class Multiply {
public void multiply(int a, int b) throws IllegalArgumentException, MultiplyException, RuntimeException{
if(a < 1000 && b < 1000){
System.out.println(a*b);
}else{
... | 38,323 |
https://github.com/hiteshtr/contactbook/blob/master/src/User.js | Github Open Source | Open Source | MIT | null | contactbook | hiteshtr | JavaScript | Code | 274 | 1,249 | import React, { Component } from 'react';
import { Link } from "react-router-dom";
class User extends Component {
constructor(props) {
super(props);
this.localSubmitHandler = this.localSubmitHandler.bind(this);
this.localUpdateHandler = this.localUpdateHandler.bind(this);
}
localSu... | 45,777 |
https://github.com/StennGroup/stenn-entityframework-core/blob/master/src/Stenn.EntityFrameworkCore.SqlServer.Extensions.DependencyInjection/SqlServerMigrations.cs | Github Open Source | Open Source | MIT | 2,022 | stenn-entityframework-core | StennGroup | C# | Code | 46 | 261 | using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Stenn.EntityFrameworkCore.Extensions.DependencyInjection;
using Stenn.EntityFrameworkCore.SqlServer.Enums;
using Stenn.EntityFrameworkCore.StaticMigrations;
using Stenn.EntityFrameworkCore.StaticMigrations.... | 33,641 |
https://github.com/pranathivemuri/napari/blob/master/napari/_qt/widgets/qt_highlight_preview.py | Github Open Source | Open Source | BSD-3-Clause | 2,021 | napari | pranathivemuri | Python | Code | 1,291 | 4,460 | import numpy as np
from qtpy.QtCore import QSize, Qt, Signal
from qtpy.QtGui import QColor, QIntValidator, QPainter, QPainterPath, QPen
from qtpy.QtWidgets import (
QDialog,
QFrame,
QHBoxLayout,
QLabel,
QLineEdit,
QSlider,
QVBoxLayout,
QWidget,
)
from ...utils.translations import transl... | 3,673 |
https://github.com/Avanade/Liquid-Application-Framework/blob/master/test/Liquid.Messaging.Tests/Mock/EntityMock.cs | Github Open Source | Open Source | LicenseRef-scancode-dco-1.1, MIT | 2,023 | Liquid-Application-Framework | Avanade | C# | Code | 23 | 53 | namespace Liquid.Messaging.Tests.Mock
{
public class EntityMock
{
public int Property1 { get; set; }
public string Property2 { get; set; }
}
}
| 11,698 |
https://github.com/CGQAQ/deno_yoga/blob/master/tests/padding_test.js | Github Open Source | Open Source | MIT | 2,022 | deno_yoga | CGQAQ | JavaScript | Code | 1,361 | 5,544 | import { assert } from "./deps.ts";
import * as Yoga from "../mod.ts";
Deno.test("padding_no_size", function () {
var config = Yoga.Config.create();
try {
var root = Yoga.Node.create(config);
root.setPadding(Yoga.EDGE_LEFT, 10);
root.setPadding(Yoga.EDGE_TOP, 10);
root.setPadding(Yoga.EDGE_RIGHT, ... | 7,596 |
https://github.com/shady831213/genes/blob/master/src/test/scala/genes/example/design/GenesExample/modules/regFile/RegFileLogic.scala | Github Open Source | Open Source | MIT | null | genes | shady831213 | Scala | Code | 90 | 263 | package genes.example.design.GenesExample.modules.regFile
import chisel3._
import scala.collection.mutable.ArrayBuffer
//from rocket
class RegFileLogic(val n: Int, val w: Int, zero: Boolean = false) {
val rf = Mem(n, UInt(w.W))
private val reads = ArrayBuffer[(UInt, UInt)]()
private var canRead = true
def r... | 458 |
https://github.com/chrisesler/opentsdb-horizon/blob/master/frontend/src/app/app-shell/containers/app-shell.component.scss | Github Open Source | Open Source | Apache-2.0 | null | opentsdb-horizon | chrisesler | SCSS | Code | 292 | 774 | // **
// * This file is part of OpenTSDB.
// * Copyright (C) 2021 Yahoo.
// *
// * 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
//... | 24,451 |
https://github.com/mooneywang/MJZhanQiTV/blob/master/ZhanQiTV/ZhanQiTV/Classes/Home/View/ZQSectionHeader.m | Github Open Source | Open Source | MIT | 2,016 | MJZhanQiTV | mooneywang | Objective-C | Code | 153 | 600 | //
// ZQSectionHeader.m
// ZhanQiTV
//
// Created by Mengjie.Wang on 2016/06/13.
// Copyright © 2016年 Mooney.Wang. All rights reserved.
//
#import "ZQSectionHeader.h"
#import "ZQConstants.h"
#import <Masonry.h>
#import "ZQHomeListModel.h"
@interface ZQSectionHeader ()
@property (nonatomic, strong) UIView *lineVi... | 7,109 |
https://github.com/hlmclgl/rentaCarProject-frontend/blob/master/src/app/components/rental-detail/rental-detail.component.ts | Github Open Source | Open Source | MIT | null | rentaCarProject-frontend | hlmclgl | TypeScript | Code | 55 | 208 | import { Component, OnInit } from '@angular/core';
import { RentalDetail } from 'src/app/models/rentalDetail';
import { RentalService } from 'src/app/services/rental.service';
@Component({
selector: 'app-rental-detail',
templateUrl: './rental-detail.component.html',
styleUrls: ['./rental-detail.component.css'],
... | 32,783 |
https://github.com/windystrife/UnrealEngine_NVIDIAGameWork/blob/master/Engine/Source/Developer/MaterialBaking/Public/MaterialOptions.h | Github Open Source | Open Source | MIT | 2,022 | UnrealEngine_NVIDIAGameWork | windystrife | C | Code | 535 | 1,467 | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SceneTypes.h"
#include "Engine/EngineTypes.h"
#include "MaterialOptions.generated.h"
/** Enum to define different types of baking materials */
UENUM()
enum class EMaterialBakeMethod : uint8
{
IndividualMaterial UMETA(DisplayName = ... | 1,087 |
https://github.com/primeval-io/primeval-reflex/blob/master/src/test/java/io/primeval/reflex/proxy/theory/M1ArgsUpdater.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | primeval-reflex | primeval-io | Java | Code | 388 | 1,094 | package io.primeval.reflex.proxy.theory;
import java.io.PrintStream;
import java.lang.reflect.Parameter;
import java.util.List;
import io.primeval.reflex.arguments.Arguments;
import io.primeval.reflex.arguments.ArgumentsUpdater;
public final class M1ArgsUpdater implements ArgumentsUpdater {
public final List<Pa... | 32,939 |
https://github.com/Mirocow/parser-1/blob/master/frontend/views/site/index.php | Github Open Source | Open Source | BSD-3-Clause | 2,017 | parser-1 | Mirocow | PHP | Code | 255 | 1,253 | <?php
use yii\helpers\Html;
//use yii\grid\GridView;
use kartik\grid\GridView;
use kartik\dynagrid\DynaGrid;
use yii\helpers\ArrayHelper;
use common\models\Parser;
/* @var $this yii\web\View */
/* @var $searchModel common\models\ParserSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Y... | 4,195 |
https://github.com/batfish/batfish/blob/master/projects/batfish-common-protocol/src/main/java/org/batfish/datamodel/Bgpv4Route.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | batfish | batfish | Java | Code | 711 | 2,979 | package org.batfish.datamodel;
import static com.google.common.base.MoreObjects.firstNonNull;
import static com.google.common.base.Preconditions.checkArgument;
import static org.batfish.datamodel.OriginMechanism.LEARNED;
import static org.batfish.datamodel.OriginMechanism.NETWORK;
import static org.batfish.datamodel.O... | 27,853 |
https://github.com/gaoyangy/drygoods/blob/master/src/sass/sign/sign.sass | Github Open Source | Open Source | MIT | null | drygoods | gaoyangy | Sass | Code | 23 | 87 | .sign
background: #f0f6fa
position: relative
top: 50%
margin-top: 160px
border-radius: 5px
padding-top: 45px
background: #fff
.title
text-align: center
margin-bottom: 15px
.el-input
margin-bottom: 15px | 24,982 |
https://github.com/langsci/pypi/blob/master/langsci/wrapperscripts/wikicite.py | Github Open Source | Open Source | MIT | 2,023 | pypi | langsci | Python | Code | 123 | 467 | import sys
from langsci.langscipressorg_webcrawler import get_soup, get_publication_date, get_citeinfo, get_ISBN_digital, get_title_subtitle, get_biosketches, biosketches2names
book_ID = sys.argv[1]
soup = get_soup(book_ID)
citegroups = get_citeinfo(soup)
biosketches = get_biosketches(soup)
if citegroups is None:
s... | 36,644 |
https://github.com/Doniol/IPASSV2/blob/master/html/search/functions_5.js | Github Open Source | Open Source | BSL-1.0 | 2,019 | IPASSV2 | Doniol | JavaScript | Code | 5 | 49 | var searchData=
[
['lines',['lines',['../classlines.html#a56771c74942df50716476346cce07f8e',1,'lines']]]
];
| 36,227 |
https://github.com/annaelde/forum-app/blob/master/src/styles/_overrides.sass | Github Open Source | Open Source | MIT | 2,022 | forum-app | annaelde | Sass | Code | 6 | 18 | $primary: $red
$info: $blue
$link: $neutral | 13,318 |
https://github.com/chechons/master-php/blob/master/master-php/aprendiendo-php/10-bucle-for/index.php | Github Open Source | Open Source | MIT | null | master-php | chechons | PHP | Code | 29 | 87 | <?php
/*
Bucle for
*/
$resultado = 0;
for($i = 0; $i <=100; $i++){
$resultado += $i;
// echo "<p>$resultado</p>";
}
echo "<h1> El resultado es: $resultado </h1>";
?> | 4,021 |
https://github.com/VegB/VLN-Transformer/blob/master/texar/torch/data/data/data_iterators.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | VLN-Transformer | VegB | Python | Code | 3,533 | 10,646 | # Copyright 2019 The Texar 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 1,678 |
https://github.com/i17c/mdrill/blob/master/trunk/adhoc-solr/src/main/java/com/alimama/mdrill/solr/realtime/MessageStore.java | Github Open Source | Open Source | ICU, Apache-2.0 | 2,017 | mdrill | i17c | Java | Code | 1,163 | 3,423 | package com.alimama.mdrill.solr.realtime;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.u... | 10,594 |
https://github.com/jordanopensource/dsp-web/blob/master/components/Elements/Dropdown.vue | Github Open Source | Open Source | Unlicense, MIT | 2,022 | dsp-web | jordanopensource | Vue | Code | 272 | 1,033 | <template>
<div class="dropdown">
<div class="dropdown-link">
<button class="dropdown-button" v-if="show" key="on" @click="show = false">
<i class="ri-close-fill"></i>
</button>
<button class="dropdown-button" v-else key="off" @click="show = true">
<i class="ri-list-settings-fill... | 17,704 |
https://github.com/echalkpad/t4f-data/blob/master/pubsub/activemq/src/main/java/org/apache/activemq/book/ch7/spring/SpringClient.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | t4f-data | echalkpad | Java | Code | 183 | 432 | /****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | 39,265 |
https://github.com/bbjoite09/PythonProject/blob/master/tkinter_project/tkinter_basic/2_button.py | Github Open Source | Open Source | MIT | 2,021 | PythonProject | bbjoite09 | Python | Code | 119 | 446 | from tkinter import *
root = Tk()
root.title("Yeonii GUI") # GUI 지정
# 버튼 추가
btn1 = Button(root, text="버튼1")
btn1.pack()
# pad -> 버튼 내용(text) 제외하고 여백을 5, 10으로 지정함
btn2 = Button(root, padx=5, pady=10, text="버튼2")
btn2.pack()
btn3 = Button(root, padx=10, pady=5, text="버튼3")
btn3.pack()
# width, height -> pad와 다름. 크... | 50,431 |
https://github.com/struktured/riakc_ppx/blob/master/src/lib/robj.ml | Github Open Source | Open Source | BSD-2-Clause | 2,016 | riakc_ppx | struktured | OCaml | Code | 641 | 1,257 | let option_of_bool = function
| Some true -> Some true
| _ -> None
module Link = struct
type t = { bucket : (string option [@key 1])
; key : (string option [@key 2])
; tag : (string option [@key 3])
} [@@deriving protobuf]
let bucket t = t.bucket
let key t = t.key
... | 46,927 |
https://github.com/NHS-Talent-Management/nhs-theme/blob/master/src/js/main.js | Github Open Source | Open Source | MIT | null | nhs-theme | NHS-Talent-Management | JavaScript | Code | 20 | 86 | window.devenv = true;
YUI().use('get', function(A){
var baseUrl = '/o/nhs-theme/js/';
A.Get.script([
baseUrl + 'header-menu.module.js'
],
{
onSuccess: function(){
}
});
}); | 14,679 |
https://github.com/marcogrella/TDD-Unit-Tests/blob/master/Tests/src/test/java/com/tests/TestsApplicationTests.java | Github Open Source | Open Source | MIT | null | TDD-Unit-Tests | marcogrella | Java | Code | 15 | 64 | package com.tests;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
class TestsApplicationTests {
@Test
void contextLoads() {
}
}
| 18,967 |
https://github.com/jacksontenorio8/python/blob/master/CursoEmVideo/Mundo2_EstruturasDeControle/desafio038.py | Github Open Source | Open Source | MIT | null | python | jacksontenorio8 | Python | Code | 76 | 164 | """
@jacksontenorio8
Escreva um programa que leia dois números inteiro e compare-os,
mostrando na tela uma mensagem:
- O primeiro valor é maior
- O segundo valor é maior
- Não existe valor maior, os dois são iguais.
"""
num1 = int(input('Primeiro número: '))
num2 = int(input('Segundo número: '))
if num1 > num2:
pr... | 44,739 |
https://github.com/alislin/TaskLog/blob/master/TaskLog/TaskLog.DataModel/IPriority.cs | Github Open Source | Open Source | MIT | null | TaskLog | alislin | C# | Code | 21 | 47 | namespace TaskLog.DataModel
{
public interface IPriority
{
int Priority { get; set; }
int Point { get; set; }
}
}
| 39,835 |
https://github.com/bloom-housing/bloom/blob/master/backend/core/src/applications/dto/application.dto.ts | Github Open Source | Open Source | Apache-2.0 | 2,023 | bloom | bloom-housing | TypeScript | Code | 289 | 1,041 | import { OmitType } from "@nestjs/swagger"
import { ArrayMaxSize, IsDefined, ValidateNested } from "class-validator"
import { Application } from "../entities/application.entity"
import { Expose, plainToClass, Transform, Type } from "class-transformer"
import { IdDto } from "../../shared/dto/id.dto"
import { ApplicantDt... | 4,863 |
https://github.com/rodfloripa/py-greenhouse-1/blob/master/examples/palmer_penguins/src/main.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | py-greenhouse-1 | rodfloripa | Python | Code | 465 | 2,011 | import greenhouse_clock
import data_sourcing
import data_splitting
import data_preprocessing
import feature_engineering
import eda_monitoring
import modeling
import performance_monitoring
from prefect import Flow, task, context
import pandas as pd
# Pandas options for better shell display
pd.set_option("display.max_... | 41,338 |
https://github.com/npocmaka/Windows-Server-2003/blob/master/multimedia/directx/dxvb/dx8vb/dmusobj.h | Github Open Source | Open Source | Unlicense | 2,021 | Windows-Server-2003 | npocmaka | C | Code | 126 | 578 | #include "resource.h" // main symbols
#include "dmusicc.h"
#define typedef__dxj_DirectMusic LPDIRECTMUSIC
/////////////////////////////////////////////////////////////////////////////
// Direct
//REVIEW -- using pointers to ID's is necessary because some compilers don't like
//references as template arguments.... | 46,533 |
https://github.com/virender-hestabit/api20/blob/master/application/views/sidemenu.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,020 | api20 | virender-hestabit | PHP | Code | 13 | 80 | <div class="sidebar-nav">
<?PHP
$user_id = $this->session->user_id;
$menu = $this->Database_conn2->get_menu_tree('sidemenu',$user_id,'',0);
echo $menu;
?>
</div> | 26,116 |
https://github.com/mourad/turnpike/blob/master/examples/pubsub/client.go | Github Open Source | Open Source | MIT | 2,015 | turnpike | mourad | Go | Code | 48 | 195 | package main
import (
"fmt"
"time"
"gopkg.in/jcelliott/turnpike.v1"
)
func testHandler(uri string, event interface{}) {
fmt.Printf("Received event: %s\n", event)
}
func main() {
c := turnpike.NewClient()
err := c.Connect("ws://127.0.0.1:8080/ws", "http://localhost/")
if err != nil {
panic("Error connecting... | 16,184 |
https://github.com/meissel/nemu/blob/master/src/nm_remote_api.h | Github Open Source | Open Source | BSD-2-Clause | 2,022 | nemu | meissel | C | Code | 97 | 414 | #ifndef NM_REMOTE_API_H_
#define NM_REMOTE_API_H_
#define NM_API_VERSION "0.2"
#include <nm_mon_daemon.h>
#include <json.h>
static const char NM_API_RET_ARRAY[] = "{\"return\":[%s]}";
static const char NM_API_RET_VAL[] = "{\"return\":\"%s\"}";
static const char NM_API_RET_OK[] = "{\"return\":\"ok\"}";
static c... | 3,801 |
https://github.com/gsus17/Realtime-chat-demo-operator/blob/master/src/app/login/login.component.ts | Github Open Source | Open Source | MIT | null | Realtime-chat-demo-operator | gsus17 | TypeScript | Code | 135 | 523 | import { Component, OnInit, NgZone } from '@angular/core';
import { FirebaseAuthService } from './firebase-auth/firebase-auth.service';
import { Router } from '@angular/router';
import { User } from '../interfaces/user';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./lo... | 35,003 |
https://github.com/franky47/delta-v/blob/master/back/tests/helpers/factories/product.factory.ts | Github Open Source | Open Source | MIT | null | delta-v | franky47 | TypeScript | Code | 48 | 158 | import { faker } from '@faker-js/faker';
import { buildFactory } from '../../../src/core/testHelpers';
import { Product } from '../../../src/entities/product.entity';
const buildSchema = (): Product => {
return {
id: faker.datatype.uuid(),
name: faker.commerce.productName(),
info: faker.lorem.paragraph()... | 46,747 |
https://github.com/PacificBiosciences/falcon3/blob/master/falcon_kit/mains/graph_to_contig.py | Github Open Source | Open Source | BSD-3-Clause-Clear | null | falcon3 | PacificBiosciences | Python | Code | 1,290 | 4,377 | """
TODO: (from convo w/ Ivan)
the issue with this script (but would still like to re-read it to refresh my memory). The script loads all edge sequences and tries to do two things at once: create p_ctg and a_ctg sequences, and align the bubbles using those sequences
If we generate:
1. All paths first (as tiling paths... | 26,695 |
https://github.com/TransformCore/trade-tariff-backend/blob/master/app/controllers/api/admin/footnotes_controller.rb | Github Open Source | Open Source | LicenseRef-scancode-proprietary-license, MIT | 2,023 | trade-tariff-backend | TransformCore | Ruby | Code | 79 | 363 | module Api
module Admin
class FootnotesController < ApiController
before_action :authenticate_user!
def index
@footnotes = Footnote.actual.national.eager(:footnote_descriptions).all
render json: Api::Admin::FootnoteSerializer.new(@footnotes).serializable_hash
end
def sho... | 18,908 |
https://github.com/fordp2002/ZX21/blob/master/KiCad/ZX21/ESP32-Footprints/ESP32-footprints-Lib.pretty/ESP32.kicad_mod | Github Open Source | Open Source | BSD-3-Clause | 2,020 | ZX21 | fordp2002 | KiCad Layout | Code | 813 | 2,353 | (module ESP32 (layer F.Cu) (tedit 57CF26E0)
(fp_text reference REF** (at 0 -4.572) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value ESP32 (at 0 4.318) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -2.413 -3.175) (end -3.175 -3.175) (layer F.S... | 10,668 |
https://github.com/BradSharp/Roblox/blob/master/Utility/Signal.lua | Github Open Source | Open Source | MIT | 2,020 | Roblox | BradSharp | Lua | Code | 131 | 426 | local Signal = {}
local Connection = {}
Signal.__index = {}
function Signal.new()
return setmetatable({
__connections = {},
__threads = {}
}, Signal)
end
function Signal.__index:Fire(...)
for _, connection in ipairs(self.__connections) do
task.spawn(connection.__callback, ...)
end
for _, thread in ipairs... | 1,955 |
https://github.com/lechium/tvOS130Headers/blob/master/System/Library/PrivateFrameworks/TelephonyUtilities.framework/TUContactsDataProvider.h | Github Open Source | Open Source | MIT | 2,022 | tvOS130Headers | lechium | C | Code | 166 | 856 | /*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:45:31 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/PrivateFrameworks/TelephonyUtilities.framework/TelephonyUtilities
* classdump-dyld is licensed under GPLv3, Copyright © ... | 39,745 |
https://github.com/IVIR3zaM/Grabber/blob/master/src/Resources/AbstractResource.php | Github Open Source | Open Source | MIT | null | Grabber | IVIR3zaM | PHP | Code | 375 | 891 | <?php
namespace IVIR3aM\Grabber\Resources;
use IVIR3aM\Grabber\Entities\Maps\AbstractMap;
use IVIR3aM\Grabber\Entities\AbstractValue;
use IVIR3aM\Grabber\Entities\AbstractValueFactory;
/**
* Class AbstractResource
* Abstraction Layer for any kind of resource
* @package IVIR3aM\Grabber
*/
abstract class AbstractRe... | 30,811 |
https://github.com/velocist/TS4CheatsInfo/blob/master/src/sims4communitylib/events/build_buy/common_build_buy_event_dispatcher.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | TS4CheatsInfo | velocist | Python | Code | 143 | 617 | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Any
from sims4communitylib.events.build... | 46,624 |
https://github.com/helinteg/srr-clang/blob/master/lib/StaticAnalyzer/Checkers/IntegerOverflowChecker.cpp | Github Open Source | Open Source | NCSA | 2,015 | srr-clang | helinteg | C++ | Code | 2,359 | 8,266 | //=== IntegerOverflowChecker.cpp - integer overflows checker ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------------------... | 49,051 |
https://github.com/y-iihoshi/ThScoreFileConverter/blob/master/ThScoreFileConverter/Models/Th13/ClearReplacer.cs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, BSD-2-Clause | 2,023 | ThScoreFileConverter | y-iihoshi | C# | Code | 82 | 311 | //-----------------------------------------------------------------------
// <copyright file="ClearReplacer.cs" company="None">
// Copyright (c) IIHOSHI Yoshinori.
// Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information.
// </copyright>
//----------------------... | 40,376 |
https://github.com/bigdata-ustc/TKT/blob/master/TKT/DKT/Module/etl.py | Github Open Source | Open Source | MIT | 2,019 | TKT | bigdata-ustc | Python | Code | 223 | 793 | # coding: utf-8
# create by tongshiwei on 2019/4/12
import torch
from gluonnlp.data import FixedBucketSampler, PadSequence
from tqdm import tqdm
from TKT.shared.etl import *
def transform(raw_data, params):
# 定义数据转换接口
# raw_data --> batch_data
num_buckets = params.num_buckets
batch_size = params.ba... | 20,833 |
https://github.com/patil215/v8/blob/master/fuzzer_output/interesting/sample_1554192674891.js | Github Open Source | Open Source | BSD-3-Clause | null | v8 | patil215 | JavaScript | Code | 50 | 117 | function main() {
const v5 = [1337];
let v10 = undefined;
const v15 = [2930408582];
const v16 = [v15];
const v17 = {};
const v19 = new BigUint64Array(v16,v17);
for (const v20 of v19) {
const v21 = v20 + v20;
const v22 = v19 >= v21;
}
}
%NeverOptimizeFunction(main);
main();
| 27,585 |
https://github.com/idealcountry/practice/blob/master/SpringCloud/finance/product/src/main/java/com/spring/cloud/product/controller/ConfigController.java | Github Open Source | Open Source | Apache-2.0 | null | practice | idealcountry | Java | Code | 49 | 268 | package com.spring.cloud.product.controller;
import com.spring.cloud.common.pojo.UserInfo;
import com.spring.cloud.product.facade.ConfigFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVa... | 36,665 |
https://github.com/chaosdorf/meteroid-ios/blob/master/meteroid/UserListCell.m | Github Open Source | Open Source | MIT | 2,020 | meteroid-ios | chaosdorf | Objective-C | Code | 272 | 587 | //
// UserListCell.m
// meteroid
//
// Copyright (C) 2013 Gerrit Giehl <r4mp@chaosdorf.de>
//
// 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 ... | 40,939 |
https://github.com/Erick-Kiaco/Projetos-Step/blob/master/ProjetoJavaSEBanco/src/sistemabancario/PessoaFisica.java | Github Open Source | Open Source | MIT | null | Projetos-Step | Erick-Kiaco | Java | Code | 21 | 92 | package sistemabancario;
public class PessoaFisica extends Pessoa {
public PessoaFisica(TipoDocumento tipoDocumento, String numeroDocumento) {
super(tipoDocumento, numeroDocumento);
setNome("Thiago Lins");
setEmail("Lins@gmail.com");
}
}
| 8,646 |
https://github.com/EdLeafe/photoserver/blob/master/tests/conftest.py | Github Open Source | Open Source | MIT | 2,020 | photoserver | EdLeafe | Python | Code | 324 | 1,309 | from __future__ import absolute_import, print_function, unicode_literals
import builtins
from mock import patch
import uuid
import warnings
import pymysql
import pytest
import db_create
import entities
import utils
@pytest.fixture(scope="function")
def test_db_cursor():
""" A db cursor for use in testing that ... | 23,504 |
https://github.com/geniusgeek/Carbon/blob/master/samples/src/main/java/tk/zielony/carbonsamples/feature/LargeShadowActivity.java | Github Open Source | Open Source | Apache-2.0 | null | Carbon | geniusgeek | Java | Code | 95 | 464 | package tk.zielony.carbonsamples.feature;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AccelerateDecelerateInterpolator;
import android.view.animation.Animation;
import com.nineoldandroids.animation.ValueAnimator;
import... | 48,003 |
https://github.com/kintalken/prolog-playground/blob/master/list_without_middle/tests/suite/basic.prolog | Github Open Source | Open Source | MIT | null | prolog-playground | kintalken | Prolog | Code | 4 | 19 |
:- begin_tests(basic)
:- end_tests(basic)
| 7,328 |
https://github.com/usc-cloud/parallel-louvain-modularity/blob/master/src/benchmark/run_benchmark.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | parallel-louvain-modularity | usc-cloud | Shell | Code | 208 | 769 | #!/bin/bash
#####################################################################
#
# File : run_benchmark.sh
#
# Description: Generates benchmarking results for report
#
#
# Author : Patrick Small
#
# Date : April 17, 2014
#
#####################################################################
# Bench... | 6,248 |
https://github.com/RedHat-Healthcare/Event-Builder/blob/master/src/main/java/io/connectedhealth_idaas/eventbuilder/builders/fhir/ActivityDefinition.java | Github Open Source | Open Source | Apache-2.0 | null | Event-Builder | RedHat-Healthcare | Java | Code | 7 | 29 | package io.connectedhealth_idaas.eventbuilder.builders.fhir;
public class ActivityDefinition {
}
| 34,407 |
https://github.com/fmartinlef/zbxtool/blob/master/admtool/hosts_config.py | Github Open Source | Open Source | MIT | 2,022 | zbxtool | fmartinlef | Python | Code | 1,679 | 5,540 | ''' coding: utf-8
zabbix a hosts configuration statistic excel file with :
- host name / description / visible ...
- specific host user macros
- specific host tag value (zabbix version >= 4.2)
- specific host inventory attributes
Author : Francois Martin-Lefevre : fml@axynergie.com
'''
import sys
import os
CURRE... | 41,539 |
https://github.com/ryanau/doc_now_client/blob/master/app/containers/Doctor/components/ListItem/messages.js | Github Open Source | Open Source | MIT | null | doc_now_client | ryanau | JavaScript | Code | 72 | 245 | /*
* ListItem Messages
*
* This contains all the text for the ListItem component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
moreInfoButton: {
id: 'app.components.ListItem.moreInfoButton',
defaultMessage: 'More Info +',
},
lessInfoButton: {
id: 'app.components... | 21,004 |
https://github.com/epc2101/DeadEndFinal/blob/master/DeadEnd/Assets/InteractiveObjectPrefabs/NewObjects.meta | Github Open Source | Open Source | CC-BY-3.0, CC-BY-4.0 | 2,016 | DeadEndFinal | epc2101 | Unity3D Asset | Code | 6 | 41 | fileFormatVersion: 2
guid: 34f9f5d8ecd8c324d958a996a57b9ad0
DefaultImporter:
userData:
| 30,268 |
https://github.com/kalsolio/jitamin/blob/master/app/Providers/RouteProvider.php | Github Open Source | Open Source | MIT | null | jitamin | kalsolio | PHP | Code | 121 | 360 | <?php
/*
* This file is part of Jitamin.
*
* Copyright (C) 2016 Jitamin Team
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Jitamin\Providers;
use Jitamin\Core\Http\Route;
use Jitamin\Core\Http\Router;
use Pimple\Cont... | 14,560 |
https://github.com/gbaghdasaryan94/Kapan/blob/master/Final/IMSurvey/static/js/account.js | Github Open Source | Open Source | MIT | 2,022 | Kapan | gbaghdasaryan94 | JavaScript | Code | 245 | 1,179 | $( document ).ready(function(){
$(window).scroll(function () {
if ($(window).width() < 992) {
if ($(this).scrollTop() > 600) {
$('.download-circle').addClass('active');
} else {
$('.download-circle').removeClass('active');
}
}
});
$(".info").hover(function(){
$(this).find(".edit").... | 32,119 |
https://github.com/squeek502/EarliestOfGames/blob/master/java/squeek/earliestofgames/content/CrateModel.java | Github Open Source | Open Source | Unlicense | 2,014 | EarliestOfGames | squeek502 | Java | Code | 621 | 3,134 | package squeek.earliestofgames.content;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.texture.TextureManager;
import net.minecraft.entity.Entity;
import net.minecraftforge.common.util.ForgeDirection;
import squeek.earliestofgames.filt... | 24,624 |
https://github.com/Yuego/py3o.template/blob/master/py3o/template/tests/test_templates.py | Github Open Source | Open Source | MIT | null | py3o.template | Yuego | Python | Code | 2,100 | 8,768 | # -*- encoding: utf-8 -*-
import datetime
import os
import unittest
import zipfile
import traceback
import copy
import base64
import lxml.etree
import pkg_resources
import six
from io import BytesIO
from genshi.template import TemplateError
from pyjon.utils import get_secure_filename
from py3o.template import Templ... | 49,308 |
https://github.com/cbsa-informatik-uni-siegen/gtitool/blob/master/de.unisiegen.gtitool.core/source/de/unisiegen/gtitool/core/entities/regex/UnfinishedNode.java | Github Open Source | Open Source | MIT | null | gtitool | cbsa-informatik-uni-siegen | Java | Code | 753 | 2,328 | package de.unisiegen.gtitool.core.entities.regex;
import java.util.ArrayList;
import javax.swing.event.EventListenerList;
import de.unisiegen.gtitool.core.entities.State;
import de.unisiegen.gtitool.core.entities.listener.PrettyStringChangedListener;
import de.unisiegen.gtitool.core.parser.ParserOffset;
import de.u... | 7,336 |
https://github.com/dexterx17/planning/blob/master/application/views/recursos/block.php | Github Open Source | Open Source | MIT | null | planning | dexterx17 | PHP | Code | 68 | 313 | <tr id="item<?php echo $info['ID']; ?>">
<td>
<a class="btn btn-redirected" data-content="item<?php echo $info['ID']; ?>" href="<?php echo site_url("recursos/nuevo/".$info['ID'].'/'.$info['proyecto']); ?>" data-toggle="tooltip" title="<?php echo lang('recursos_edit'); ?>">
<i class="fa fa-lg fa-fw fa-edit"></i... | 31,552 |
https://github.com/galich/SharpDevelop/blob/master/src/AddIns/Debugger/Debugger.Tests/Tests/StackFrame_Callstack.cs | Github Open Source | Open Source | MIT | 2,019 | SharpDevelop | galich | C# | Code | 365 | 1,281 | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// 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, co... | 44,004 |
https://github.com/wemblykj/FPGA_MSO/blob/master/src/lib/dsp/rtl/cic_integrator.v | Github Open Source | Open Source | MIT | 2,021 | FPGA_MSO | wemblykj | Verilog | Code | 165 | 444 | `timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer: Paul Wightmore
//
// Create Date: 21:09:14 12/15/2020
// Design Name: cic_integrator
// Module Name: cic_integrator.v
// Project Name: FPGA Mixed Signal Oscilloscope
// ... | 14,315 |
https://github.com/dtczhl/doppler-illustrator/blob/master/android/app/src/main/java/com/huanlezhang/dtcdopplerillustrator/MainActivity.java | Github Open Source | Open Source | MIT | 2,018 | doppler-illustrator | dtczhl | Java | Code | 505 | 1,815 | package com.huanlezhang.dtcdopplerillustrator;
import android.Manifest;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.ActivityC... | 38,322 |
https://github.com/Dok11/angular/blob/master/packages/compiler-cli/src/ngtsc/transform/src/transform.ts | Github Open Source | Open Source | MIT | 2,019 | angular | Dok11 | TypeScript | Code | 383 | 1,016 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {WrappedNodeExpr} from '@angular/compiler';
import * as ts from 'typescript';
import {IvyCompilation} from '... | 4,922 |
https://github.com/jusinamine/dzcode.io/blob/master/mobile/src/redux/reducers/index.ts | Github Open Source | Open Source | MIT | null | dzcode.io | jusinamine | TypeScript | Code | 54 | 132 | import { articlesScreen } from "./articles-screen";
import { combineReducers } from "redux";
import { contributeScreen } from "./contribute-screen";
import { faqScreen } from "./faq-screen";
import { general } from "./general";
import { learnScreen } from "./learn-screen";
import { projectsScreen } from "./projects-scr... | 46,023 |
https://github.com/Grommerin/meta-marsboard-bsp/blob/master/recipes-strim/strim-scripts/strim-scripts/unused/canlogd.sh | Github Open Source | Open Source | MIT | 2,016 | meta-marsboard-bsp | Grommerin | Shell | Code | 176 | 789 | #!/bin/sh
PROGRAM_MAIN_FILE_NAME=canlog
PROGRAM_UPDATE_FILE_NAME=canlog_upd
if [ -f /etc/init.d/functions ] ; then
. /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions
else
exit 0
fi
KIND="canlog"
THIS_SCRIPT_FILE=/etc/init.d/canlogd
Given_permis... | 25,922 |
https://github.com/itsmepatz/uranus-crm/blob/master/module/cron/core/Cron_Model.php | Github Open Source | Open Source | MIT | null | uranus-crm | itsmepatz | PHP | Code | 21 | 84 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once(FCPATH.'resources/core/Dermeva_Model.php');
class Cron_Model extends Dermeva_Model {
function __construct()
{
parent::__construct();
$this->load->database();
}
}
| 22,855 |
https://github.com/sam016/THREE-CSGMesh/blob/master/v2/grid-material.js | Github Open Source | Open Source | MIT | null | THREE-CSGMesh | sam016 | JavaScript | Code | 240 | 906 | import * as THREE from "three";
let vs = `
varying vec3 vertex;
void main() {
vertex = position;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`
let gridValFrag=`
float gridVal;
{
vec2 coord = (vUv.xy-.5)*GRID_SIZE;// Compute anti-aliased world-space grid lines
vec2 grid = abs(f... | 15,294 |
https://github.com/alenSavov/Software-University-SoftUni/blob/master/05.C# DB Fundamentals/01.Database Basics – MS SQL – May 2018/08.Exam Preparations/Databases MSSQL Server Exam - 22 October 2017/03.Queries.sql | Github Open Source | Open Source | MIT | 2,019 | Software-University-SoftUni | alenSavov | SQL | Code | 656 | 1,655 | --Task 5 - Users by Age
SELECT Username,
Age
FROM Users
ORDER BY Age,
Username DESC;
--Task 6 - Unassigned Reports
SELECT Description,
Opendate
FROM Reports
WHERE Employeeid IS NULL
ORDER BY Opendate,
Description;
--Task 7. Employees & Reports
SELECT E.Firstname,
E.Lastname,
... | 25,681 |
https://github.com/cpoopc/com.cp.monsterMod/blob/master/src/com/cp/monsterMod/views/LyricGesture.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | com.cp.monsterMod | cpoopc | Java | Code | 253 | 862 | package com.cp.monsterMod.views;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.view.GestureDetector.OnGestureListener;
import android.view.View.OnTouchListener;
public class LyricGesture implements OnTouchListener,OnGestureListe... | 21,821 |
https://github.com/Web-Dev-Collaborative/Web-Dev-Hub/blob/master/2-content/live-examples/dom-examples/pointer-lock/app.js | Github Open Source | Open Source | MIT | null | Web-Dev-Hub | Web-Dev-Collaborative | JavaScript | Code | 234 | 624 | // helper function
const RADIUS = 20;
function degToRad(degrees) {
var result = Math.PI / 180 * degrees;
return result;
}
// setup of the canvas
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
var x = 50;
var y = 50;
function canvasDraw() {
ctx.fillStyle = "black";
ctx.fi... | 32,003 |
https://github.com/slachiewicz/maven-doxia/blob/master/doxia-core/src/main/java/org/apache/maven/doxia/macro/SwfMacro.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | maven-doxia | slachiewicz | Java | Code | 645 | 1,663 | package org.apache.maven.doxia.macro;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Licens... | 11,541 |
https://github.com/brownstef/Statiq.Framework/blob/master/src/core/Statiq.Common/Meta/RawMetadataEnumerable.cs | Github Open Source | Open Source | MIT | 2,020 | Statiq.Framework | brownstef | C# | Code | 38 | 134 | using System.Collections;
using System.Collections.Generic;
namespace Statiq.Common
{
internal class RawMetadataEnumerable : IEnumerable<KeyValuePair<string, object>>
{
private readonly IMetadata _metadata;
public RawMetadataEnumerable(IMetadata metadata)
{
_metadata = met... | 5,436 |
https://github.com/mianowski/licytacje_api/blob/master/licytacje_api/rest.py | Github Open Source | Open Source | MIT | 2,019 | licytacje_api | mianowski | Python | Code | 186 | 877 | import os
import requests
import unicodedata
import urllib.parse
from pathlib import Path
from datetime import date
from datetime import datetime
from babel.numbers import parse_decimal
from bs4 import BeautifulSoup
from .bs_helpers import make_soup
from .notice import Notice
NODE_URL = "https://licytacje.komornik.... | 12,696 |
https://github.com/Eurus-Holmes/nni/blob/master/nni/nas/nn/pytorch/.gitignore | Github Open Source | Open Source | MIT | 2,023 | nni | Eurus-Holmes | Ignore List | Code | 14 | 23 | # Ignored in git, but need to be included in package source files.
_layers.py
| 34,056 |
https://github.com/veneres/EyeCloud/blob/master/client/src/app/attention-data/attention-data.component.ts | Github Open Source | Open Source | MIT | 2,021 | EyeCloud | veneres | TypeScript | Code | 182 | 628 | import { Component, OnInit } from '@angular/core';
import { AttentionCloudService } from '../attention-cloud.service';
import { Point, Utilities } from '../classes/Utilities';
import { Thumbnail } from '../classes/Thumbnail';
import { AggregatedFixationPoint } from '../classes/AggregatedFixationPoints';
@Component({
... | 992 |
https://github.com/cassio645/Aprendendo-python/blob/master/CursoEmVideo/pythonProject/venv/Lib/site-packages/Interface/tests/test_bridge.py | Github Open Source | Open Source | MIT | null | Aprendendo-python | cassio645 | Python | Code | 116 | 256 | ##############################################################################
#
# Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFT... | 29,939 |
https://github.com/Team-5-Jellyfish-Store/Jellyfish-Store/blob/master/OnlineStore/OnlineStore.Tests/Services/CourierServiceTests/Constructor_Should.cs | Github Open Source | Open Source | MIT | null | Jellyfish-Store | Team-5-Jellyfish-Store | C# | Code | 150 | 603 | using AutoMapper;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using OnlineStore.Data.Contracts;
using OnlineStore.Logic.Contracts;
using OnlineStore.Logic.Services;
using System;
namespace OnlineStore.Tests.Services.CourierServiceTests
{
[TestClass]
public class Constructor_Should
{
... | 10,309 |
https://github.com/ddolheguy/coding-test-1/blob/master/app/services/tickerService.js | Github Open Source | Open Source | MIT | null | coding-test-1 | ddolheguy | JavaScript | Code | 185 | 572 | import Rx from 'rxjs/Rx';
import io from 'socket.io-client';
let socket = null;
let tickerProvider$ = null;
let connectionStatusProvider$ = null;
const ticker$ = new Rx.Subject();
const connectionStatus$ = new Rx.ReplaySubject(1);
const CONNECTION_STATUS = {
CONNECTED: 'Connected',
DISCONNECTED: 'Disconnecte... | 6,866 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.