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/IBM-Security/ibmsecurity/blob/master/ibmsecurity/isam/base/system_alerts/logdb.py
Github Open Source
Open Source
Apache-2.0
2,023
ibmsecurity
IBM-Security
Python
Code
375
1,427
import logging import ibmsecurity.utilities.tools logger = logging.getLogger(__name__) def get_all(isamAppliance, check_mode=False, force=False): """ Get all logdb objects """ return isamAppliance.invoke_get("Get all logdb objects", "/core/rsp_logdb_objs") def ge...
9,358
https://github.com/06danielsms/api-cce/blob/master/src/inventory/inventory.service.ts
Github Open Source
Open Source
MIT
null
api-cce
06danielsms
TypeScript
Code
72
227
import { Injectable } from '@nestjs/common'; import { CreateInventoryDto } from './dto/create-inventory.dto'; import { UpdateInventoryDto } from './dto/update-inventory.dto'; import { Inventory, InventoryDocument } from './schemas/inventory.schema'; import { Model } from 'mongoose'; import { InjectModel } from '@nestjs...
27,905
https://github.com/konduruvijaykumar/ibm-iot-examples/blob/master/ibmiot-device-client-demo/src/main/java/org/pjay/ibm/iot/DeviceCommandCallbackSubscriber.java
Github Open Source
Open Source
Apache-2.0
null
ibm-iot-examples
konduruvijaykumar
Java
Code
271
833
/** * */ package org.pjay.ibm.iot; import java.util.Properties; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import org.eclipse.paho.client.mqttv3.MqttException; import com.ibm.iotf.client.device.Command; import com.ibm.iotf.client.device.CommandCallback; import com....
34,372
https://github.com/apache/netbeans/blob/master/webcommon/javascript2.editor/test/unit/data/testfiles/with/issue234637A.js
Github Open Source
Open Source
Apache-2.0
2,023
netbeans
apache
JavaScript
Code
11
34
to234637 = { $bindings: { xProperty: "", xyProperty: 1 } }
31,650
https://github.com/rdkmaster/jigsaw/blob/master/src/app/for-internal/demo/pc/chart-icon/with-button/demo.module.ts
Github Open Source
Open Source
MIT
2,023
jigsaw
rdkmaster
TypeScript
Code
40
185
import {NgModule} from "@angular/core"; import {JigsawButtonModule, JigsawHeaderModule, JigsawCheckBoxModule, JigsawChartIconModule} from "jigsaw/public_api"; import {JigsawDemoDescriptionModule} from "app/for-internal/description/demo-description"; import {ChartIconButtonDemoComponent} from "./demo.component"; @NgMo...
27,205
https://github.com/makese/Server/blob/master/src/responses/weather.js
Github Open Source
Open Source
MIT
2,020
Server
makese
JavaScript
Code
17
66
"use strict"; function getWeather(url, info, sessionID) { return json.stringify({"err": 0, "errmsg": null, "data": weather_f.generate()}); } router.addStaticRoute("/client/weather", getWeather);
45,363
https://github.com/jsdelivrbot/365_programs/blob/master/2017-05-31/global.d.ts
Github Open Source
Open Source
Unlicense
null
365_programs
jsdelivrbot
TypeScript
Code
8
18
declare function require(path: string): any; declare var module:any;
20,386
https://github.com/rnjava/signoz/blob/master/frontend/src/components/Spiner.tsx
Github Open Source
Open Source
MIT
2,021
signoz
rnjava
TSX
Code
90
255
import React from 'react'; import { Spin } from 'antd'; import styled from "styled-components"; import { LoadingOutlined } from '@ant-design/icons'; const antIcon = <LoadingOutlined style={{ fontSize: 24 }} spin />; const SpinerStyle = styled.div` position: fixed; z-index: 999; height: 4em; // width: 4em; overflow: vi...
33,381
https://github.com/romajs/react-calendar/blob/master/src/features/calendar/calendarSelectors.js
Github Open Source
Open Source
MIT
2,020
react-calendar
romajs
JavaScript
Code
28
74
import * as R from 'ramda'; import { createSelector } from 'reselect'; const getCalendar = R.prop('calendar'); export const monthSelector = createSelector([getCalendar], R.prop('month')); export const yearSelector = createSelector([getCalendar], R.prop('year'));
44,016
https://github.com/dingxing123/fivestar/blob/master/Unity/Assets/Hotfix/GameGather/CardFiveStar/Handler/Actor_FiveStar_MaiMaHandler.cs
Github Open Source
Open Source
MIT
2,022
fivestar
dingxing123
C#
Code
55
237
using System; using System.Collections.Generic; using System.Linq; using ETModel; namespace ETHotfix { [MessageHandler] public class Actor_FiveStar_MaiMaHandler : AMHandler<Actor_FiveStar_MaiMa> { public static bool _IsMaima = false; public static int _MaiMaScore = 0; protected ove...
47,748
https://github.com/arunantoney/Android-Kotlin-MVVM/blob/master/app/src/main/java/com/applab/ktmvvm/util/SchedulerProvider.kt
Github Open Source
Open Source
MIT
2,018
Android-Kotlin-MVVM
arunantoney
Kotlin
Code
15
40
package com.applab.ktmvvm.util /** * Created by Arun Antoney on 29-07-2018. */ class SchedulerProvider { }
983
https://github.com/TArora238/atdlogistics/blob/master/src/views/LandingPage/Sections/SolutionsSection.js
Github Open Source
Open Source
MIT
null
atdlogistics
TArora238
JavaScript
Code
218
701
import React from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; import ContactSupport from "@material-ui/icons/ContactSupport"; import Description from "@material-ui/icons/Description"; import AccountBalanceWallet from "@material-ui/icons/AccountBalanceWallet"; import C...
3,053
https://github.com/RayRoestenburg/akka-in-action/blob/master/chapter-cluster/src/main/scala/aia/cluster/words/ReceptionistRouterLookup.scala
Github Open Source
Open Source
MIT
2,022
akka-in-action
RayRoestenburg
Scala
Code
41
145
package aia.cluster package words import akka.actor._ import akka.cluster.routing._ import akka.routing._ trait ReceptionistRouterLookup { this: Actor => def receptionistRouter = context.actorOf( ClusterRouterGroup( BroadcastGroup(Nil), ClusterRouterGroupSettings( totalInstances = 100, ...
39,406
https://github.com/TimTheToad/CrazyCanvas/blob/master/LambdaEngine/Include/Rendering/AARenderer.h
Github Open Source
Open Source
MIT
2,021
CrazyCanvas
TimTheToad
C++
Code
269
1,327
#pragma once #include "Rendering/CustomRenderer.h" #include "Rendering/Core/API/CommandList.h" #include "Rendering/Core/API/CommandAllocator.h" #include "Rendering/Core/API/DescriptorHeap.h" #include "Rendering/Core/API/DescriptorSet.h" #include "Rendering/Core/API/PipelineLayout.h" #include "Application/API/Events/W...
32,394
https://github.com/G00dBye/YYMS/blob/master/scripts/field/achieve_davy.py
Github Open Source
Open Source
MIT
2,021
YYMS
G00dBye
Python
Code
29
78
# Maps in Lord PiratePQ | Used in the Lord Pirate PQ if sm.getFieldID() == 925100500 and not sm.hasMobsInField(): sm.spawnMob(9300119, 566, 238, False) # Spawns Captain Davy John sm.dispose()
46,742
https://github.com/base33/GlobalManifesto/blob/master/src/GlobalManifesto.Demo/Views/ContentPageLeftNav.cshtml
Github Open Source
Open Source
MIT
null
GlobalManifesto
base33
C#
Code
86
307
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = "Global.cshtml"; } @section headContent {} @section Content { <div class="content-page-left-nav"> <div id="side-container"> @Html.Container(new Container() { Classes = "aside-container", ...
47,484
https://github.com/musishui/u3d-loader/blob/master/dist/index.js
Github Open Source
Open Source
MIT
null
u3d-loader
musishui
JavaScript
Code
185
724
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = loader; var _path = _interopRequireDefault(require("path")); var _loaderUtils = _interopRequireDefault(require("loader-utils")); var _lib = require("./lib"); function _interopRequireDefault(obj) { return obj && obj.__e...
46,754
https://github.com/Ivanov-Stiliqn/OnlineShop/blob/master/Models/User.cs
Github Open Source
Open Source
MIT
null
OnlineShop
Ivanov-Stiliqn
C#
Code
144
356
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Identity; namespace Models { // Add profile data for application users by adding properties to the User class public class User : IdentityUser { public User() { this.MyProducts = new List<Product>(); ...
34,356
https://github.com/emredalkiran/store-finder/blob/master/src/server.ts
Github Open Source
Open Source
MIT
null
store-finder
emredalkiran
TypeScript
Code
95
272
import env from 'dotenv' import http from 'http' import MongoConnection from './utils/database' import App from './app' import { Container } from 'winston' import ServiceContainer from './service-container' async function init() { env.config() const connectionURL = `mongodb://${process.env.URL}` const port = pro...
15,859
https://github.com/ezefranca/LogiKiD-Allegro5-Game/blob/master/doc/Doxygen/html/fase4_8h.js
Github Open Source
Open Source
Apache-2.0
null
LogiKiD-Allegro5-Game
ezefranca
JavaScript
Code
40
295
var fase4_8h = [ [ "LevelQuatro", "struct_level_quatro.html", "struct_level_quatro" ], [ "createLevelQuatro", "fase4_8h.html#a2e3f32a21095be47141c672563cda050", null ], [ "destroyLevelQuatro", "fase4_8h.html#ab3270bd2db01c24e1aa639cc8c917363", null ], [ "drawLevelQuatro", "fase4_8h.html#a46038b8242aecb2...
29,038
https://github.com/BabakMahmoudi/parOdoo/blob/master/addons/odoo/addons/web/static/src/js/views/control_panel/control_panel_renderer.js
Github Open Source
Open Source
Apache-2.0
2,020
parOdoo
BabakMahmoudi
JavaScript
Code
1,169
3,505
odoo.define('web.ControlPanelRenderer', function (require) { "use strict"; var config = require('web.config'); var data = require('web.data'); var FavoriteMenu = require('web.FavoriteMenu'); var FilterMenu = require('web.FilterMenu'); var GroupByMenu = require('web.GroupByMenu'); var mvc = require('web.mvc'); var Sear...
28,666
https://github.com/lukasz-golebiewski/mantis/blob/master/src/test/scala/io/iohk/ethereum/jsonrpc/CheckpointingServiceSpec.scala
Github Open Source
Open Source
Apache-2.0
null
mantis
lukasz-golebiewski
Scala
Code
661
2,247
package io.iohk.ethereum.jsonrpc import akka.actor.ActorSystem import akka.testkit.{TestKit, TestProbe} import io.iohk.ethereum.blockchain.sync.regular.RegularSync.NewCheckpoint import io.iohk.ethereum.consensus.blocks.CheckpointBlockGenerator import io.iohk.ethereum.domain.{Block, BlockBody, BlockchainImpl, Checkpoin...
28,844
https://github.com/healtheloper/JS-Array-Challenge/blob/master/Challenge/uhj1993/forEachMap/solve.js
Github Open Source
Open Source
MIT
2,022
JS-Array-Challenge
healtheloper
JavaScript
Code
21
51
const inputArray = [100, 10, 20, 40]; // write your codes const arr = []; inputArray.forEach((item) => arr.push(item + "%")); console.log(arr);
32,797
https://github.com/tektoncd/operator/blob/master/pkg/apis/operator/v1alpha1/tektoninstallerset_lifecycle_test.go
Github Open Source
Open Source
Apache-2.0
2,023
operator
tektoncd
Go
Code
347
1,438
/* Copyright 2021 The Tekton 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
11,031
https://github.com/gopalshendge18/Practice-Question/blob/master/Day 17/Q.1]/Ravi.cpp
Github Open Source
Open Source
MIT
2,022
Practice-Question
gopalshendge18
C++
Code
92
451
#include<bits/stdc++.h> using namespace std; typedef long long ll; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int t=1; // cin>>t; while(t--) { ll n; cin>>n; ll arr[n]; ll sum[n]={0}; for(ll i=0;i<n;i++) { cin>>arr[i...
15,240
https://github.com/mvirenius/ptv-1.7/blob/master/src/PTV.Application.Web/wwwroot/js/app/Routes/GeneralDescription/components/GeneralDescriptionForm/GeneralDescriptionForm.js
Github Open Source
Open Source
MIT
2,017
ptv-1.7
mvirenius
JavaScript
Code
570
1,703
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * 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...
14,395
https://github.com/seyuf/magento-actions-sample/blob/master/magento/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/PlaceOrderTest.php
Github Open Source
Open Source
MIT, OSL-3.0, LicenseRef-scancode-unknown-license-reference, AFL-2.1, AFL-3.0
2,023
magento-actions-sample
seyuf
PHP
Code
943
5,002
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); namespace Magento\GraphQl\Quote\Customer; use Exception; use Magento\Framework\Registry; use Magento\GraphQl\Quote\GetMaskedQuoteIdByReservedOrderId; use Magento\Integration\Api\CustomerTok...
30,458
https://github.com/andredaprato/hlash/blob/master/frontend/src/Page/Game.purs
Github Open Source
Open Source
MIT
2,020
hlash
andredaprato
PureScript
Code
806
1,928
module Page.Game where import Prelude import Capability.Resource.Game (class ManageGame, submitAnswer) import Component.Timer as Timer import Data.Array (head, tail, (!!)) import Data.Const (Const(..)) import Data.Foldable (elem) import Data.Game (Game, GameState(..), Round(..), Stage(..), checkRoundChanged, gameIsO...
30,603
https://github.com/jrineck/sawtooth-core/blob/master/validator/gossip/token_bucket.py
Github Open Source
Open Source
Apache-2.0
null
sawtooth-core
jrineck
Python
Code
377
734
# Copyright 2016 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
9,082
https://github.com/TalHadad/yolov3_tf2/blob/master/yolov3.py
Github Open Source
Open Source
Apache-2.0
null
yolov3_tf2
TalHadad
Python
Code
798
2,105
# yolov3.py from typing import List import tensorflow as tf from tensorflow.keras import Model from tensorflow.keras.layers import BatchNormalization, \ Conv2D, \ Input, \ ZeroPadding2D, \ LeakyReLU, \ UpSampling2D # print(tf.__version__) # 2.0 def parse_cfg_file(cfg_file: str): '''Read config...
38,415
https://github.com/justincasey/devextreme-reactive/blob/master/packages/dx-react-grid/src/plugins/search-state.tsx
Github Open Source
Open Source
Apache-2.0
2,022
devextreme-reactive
justincasey
TypeScript
Code
158
471
import * as React from 'react'; import { Getter, Action, Plugin, createStateHelper, ActionFn, Getters, } from '@devexpress/dx-react-core'; import { changeSearchValue, searchFilterExpression } from '@devexpress/dx-grid-core'; import { SearchStateProps, SearchStateState } from '../types'; class SearchStateBase extends...
33,007
https://github.com/cnheider/home-slide-android/blob/master/feature-onboarding/src/main/java/fr/outadoc/homeslide/app/onboarding/OnboardingNavHostFragment.kt
Github Open Source
Open Source
Apache-2.0
2,020
home-slide-android
cnheider
Kotlin
Code
123
315
/* * Copyright 2020 Baptiste Candellier * * 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 appli...
36,862
https://github.com/threefoldtech/threefold-forums/blob/master/db/migrate/20130612200846_create_post_upload_join_table.rb
Github Open Source
Open Source
Apache-2.0
null
threefold-forums
threefoldtech
Ruby
Code
36
137
# frozen_string_literal: true class CreatePostUploadJoinTable < ActiveRecord::Migration[4.2] def change create_table :posts_uploads, force: true, id: false do |t| t.integer :post_id t.integer :upload_id end add_index :posts_uploads, :post_id add_index :posts_uploads, :upload_id add_i...
16,756
https://github.com/adrianiftode/Moq.ILogger/blob/master/tests/Moq.ILogger.Tests/VerifyLogUnexpectedExceptionTests.cs
Github Open Source
Open Source
Apache-2.0
2,022
Moq.ILogger
adrianiftode
C#
Code
81
263
using System; using FluentAssertions; using Xunit; // ReSharper disable once CheckNamespace namespace Moq.Tests { public class VerifyLogUnexpectedExceptionTests { [Fact] public void Ctor_DoesNotThrow() { Action act = () => new VerifyLogUnexpectedException(); act...
4,924
https://github.com/jeremiergz/rirekisho/blob/master/src/components/sections/Information/PersonalDetails/index.tsx
Github Open Source
Open Source
Apache-2.0
null
rirekisho
jeremiergz
TypeScript
Code
91
298
import Label from '@/components/common/Label'; import PersonalDetail from '@/models/PersonalDetail'; import clsx from 'clsx'; import React from 'react'; function PersonalDetails({ items }: PersonalDetailsProps): JSX.Element { return ( <div className={clsx( 'flex flex-1 flex-col justify-center order...
6,675
https://github.com/divanvisagie/scala-EEPA/blob/master/example/fibonacci/src/main/scala/com/fibonacci/FibonacciService.scala
Github Open Source
Open Source
Apache-2.0
2,016
scala-EEPA
divanvisagie
Scala
Code
29
115
package com.fibonacci import com.eepa.consumer.Listener object FibonacciService { def main(args: Array[String]): Unit = { val recursiveMath = RecursiveMath() Listener().listen[InDomainMessage]("fibonacci", inMessage => { val fibAnswer = recursiveMath.fibonacci(inMessage.number) OutDomainMess...
6,577
https://github.com/CorentG/Pokecube-Issues-and-Wiki/blob/master/src/main/java/pokecube/mobs/abilities/r/Rattled.java
Github Open Source
Open Source
MIT
2,022
Pokecube-Issues-and-Wiki
CorentG
Java
Code
61
277
package pokecube.mobs.abilities.r; import pokecube.core.database.abilities.Ability; import pokecube.core.interfaces.IMoveConstants; import pokecube.core.interfaces.IPokemob; import pokecube.core.interfaces.pokemob.moves.MovePacket; import pokecube.core.moves.MovesUtils; import pokecube.core.utils.PokeType; public cla...
34,621
https://github.com/JamesCalleja/python/blob/master/fucktions/if_statements.py
Github Open Source
Open Source
MIT
null
python
JamesCalleja
Python
Code
65
183
is_male = False is_tall = True if is_male: print("yep") else: print("nope") if is_male and is_tall: #and or print("both are true") elif is_tall and not(is_male): print("you are a female") else: print("this is the else") def max_mum (num1, num2,num3): if num1 >= num2 and num1 >= mun3: # == != ...
19,918
https://github.com/pchanumolu/dotfiles/blob/master/fish/functions/gi.fish
Github Open Source
Open Source
WTFPL
2,018
dotfiles
pchanumolu
Fish
Code
6
14
function gi grep -i $argv end
15,797
https://github.com/lxiaoli/calc/blob/master/Clac/src/com/lxl/clac/Controller.java
Github Open Source
Open Source
Apache-2.0
null
calc
lxiaoli
Java
Code
147
612
package com.lxl.clac; import java.awt.Label; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.HashMap; import java.util.Map; import javax.swing.JLabel; /** * 按钮点击的监听器事件 * @author lxl * */ public class Controller implements ActionListener{ /** * 计算器的核心部分 */ private...
32,054
https://github.com/mojiito/mojito-backup/blob/master/dist/core/zone/zone.d.ts
Github Open Source
Open Source
MIT
2,017
mojito-backup
mojiito
TypeScript
Code
454
980
import { EventEmitter } from '../async/events'; export declare class ZoneWrapper { private _innerZone; private _outerZone; private _onEnter; private _onLeave; private _onError; private _setMicrotask; private _setMacrotask; constructor({onEnter, onLeave, setMicrotask, setMacrotask, onErro...
29,200
https://github.com/9988123/SlinkyTyped/blob/master/d/devexpress-web/src/main/scala/typingsSlinky/devexpressWeb/global/ASPxClientPivotCustomization.scala
Github Open Source
Open Source
MIT
2,020
SlinkyTyped
9988123
Scala
Code
25
121
package typingsSlinky.devexpressWeb.global import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ /** * A client-side equivalent of the ASPxPivotCustomizationControl control. */ @JSGlobal("ASPxClientPivotCustomization") @js.native class ASPxClientPivotCustomization () extends t...
27,449
https://github.com/darki73/Mekanism/blob/master/src/main/java/mekanism/common/tile/TileEntityPressurizedReactionChamber.java
Github Open Source
Open Source
MIT
null
Mekanism
darki73
Java
Code
573
2,927
package mekanism.common.tile; import javax.annotation.Nonnull; import javax.annotation.Nullable; import mekanism.api.RelativeSide; import mekanism.api.Upgrade; import mekanism.api.annotations.NonNull; import mekanism.api.chemical.gas.BasicGasTank; import mekanism.api.chemical.gas.Gas; import mekanism.api.chemical.gas....
32,306
https://github.com/Azadeh82/game_world/blob/master/resources/views/admin/promotion.blade.php
Github Open Source
Open Source
MIT
null
game_world
Azadeh82
PHP
Code
148
634
@extends('layouts.app') @section('title') Admin @endsection @section('content') <div class="container"> <div class="row"> <div class="col-12 bg-white w-50 p-5 mx-auto"> <h3 class="text-center" style="color:#427eff;">Modifier l'article :<br>{{ $promotion->nom }}</h3> ...
18,715
https://github.com/adk9/openmpmpibench-C/blob/master/pt_to_pt_pingping.c
Github Open Source
Open Source
Apache-2.0
2,020
openmpmpibench-C
adk9
C
Code
1,527
4,213
/***************************************************************************** * * * Mixed-mode OpenMP/MPI MicroBenchmark Suite - Version 1.0 * * * * ...
46,022
https://github.com/MiggieNRG/microsoft-authentication-library-for-dotnet/blob/master/src/client/Microsoft.Identity.Client/Utils/ITimeService.cs
Github Open Source
Open Source
MIT
2,022
microsoft-authentication-library-for-dotnet
MiggieNRG
C#
Code
27
63
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; namespace Microsoft.Identity.Client.Utils { internal interface ITimeService { DateTime GetUtcNow(); } }
38,322
https://github.com/daviwil/gambit/blob/master/tests/unit-tests/03-number/divide.scm
Github Open Source
Open Source
Apache-2.0
null
gambit
daviwil
Scheme
Code
8
29
(include "#.scm") (check-eqv? (denominator (/ -12 -10)) 5)
14,475
https://github.com/ahmad-fauzan458/TarungLabDDP1/blob/master/lab/09/template_09_a.py
Github Open Source
Open Source
MIT
null
TarungLabDDP1
ahmad-fauzan458
Python
Code
144
487
''' Template untuk solusi Lab 09 kelas A. ''' class Bangunan: def __init__(self, nama, lama_sewa, harga_sewa): self.nama = nama self.lama_sewa = lama_sewa self.harga_sewa = harga_sewa def getHargaSewa(self): return self.harga_sewa class Restoran(Bangunan): def __init__(sel...
3,754
https://github.com/solidate/closed-domain-faq/blob/master/server.py
Github Open Source
Open Source
MIT
null
closed-domain-faq
solidate
Python
Code
155
709
from fastapi import FastAPI,Request from fastapi.staticfiles import StaticFiles from fastapi.responses import HTMLResponse from fastapi.templating import Jinja2Templates from pydantic import BaseModel from haystack.document_store.memory import InMemoryDocumentStore from haystack.retriever.dense import EmbeddingRetrieve...
39,457
https://github.com/jf248/scrape-the-plate/blob/master/frontend/src/components/common/EditResourceDialog/EditResourceDialog.js
Github Open Source
Open Source
MIT
2,019
scrape-the-plate
jf248
JavaScript
Code
143
435
import React from 'react'; import { Compose } from 'lib/react-powerplug'; import { RecordForm } from 'controllers/record-form'; import { Modal } from 'controllers/modal'; import EditResourceDialogPres from './EditResourceDialogPres'; function EditResourceDialog({ name, component, resource, resourceName, .....
45,124
https://github.com/ClearMelody/ds_manager/blob/master/ds-web/.eslintrc.js
Github Open Source
Open Source
MIT
null
ds_manager
ClearMelody
JavaScript
Code
466
2,695
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parserOptions: { parser: 'babel-eslint', }, env: { browser: true, }, extends: [ // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention // consider switching to `plugin:vue/strongly-...
37,553
https://github.com/refraction-ray/qop/blob/master/qop/boson.py
Github Open Source
Open Source
MIT
2,021
qop
refraction-ray
Python
Code
44
157
import sys import numpy as np from .particle import ParticleOperator, ParticleOperatorString from .utils import repr_short thismodule = sys.modules[__name__] class BosonOperator(ParticleOperator): def strfy(self): return BosonOperatorString.from_op(self) b = BosonOperator class BosonOperatorString(Pa...
46,689
https://github.com/shelby-yao/CommonPods/blob/master/Example/Pods/JKNetwork/JKNetworking/JKNetworkingKit/JKNetworking/NSURLSession+JKCategory.m
Github Open Source
Open Source
MIT
2,021
CommonPods
shelby-yao
Objective-C
Code
106
455
// // NSURLSession+JKCategory.m // JKNetwork // // Created by Jekin on 2019/11/14. // #import "NSURLSession+JKCategory.h" #import <objc/runtime.h> void swizzing(Class class, SEL originalSelector, SEL swizzledSelector) { Method originalMethod = class_getClassMethod(class, originalSelector); Method swizzled...
5,037
https://github.com/Sreejithpin/odata.net/blob/master/test/FunctionalTests/Taupo/Source/Taupo.Astoria/Contracts/LinqToAstoria/IAstoriaQueryVerifierCapabilityInspector.cs
Github Open Source
Open Source
CC-BY-3.0
2,022
odata.net
Sreejithpin
C#
Code
109
286
//--------------------------------------------------------------------- // <copyright file="IAstoriaQueryVerifierCapabilityInspector.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // </copyright> //----------------...
5,614
https://github.com/robertojnior/tompero/blob/master/src/app/clients/RecipePuppyClient/baseClient.ts
Github Open Source
Open Source
MIT
2,021
tompero
robertojnior
TypeScript
Code
19
65
import axios from 'axios' import dotenv from 'dotenv' dotenv.config() const baseClient = axios.create({ baseURL: process.env.RECIPE_PUPPY_BASE_URL }) export default baseClient
6,490
https://github.com/qvik/go-cloudlogging/blob/master/stackdriver.go
Github Open Source
Open Source
MIT
2,022
go-cloudlogging
qvik
Go
Code
155
552
package cloudlogging import ( "context" "fmt" stdlog "log" stackdriver "cloud.google.com/go/logging" "google.golang.org/api/option" ) var ( levelToStackdriverSeverityMap map[Level]stackdriver.Severity ) // createStackdriverLogger creates a new Stackdriver logging client and a logger func createStackdriverLogg...
9,225
https://github.com/onezens/SmartQQ/blob/master/qqtw/qqheaders7.2/CFT_FF14467.h
Github Open Source
Open Source
MIT
2,018
SmartQQ
onezens
Objective-C
Code
281
1,422
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "CFT_UICustomNaviBarViewController.h" #import "MulMemSelBusiProcessDelegate.h" #import "UIScrollViewDelegate.h" #import "UISegmentViewDelegate.h" #import "UITextFieldDelega...
3,024
https://github.com/keithpij/python-blueprints/blob/master/blueprints/loggers/basic_logger_old.py
Github Open Source
Open Source
MIT
null
python-blueprints
keithpij
Python
Code
384
943
''' A Basic Python Logging Blueprint. ''' import argparse import logging from blueprints.loggers import logging_utils as lu def create_basic_logger(logger_name, logging_level, propagate_message=True): ''' Creates a logger with a StreamHandler that sends messages to stdout. The logging level of the logger...
7,864
https://github.com/EVODelavega/gp-scripts/blob/master/rrn.js
Github Open Source
Open Source
MIT
null
gp-scripts
EVODelavega
JavaScript
Code
672
2,270
/** * Basic RRN (SSN) number checker/generator/validator */ var RRMod = (function() { var modMax = 1000, modBase = 997, checkBase = 97, module = {}, str2date = function(str) { var parts = str.split(/[^\d]+/); if (parts.length != 3) return false; if (parts[2...
805
https://github.com/cmitchell/jooby/blob/master/docs/asciidoc/modules/rocker.adoc
Github Open Source
Open Source
Apache-2.0
2,020
jooby
cmitchell
AsciiDoc
Code
266
938
== Rocker https://github.com/fizzed/rocker[Rocker] is a Java 8 optimized, memory efficient, speedy template engine producing statically typed, plain java objects. === Usage 1) Add the dependency: [dependency, artifactId="jooby-rocker"] . 2) Configure code generator .Maven [source,xml,role="primary",subs="verbatim...
47,318
https://github.com/DevscoreTeam/Bitnomi/blob/master/table.js
Github Open Source
Open Source
MIT
2,018
Bitnomi
DevscoreTeam
JavaScript
Code
199
613
import React, { Component } from 'react'; import Table from 'antd/lib/table'; import './App.css'; class OrderTable extends Component { render() { const columns = [ { title: "No.", dataIndex: "No.", key: "No.", }, { title: "Type", dataIndex: "Type", key: "Type", }, { ...
21,195
https://github.com/V-Fib/FlurryClone/blob/master/MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/dance_prop/prop_ribbon_spark_r_s04.lua
Github Open Source
Open Source
Zlib, OpenSSL
2,021
FlurryClone
V-Fib
Lua
Code
7
126
object_draft_schematic_dance_prop_prop_ribbon_spark_r_s04 = object_draft_schematic_dance_prop_shared_prop_ribbon_spark_r_s04:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_ribbon_spark_r_s04, "object/draft_schematic/dance_prop/prop_ribbon_spark_r_s04.iff")
43,203
https://github.com/EricWen229/JuliaSetPython/blob/master/juliaset/utility.py
Github Open Source
Open Source
MIT
null
JuliaSetPython
EricWen229
Python
Code
111
380
import colorsys import math import PIL.ImageColor class Complex: def __init__(self, x=0.0, y=0.0): self.x = float(x) self.y = float(y) class RGBRange: colorIn = (0.0, 0.0, 0.0) colorOut = (0.0, 0.0, 0,0) class HSBComponents: h = 0.0 s = 0.0 b = 0.0 def double3(self...
37,728
https://github.com/spegustavo/VaadinProject/blob/master/node_modules/@vaadin/vaadin-virtual-list/src/virtualizer.js
Github Open Source
Open Source
Unlicense
null
VaadinProject
spegustavo
JavaScript
Code
362
718
import { IronListAdapter } from './virtualizer-iron-list-adapter.js'; export class Virtualizer { /** * @typedef {Object} VirtualizerConfig * @property {Function} createElements Function that returns the given number of new elements * @property {Function} updateElement Function that updates the element at a ...
32,897
https://github.com/vckai/novel/blob/master/app/services/feedback.go
Github Open Source
Open Source
MIT
2,022
novel
vckai
Go
Code
329
919
// Copyright 2017 Vckai Author. 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 applica...
27,074
https://github.com/getlocal-travel/tinacms/blob/master/packages/@tinacms/toolkit/src/packages/icons/Redo.tsx
Github Open Source
Open Source
Apache-2.0
null
tinacms
getlocal-travel
TypeScript
Code
138
354
/** Copyright 2021 Forestry.io Holdings, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writ...
18,914
https://github.com/travers-rhodes/ricnn/blob/master/code/testing.m
Github Open Source
Open Source
MIT
2,017
ricnn
travers-rhodes
MATLAB
Code
4
52
plot(fft([1,0,0,0])) plot(fft([0,1,0,0])) plot(fft([0,0,1,0])) plot(fft([0,1,1,0]))
21,187
https://github.com/thirumurthy/NewGeneralCommon/blob/master/src/Common/FileOperations.java
Github Open Source
Open Source
MIT
null
NewGeneralCommon
thirumurthy
Java
Code
412
1,309
package Common; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.FilenameFilter; import java.io.IOException; import java.io.PrintWriter; import org.apache.commons.codec.binary.StringUtils; import com.sun.xml.bind.v...
26,022
https://github.com/acfreitas/agile-itsm/blob/master/agile-itsm-web/agile-itsm-web-portal/src/main/java/br/com/centralit/citcorpore/ajaxForms/OrigemOcorrencia.java
Github Open Source
Open Source
Apache-2.0
2,020
agile-itsm
acfreitas
Java
Code
268
1,255
package br.com.centralit.citcorpore.ajaxForms; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import br.com.centralit.citajax.html.AjaxFormAction; import br.com.centralit.citajax.html.DocumentHTML; import br.com.centralit.citajax.html.HTMLForm; import br.com.centralit.cit...
32,139
https://github.com/offen/offen/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, MIT, CC-BY-NC-ND-4.0
2,023
offen
offen
Ignore List
Code
28
130
# Copyright 2020-2022 - Offen Authors <hioffen@posteo.de> # SPDX-License-Identifier: Apache-2.0 node_modules/ dist/ bin/ bundle.* package-lock.json !*/package-lock.json integration/cypress/screenshots integration/cypress/videos dependencies.csv *.deb *.tab *.tar.gz *.db *.log .jekyll-cache docs-site *.pem *.crx...
16,084
https://github.com/bellmit/ibizlab-runtime/blob/master/ibznotify/ibznotify-core/src/main/java/cn/ibizlab/core/notify/service/impl/MsgTemplateServiceImpl.java
Github Open Source
Open Source
Apache-2.0
2,021
ibizlab-runtime
bellmit
Java
Code
497
2,362
package cn.ibizlab.core.notify.service.impl; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Set; import java.util.Map; import java.util.HashSet; import java.util.HashMap; import java.util.Collection; import java.util.Objects; import java.util.Optional; import java.math...
7,057
https://github.com/avinaba/affectiva-invision-demo/blob/master/nullaffdex-worker.js
Github Open Source
Open Source
MIT
null
affectiva-invision-demo
avinaba
JavaScript
Code
710
2,372
String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); }; addEventListener("message", function(evt) { if (evt.data && evt.data.message) { var message = evt.data.message; switch(message) { case "ctor": ctor(evt.data.url); ...
43,363
https://github.com/sho25/karaf/blob/master/features/core/src/main/java/org/apache/karaf/features/internal/model/Scoping.java
Github Open Source
Open Source
Apache-2.0
null
karaf
sho25
Java
Code
415
1,449
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
37,267
https://github.com/melissawm/napari.github.io/blob/master/theme/src/components/media.tsx
Github Open Source
Open Source
BSD-3-Clause
2,022
napari.github.io
melissawm
TypeScript
Code
98
184
import { createMedia } from '@artsy/fresnel'; import { breakpoints } from '@/theme'; const AppMedia = createMedia({ breakpoints }); /** * Styles for SSG. */ export const mediaStyles = AppMedia.createMediaStyle(); export const { /** * This component provides an easy-to-use API for responding to media * que...
6,217
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/master/internal/aws/k8s/k8sclient/node_info.go
Github Open Source
Open Source
Apache-2.0
2,023
opentelemetry-collector-contrib
open-telemetry
Go
Code
34
133
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 package k8sclient // import "github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/k8s/k8sclient" import ( v1 "k8s.io/api/core/v1" ) type nodeInfo struct { conditions []*nodeCondition } type nodeCondition struct { Type...
49,563
https://github.com/ExperitestOfficial/ng2-smart-table/blob/master/projects/ng2-smart-table/src/lib/components/cell/cell-edit-mode/default-edit.component.ts
Github Open Source
Open Source
MIT
null
ng2-smart-table
ExperitestOfficial
TypeScript
Code
42
143
import {Component} from '@angular/core'; import {EditCellDefault} from './edit-cell-default'; @Component({ selector: 'table-cell-default-editor', templateUrl: './default-edit.component.html', }) export class DefaultEditComponent<T extends object, C, D extends keyof T> extends EditCellDefault<T, C, D> { constru...
23,822
https://github.com/stainless-steel/mcpat-sys/blob/master/build/wrapper/processor.h
Github Open Source
Open Source
Apache-2.0
null
mcpat-sys
stainless-steel
C
Code
53
263
#ifndef __WRAPPER_PROCESSOR_H__ #define __WRAPPER_PROCESSOR_H__ #include <wrapper/XML_Parse.h> #include <wrapper/cacti/component.h> #include <wrapper/sharedcache.h> extern "C" { typedef struct Processor_t; Processor_t *new_Processor(ParseXML_t *XML_interface); void delete_Processor(Processor_t *); Core_t *Process...
34,342
https://github.com/kencharos/yakimashi/blob/master/app/models/Models.scala
Github Open Source
Open Source
MIT
2,013
yakimashi
kencharos
Scala
Code
169
589
package models import play.api.Play.current import com.novus.salat._ import com.novus.salat.annotations._ import com.novus.salat.dao._ import com.mongodb.casbah.Imports._ import se.radley.plugin.salat._ import com.mongodb.casbah.commons.MongoDBObject import mongoContext._ object Label extends ModelCompanion[Label, ...
45,980
https://github.com/kamyu104/LeetCode-Solutions/blob/master/C++/binary-tree-paths.cpp
Github Open Source
Open Source
MIT
2,023
LeetCode-Solutions
kamyu104
C++
Code
113
380
// Time: O(n * h) // Space: O(h) /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class Solution { public: vector<string> binaryTreePaths(TreeNode* root) { vec...
48,225
https://github.com/ColuLocalNetwork/CLN-community-app/blob/master/dapp/src/services/api/business.js
Github Open Source
Open Source
MIT
2,019
CLN-community-app
ColuLocalNetwork
JavaScript
Code
32
113
import request from 'superagent' export const fetchBusinesses = (apiRoot, { listAddress, page }) => request.get(`${apiRoot}/businesses/${listAddress}?page=${page}`) .then(response => response.body) export const fetchBusiness = (apiRoot, { listAddress, hash }) => request.get(`${apiRoot}/businesses/${listAddres...
47,307
https://github.com/exced/hermes/blob/master/external/esprima/test_fixtures/invalid-syntax/migrated_0278.js
Github Open Source
Open Source
MIT
2,022
hermes
exced
JavaScript
Code
4
11
class A {static [static](){};}
20,996
https://github.com/TwinDots/email-service/blob/master/src/Services/EmailService.php
Github Open Source
Open Source
MIT
2,020
email-service
TwinDots
PHP
Code
391
1,071
<?php namespace TwinDots\EmailService\Services; use Exception; use \Illuminate\Support\Facades\Mail; use TwinDots\EmailService\Mail\EmailTemplate; class EmailService { /** * Recipient email * @var array|string */ protected string|array $email = ''; /** * CC * @var array|string ...
23,054
https://github.com/LaTueur/reddit-detective/blob/master/tests/test_data_models.py
Github Open Source
Open Source
MIT
2,022
reddit-detective
LaTueur
Python
Code
250
835
from reddit_detective.data_models import Comment, Submission, Subreddit, Redditor from tests import api_ """ Testing the basic properties/methods of data models and abstract classes """ def test_subreddit(): sub = Subreddit(api_, "learnpython", limit=100) assert sub.data["created_utc"] assert sub.main_ty...
2,046
https://github.com/RAnLabNL/RAnLab-frontend/blob/master/store/reducers/business.tsx
Github Open Source
Open Source
RSA-MD
null
RAnLab-frontend
RAnLabNL
TypeScript
Code
122
547
import { getNewBusinesses } from '../helpers/business'; import { ADD_BUSINESS_BY_REGION_ID_SUCCESS, ADD_BUSINESS_BY_REGION_ID_STARTED, ADD_BUSINESS_BY_REGION_ID_FAILURE, FETCH_BUSINESSES_BY_REGION_ID_SUCCESS, FETCH_BUSINESSES_BY_REGION_ID_STARTED, FETCH_BUSINESSES_BY_REGION_ID_FAILURE, BusinessActionTypes...
28,866
https://github.com/kreghek/Zilon_Roguelike/blob/master/Zilon.Core/Zilon.Core/PersonModules/IPersonExtensions.cs
Github Open Source
Open Source
MIT
2,022
Zilon_Roguelike
kreghek
C#
Code
92
314
using System; using Zilon.Core.Persons; namespace Zilon.Core.PersonModules { public static class IPersonExtensions { public static TPersonModule GetModule<TPersonModule>(this IPerson person) where TPersonModule : IPersonModule { if (person is null) { th...
44,482
https://github.com/aalleavitch/react-storefront/blob/master/packages/react-storefront/test/TabsRow.test.js
Github Open Source
Open Source
Apache-2.0
null
react-storefront
aalleavitch
JavaScript
Code
145
446
import React from 'react'; import TabsRow from '../src/TabsRow' import { mount } from 'enzyme' import TestProvider from './TestProvider' describe('TabsRow', () => { describe('render', () => { it('should render tabs with images', () => { expect(mount( <TestProvider> <TabsRow it...
43,423
https://github.com/rhernandez90/MenuCategoryApp/blob/master/src/app/pages/account/register/register.component.ts
Github Open Source
Open Source
MIT
null
MenuCategoryApp
rhernandez90
TypeScript
Code
179
665
import { Component, OnInit } from '@angular/core'; import { RegisterUserDto } from '../../../Services/authentication/Dto/RegisterUserDto'; import { LoginService } from '../../../Services/authentication/login/login.service'; import Swal from 'sweetalert2' import { ActivatedRoute, Router } from '@angular/router'; import ...
43,704
https://github.com/nadirlatif532/brighto-npx/blob/master/src/app/views/project/project.module.ts
Github Open Source
Open Source
MIT
null
brighto-npx
nadirlatif532
TypeScript
Code
85
238
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ProjectComponent } from './component/project/project.component'; import { FormsModule } from '@angular/forms'; import { ProjectRoutingModule } from './project-routing.module'; import { TableModule } from 'primeng/table'; ...
27,596
https://github.com/mehdilaktaf/epimovies-server/blob/master/routes/auth.js
Github Open Source
Open Source
MIT
null
epimovies-server
mehdilaktaf
JavaScript
Code
102
262
const Router = require('express-promise-router') const { verifySignUp } = require("../middleware"); const settings = require('../settings'); const controller = require("../controllers/auth.controller"); // create a new express-promise-router // this has the same API as the normal express router except // it allows you...
28,375
https://github.com/aungkhanthtoo/PagingHelper/blob/master/app/src/main/java/com/dev/droid/data/persistence/AppDatabase.kt
Github Open Source
Open Source
MIT
2,020
PagingHelper
aungkhanthtoo
Kotlin
Code
52
184
package com.dev.droid.data.persistence import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import com.dev.droid.SampleApp import com.dev.droid.data.network.Movie /** * Created by A.K.HTOO on 02/07/2020,July,2020. */ @Database(entities = [Movie::class], version = 2) abstract cla...
50,419
https://github.com/eric-xujun/Judge-at-fgdsb/blob/master/judge/build_tests/peek-iterator.rb
Github Open Source
Open Source
MIT
2,015
Judge-at-fgdsb
eric-xujun
Ruby
Code
44
176
require './common' require '../ruby/common' class Test_peek_iterator < TestBase def initialize(name) @manual_test = true super(name) end def add_test(arr) @test_in[0] << arr end def gen_tests @test_in, @test_out = [[]], [] 20.times do add_test gen_array(rand(1...20), 1..20) e...
15,353
https://github.com/lymanZerga11/arbitrage_bot/blob/master/exchanges/binance.cpp
Github Open Source
Open Source
MIT
2,021
arbitrage_bot
lymanZerga11
C++
Code
252
1,223
#include "../utils/restapi.h" #include "../utils/unique_json.hpp" #include "binance.h" #include "../symbols.h" #include <sstream> #include <iostream> #include <fstream> #include <iomanip> #include <array> #include <cmath> #include <ctime> std::vector<std::string> BINANCE_SYMBOLS = { "BTCETH", "XRPETH", "LTCETH...
40,153
https://github.com/cuongponggon/webadmin/blob/master/src/app/models/camera.model.ts
Github Open Source
Open Source
MIT
null
webadmin
cuongponggon
TypeScript
Code
47
110
import { Area } from './area.model'; export class Camera { public id: number; public ip: String; public name: String; public account: String; public password: String; public createdDate: String; public updatedDate: String; public status: String; public imageUrl: String; public ...
6,690
https://github.com/schmitch/elasticsearch-net/blob/master/src/Nest/Cluster/ClusterStats/ClusterIndicesStats.cs
Github Open Source
Open Source
Apache-2.0
2,022
elasticsearch-net
schmitch
C#
Code
245
673
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.Runtime.Serialization; namespace Nest { [DataContract] public class ClusterIndicesStats { [Data...
8,966
https://github.com/ahmed-afzal1/geniusnews/blob/master/project/app/Models/Category.php
Github Open Source
Open Source
MIT
2,021
geniusnews
ahmed-afzal1
PHP
Code
79
356
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Category extends Model { protected $fillable = ['language_id','title','slug','parent_id','color','category_order','show_at_homepage','show_on_menu']; protected $table = 'categories'; public $timestamps = false; public fun...
14,799
https://github.com/les1smore/mlnotes/blob/master/Regression/Random Forest/Random Forest Regression Tree.r
Github Open Source
Open Source
Apache-2.0
null
mlnotes
les1smore
R
Code
211
521
# Random Forest Regression # Importing the dataset dataset = read.csv('Position_Salaries.csv') dataset = dataset[2:3] # Select the second column "Level" and the third column "Salary" only # Splitting the data set into the Training set and Test set #library(caTools) #set.seed(123) #split = sample.split(dataset$Profit,...
46,440
https://github.com/olivertembodev/agrokimia-cms-laravel/blob/master/resources/views/kios/editKios.blade.php
Github Open Source
Open Source
MIT
null
agrokimia-cms-laravel
olivertembodev
PHP
Code
933
4,755
@extends('layouts._layout') @section('content') <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAvTkPKa1jErT_Kh9ZPTIP2az48f8y0WGo&libraries=places"></script> <script> function initialize() { var input = document.getElementById('searchTextField'); var autocomplete =...
28,066
https://github.com/parvillanueva/AlagangUL/blob/master/application/views/content_management/template/footer.php
Github Open Source
Open Source
MIT
null
AlagangUL
parvillanueva
PHP
Code
6
23
<footer class="main-footer"> <strong>All rights reserved. </footer>
23,135
https://github.com/plaforgue/kae/blob/master/kae/kae.py
Github Open Source
Open Source
MIT
2,021
kae
plaforgue
Python
Code
3,062
9,077
import time import torch import torch.optim as optim ############################################################################### # Dictionaries functions ############################################################################### def mk_ker_dic(kernels, kparams, outmats, lambdas): ...
26,102
https://github.com/edesz/electricity-consumption-forecast/blob/master/src/processing_helpers.py
Github Open Source
Open Source
MIT
null
electricity-consumption-forecast
edesz
Python
Code
102
354
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np def median_filter_outliers(df_train, df_val, window=24 * 1, std=3): # train medianv = df_train["y"].rolling(window, center=True).median() stdv = df_train["y"].rolling(window, center=True).std() # transform train mask = (df_train....
16,340