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/lulco/rich-social-messages/blob/master/src/Transformer/FacebookTransformer.php | Github Open Source | Open Source | MIT | null | rich-social-messages | lulco | PHP | Code | 133 | 432 | <?php
namespace RichSocialMessages\Transformer;
use RichSocialMessages\Message\MessageInterface;
class FacebookTransformer extends AbstractTransformer
{
protected $userUrlPattern = 'https://www.facebook.com/$1';
protected $tagUrlPattern = 'https://www.facebook.com/hashtag/$1';
/**
* {@inhe... | 28,302 |
https://github.com/fossabot/snow-owl/blob/master/snomed/com.b2international.snowowl.snomed.datastore/src/com/b2international/snowowl/snomed/core/merge/SnomedComponentReferencingDetachedConceptRule.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | snow-owl | fossabot | Java | Code | 385 | 1,759 | /*
* Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | 39,752 |
https://github.com/dr-stringfellow/SUEPTree/blob/master/Objects/src/SuperCluster.cc | Github Open Source | Open Source | MIT | null | SUEPTree | dr-stringfellow | C++ | Code | 450 | 1,936 | #include "../interface/SuperCluster.h"
/*static*/
suep::utils::BranchList
suep::SuperCluster::getListOfBranches()
{
utils::BranchList blist;
blist += {"rawPt", "eta", "phi"};
return blist;
}
void
suep::SuperCluster::datastore::allocate(UInt_t _nmax)
{
Element::datastore::allocate(_nmax);
rawPt = new Float_... | 10,397 |
https://github.com/josiah-wolf-oberholtzer/uqbar/blob/master/uqbar/io/RedirectedStreams.py | Github Open Source | Open Source | MIT | 2,021 | uqbar | josiah-wolf-oberholtzer | Python | Code | 128 | 444 | import sys
class RedirectedStreams:
"""
A context manager for capturing ``stdout`` and ``stderr`` output.
.. container:: example
::
>>> import uqbar.io
>>> import io
::
>>> string_io = io.StringIO()
>>> with uqbar.io.RedirectedStreams(s... | 8,389 |
https://github.com/jmcampanini/gexf4j-core/blob/master/src/test/java/com/ojn/gexf4j/core/impl/StaxGraphWriterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | gexf4j-core | jmcampanini | Java | Code | 38 | 175 | package com.ojn.gexf4j.core.impl;
import com.ojn.gexf4j.core.GexfWriter;
import com.ojn.gexf4j.core.GraphWriterTest;
import com.ojn.gexf4j.core.testgraphs.GexfBuilder;
public class StaxGraphWriterTest extends GraphWriterTest {
public StaxGraphWriterTest(GexfBuilder builder) {
super(builder);
}
@Override
prote... | 9,170 |
https://github.com/avperezb/iteracion5/blob/master/java-server-master/src/vos/Ingrediente.java | Github Open Source | Open Source | MIT | 2,017 | iteracion5 | avperezb | Java | Code | 396 | 936 | package vos;
import org.codehaus.jackson.annotate.JsonProperty;
public class Ingrediente {
/**
* id del ingrediente
*/
@JsonProperty(value = "id")
private Long id;
/**
* nombre del ingrediente
*/
@JsonProperty(value = "nombre")
private String nombre;
/**
* descripcion en español del ingrediente
*... | 46,980 |
https://github.com/lcyanxi/jdk8/blob/master/src/share/native/sun/font/layout/IndicReordering.h | Github Open Source | Open Source | Apache-2.0 | null | jdk8 | lcyanxi | C | Code | 1,111 | 3,798 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to th... | 21,116 |
https://github.com/chaupal/jp2p/blob/master/Workspace/net.jp2p.container/src/net/jp2p/container/context/AbstractJp2pServiceBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | jp2p | chaupal | Java | Code | 361 | 1,111 | /*******************************************************************************
* Copyright (c) 2014 Chaupal.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, Version 2.0
* which accompanies this distribution, and is available at
* http... | 4,545 |
https://github.com/snowyu/util-ex.js/blob/master/test/injectMethods-test.js | Github Open Source | Open Source | MIT | 2,023 | util-ex.js | snowyu | JavaScript | Code | 348 | 1,473 | // Generated by CoffeeScript 2.7.0
var assert, chai, injectMethods, should, sinon, sinonChai;
chai = require('chai');
sinon = require('sinon');
sinonChai = require('sinon-chai');
assert = chai.assert;
should = chai.should();
chai.use(sinonChai);
injectMethods = require('../src/injectMethods');
describe("injectM... | 2,842 |
https://github.com/ravishankarxor/PasswordProcessor/blob/master/src/ProcessorInterface.php | Github Open Source | Open Source | BSD-2-Clause | 2,017 | PasswordProcessor | ravishankarxor | PHP | Code | 55 | 169 | <?php
/**
* Processor Interface
*
* Useful for eventually replacing ITCover\PasswordProcessor\Processor
* with a different implementation.
*
* @author Andrey Andreev <aandreev@it-cover.com>
* @author Andrey Andreev <narf@devilix.net>
* @license https://github.com/ITCover/PublicLicense/blob/1.0/LICENSE.txt
* ... | 34,815 |
https://github.com/DhirenKumar13/JunitMockitoPowermock/blob/master/MockitoCodes/src/main/java/org/doInjava/data/business/TodoBusinessImpl.java | Github Open Source | Open Source | Apache-2.0 | null | JunitMockitoPowermock | DhirenKumar13 | Java | Code | 78 | 326 | package org.doInjava.data.business;
import java.util.List;
import java.util.stream.Collectors;
import org.doInjava.data.api.TodoService;
public class TodoBusinessImpl {
private TodoService service;
public TodoBusinessImpl(TodoService service) {
super();
this.service = service;
}
public TodoService getServ... | 19,634 |
https://github.com/saabbadgal/shop/blob/master/routes/web.php | Github Open Source | Open Source | MIT | null | shop | saabbadgal | PHP | Code | 176 | 1,887 | <?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Rout... | 36,918 |
https://github.com/bubdm/fullcontrols/blob/master/FullControls/Controls/ComboBoxItemPlus.cs | Github Open Source | Open Source | MIT | 2,021 | fullcontrols | bubdm | C# | Code | 1,789 | 6,060 | using FullControls.Core;
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
namespace FullControls.Controls
{
/// <summary>
/// Implements a selectable item inside a <see cref="ComboBox"/>.
/// </summary>
public class ComboBoxItem... | 50,799 |
https://github.com/PonyCui/XT/blob/master/src/UIKit/libraries/scroller/deceleration.ts | Github Open Source | Open Source | MIT | 2,018 | XT | PonyCui | TypeScript | Code | 704 | 2,275 | import { QuadraticEaseOut, Animation } from "./animation";
import { Scroller } from "./scroller";
import * as Rebound from 'rebound'
function Clamp(v: number, min: number, max: number): number {
return (v < min) ? min : (v > max) ? max : v;
}
function ClampedVelocty(v: number): number {
const V: number = 200;... | 5,606 |
https://github.com/Awia00/CafeAnalog-ChromeExtension/blob/master/ChromeExtension/options.js | Github Open Source | Open Source | Apache-2.0 | null | CafeAnalog-ChromeExtension | Awia00 | JavaScript | Code | 135 | 415 | // Takes a number and returns it if it is above 1 otherwise return 1
function cleanUpdateTime(updateTime) {
return (updateTime>1) ? updateTime : 1;
}
// Saves options to chrome.storage
function save_options() {
var updateTime = cleanUpdateTime(document.getElementById('UpdateTime').value);
var showOnShift = docu... | 18,336 |
https://github.com/zthang/code2vec_treelstm/blob/master/raw_dataset/66400874@nextLong@OK.java | Github Open Source | Open Source | MIT | 2,020 | code2vec_treelstm | zthang | Java | Code | 100 | 206 | public long nextLong() {
try {
int sign = 1;
int b = input.read();
while ((b < '0' || '9' < b) && b != '-' && b != '+') {
b = input.read();
}
if (b == '-') {
sign = -1;
b = input.read();
} else if (b == '+') {
b = input.... | 27,573 |
https://github.com/niqmk/BizDir-Android/blob/master/BizDir-app/src/main/java/id/bizdir/ui/fragment/CategoryMainHeaderGridViewFragment.java | Github Open Source | Open Source | Apache-2.0 | null | BizDir-Android | niqmk | Java | Code | 431 | 1,925 | package id.bizdir.ui.fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.internal.view.ContextThemeWrapper;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
im... | 7,076 |
https://github.com/WhiteBlackGoose/Plotly.NET/blob/master/tests/Plotly.NET.Tests/BasicHtmlGeneration.fs | Github Open Source | Open Source | MIT | null | Plotly.NET | WhiteBlackGoose | null | Spoken | 27 | 74 | module Tests.Core
open Expecto
open Plotly.NET
[<Tests>]
let tests =
testList "Placeholder" [
testCase "There be tests" ( fun () ->
Expect.equal
42
42
"Nope"
)
] | 44,741 |
https://github.com/remyroez/DxLua/blob/master/src/DxLua/context.h | Github Open Source | Open Source | MIT | 2,020 | DxLua | remyroez | C | Code | 420 | 1,861 | #ifndef DXLUA_CONTEXT_H_
#define DXLUA_CONTEXT_H_
#include <vector>
#include <unordered_map>
#include <memory>
#include <string>
#include <filesystem>
#include <lua.hpp>
#include <sol/sol.hpp>
// コンテキスト取得マクロ
#define DXLUA_CONTEXT(X) (detail::context::get(X))
namespace DxLua::detail {
class context final {
public:... | 10,175 |
https://github.com/maya-maye/pa01_maya-maye/blob/master/tests.cpp | Github Open Source | Open Source | CC0-1.0 | null | pa01_maya-maye | maya-maye | C++ | Code | 63 | 116 | //tests.cpp
//You should test each of the functions on your binary search tree, which will include,
//at the very least,find(), delete(), insert(), successor(), and predecessor()
// testbst.cpp
// Tests intbst.cpp for CS 24 lab
#include "utility.h"
#include <iostream>
using namespace std;
// creates two trees (one ... | 33,807 |
https://github.com/enikolas/yet-another-cards/blob/master/lib/__snapshots__/Hand.spec.js.snap | Github Open Source | Open Source | MIT | 2,018 | yet-another-cards | enikolas | null | Spoken | 139 | 267 | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Hand Printing should return a readable value of the hand in a single line 1`] = `"A♥ K♥ Q♥ J♥ A♠ K♠ Q♠ J♠ A♣ K♣ Q♣ J♣ A♦ K♦ Q♦ J♦"`;
exports[`Hand Printing should return a readable value of the hand in multiple lines 1`] = `
"♥ A K Q J
♠ A K Q J
♣ A K Q J
♦ A K Q J"... | 19,683 |
https://github.com/InfomediaLtd/angular2-tutorial/blob/master/7-redux/app/data/user.ts | Github Open Source | Open Source | MIT | 2,017 | angular2-tutorial | InfomediaLtd | TypeScript | Code | 19 | 53 | import {Address} from "./address";
export class User {
public id:string;
public name:string;
public username:string;
public email:string;
public address:Address;
}
| 34,191 |
https://github.com/webfx-project/webfx-extras/blob/master/webfx-extras-util-layout/src/main/java/dev/webfx/extras/util/layout/LayoutUtil.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-free-unknown | 2,023 | webfx-extras | webfx-project | Java | Code | 1,307 | 3,899 | package dev.webfx.extras.util.layout;
import dev.webfx.extras.util.background.BackgroundFactory;
import dev.webfx.kit.launcher.WebFxKitLauncher;
import dev.webfx.kit.util.properties.FXProperties;
import dev.webfx.platform.util.Numbers;
import javafx.application.Platform;
import javafx.beans.value.ObservableValue;
impo... | 18,021 |
https://github.com/AdmiralRehn/SmoSEC/blob/master/Source/SMOSEC.Domain/IRepository/IWarehouseReceiptRepository.cs | Github Open Source | Open Source | MIT | 2,018 | SmoSEC | AdmiralRehn | C# | Code | 60 | 269 | using System.Linq;
using SMOSEC.Domain.Entity;
namespace SMOSEC.Domain.IRepository
{
public interface IWarehouseReceiptRepository : IRepository<WarehouseReceipt>
{
// /// <summary>
// /// 得到对应的借用单列表
// /// </summary>
// /// <returns></returns>
... | 14,490 |
https://github.com/PawelWlodarski/workshops/blob/master/src/main/scala/jug/lodz/workshops/starter/valueclasses/answers/ValueClassesAnswer.scala | Github Open Source | Open Source | Apache-2.0 | 2,019 | workshops | PawelWlodarski | Scala | Code | 194 | 604 | package jug.lodz.workshops.starter.valueclasses.answers
class ItemId(val value: Int) extends AnyVal
class PurchaseId(val value: Int) extends AnyVal
class Item(val id:ItemId,val name: String, val description: String)
class Amount(val value: Int) extends AnyVal
class Purchase(val id: PurchaseId, val item: Item, val ... | 28,492 |
https://github.com/piougy/CzechIdMng/blob/master/Realization/backend/rpt/rpt-impl/src/test/resources/eu/bcvsolutions/idm/acctest/sql/sqlserver/V10_00_001__acc-test-resources-create.sql | Github Open Source | Open Source | MIT | 2,021 | CzechIdMng | piougy | SQL | Code | 219 | 847 | --
-- CzechIdM 10.0.0 Flyway script
-- BCV solutions s.r.o.
--
-- Test resources for tests with flyway enabled
CREATE TABLE test_contract_resource (
ID nvarchar(255) NOT NULL,
NAME nvarchar(255),
STATE nvarchar(255),
DISABLED nvarchar(255),
DESCRIPTION nvarchar(255),
VALIDFROM date,
VALIDTILL date,
LEADER nvar... | 24,150 |
https://github.com/arjunu/platform-frontend/blob/master/packages/web/app/components/shared/WarningAlert.module.scss | Github Open Source | Open Source | MIT | 2,020 | platform-frontend | arjunu | SCSS | Code | 28 | 112 | .warning-alert {
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
width: 100%;
padding: 0 1.5rem;
color: $neu-bright-orange;
font-size: $font-size-sm;
.icon {
font-size: 1.4em;
vertical-align: text-bottom;
}
}
| 37,512 |
https://github.com/wh120/Merch/blob/master/public/assets/js/Panel-Element-1.js | Github Open Source | Open Source | MIT | null | Merch | wh120 | JavaScript | Code | 47 | 165 | $(function(){
})
var loadSensors = function() {
}
var searchSensors = function() {
// FILTER CHART
$('#input-filter-devices').bind('keyup', function() {
var searchString = $(this).val();
$("ul li").each(function(index, value) {
currentName = $(va... | 32,665 |
https://github.com/AliOsm/AI-SOCO/blob/master/data_dir/test/67216 | Github Open Source | Open Source | MIT | 2,020 | AI-SOCO | AliOsm | C++ | Code | 228 | 666 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mk make_pair
#define fi first
#define se second
#define eb emplace_back
typedef long long ll;
typedef pair<int,int> ii;
typedef vector< pair<int,int> > vii;
const int INF = 0x3f3f3f3f;
const int T = 2e5 + 10;
int n;
bool vis[T];
int ans[T];
i... | 17,543 |
https://github.com/feigningfigure/WDI_NYC_Apr14_String/blob/master/w11/d02/Jonathan_Milgrom/jasmine-standalone-2.0.0/src/Test.js | Github Open Source | Open Source | MIT | 2,014 | WDI_NYC_Apr14_String | feigningfigure | JavaScript | Code | 12 | 30 | var Hangman = {
initialize: function(word) {
this.word = word;
}
} | 44,562 |
https://github.com/ericblade/xo/blob/master/source/subsonicApi.js | Github Open Source | Open Source | BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,021 | xo | ericblade | JavaScript | Code | 1,447 | 5,906 | /* [20111207-04:32:39.929290] info: subsonic.api.pingSuccess():
{
"subsonic-response": {
"error": {
"code":60,
"message":"The trial period for the Subsonic server is over. Please donate to get a license key. Visit subsonic.org for details."
},
"status":"failed",
... | 10,401 |
https://github.com/john-aws/covid19-app-system-public/blob/master/src/aws/lambdas/incremental_distribution/src/main/java/uk/nhs/nhsx/core/TableNamingStrategy.java | Github Open Source | Open Source | MIT | null | covid19-app-system-public | john-aws | Java | Code | 40 | 139 | package uk.nhs.nhsx.core;
import java.util.function.Function;
public interface TableNamingStrategy {
String apply(String tableName);
TableNamingStrategy DIRECT = (t) -> t;
Function<Environment, TableNamingStrategy> ENVIRONMENTAL = (e) -> (t) -> String.format("%s-%s", e.access.required("WORKSPACE"), t);
... | 46,209 |
https://github.com/Nitinsd96/Air-Pollution-Monitoring-System/blob/master/env/Lib/site-packages/vext/registry/__init__.py | Github Open Source | Open Source | MIT | 2,021 | Air-Pollution-Monitoring-System | Nitinsd96 | Python | Code | 11 | 37 | """
Sets of allowed modules and directories
"""
allowed_modules=set()
added_dirs=set()
blocked_imports=set()
| 46,645 |
https://github.com/lbhurtado/txtcmdr/blob/master/database/seeds/AlertSeeder.php | Github Open Source | Open Source | MIT | null | txtcmdr | lbhurtado | PHP | Code | 36 | 115 | <?php
use Illuminate\Database\Seeder;
use App\Campaign\Domain\Models\Alert;
class AlertSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Alert::create(['name' => 'green']);
Alert::create(['name' => 'yellow']);
Aler... | 16,192 |
https://github.com/tianhm/XAPI3/blob/master/languages/MATLAB/DotNET/OnRtnDepthMarketData.m | Github Open Source | Open Source | BSD-2-Clause, BSD-3-Clause | 2,021 | XAPI3 | tianhm | MATLAB | Code | 9 | 55 | function OnRtnDepthMarketData(sender,arg)
% 行情回报
% 打印行情
disp(arg.marketData.Symbol)
disp(arg.marketData.LastPrice)
end
| 14,972 |
https://github.com/jeffbrown/Building-Microservices-with-Micronaut/blob/master/Chapter11/micronaut-petclinic/pet-clinic/src/main/java/com/packtpub/micronaut/service/dto/VetDTO.java | Github Open Source | Open Source | MIT | 2,022 | Building-Microservices-with-Micronaut | jeffbrown | Java | Code | 250 | 746 | package com.packtpub.micronaut.service.dto;
import io.micronaut.core.annotation.Introspected;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
/**
* A DTO for the {@link com.packtpub.micronaut.domain.Vet} entity.
*/
@Introspected
public class VetDTO implements ... | 13,659 |
https://github.com/gsandeep1241/TextSummarizer/blob/master/DUC_data/DUC2007/mainPyramidEval/allpans/D0716.M.250.D.9.pan | Github Open Source | Open Source | Apache-2.0 | null | TextSummarizer | gsandeep1241 | null | Spoken | 7,904 | 18,425 | <?xml version="1.0"?>
<!DOCTYPE peerAnnotation [
<!ELEMENT peerAnnotation (pyramid,annotation)>
<!ELEMENT annotation (text,peerscu+)>
<!ELEMENT peerscu (contributor)*>
<!ATTLIST peerscu uid CDATA #REQUIRED
label CDATA #REQUIRED
comment CDATA #IMPLIED>
<!ELEMENT pyramid (startD... | 25,243 |
https://github.com/ita-social-projects/EventsExpress/blob/master/EventsExpress.Db/Enums/TokenType.cs | Github Open Source | Open Source | MIT | 2,022 | EventsExpress | ita-social-projects | C# | Code | 11 | 40 | namespace EventsExpress.Db.Enums
{
public enum TokenType
{
RefreshToken,
EmailConfirmationToken,
}
}
| 7,704 |
https://github.com/cogerk/walk-up-music-scrapper/blob/master/walkupEnv/share/jupyter/lab/staging/node_modules/@phosphor/datagrid/lib/index.d.ts | Github Open Source | Open Source | Apache-2.0 | null | walk-up-music-scrapper | cogerk | TypeScript | Code | 28 | 63 | export * from './cellrenderer';
export * from './datagrid';
export * from './datamodel';
export * from './graphicscontext';
export * from './jsonmodel';
export * from './renderermap';
export * from './textrenderer';
| 52,420 |
https://github.com/dsun0720/SCALPEL-Extraction/blob/master/src/main/scala/fr/polytechnique/cmap/cnam/etl/extractors/acts/DcirMedicalActExtractor.scala | Github Open Source | Open Source | BSD-3-Clause | 2,020 | SCALPEL-Extraction | dsun0720 | Scala | Code | 269 | 880 | // License: BSD 3 clause
package fr.polytechnique.cmap.cnam.etl.extractors.acts
import scala.util.Try
import org.apache.spark.sql.{DataFrame, Row}
import fr.polytechnique.cmap.cnam.etl.events.{BiologyDcirAct, DcirAct, EventBuilder, MedicalAct}
import fr.polytechnique.cmap.cnam.etl.extractors.dcir.DcirExtractor
import... | 46,000 |
https://github.com/pfeimich/simi/blob/master/code/modules/web/src/ch/so/agi/simi/web/screens/iam/user/UserBrowse.java | Github Open Source | Open Source | MIT | null | simi | pfeimich | Java | Code | 17 | 108 | package ch.so.agi.simi.web.screens.iam.user;
import com.haulmont.cuba.gui.screen.*;
import ch.so.agi.simi.entity.iam.User;
@UiController("simiIAM_User.browse")
@UiDescriptor("user-browse.xml")
@LookupComponent("usersTable")
@LoadDataBeforeShow
public class UserBrowse extends StandardLookup<User> {
} | 7,335 |
https://github.com/xCryzed/tsed/blob/master/packages/mongoose/src/utils/schemaOptions.spec.ts | Github Open Source | Open Source | MIT | null | tsed | xCryzed | TypeScript | Code | 175 | 594 | import {expect} from "chai";
import Sinon from "sinon";
import {applySchemaOptions, schemaOptions} from "../../src/utils/schemaOptions";
describe("schemaOptions", () => {
describe("schemaOptions()", () => {
class Test {}
before(() => {});
it("should return schema options (1)", () => {
expect(sche... | 45,964 |
https://github.com/rambo3889/MovieServerCleaner/blob/master/MovieServerCleaner/Cleanups/CleanupRenamingFiles.cs | Github Open Source | Open Source | MIT | null | MovieServerCleaner | rambo3889 | C# | Code | 145 | 505 | using System;
using System.IO;
using System.Linq;
namespace MovieServerCleaner.Cleanups
{
public class CleanupRenamingFiles : BaseCleanup
{
public CleanupRenamingFiles() : base(CleanupType.RenamingFiles)
{
}
public override bool Clean()
{
var enumerable = n... | 2,870 |
https://github.com/lludol/soundcloud-node/blob/master/src/main.js | Github Open Source | Open Source | MIT | 2,017 | soundcloud-node | lludol | JavaScript | Code | 183 | 633 | const querystring = require('querystring');
const request = require('request');
class SoundCloud {
constructor() {
this.hostApi = 'api.soundcloud.com';
this.hostConnect = 'soundcloud.com/connect';
this.initialized = false;
this.client = {
id: null,
secret: null
};
}
init(params = {}) {
if (!... | 43,094 |
https://github.com/omarahmed8k/mvc/blob/master/public/index.php | Github Open Source | Open Source | MIT | null | mvc | omarahmed8k | PHP | Code | 47 | 134 | <?php
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__DIR__));
define('APP', ROOT . DS . 'app');
define('CONFIG', APP . DS . 'config');
define('CONTROLLERS', APP . DS . 'controllers');
define('CORE', APP . DS . 'core');
define('MODELS', APP . DS . 'models');
define('VIEW', APP . DS . 'views');
require_onc... | 39,228 |
https://github.com/midnightbr/Faculdade/blob/master/java/JARS/hibernate-release-5.6.0.Final/project/hibernate-spatial/src/test/java/org/hibernate/spatial/testing/dialects/mysql/MySQLGeometryEquality.java | Github Open Source | Open Source | MIT | 2,021 | Faculdade | midnightbr | Java | Code | 161 | 485 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.spatial.testing.dialects.mysql;
import org.hibernate.spatia... | 32,342 |
https://github.com/MunchDev/pages-about-myself/blob/master/_includes/styles/page-style.scss | Github Open Source | Open Source | MIT | null | pages-about-myself | MunchDev | SCSS | Code | 58 | 210 | {% assign color = include.color %}
{% assign theme_color = include.theme_color %}
html {
--accent-color: {{ color }};
--accent-color-faded: #{fade-out({{ color }}, 0.5)};
--accent-color-highlight: #{fade-out({{ color }}, 0.9)};
--accent-color-darkened: #{darken({{ color }}, 7.5%)};
--theme-color:... | 12,770 |
https://github.com/BTLGxWeeabo/system_netd/blob/master/libnetdutils/FdTest.cpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | system_netd | BTLGxWeeabo | C++ | Code | 383 | 1,398 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... | 17,318 |
https://github.com/Overmodded-Team/Overmodded.Unity/blob/master/Assets/Plugins/SimpleLUI/SimpleLUI/Source/API.meta | Github Open Source | Open Source | BSD-2-Clause, MIT | 2,019 | Overmodded.Unity | Overmodded-Team | Unity3D Asset | Code | 6 | 35 | fileFormatVersion: 2
guid: 239fc3f97116414199c58fed568a07f2
timeCreated: 1564844494 | 47,249 |
https://github.com/Jonathan-aguilar/DAS_Sistemas/blob/master/Ene-Jun-2020/almaguer-constante-juan-de-dios/Parcial2/Practica3/app/Dockerfile | Github Open Source | Open Source | MIT | 2,021 | DAS_Sistemas | Jonathan-aguilar | Dockerfile | Code | 16 | 60 | FROM python:3
WORKDIR /home/salguer/redis
COPY . /home/salguer/redis
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "./inserts.py"] | 37,703 |
https://github.com/jamelachahbar/azure-functions-powershell-worker/blob/master/src/DependencyManagement/PowerShellGallerySearchInvoker.cs | Github Open Source | Open Source | MIT | 2,022 | azure-functions-powershell-worker | jamelachahbar | C# | Code | 94 | 259 | //
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
namespace Microsoft.Azure.Functions.PowerShellWorker.DependencyManagement
{
using System;
using System.IO;
using System.Net.Http;
internal class... | 7,190 |
https://github.com/justinharringa/aprendendo-python/blob/master/2020-11-08/desafio_84.py | Github Open Source | Open Source | MIT | null | aprendendo-python | justinharringa | Python | Code | 168 | 331 |
# perguntar se quer continuar pra acrescentar mais pessoas
# criar a lista pra as pessoas pra todas as rodadas do laço
pepolino = []
while True:
# pegar o nome da pessoa
nome = input('qual o seu nome? ')
# pegar e peso da pessoa
peso = int(input('qual seu peso? '))
# acrescentar informacao a uma l... | 5,368 |
https://github.com/dibo-software/diboot-open/blob/master/diboot-web/src/main/java/com/diboot/web/config/AppConfig.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | diboot-open | dibo-software | Java | Code | 51 | 219 | package com.diboot.web.config;
import com.diboot.framework.utils.V;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/***
* Dibo自定义系统配置
* @author Mazc@dibo.ltd
* @version 2016年11月10日
*
*/
public class AppConfig extends com.diboot.framework.config.BaseConfig{
private static final Logger logger = LoggerFa... | 41,856 |
https://github.com/hradet/Genesys.jl/blob/master/src/assets/grid.jl | Github Open Source | Open Source | MIT | 2,022 | Genesys.jl | hradet | Julia | Code | 57 | 201 | #=
Elec grid modelling
=#
mutable struct Grid <: AbstractGrid
# Parameters
powerMax::Float64
# Variables
carrier::EnergyCarrier
cost_in::AbstractArray{Float64,3}
cost_out::AbstractArray{Float64,3}
# Inner constructor
Grid(; powerMax = 36., carrier = Electricity()) = new(powerMax, c... | 22,814 |
https://github.com/Lerg/hashlink-emscripten/blob/master/app/out/h3d/shader/VolumeDecal.c | Github Open Source | Open Source | MIT | 2,021 | hashlink-emscripten | Lerg | C | Code | 326 | 1,344 | // Generated by HLC 4.2.1 (HL v4)
#define HLC_BOOT
#include <hlc.h>
#include <h3d/shader/VolumeDecal.h>
extern hl_type t$h3d_Vector;
void h3d_Vector_new(h3d__Vector,double*,double*,double*,double*);
void hxsl_Shader_new(hxsl__Shader);
#include <hxsl/Globals.h>
void hxsl_Shader_updateConstantsFinal(hxsl__Shader,hxsl__G... | 40,361 |
https://github.com/karthick587/next-internal-project/blob/master/pages/account/adminlogin.js | Github Open Source | Open Source | MIT | null | next-internal-project | karthick587 | JavaScript | Code | 227 | 786 | import { useRouter } from 'next/router';
import { useForm } from 'react-hook-form';
import { yupResolver } from '@hookform/resolvers/yup';
import * as Yup from 'yup';
import logo from '/logo.png'
import { Link } from 'components';
import { Layout } from 'components/account';
import { userService, alertService } from 's... | 46,828 |
https://github.com/timoles/codeql/blob/master/java/ql/test/stubs/springframework-5.2.3/org/springframework/core/ParameterizedTypeReference.java | Github Open Source | Open Source | MIT | 2,022 | codeql | timoles | Java | Code | 56 | 186 | package org.springframework.core;
public abstract class ParameterizedTypeReference<T> {
public java.lang.reflect.Type getType() {
return null;
}
public boolean equals(java.lang.Object other) {
return false;
}
public int hashCode() {
return 0;
}
public java.lang.St... | 42,890 |
https://github.com/cckmit/amazon/blob/master/src/main/resources/static/js/ipPort.js | Github Open Source | Open Source | MIT | 2,018 | amazon | cckmit | JavaScript | Code | 4 | 25 | var ipPort = "http://127.0.0.1:8080/amz-cube" | 40,071 |
https://github.com/p-le/angular-budget-boilerplate/blob/master/src/client/directives/navigation/sidenav/sidenav.directive.js | Github Open Source | Open Source | MIT | 2,017 | angular-budget-boilerplate | p-le | JavaScript | Code | 73 | 278 | (function() {
'use strict';
angular.module('angularPro')
.directive('pSidenav', pSidenav);
function pSidenav() {
var directive = {
scope: {
visible: '=?'
},
restrict: 'E',
replace: true,
transclude: true,
templateUrl: 'directives/navigation/sidenav/sidenav.ht... | 50,750 |
https://github.com/MazvydasT/Area255/blob/master/ProcessSimulateImportConditioner/TranslationError.cs | Github Open Source | Open Source | MIT | null | Area255 | MazvydasT | C# | Code | 32 | 66 | using System;
namespace ProcessSimulateImportConditioner
{
public class TranslationError
{
public DateTime Timestamp { get; set; }
public string JTPath { get; set; }
public string Description { get; set; }
}
}
| 14,278 |
https://github.com/johnnyworker1012/19wu/blob/master/app/controllers/registrations_controller.rb | Github Open Source | Open Source | MIT | 2,013 | 19wu | johnnyworker1012 | Ruby | Code | 11 | 31 | class RegistrationsController < Devise::RegistrationsController
layout 'settings', :only => [:edit, :update]
end
| 32,639 |
https://github.com/qitma/PPOB-Admin-React/blob/master/src/fake_data/DummyPromoUser.jsx | Github Open Source | Open Source | MIT | 2,018 | PPOB-Admin-React | qitma | JavaScript | Code | 135 | 489 | const dummyPromoUsers = [
{
id: 0,
name: "hendra",
deposit: "200000",
numberOfTransaction: "12",
group: "ini group",
groupRecomendation: "ini group"
},
{
id: 1,
name: "abid",
deposit: "200000",
numberOfTransaction: "12",
group: "ini group",
groupRecomendation: "ini ... | 44,213 |
https://github.com/ntl/actor/blob/master/test/automated/handler/macro_pattern__symbol.rb | Github Open Source | Open Source | MIT | 2,022 | actor | ntl | Ruby | Code | 145 | 363 | require_relative '../../test_init'
context "Actor Module, Handle Macro Pattern (Message is Matched by Symbol)" do
cls = Controls::Actor.define do
attr_accessor :handler_actuated
handle :some_message do
self.handler_actuated = true
end
end
context "Actor handles an instance whose class name m... | 44,291 |
https://github.com/sanjaymsh/forge/blob/master/src/backend/opengl/image_impl.hpp | Github Open Source | Open Source | BSD-3-Clause | null | forge | sanjaymsh | C++ | Code | 205 | 647 | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... | 28,569 |
https://github.com/chrisoldwood/UTSvrBrowser/blob/master/FltPortsPage.hpp | Github Open Source | Open Source | MIT | 2,020 | UTSvrBrowser | chrisoldwood | C++ | Code | 114 | 340 | /******************************************************************************
** (C) Chris Oldwood
**
** MODULE: FLTPORTSPAGE.HPP
** COMPONENT: The Application
** DESCRIPTION: The CFltPortsPage class declaration.
**
*******************************************************************************
*/
// Check for prev... | 4,984 |
https://github.com/fr34k8/app/blob/master/fw/event/eventbus.go | Github Open Source | Open Source | MIT | 2,020 | app | fr34k8 | Go | Code | 169 | 589 | package event
import (
"sync"
"github.com/asaskevich/EventBus"
)
var _ Dispatcher = (*Eventbus)(nil)
// EventBus publishes an event to all its subscribers
// TODO(issue#84): replace Eventbus with github.com/short-d/eventbus
type Eventbus struct {
eventBus EventBus.Bus
lock sync.RWMutex
isClosed bool
}
fun... | 37,050 |
https://github.com/dorentus/mruby-lolcat/blob/master/mrblib/lol.rb | Github Open Source | Open Source | MIT | 2,021 | mruby-lolcat | dorentus | Ruby | Code | 218 | 685 | #
# lolcat (c)2011 moe@busyloop.net
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is a... | 20,065 |
https://github.com/Kumirei/Bunpro/blob/master/Helpful Events/userscript.js | Github Open Source | Open Source | MIT | null | Bunpro | Kumirei | JavaScript | Code | 181 | 527 | // ==UserScript==
// @name Bunpro; Helpful Events
// @namespace http://tampermonkey.net/
// @version 1.0.2
// @author Kumirei
// @require https://greasyfork.org/scripts/432418-wait-for-selector/code/Wait%20For%20Selector.js?version=974366
// @include *bunpro.jp*
// @exclude *communi... | 21,282 |
https://github.com/yuyu2172/models-1/blob/master/multi-label-classification/demo.py | Github Open Source | Open Source | MIT | null | models-1 | yuyu2172 | Python | Code | 92 | 389 | import argparse
import matplotlib.pyplot as plt
import chainer
from chainercv.datasets import voc_bbox_label_names
from chainercv.links import ResNet50
from chainercv import utils
from chainercv.visualizations import vis_image
from eval_voc07 import PredictFunc
def main():
parser = argparse.ArgumentParser()
... | 52,184 |
https://github.com/sjmsjmdsg/grafinsight/blob/master/public/app/plugins/datasource/elasticsearch/components/QueryEditor/BucketAggregationsEditor/SettingsEditor/index.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | grafinsight | sjmsjmdsg | TypeScript | Code | 389 | 1,688 | import { InlineField, Input, Select } from '@grafinsight/ui';
import React, { ComponentProps, FunctionComponent } from 'react';
import { useDispatch } from '../../../../hooks/useStatelessReducer';
import { SettingsEditorContainer } from '../../SettingsEditorContainer';
import { changeBucketAggregationSetting } from '..... | 11,643 |
https://github.com/gastaldi/snowdrop-site-angular/blob/master/src/app/wizard/pages/deployment/deployment.page.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | snowdrop-site-angular | gastaldi | TypeScript | Code | 87 | 258 | import { Component, Input } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { Gui, SubmittableInput, History } from "ngx-forge";
import { ButtonComponent } from "../../components/button/button.component";
import { TokenService } from "../../../shared/token.service";
@Component({... | 22,577 |
https://github.com/Steviegt6/tModLoader-Discord-Bot/blob/master/Services/UserHandlerService.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | tModLoader-Discord-Bot | Steviegt6 | C# | Code | 101 | 415 | using System;
using System.Collections.Generic;
namespace tModloaderDiscordBot.Services
{
public class UserHandlerService : GuildConfigService
{
private readonly IDictionary<ulong, DateTime> _botCommandCooldowns = new Dictionary<ulong, DateTime>();
public UserHandlerService(IServiceProvider services) : base(se... | 38,004 |
https://github.com/meego-tablet-ux/meego-app-browser/blob/master/content/browser/renderer_host/socket_stream_dispatcher_host.h | Github Open Source | Open Source | BSD-3-Clause | 2,015 | meego-app-browser | meego-tablet-ux | C | Code | 180 | 665 | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_RENDERER_HOST_SOCKET_STREAM_DISPATCHER_HOST_H_
#pragma ... | 16,965 |
https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/runtime/ResultSetEnumerable.java | Github Open Source | Open Source | Apache-2.0, MIT | 2,023 | calcite | apache | Java | Code | 1,604 | 4,465 | /*
* 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 may ... | 51,863 |
https://github.com/gavinlaking/troo/blob/master/test/lib/troo/remote/comment_data_board_test.rb | Github Open Source | Open Source | MIT | 2,016 | troo | gavinlaking | Ruby | Code | 39 | 135 | require_relative '../../../test_helper'
module Troo
module Remote
describe CommentDataBoard do
let(:described_class) { CommentDataBoard }
let(:resource) {
{
shortLink: '',
name: '',
id: ''
}
}
let(:described_instance) { desc... | 27,645 |
https://github.com/ZeljkoSimic/RS015-process-monitor/blob/master/src/main.cc | Github Open Source | Open Source | MIT | 2,018 | RS015-process-monitor | ZeljkoSimic | C++ | Code | 184 | 573 | #include <gtkmm.h>
#include <iostream>
#include <unistd.h>
#include "common/core.h"
#include "windows/mainwindow.h"
int main(int argc, char *argv[]) {
// TODO: Make separate debug and release configurations
putenv((char*)"GTK_THEME=Adwaita-dark");
auto app = Gtk::Application::create(argc, argv, "org.gnome.proc... | 32,932 |
https://github.com/GracefulComet/Graceful-Engine/blob/master/TileMap.h | Github Open Source | Open Source | MIT | null | Graceful-Engine | GracefulComet | C | Code | 124 | 341 | #pragma once
#include <map>
enum class state { idle, animated, cycle };
struct Frame {
int x; // collum
int y; // row
};
class TileMap {
public:
TileMap(int ncol, int nrow, int Height, int width);
TileMap() = default;
void setCurTile(int cFrame);
void setNumAnimFrames(int numofFrames);
void setState(s... | 37,567 |
https://github.com/seagecome/ups/blob/master/ups-domain/src/main/java/com/talkortell/bbs/domain/mysql/ups/UserOperInfoCriteria.java | Github Open Source | Open Source | MIT | null | ups | seagecome | Java | Code | 2,523 | 8,299 | package com.talkortell.bbs.domain.mysql.ups;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
public class UserOperInfoCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public UserOperInf... | 19,833 |
https://github.com/kevin1055/bomberman-java/blob/master/src/brotherdong/bomberman/LoopDelay.java | Github Open Source | Open Source | MIT | 2,020 | bomberman-java | kevin1055 | Java | Code | 63 | 167 | package brotherdong.bomberman;
/**
*
* @author Kevin
*/
public class LoopDelay {
private long delay;
private long previous;
public LoopDelay(long delay) {
this.delay = delay;
previous = System.currentTimeMillis();
}
public void reset() {
previous = System.currentTimeMillis();
}
public void await() ... | 16,351 |
https://github.com/Thomas89/fbSelect/blob/master/src/jquery.fbs.js | Github Open Source | Open Source | MIT | 2,015 | fbSelect | Thomas89 | JavaScript | Code | 200 | 876 | // fbSelect jquery plugin v 0.1.1 (http://git.io/nLpK2w)
// by @fatbattk
;(function($,window,document,undefined){
// default properties.
var pluginName = "fbSelect",
defaults = {
bClass: "fbs",
bClasses: ['fbs1','fbs2','fbs3','fbs4'],
skipNoValue: false
};
// plugin constructor.
function Plugin(elemen... | 47,933 |
https://github.com/godfrey-asiimwe/Basiks-multilevel-Marketing-Software/blob/master/Stockist/editPurchase.php | Github Open Source | Open Source | MIT | null | Basiks-multilevel-Marketing-Software | godfrey-asiimwe | PHP | Code | 60 | 309 | <div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Stockist </h6>
</div>
<div class="card-body">
<?php
$del=$_GET['editPurchase'];
$stockist=$_SESSION['id'];
if(isset($_GET['c']) && $_GET['c']=='y'){
... | 40,444 |
https://github.com/muyouming/st2/blob/master/contrib/examples/actions/print_to_stdout_and_stderr.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | st2 | muyouming | Shell | Code | 158 | 305 | #!/usr/bin/env bash
# Licensed to the StackStorm, Inc ('StackStorm') 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")... | 27,473 |
https://github.com/CPardeep/admin-capmovie-frontend/blob/master/it/connectors/UpdateConnectorISpec.scala | Github Open Source | Open Source | Apache-2.0 | null | admin-capmovie-frontend | CPardeep | Scala | Code | 647 | 2,025 | /*
* Copyright 2021 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 34,182 |
https://github.com/smansoft/spring-login/blob/master/sl-jsp-djpa-jc-hib-infsp/src/main/java/com/smansoft/sl/web/converters/AuthorityTypeFormatter.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spring-login | smansoft | Java | Code | 91 | 372 | /**
*
*/
package com.smansoft.sl.web.converters;
import java.text.ParseException;
import java.util.Locale;
import org.slf4j.LoggerFactory;
import org.springframework.format.Formatter;
import com.smansoft.sl.exceptions.InitException;
import com.smansoft.sl.persistence.types.AuthorityType;
import com.smansoft.sl.to... | 41,571 |
https://github.com/xiaocaovc/hkvs/blob/master/ClientDemo/DlgBathcUserRightCfg.h | Github Open Source | Open Source | MIT | 2,019 | hkvs | xiaocaovc | C | Code | 172 | 888 | #if !defined(AFX_DLGBATHCUSERRIGHTCFG_H__D2E115F6_DF4C_4950_A4E6_AA4D0CE1C5F6__INCLUDED_)
#define AFX_DLGBATHCUSERRIGHTCFG_H__D2E115F6_DF4C_4950_A4E6_AA4D0CE1C5F6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgBathcUserRightCfg.h : header file
//
//////////////////////////////////////////... | 37,346 |
https://github.com/sreesundeep/android_camera/blob/master/Application/src/main/java/com/example/android/camera2basic/providers/CameraProvider.java | Github Open Source | Open Source | Apache-2.0 | null | android_camera | sreesundeep | Java | Code | 159 | 507 | package com.example.android.camera2basic.providers;
import android.content.Context;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CameraManager;
import com.example.android.camera2basic.camera2.CameraDeviceHolder;
import co... | 49,620 |
https://github.com/JessyTsu1/LNU-Java-Exp-/blob/master/EXP_2/KY2_3.java | Github Open Source | Open Source | Apache-2.0 | null | LNU-Java-Exp- | JessyTsu1 | Java | Code | 27 | 146 | package EXP_2;
public class KY2_3{
public static void main(String[] args) {
int k, i=3, j=4;
k=20*8/4+i+j*i;
System.out.println("表达式(20*8/4+i+j*i)="+k);
i=10;
System.out.println("表达式i++=" + i++);
i=10;
System.out.println("表达式++i=" + ++i);
}
} | 11,087 |
https://github.com/cassiozen/vscode-fuzzy-search/blob/master/binaries/linux/autocomplete/fd.fish | Github Open Source | Open Source | MIT | 2,021 | vscode-fuzzy-search | cassiozen | Fish | Code | 512 | 1,142 | complete -c fd -n "__fish_use_subcommand" -s d -l max-depth -d 'Set maximum search depth (default: none)'
complete -c fd -n "__fish_use_subcommand" -l maxdepth -d 'See --max-depth'
complete -c fd -n "__fish_use_subcommand" -s t -l type -d 'Filter by type: file (f), directory (d), symlink (l),
executable (x), empty (e)'... | 39,562 |
https://github.com/billyadelphia/sequelize-state-machine/blob/master/dist/index.js | Github Open Source | Open Source | MIT | 2,021 | sequelize-state-machine | billyadelphia | JavaScript | Code | 766 | 2,086 | "use strict";
/**
* Sequelize state machine
* Author billyadelphia
*/
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const StateMachineValidation_1 = require("./StateMachineValidation");
class StateMachine {
constructor() {
this.states = [];
this.... | 26,746 |
https://github.com/leekangsan/HanziSRS/blob/master/HanziSRS/dir.py | Github Open Source | Open Source | Apache-2.0 | 2,018 | HanziSRS | leekangsan | Python | Code | 66 | 262 | import os, sys
import inspect
PROJECT_NAME = 'HanziSRS'
MODULE_ROOT = os.path.abspath(os.path.dirname(inspect.getframeinfo(inspect.currentframe()).filename))
def resource_path(relative_path):
""" Get absolute path to resource, works for dev and for PyInstaller """
try:
# PyInstaller creates a temp fo... | 43,037 |
https://github.com/1amageek/stripe-ios/blob/master/Stripe/ConnectionsSDKAvailability.swift | Github Open Source | Open Source | MIT | null | stripe-ios | 1amageek | Swift | Code | 179 | 568 | //
// FinancialConnectionsSDKAvailability.swift
// StripeiOS
//
// Created by Vardges Avetisyan on 2/24/22.
// Copyright © 2022 Stripe, Inc. All rights reserved.
//
import Foundation
import UIKit
@_spi(STP) import StripeCore
import SwiftUI
@available(iOS 12, *)
struct FinancialConnectionsSDKAvailability {
sta... | 47,818 |
https://github.com/Dan-Tran/UW-Pathfinder/blob/master/src/cli/test/HW8TestDriver.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | UW-Pathfinder | Dan-Tran | Java | Code | 204 | 449 | package cli.test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.PrintStream;
import cli.Main;
/**
* This class can be used to test your Campus Paths main application. It
* redirects System.out and System.in to input and output ... | 5,159 |
https://github.com/jbauers/docker-flask-saml/blob/master/server/control/util.go | Github Open Source | Open Source | MIT | 2,020 | docker-flask-saml | jbauers | Go | Code | 258 | 584 | package main
import (
"errors"
"log"
"net"
)
// Returns the WireGuard interface for a given group, or an empty string
// if the group can't be found.
func getGroupInterface(peers []Peer, group string) string {
for _, p := range peers {
for _, g := range p.Groups {
if group == g {
return p.Interface
}
... | 45,963 |
https://github.com/CharlSteynberg/anon/blob/master/.anon.dir/Site/base/xatr.js | Github Open Source | Open Source | MIT | 2,021 | anon | CharlSteynberg | JavaScript | Code | 604 | 4,517 | extend(custom.attrib)
({
// src:function(v,n,a, r)
// {r=(isPath(v)?r=(v+'?n='+nodeName(n)):(v+'')); n.setAttribute('src',r); n.src=r; return TRUE;},
//
// href:function(v,n,a, r)
// {r=(isPath(v)?r=(v+'?n='+nodeName(n)):(v+'')); n.setAttribute('href',r); n.src=r; return TRUE;},
//
// data:function... | 25,185 |
https://github.com/fullstack-development/react-redux-starter-kit/blob/master/src/modules/shared/Layout/LayoutHeaderMenu/LayoutHeaderMenu.scss | Github Open Source | Open Source | MIT | 2,020 | react-redux-starter-kit | fullstack-development | SCSS | Code | 96 | 360 | @import '~shared/styles/mixins';
.layout-header-menu {
$r: &;
position: relative;
display: flex;
font-size: 0.9rem;
&__title {
display: none;
@include breakpoint-up(sm) {
display: inline;
}
}
&__menu-icon {
display: flex;
@include breakpoint-up(sm) {
display: none;
... | 33,430 |
https://github.com/AndrewAnnex/pvl/blob/master/tests/test_init.py | Github Open Source | Open Source | BSD-3-Clause | null | pvl | AndrewAnnex | Python | Code | 497 | 2,094 | #!/usr/bin/env python
"""This module has unit tests for the pvl __init__ functions."""
# Copyright 2019, Ross A. Beyer (rbeyer@seti.org)
#
# 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
#
# ... | 41,288 |
https://github.com/buidler-labs/hedera-mirror-node/blob/master/hedera-mirror-importer/src/main/resources/db/migration/v1/V1.53.0__topic_message_add_payer_account_id_and_initial_transaction_id.sql | Github Open Source | Open Source | Apache-2.0 | 2,022 | hedera-mirror-node | buidler-labs | SQL | Code | 70 | 153 | -------------------
-- Set topic_message payer_account_id where null and add a new column for initial_transaction_id to
-- hold the TransactionID protobuf bytes
-------------------
-- Set topic_message.payer_account_id for non-chunked messages (chunked messages already handled by importer)
update topic_message tm
set ... | 26,614 |
https://github.com/ZachStolz94/samples-js-angular/blob/master/scripts/e2e-oie.sh | Github Open Source | Open Source | Apache-2.0 | 2,022 | samples-js-angular | ZachStolz94 | Shell | Code | 135 | 606 | #!/bin/bash -x
source ${OKTA_HOME}/${REPO}/scripts/setup.sh
setup_service xvfb start
setup_service java 1.8.222
setup_service google-chrome-stable 87.0.4280.66-1
yum -y install lsof
export TRAVIS=true
export DBUS_SESSION_BUS_ADDRESS=/dev/null
export TEST_SUITE_TYPE="junit"
export TEST_RESULT_FILE_DIR="${REPO}/buil... | 11,902 |
https://github.com/medhajoshi27/AllProjectmedha/blob/master/asp.net/WebApplication10/WebApplication10/Models/FormContext.cs | Github Open Source | Open Source | MIT | null | AllProjectmedha | medhajoshi27 | C# | Code | 36 | 108 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
namespace WebApplication10.Models
{
public class FormContext : DbContext
{
public FormContext() : base("name=MyConnectionString")
{
}
pu... | 52,513 |
https://github.com/frontend-park-mail-ru/2017_2_caesar/blob/master/src/views/shop/index.js | Github Open Source | Open Source | MIT | 2,017 | 2017_2_caesar | frontend-park-mail-ru | JavaScript | Code | 130 | 612 | import Block from 'Components/block/index';
import Base from 'Views/base/index';
class Shop extends Base {
constructor() {
super('div', ['shop'], 'shop');
this.drill = Block.create('div', {}, ['shop__drill']);
this.drill.text = Block.create('div', {}, ['shop__upgrade-text'], 'Бур');
this.drill.img =... | 33,118 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.