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/ttys3/Lychee/blob/master/app/Locale/Italian.php
Github Open Source
Open Source
MIT
2,019
Lychee
ttys3
PHP
Code
1,844
6,697
<?php namespace App\Locale; final class Italian implements LangInterface { public static function code() { return 'it'; } public static function get_locale() { $locale = array( 'USERNAME' => 'nome utente', 'PASSWORD' => 'password', 'ENTER' => 'Invia', 'CANCEL' => 'Annulla', 'SIGN_IN' => 'Entr...
44,986
https://github.com/mexicarne/python-jerasoft/blob/master/setup.py
Github Open Source
Open Source
BSD-2-Clause
null
python-jerasoft
mexicarne
Python
Code
23
144
from setuptools import setup, find_packages description="Jerasoft VCS API wrapper" setup( name="python-jerasoft", version="1.0", description=description, author="Ruslan Makhmatkhanov", author_email="rm@FreeBSD.org", url="https://github.com/mexicarne/python-jerasoft", packages=find_packages...
10,196
https://github.com/silky/Haskell.Joinads/blob/master/Samples/Resumptions.hs
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,011
Haskell.Joinads
silky
Haskell
Code
842
2,040
{-# LINE 1 "Resumptions.jhs" #-} module Main (main) where {-# LINE 1 "Resumptions.jhs" #-} import Control.Monad (Monad) {-# LINE 2 "Resumptions.jhs" #-} import Control.Monad.Trans {-# LINE 3 "Resumptions.jhs" #-} import Control.Monad.Joinads {-# LINE 12 "Resumptions.jhs" #-} data (Monad m) => Resumption m r = Step (m...
9,514
https://github.com/mcadventurecity/AP-CSA-2018-Jarod/blob/master/LearningUtils/src/learningutils/client/LearningUtils.java
Github Open Source
Open Source
MIT
2,018
AP-CSA-2018-Jarod
mcadventurecity
Java
Code
16
42
package learningutils.client; public class LearningUtils { public static void main(String[] args) { new Splash(); } }
31,148
https://github.com/ohmycthulhu/unlimited-hackaton/blob/master/api/database/seeds/FieldsSeeder.php
Github Open Source
Open Source
MIT
2,019
unlimited-hackaton
ohmycthulhu
PHP
Code
725
2,685
<?php use App\Course; use App\Helper\Helper; use App\UserCourse; use App\UserExam; use App\UserLesson; use App\UserPointChange; use App\UserSkill; use App\UserSkillGain; use App\UserWeekNorm; use Illuminate\Database\Seeder; class FieldsSeeder extends Seeder { /** * Run the database seeds. * * @retu...
19,675
https://github.com/mapswipe/mapswipe/blob/master/src/shared/views/Mapper/CardBody.js
Github Open Source
Open Source
Apache-2.0
2,023
mapswipe
mapswipe
JavaScript
Code
2,598
6,501
// @flow import * as React from 'react'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { firebaseConnect } from 'react-redux-firebase'; import { FlatList } from 'react-native'; import get from 'lodash.get'; import { toggleMapTile } from '../../actions/index'; import LoadingIcon from '.....
11,731
https://github.com/OnurTasliogluu/Payment-Application/blob/master/src/ot_tcp_server.c
Github Open Source
Open Source
Apache-2.0
null
Payment-Application
OnurTasliogluu
C
Code
378
1,799
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/types.h> #include <stdio.h> #include <netdb.h> #include <netinet/in.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #define PORT 1234 #de...
4,947
https://github.com/ameyac-msft/BlingFire/blob/master/blingfirecompile.library/src/FATestCmpDfa.cpp
Github Open Source
Open Source
MIT
null
BlingFire
ameyac-msft
C++
Code
889
3,003
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #include "blingfire-compile_src_pch.h" #include "FAConfig.h" #include "FATestCmpDfa.h" #include "FARSDfaCA.h" #include "FAState2OwCA.h" #include "FAState2OwsCA.h" #include "FAUtils.h" #include "FAMealyDfaCA.h" #inc...
52,888
https://github.com/xKotelek/LearningToMultiplication/blob/master/main.py
Github Open Source
Open Source
CC0-1.0
null
LearningToMultiplication
xKotelek
Python
Code
158
510
from random import randint from time import sleep number1 = 0 number2 = 0 reply = 0 scores = 0 reply_start = 0 def ERROR(code, description): print("An error ocured with executing the program!") print("Code: %s \nDescription: %s" % (code, description)) sleep(0.1) quest_start() def start(): print("...
312
https://github.com/itJieShao/front_admin/blob/master/src/views/operate/data_report/user.vue
Github Open Source
Open Source
MIT
null
front_admin
itJieShao
Vue
Code
668
2,959
<template> <div class="app-container"> <div class="loading" :style="loading ? 'z-index: 1;' : 'z-index: -1;'" v-loading="loading" ></div> <div class="pageTitle"> <!-- <i @click="$router.go(-1)" class="el-icon-arrow-left"></i> --> <h2>用户报表</h2> </div> <el-card shadow="...
3,699
https://github.com/mmiklavc/metron/blob/master/metron-interface/metron-alerts/src/app/shared/time-range/time-range.component.scss
Github Open Source
Open Source
Apache-2.0, OFL-1.1, MIT, CC-BY-SA-3.0, BSD-3-Clause, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference, CC-BY-SA-4.0, LicenseRef-scancode-warranty-disclaimer
2,020
metron
mmiklavc
SCSS
Code
281
733
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
896
https://github.com/marco-c/gecko-dev-wordified-and-comments-removed/blob/master/toolkit/crashreporter/google-breakpad/src/processor/stackwalker_x86_unittest.cc
Github Open Source
Open Source
LicenseRef-scancode-unicode-mappings, BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
gecko-dev-wordified-and-comments-removed
marco-c
C++
Code
15,161
41,780
# include < string > # include < vector > # include " breakpad_googletest_includes . h " # include " common / test_assembler . h " # include " common / using_std_string . h " # include " google_breakpad / common / minidump_format . h " # include " google_breakpad / processor / basic_source_line_resolver . h " # include...
43,262
https://github.com/iSenseTalent/dishtansya/blob/master/resources/views/emails/registered_account.blade.php
Github Open Source
Open Source
MIT
null
dishtansya
iSenseTalent
PHP
Code
10
37
@component('mail::message') # Good Day Congratulations! Thanks,<br> {{ config('app.name') }} @endcomponent
45,181
https://github.com/awseward/react-widgets/blob/master/docs/components/demos/dropdownlist.jsx
Github Open Source
Open Source
MIT
null
react-widgets
awseward
null
Spoken
340
1,322
'use strict'; var React = require('react') , Button = require('../../bootstrap').Button , ButtonGroup = require('../../bootstrap').ButtonGroup , Dropdown = require('../../../src/index').DropdownList , RW = require('../../../src/index') , genData = require('../generate-data'); var valueComp = React.createClas...
251
https://github.com/wilsoncalisto/exercicios_em_c/blob/master/trabalho4/lista3/lista3.13/soma_gols.c
Github Open Source
Open Source
MIT
null
exercicios_em_c
wilsoncalisto
C
Code
21
91
#include <stdlib.c> char *soma_gols(char* atual, char* proximo) { int acumulador; char numero[3]; acumulador = atoi(atual) + atoi(proximo); snprintf(numero,3,"%d",acumulador); return numero; }
37,594
https://github.com/notyy/play2.6-seed/blob/master/app/biz/repo/Database.scala
Github Open Source
Open Source
Apache-2.0
null
play2.6-seed
notyy
Scala
Code
139
505
package biz.repo import biz.domain.Customer import slick.basic.DatabasePublisher import scala.concurrent.Await import scala.concurrent.duration._ trait Database { this: DBConfigProvider => def dbName: String val dbConfig = getDatabaseConfig(dbName) lazy val databaseApi = dbConfig.profile.api import dbC...
31,621
https://github.com/indeavr/favour-api/blob/master/FavourAPI.Data/Dtos/ApplicationDto.cs
Github Open Source
Open Source
MIT
null
favour-api
indeavr
C#
Code
64
158
using FavourAPI.Data.Dtos.Offerings; using System; using System.Collections.Generic; namespace FavourAPI.Dtos { public class ApplicationDto { public string Id { get; set; } public List<PeriodDto> Time { get; set; } public DateTime ApplyTime { get; set; } public string Messag...
13,252
https://github.com/WNProject/WNFramework/blob/master/Runtime/WNGraphics/test/src/WNQueryAdaptersTests.cpp
Github Open Source
Open Source
BSD-2-Clause
2,022
WNFramework
WNProject
C++
Code
116
437
// Copyright (c) 2021, WNProject Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "WNGraphics/inc/WNDevice.h" #include "WNGraphics/inc/WNFactory.h" #include "WNGraphics/test/inc/WNTestFixture.h" using factory_test = wn::runt...
6,012
https://github.com/gsson/jamon/blob/master/src/test/java/se/fnord/jamon/TestNodeMatchers.java
Github Open Source
Open Source
0BSD
null
jamon
gsson
Java
Code
193
824
package se.fnord.jamon; import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Test; public final class TestNodeMatchers { public static final class ValueLister implements PathVisitor { public final List<String> values = new Array...
16,005
https://github.com/ZaynMalik1/Blumind/blob/master/Code/Blumind/Core/Exports/PdfEngine.cs
Github Open Source
Open Source
MIT
2,022
Blumind
ZaynMalik1
C#
Code
331
1,256
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.Linq; using System.Text; using Blumind.Canvas.Pdf; using Blumind.Configuration; using Blumind.Controls; using Blumind.Controls.MapViews; using Blumind.Design; using Blumind.Globa...
31,078
https://github.com/foridpathan/Codeigniter-Ajax-Admin-Theme-with-dynamic-menu/blob/master/app/Views/pages/profile.php
Github Open Source
Open Source
MIT
2,020
Codeigniter-Ajax-Admin-Theme-with-dynamic-menu
foridpathan
PHP
Code
2,011
8,749
<!--Author : @arboshiki--> <div id="profile"> <div class="profile-page padding-15"> <div class="row"> <div class="col-sm-6 col-lg-7"> <div class="profile-header"> <div class="row row-header"> <div class="col-lg-6 background"> ...
7,699
https://github.com/fdossi/factoid/blob/master/styles/popover.less
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,014
factoid
fdossi
Less
Code
303
1,008
// adapted from twitter bootstrap .popover-hidden-true { display: none; } .popover-animated-true { //.animated; //.animation-speed-medium; //.fadeIn; } .popover-button-panel { padding: 0.25em 0; text-align: right; font-size: 0.8em; } .poppedover (@bg, @border) { position: relative; z-index: 1010; ...
11,488
https://github.com/urtens/awslimits-py/blob/master/tests/test_cli.py
Github Open Source
Open Source
MIT
null
awslimits-py
urtens
Python
Code
12
50
import unittest from httmock import with_httmock class TestCli(unittest.TestCase): def test_ec2_instance_limit(self): self.assertEquals(200, 300)
40,395
https://github.com/phatblat/dotfiles/blob/master/.config/fish/functions/swift_make.fish
Github Open Source
Open Source
MIT
2,020
dotfiles
phatblat
Fish
Code
39
140
function swift_make \ --description='Adds template Makefile for Swift projects.' set -l repo ~/dev/swift/Makefile-swift set -l src_file $repo/Makefile clone_or_pull $repo git@github.com:phatblat/Makefile-swift.git if test $PWD != (root) pushd (root) cp -v $src_file . popd ...
15,008
https://github.com/amit-olx/android-bootstrap/blob/master/app/src/main/java/com/demo/base/di/components/ActivityComponent.java
Github Open Source
Open Source
MIT
2,018
android-bootstrap
amit-olx
Java
Code
27
124
package com.demo.base.di.components; import com.demo.base.BaseActivity; import com.demo.base.di.modules.ActivityModule; import com.demo.base.di.scope.PerActivity; import com.demo.ui.activity.SearchActivity; import dagger.Subcomponent; @PerActivity @Subcomponent(modules = ActivityModule.class) public interface Activ...
33,958
https://github.com/tianbot/yy_drone/blob/master/transform_graph/src/graph.cpp
Github Open Source
Open Source
Apache-2.0
2,019
yy_drone
tianbot
C++
Code
408
1,269
#include "transform_graph/graph.h" #include <map> #include <string> #include <utility> #include <vector> #include "Eigen/Dense" #include "Eigen/Geometry" #include "transform_graph/explicit_types.h" #include "transform_graph/transform.h" using std::pair; using std::string; typedef pair<string, string> FrameKey; na...
26,525
https://github.com/Huitsi/ParallelOverhead/blob/master/src/settings.c
Github Open Source
Open Source
MIT
null
ParallelOverhead
Huitsi
C
Code
372
1,363
/* Copyright © 2020 Linus Vanas <linus@vanas.fi> * SPDX-License-Identifier: MIT */ #include "common.h" struct settings Settings = { .paths = {.data_dir_len = 0, .config_file_len = 0}, .window = {SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 480, 480}, .tunnel = { .length = 255, .sectors = 10, .section_leng...
32,767
https://github.com/thoresuenert/ember-multiselect-checkboxes/blob/master/tests/dummy/app/controllers/long-option-list-test.js
Github Open Source
Open Source
MIT
2,017
ember-multiselect-checkboxes
thoresuenert
JavaScript
Code
28
76
import Ember from 'ember'; let options = []; for (let i = 0; i < 1000; i++) { options.push(i); } export default Ember.Controller.extend({ options: Ember.A(options), selectedOptions: Ember.A() });
34,578
https://github.com/nredoulez/colette/blob/master/src/js/iframeResizer.js
Github Open Source
Open Source
MIT
null
colette
nredoulez
JavaScript
Code
193
611
/** @module modules/iframeResizer */ /** Default config. */ const defaultConfig = { el: null, delay: 0, iframeId: 'iframeId', } /** * Create a new IframeResizer * @class * @param {Object} cfg config object * @param {HTMLIFrameElement} [cfg.el=null] iframe element * @param {Int} [cfg.delay=0] delay between ...
11,798
https://github.com/Acidburn0zzz/elk-reasoner/blob/master/elk-reasoner/src/test/java/org/semanticweb/elk/reasoner/query/ElkIncrementalClassExpressionSuperClassesQueryTest.java
Github Open Source
Open Source
Apache-2.0
2,017
elk-reasoner
Acidburn0zzz
Java
Code
255
965
/* * #%L * ELK OWL API Binding * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2011 - 2016 Department of Computer Science, University of Oxford * %% * 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 Lic...
47,589
https://github.com/toby1984/jASM_16/blob/master/src/test/java/de/codesourcery/jasm16/parser/StatementNodeTest.java
Github Open Source
Open Source
Apache-2.0
2,022
jASM_16
toby1984
Java
Code
269
668
/** * Copyright 2012 Tobias Gierke <tobias.gierke@code-sourcery.de> * * 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...
24,950
https://github.com/ethancaballero/myia/blob/master/tests/compile/test_pytorch.py
Github Open Source
Open Source
MIT
null
myia
ethancaballero
Python
Code
78
328
# Most of the tests ar in test_backend, this is just for pytorch-specific # tests that can't be made generic. import numpy as np import pytest from myia import dtype try: from myia.compile.backends import pytorch except ImportError: pytestmark = pytest.mark.skip(f"Can't import pytorch") def test_pytorch_ty...
37,506
https://github.com/ikeikeikeike/gocuration/blob/master/lib/funcs/funcs.go
Github Open Source
Open Source
MIT
2,015
gocuration
ikeikeikeike
Go
Code
68
250
package funcs import ( "fmt" "io/ioutil" "github.com/ikeikeikeike/shuffler" ) func RandomImgname(ftype string) string { files, _ := ioutil.ReadDir(fmt.Sprintf("./static/img/%s/", ftype)) var names []string for _, f := range files { names = append(names, f.Name()) } shuffler.Shuffle(names) return fmt.Spr...
1,841
https://github.com/maanuair/dotfiles/blob/master/home/.shell_aliases
Github Open Source
Open Source
MIT
2,023
dotfiles
maanuair
Shell
Code
274
651
# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Emmanuel Roubion -*- mode: shell-script ;-*- # # Author: Emmanuel Roubion # URL: https://github.com/maanuair/dotfiles # This file is part of Emmanuel's Roubion dot files, released under # the MIT License as published by the Massachusetts Institute of Technol...
3,474
https://github.com/kouketsu/GSW.jl/blob/master/src/tgen_gswteos10.jl
Github Open Source
Open Source
MIT
2,019
GSW.jl
kouketsu
Julia
Code
2,895
14,498
# Julia wrapper for header: gswteos-10.h # Automatically generated using Clang.jl function gsw_add_barrier(input_data, lon, lat, long_grid, lat_grid, dlong_grid, dlat_grid, output_data) ccall((:gsw_add_barrier, libgswteos), Cvoid, (Ptr{Cdouble}, Cdouble, Cdouble, Cdouble, Cdouble, Cdouble, Cdouble, Ptr{Cdouble}),...
42,966
https://github.com/future-standard/scorer-ui-k/blob/master/src/themes/light/styles.js
Github Open Source
Open Source
MIT
2,021
scorer-ui-k
future-standard
JavaScript
Code
1,218
4,775
export const styles = { "generic": { "transparent": {} }, "filterBar": { "divider": { "backgroundColor": "hsla(0, 0%, 89.4%, 1.000)" } }, "form": { "input": { "default": { "normal": { "backgroundColor": "hsla...
23,114
https://github.com/gocd/gocd/blob/master/config/config-api/src/main/java/com/thoughtworks/go/config/PathFromAncestor.java
Github Open Source
Open Source
Apache-2.0
2,023
gocd
gocd
Java
Code
391
1,077
/* * Copyright 2023 Thoughtworks, 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 agr...
12,296
https://github.com/slmnhq/chorus/blob/master/spec/requests/gpdb_spec.rb
Github Open Source
Open Source
Apache-2.0
2,012
chorus
slmnhq
Ruby
Code
109
370
require 'spec_helper' describe "gpdb instances", :database_integration => true, :network => true do let(:valid_attributes) do { :name => "chorusgpdb42", :port => 5432, :host => GpdbIntegration::REAL_GPDB_HOST, :maintenance_db => "postgres", :db_username => GpdbIntegration:...
44,762
https://github.com/MadCowDevelopment/PlayStats/blob/master/PlayStats/Models/Model.cs
Github Open Source
Open Source
MIT
2,021
PlayStats
MadCowDevelopment
C#
Code
29
67
using ReactiveUI; using System; namespace PlayStats.Models { public class Model : ReactiveObject { protected Model(Guid id) { Id = id; } public Guid Id { get; } } }
42,184
https://github.com/kanosawa/mmd-eigen/blob/master/src/PmdModelFileReader.cpp
Github Open Source
Open Source
MIT
2,018
mmd-eigen
kanosawa
C++
Code
629
2,813
#include "PmdModelFileReader.h" using namespace std; using namespace mmd; PmdModelFileReader::PmdModelFileReader(const string &filename) : ModelFileReader(filename) { } PmdModelFileReader::~PmdModelFileReader() { } void PmdModelFileReader::readFile(PmxModel& model) { // ヘッダの読み込み if (!readHeader(...
20,337
https://github.com/cloneforyou/content-review-lookup/blob/master/dist/dev/UserStatus--UCP.js
Github Open Source
Open Source
CC-BY-4.0
2,021
content-review-lookup
cloneforyou
JavaScript
Code
517
2,304
/** * @module UserStatus * @description Adds configurable user status to masthead avatars. * @notes Available status settings: * • Online * • Away * • Do Not Disturb (DnD) * • Offline * • Unknown * • Blocked [COMING SOON] ...
33,600
https://github.com/dotnet/runtime/blob/master/src/tests/Loader/classloader/explicitlayout/misc/derivedexplicitclass.cs
Github Open Source
Open Source
MIT
2,023
runtime
dotnet
C#
Code
108
276
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Runtime.InteropServices; [StructLayout(LayoutKind.Explicit)] // non-generic base class public class Base { } // ... AND subclass is explicit [StructLayou...
27,882
https://github.com/devthougt/smart-shelf-codekage/blob/master/profesional/assets/js/page/home.js
Github Open Source
Open Source
MIT
2,017
smart-shelf-codekage
devthougt
JavaScript
Code
320
1,821
$(document).ready(function(){ setInterval(function(){ $('#package').load('include/section/undergraduate/package.php'); }); setInterval(function(){ $('#class_note').load('include/section/undergraduate/class_note.php'); }); setInterval(function(){ $('#course_mater...
18,304
https://github.com/portworx/dcos-commons/blob/master/sdk/scheduler/src/test/java/com/mesosphere/sdk/offer/evaluate/placement/MaxPerTest.java
Github Open Source
Open Source
Apache-2.0
2,021
dcos-commons
portworx
Java
Code
751
2,552
package com.mesosphere.sdk.offer.evaluate.placement; import com.mesosphere.sdk.offer.evaluate.EvaluationOutcome; import com.mesosphere.sdk.offer.taskdata.TaskLabelWriter; import com.mesosphere.sdk.specification.PodInstance; import com.mesosphere.sdk.testutils.OfferTestUtils; import com.mesosphere.sdk.testutils.PodTest...
19,677
https://github.com/raghu-veer/vegra/blob/master/docs/search/enumvalues_1.js
Github Open Source
Open Source
MIT
null
vegra
raghu-veer
JavaScript
Code
5
74
var searchData= [ ['bookman',['Bookman',['../namespacevegra.html#a342c4e8c946c4f729d694257d1ed876ba3919198dda599c06f83ad77a698598ce',1,'vegra']]] ];
11,502
https://github.com/crewjam/jsupdate/blob/master/go.mod
Github Open Source
Open Source
BSD-2-Clause
2,021
jsupdate
crewjam
Go Module
Code
7
39
module github.com/crewjam/jsupdate go 1.16 require github.com/fatih/color v1.10.0
39,648
https://github.com/Cod3G00d/SpaJumpStart/blob/master/src/SpaJS.A.Web/app/services/common/logService.ts
Github Open Source
Open Source
MIT
2,016
SpaJumpStart
Cod3G00d
TypeScript
Code
70
244
module app.services.common { 'use strict'; export interface ILogService { log(message: string): void; } export class LogService implements app.services.common.ILogService { //static $inject = ['$rootScope']; //constructor($rootScope: ng.IRootScopeService) { //} ...
1,830
https://github.com/Rose2073/CodeEditor/blob/master/editor/src/main/java/io/github/rosemoe/sora/event/LongPressEvent.java
Github Open Source
Open Source
Apache-2.0
2,020
CodeEditor
Rose2073
Java
Code
321
650
/* * sora-editor - the awesome code editor for Android * https://github.com/Rosemoe/sora-editor * Copyright (C) 2020-2022 Rosemoe * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free...
36,155
https://github.com/izenecloud/izenelib/blob/master/source/net/sf1r/Sf1Driver.cpp
Github Open Source
Open Source
Apache-2.0
2,020
izenelib
izenecloud
C++
Code
277
835
/* * File: Sf1Driver.cpp * Author: Paolo D'Apice * * Created on January 10, 2012, 10:07 AM */ #include "net/sf1r/Sf1Driver.hpp" #include "ConnectionPool.hpp" #include "PoolFactory.hpp" #include "Releaser.hpp" #include <glog/logging.h> NS_IZENELIB_SF1R_BEGIN using ba::ip::tcp; using std::string; using std:...
7,708
https://github.com/PygmalionChen/DRL_Nav/blob/master/tf_rl/envs/single_DDPG_env.py
Github Open Source
Open Source
MIT
2,022
DRL_Nav
PygmalionChen
Python
Code
607
2,996
# -*- coding:utf-8 -*- - import rospy import math import time import numpy as np np.random.seed(1) from nav_msgs.msg import Odometry from tf_rl.envs import gazebo_env from geometry_msgs.msg import Twist, Pose, Quaternion, Vector3, Point from std_srvs.srv import Empty from gazebo_msgs.srv import SetModelState, GetMode...
39,512
https://github.com/liupeng68/-bilibili-/blob/master/Wuxianda/Classes/Common/YPButtonFactory/YPReversedLeftToRightButton.h
Github Open Source
Open Source
MIT
2,022
-bilibili-
liupeng68
C
Code
28
96
// // YPReversedLeftToRightButton.h // Wuxianda // // Created by MichaelPPP on 16/7/8. // Copyright © 2016年 michaelhuyp. All rights reserved. // #import <UIKit/UIKit.h> @interface YPReversedLeftToRightButton : UIButton @end
17,536
https://github.com/Coffeekraken/coffeekraken/blob/master/packages/tools/sugar/src/node/glob/_exports.ts
Github Open Source
Open Source
MIT
2,023
coffeekraken
Coffeekraken
TypeScript
Code
27
120
import __excludedGlobs from './excludedGlobs.js'; import __matchExcludeGlobs from './matchExcludeGlobs.js'; import __matchGlobSync from './matchGlobSync.js'; import __resolveGlobSync from './resolveGlobSync.js'; export * from '../../shared/glob/_exports.js'; export { __excludedGlobs, __matchExcludeGlobs, _...
38,978
https://github.com/ahyiru/web-design/blob/master/app/hooks/useGetI18ns.jsx
Github Open Source
Open Source
MIT
2,022
web-design
ahyiru
null
Spoken
46
140
import {useState, useEffect} from 'react'; import getI18n from '@app/utils/getI18n'; const useGetI18ns = () => { const [i18ns, setI18ns] = useState(null); useEffect(() => { const loadI18n = async () => { const i18ns = await getI18n(); setI18ns(i18ns); }; loadI18n(); }, []); return [i18n...
13,558
https://github.com/nofikoff/iOS_Android_Ionic_Cordova_my_APP_Profsouz_Airlines_MAU/blob/master/src/app/app.module.ts
Github Open Source
Open Source
Apache-2.0
2,020
iOS_Android_Ionic_Cordova_my_APP_Profsouz_Airlines_MAU
nofikoff
TypeScript
Code
299
949
import {BrowserModule} from '@angular/platform-browser'; import {HttpClientModule, HttpClient} from '@angular/common/http'; import {NgModule, ErrorHandler} from '@angular/core'; import {TranslateLoader, TranslateModule} from '@ngx-translate/core'; import {TranslateHttpLoader} from '@ngx-translate/http-loader'; import {...
31,979
https://github.com/HeHStudy/surveyor/blob/master/lib/surveyor/surveyor_controller_methods.rb
Github Open Source
Open Source
MIT
2,020
surveyor
HeHStudy
Ruby
Code
688
2,672
require 'rabl' Rabl.register! Rabl.configure {|config| config.include_child_root = false } Rabl.configure {|config| config.include_json_root = false } module Surveyor module SurveyorControllerMethods extend ActiveSupport::Concern included do before_action :get_current_user, :only => [:new, :create] ...
14,344
https://github.com/Kaixi26/org.alloytools.alloy/blob/master/alloy4fun_models/trashltl/models/8/NA4yv5YKrhLNPzTyz.als
Github Open Source
Open Source
Apache-2.0
null
org.alloytools.alloy
Kaixi26
null
Spoken
22
83
open main pred idNA4yv5YKrhLNPzTyz_prop9 { no Protected & Trash } pred __repair { idNA4yv5YKrhLNPzTyz_prop9 } check __repair { idNA4yv5YKrhLNPzTyz_prop9 <=> prop9o }
40,156
https://github.com/zhenglei12/tour/blob/master/app/Http/Controllers/Index/Index.php
Github Open Source
Open Source
MIT
null
tour
zhenglei12
PHP
Code
14
47
<?php namespace App\Http\Controllers\Index; use App\Http\Controllers\Controller; class Index extends Controller { public function login(){} }
47,313
https://github.com/NikiMolo/atom/blob/master/gameserver/src/main/java/geometry/Geometry.java
Github Open Source
Open Source
MIT
2,017
atom
NikiMolo
Java
Code
44
122
package geometry; public final class Geometry { private Geometry() { } public static Collider createBar(int firstCornerX, int firstCornerY, int secondCornerX, int secondCornerY) { return new Bar(firstCornerX, firstCornerY, secondCornerX, secondCornerY); } public static Collider createPo...
42,590
https://github.com/AndyYuan317/SecondProject/blob/master/app/src/main/java/com/wingplus/coomohome/activity/MineOrderActivity.java
Github Open Source
Open Source
Apache-2.0
2,019
SecondProject
AndyYuan317
Java
Code
280
1,165
package com.wingplus.coomohome.activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import android.view.K...
8,117
https://github.com/tillhub/schemas/blob/master/lib/v1/configurations/items/customers.js
Github Open Source
Open Source
Apache-2.0
2,021
schemas
tillhub
JavaScript
Code
166
479
const { oneOf } = require('../../../helpers/payload-or-null') module.exports = { oneOf: [ { type: 'null' }, { type: 'object', properties: { customer_number_template: { description: 'A Tillhub string pattern that allows for parameterized customer number generation', ...
29,850
https://github.com/timwr/JDE-Samples/blob/master/com/rim/samples/device/ui/menudemo/MenuDemo.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,014
JDE-Samples
timwr
Java
Code
855
2,351
/* * MenuDemo.java * * Copyright © 1998-2011 Research In Motion Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
14,146
https://github.com/fat84/MusicBrainz/blob/master/src/MusicBrainz/Value/Property/ASINTrait.php
Github Open Source
Open Source
MIT
2,017
MusicBrainz
fat84
PHP
Code
59
147
<?php namespace MusicBrainz\Value\Property; use MusicBrainz\Value\ASIN; /** * Provides a getter for the Amazon Standard Identification Number (ASIN). */ trait ASINTrait { /** * The Amazon Standard Identification Number (ASIN) * * @var ASIN */ private $asin; /** * Returns the A...
11,086
https://github.com/Yannik-H/mm2021/blob/master/mmdet/datasets/pipelines/my_pipeline.py
Github Open Source
Open Source
Apache-2.0
null
mm2021
Yannik-H
Python
Code
19
72
from mmdet.datasets import PIPELINES @PIPELINES.register_module() class MyTransform: def __call__(self, results): print(type(results)) for key in results: print(key, type(results[key])) return results
7,927
https://github.com/wodrowCVM/yeework/blob/master/book/modules/shop/Shop.php
Github Open Source
Open Source
BSD-3-Clause
null
yeework
wodrowCVM
PHP
Code
46
163
<?php namespace book\modules\shop; /** * shop module definition class */ class Shop extends \yii\base\Module { /** * @inheritdoc */ public $controllerNamespace = 'book\modules\shop\controllers'; /** * @inheritdoc */ public function init() { parent::init(); \Y...
28,141
https://github.com/imagora/OpenLive_macOS/blob/master/OpenLive/LiveRoomViewController.swift
Github Open Source
Open Source
MIT
null
OpenLive_macOS
imagora
Swift
Code
704
2,288
// // LiveRoomViewController.swift // OpenLive // // Created by GongYuhua on 2/20/16. // Copyright © 2016 Agora. All rights reserved. // import Cocoa protocol LiveRoomVCDelegate: NSObjectProtocol { func liveRoomVCNeedClose(_ liveVC: LiveRoomViewController) } class LiveRoomViewController: NSViewController { ...
16,934
https://github.com/ictcollege/CloudICT/blob/master/cloudict/controllers/Notifications.php
Github Open Source
Open Source
MIT
2,015
CloudICT
ictcollege
PHP
Code
79
410
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Description of Notifications_controller * * @author Matic */ class Notifications extends MY_Controller{ public function __construct() { parent::__construct(); $this->load->model('NotificationModel'); ...
50,843
https://github.com/asimonv/docs/blob/master/src/views/dog/index.html.ejs
Github Open Source
Open Source
MIT
2,020
docs
asimonv
EJS
Code
83
376
<%- include('../partials/navbar') %> <div style="display:flex; flex-direction:row; height:100%; flex-wrap: wrap; justify-content:center;"> <% dogs.forEach((dog) => {%> <div class="profile-box-wrapper"> <%- include('../partials/dog-profile-box', {user, dog, type: false})%> </div> <%})%> </div> <!--<div class="...
32,095
https://github.com/namratashakya016/laravel/blob/master/app/Http/Controllers/CrudController.php
Github Open Source
Open Source
MIT
null
laravel
namratashakya016
PHP
Code
107
450
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\crud; class CrudController extends Controller { public function index() { $cruds = Crud::all(); return view('select', compact('cruds')); } public function store(Request $request) { $r...
11,649
https://github.com/IMaeland/IronSmalltalk/blob/master/IronSmalltalk.ExpressionCompiler/Primitives/Exceptions/PrimitiveSemanticException.cs
Github Open Source
Open Source
MIT
2,021
IronSmalltalk
IMaeland
C#
Code
135
303
/* * ************************************************************************** * * Copyright (c) The IronSmalltalk Project. * * This source code is subject to terms and conditions of the * license agreement found in the solution directory. * See: $(SolutionDir)\License.htm ... in the root of this distributi...
51,816
https://github.com/ABTSoftware/SciChart.Android.Examples/blob/master/Examples/app/src/main/java/com/scichart/examples/fragments/ThemeProviderFragment.java
Github Open Source
Open Source
MIT
2,022
SciChart.Android.Examples
ABTSoftware
Java
Code
585
3,072
//****************************************************************************** // SCICHART® Copyright SciChart Ltd. 2011-2017. All rights reserved. // // Web: http://www.scichart.com // Support: support@scichart.com // Sales: sales@scichart.com // // ThemeProviderFragment.java is part of the SCICHART® Examples. Per...
3,654
https://github.com/Subhasishbasak/emoji_analysis/blob/master/code/utils/ss_to_image.py
Github Open Source
Open Source
MIT
2,021
emoji_analysis
Subhasishbasak
Python
Code
299
1,265
# transforms the screenshot to process-able image import cv2 import statistics import numpy as np import matplotlib.pyplot as plt from scipy.signal import find_peaks # The objective is to find the last peak in the range [lower, upper] def recur_max(l, lower, upper): def in_range(m): output = True ...
39,914
https://github.com/galbirk/ols-docker-env/blob/master/bin/database.sh
Github Open Source
Open Source
MIT
null
ols-docker-env
galbirk
Shell
Code
389
1,407
#!/usr/bin/env bash source .env DOMAIN='' SQL_DB='' SQL_USER='' SQL_PASS='' ANY="'%'" SET_OK=0 EPACE=' ' echow(){ FLAG=${1} shift echo -e "\033[1m${EPACE}${FLAG}\033[0m${@}" } help_message(){ echo -e "\033[1mOPTIONS\033[0m" echow '-D, --domain [DOMAIN_NAME]' echo "${EPACE}${EPACE}Examp...
41,759
https://github.com/timotejvesel/APPR-2017-18/blob/master/shiny/server.R
Github Open Source
Open Source
MIT
2,018
APPR-2017-18
timotejvesel
R
Code
137
528
library(shiny) function(input, output) { output$tabela <- DT::renderDataTable(DT::datatable({ data <- statistika if (input$leto != "Vsa") { data <- data[data$Leto == input$leto,] } if (input$krog != "Vsi") { data <- data[data$Krog == input$krog,] } data })) outp...
39,527
https://github.com/byypipo/Mgcp-Client/blob/master/src/main/java/com/mgcp/exceptions/MGCPNoAnswerException.java
Github Open Source
Open Source
MIT
null
Mgcp-Client
byypipo
Java
Code
22
62
package com.mgcp.exceptions; public class MGCPNoAnswerException extends Exception { private static final long serialVersionUID = 1L; public MGCPNoAnswerException(String exception) { super(exception); } }
10,632
https://github.com/rubygems/rubygems.org/blob/master/db/migrate/20100627193405_rename_email_changed_on_users.rb
Github Open Source
Open Source
MIT
2,023
rubygems.org
rubygems
Ruby
Code
19
77
class RenameEmailChangedOnUsers < ActiveRecord::Migration[4.2] def self.up rename_column :users, :email_changed, :email_reset end def self.down rename_column :users, :email_reset, :email_changed end end
4,980
https://github.com/tilgovi/Memex/blob/master/src/common-ui/components/page-result-item.tsx
Github Open Source
Open Source
MIT
2,020
Memex
tilgovi
TypeScript
Code
158
663
import React, { PureComponent } from 'react' import cx from 'classnames' import SemiCircularRibbon from './semi-circular-ribbon' import ButtonTooltip from './button-tooltip' import ResultItemActions from './result-item-actions' import { Props } from './result-item' const styles = require('./result-item.css') class P...
19,470
https://github.com/stackprobe/Factory/blob/master/SubTools/libs/Sabun/Sabun.c
Github Open Source
Open Source
MIT
2,022
Factory
stackprobe
C
Code
380
1,338
#include "all.h" Sabun_t *CreateSabun(uint pos, uint length, uchar *data) { Sabun_t *i = nb_(Sabun_t); i->Pos = pos; i->Length = length; i->Data = data; // bind, NULL ok return i; } void ReleaseSabun(Sabun_t *i) { if(!i) return; memFree(i->Data); memFree(i); } void ReleaseSabunList(autoList_t *list) { if...
15,176
https://github.com/emacsway/django-login-secure/blob/master/login_secure/utils.py
Github Open Source
Open Source
BSD-2-Clause
2,014
django-login-secure
emacsway
Python
Code
273
965
from __future__ import absolute_import, unicode_literals import copy import datetime import uuid from django.conf import settings from django.contrib import auth from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core.exceptions import PermissionDenied from django.core...
38,606
https://github.com/vjacquet/WmcSoft/blob/master/WmcSoft.Business.Tests/Accounting/MoneyTests.cs
Github Open Source
Open Source
MIT
2,021
WmcSoft
vjacquet
C#
Code
668
2,001
using System; using System.Globalization; using Xunit; namespace WmcSoft.Business.Accounting { public class MoneyTests { [Fact] public void CanCreateEuroCurrency() { var eur = new CultureInfoCurrency(CultureInfo.GetCultureInfo("fr-FR")); Assert.Equal("EUR", eur...
16,106
https://github.com/sunipan/320-Project/blob/master/src/testPriorityQueue.java
Github Open Source
Open Source
MIT
2,021
320-Project
sunipan
Java
Code
92
271
import java.util.*; public class testPriorityQueue { public static void main(String[] args) { // Number of airports in the flight network final int GRAPH_SIZE = 5; // Initialize the comparator to compare the cost of each flight Comparator<Airport> comparator = new CostComparator(); // Initialize ...
39,620
https://github.com/Zalexanninev15/VitNX/blob/master/docs/search--/s_4047.js
Github Open Source
Open Source
MIT
2,022
VitNX
Zalexanninev15
JavaScript
Code
2
28
search_result['4047']=["topic_0000000000000F3C.html","WINDOWPLACEMENT Structure",""];
27,081
https://github.com/Gallio/mbunit-v2/blob/master/src/quickgraph/QuickGraph/Concepts/Traversals/ITreeGraph.cs
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,016
mbunit-v2
Gallio
C#
Code
442
1,046
// QuickGraph Library // // Copyright (c) 2004 Jonathan de Halleux // // This software is provided 'as-is', without any express or implied warranty. // // In no event will the authors be held liable for any damages arising from // the use of this software. // Permission is granted to anyone to use this software fo...
30,846
https://github.com/dlpigpen/EventSubscriber-Pod/blob/master/EventSubscriberTests/EventSubscriberTests.swift
Github Open Source
Open Source
MIT
2,021
EventSubscriber-Pod
dlpigpen
Swift
Code
446
1,304
// // EventSubscriberTests.swift // EventSubscriberTests // // Created by Kostiantyn Kolesnyk on 6/1/18. // Copyright © 2018 Kostiantyn Kolesnyk. All rights reserved. // import XCTest @testable import EventSubscriber class EventSubscriberTests: XCTestCase, EventSubscriber { override func setUp() { ...
37,310
https://github.com/wplibs/view/blob/master/src/View_Factory.php
Github Open Source
Open Source
MIT
2,018
view
wplibs
PHP
Code
1,112
2,750
<?php namespace WPLibs\View; use Illuminate\Support\Arr; class View_Factory { /** * The engine implementation. * * @var \WPLibs\View\Engine_Resolver */ protected $engines; /** * The view finder implementation. * * @var \WPLibs\View\Finder */ protected $finder; /** * Data that should be avail...
8,868
https://github.com/cloudsmith-io/teku/blob/master/eth-reference-tests/src/referenceTest/java/tech/pegasys/teku/reference/BlsSetting.java
Github Open Source
Open Source
Apache-2.0
2,022
teku
cloudsmith-io
Java
Code
137
262
/* * Copyright 2020 ConsenSys AG. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
2,397
https://github.com/kalaiarasan33/aws-sdk-go-v2/blob/master/service/databasemigrationservice/api_op_DescribeOrderableReplicationInstances.go
Github Open Source
Open Source
Apache-2.0
2,020
aws-sdk-go-v2
kalaiarasan33
Go
Code
596
1,756
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package databasemigrationservice import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type DescribeOrderableReplicationInstancesInput struct { _ struct{} `type:"structure"` // An optional pa...
46,072
https://github.com/mguid65/RTC3/blob/master/Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/nall/string/strpos.hpp
Github Open Source
Open Source
MIT, GPL-1.0-or-later
2,018
RTC3
mguid65
C++
Code
137
364
#ifdef NALL_STRING_INTERNAL_HPP //usage example: //if(auto position = strpos(str, key)) print(position(), "\n"); //prints position of key within str; but only if it is found namespace nall { template<bool Insensitive, bool Quoted> optional<unsigned> ustrpos(const char *str, const char *key) { const char *base = st...
29,048
https://github.com/mfgea/espruino-emulator/blob/master/mocked-components/rotary-encoder.js
Github Open Source
Open Source
MIT
2,018
espruino-emulator
mfgea
JavaScript
Code
80
309
class RotaryEncoder { constructor(pinA, pinB, pinClick) { this.pins = { [pinA]: 0, [pinB]: 0, [pinClick]: 0 } this.pinA = pinA; this.pinB = pinB; } readValue(pinName) { return this.pins[pinName]; } step(values, event){ ...
17,538
https://github.com/SquidDev/ForgeLint/blob/master/src/test/java/org/squiddev/forgelint/sideonly/basic/MethodLimitType.java
Github Open Source
Open Source
BSD-3-Clause
2,019
ForgeLint
SquidDev
Java
Code
21
98
package org.squiddev.forgelint.sideonly.basic; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class MethodLimitType { /** * OK */ @SideOnly(Side.CLIENT) public void clientOnly() { } }
39,837
https://github.com/SoniCoder/sprint-viewer-skill/blob/master/__init__.py
Github Open Source
Open Source
Apache-2.0
null
sprint-viewer-skill
SoniCoder
Python
Code
65
258
from mycroft import MycroftSkill, intent_file_handler from datetime import datetime from datetime import timedelta import pytz import math class SprintViewer(MycroftSkill): def __init__(self): MycroftSkill.__init__(self) @intent_file_handler('viewer.sprint.intent') def handle_viewer_sprint(self, m...
28,642
https://github.com/BulkSecurityGeneratorProject/Simple-POS/blob/master/src/main/webapp/bower_components/messageformat/example/en/i18n.js
Github Open Source
Open Source
Apache-2.0
2,018
Simple-POS
BulkSecurityGeneratorProject
JavaScript
Code
56
323
(function(){ window.i18n || (window.i18n = {}) var MessageFormat = { locale: {} }; MessageFormat.locale.en=function(n){return n===1?"one":"other"} var c=function(d){if(!d)throw new Error("MessageFormat: No data passed to function.")}, n=function(d,k,o){if(isNaN(d[k]))throw new Error("MessageFormat: `"+k+"` isnt a numb...
40,594
https://github.com/WittmannJ/react-basic-examples/blob/master/13-styling-css/src/Overlay.js
Github Open Source
Open Source
MIT
2,022
react-basic-examples
WittmannJ
JavaScript
Code
71
194
import React from 'react'; import { connect } from 'react-redux'; export class Overlay extends React.Component { render() { const display = this.props.overlay? "block" : "none"; const style = { background: "rgba(0, 0, 0, 0.5)", display: display, position: "absolute", top: 0, b...
40,932
https://github.com/basalbr/i9/blob/master/app/controllers/AdminController.php
Github Open Source
Open Source
MIT
null
i9
basalbr
PHP
Code
99
192
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ class AdminController extends BaseController { /* |-------------------------------------------------------------------------...
2,549
https://github.com/mwelwankuta/merlee.js/blob/master/lib/utils/lower.js
Github Open Source
Open Source
MIT
2,021
merlee.js
mwelwankuta
JavaScript
Code
33
70
/* * merlee.js - lower * Copyright © Mwelwa Nkuta 2021 * MIT Licensed */ /* * returns lower cased strings * @param {string} data */ module.exports = function(data) { return data.toLowerCase(); };
533
https://github.com/qwertmax/go-core/blob/master/logger/logger_test.go
Github Open Source
Open Source
Apache-2.0
2,020
go-core
qwertmax
Go
Code
356
1,174
/* Copyright 2020 iconmobile GmbH 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...
44,435
https://github.com/Cenfotec/ObjectOrientedProgramming/blob/master/Classwork/Classwork 09/FigurasGeometricasCL/src/org/bonilla/tl/Gestor.java
Github Open Source
Open Source
MIT
null
ObjectOrientedProgramming
Cenfotec
Java
Code
78
285
package org.bonilla.tl; import org.bonilla.bl.Rectangulo; import org.bonilla.dl.CapaLogica; import java.util.ArrayList; public class Gestor { private CapaLogica logica; public Gestor() { logica = new CapaLogica(); } public void registrarRectangulo(double base, double altura, String tipo) { ...
8,184
https://github.com/adeprez/Sources-Jeu/blob/master/sources/partie/modeJeu/TypeJeu.java
Github Open Source
Open Source
MIT
null
Sources-Jeu
adeprez
Java
Code
158
444
package partie.modeJeu; import divers.Outil; public enum TypeJeu { DEATHMATCH, DEATHMATCH_EN_EQUIPE(true), DERNIER_SURVIVANT; private boolean equipe; private TypeJeu() { this(false); } private TypeJeu(boolean equipe) { this.equipe = equipe; } public String getNom() { return Outil.t...
39,624
https://github.com/Alword/AWeatherApp/blob/master/WeatherApp/Model/AccuWeather.cs
Github Open Source
Open Source
MIT
null
AWeatherApp
Alword
C#
Code
93
268
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using WeatherApp.Abstraction; namespace WeatherApp.Model { public class AccuWeather { public List<DailyForecast> DailyForecasts { get; set; } public...
34,871
https://github.com/KayDeVC/Python-CeV/blob/master/MUNDO2/Ex037_Conv_Base.py
Github Open Source
Open Source
MIT
null
Python-CeV
KayDeVC
Python
Code
65
212
print('\n CONVERSOR DE BASES ') num = int(input('Digite um número inteiro: ')) print('Escolha uma das bases para conversão:') print('[1] para Binário\n[2] para Octal\n[3] para Haxadecimal') esc = int(input('Sua escolha:')) if esc == 1: print('\n{} convertido para Binário é {}'.format(num, bin(num)[2:])) elif esc...
23,764
https://github.com/tomix26/ardverk-dht/blob/master/components/core/src/main/java/org/ardverk/dht/io/AbstractMessageHandler.java
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, Apache-2.0
2,012
ardverk-dht
tomix26
Java
Code
148
314
/* * Copyright 2009-2012 Roger Kapsi * * 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 ...
51,920