language stringclasses 15
values | src_encoding stringclasses 34
values | length_bytes int64 6 7.85M | score float64 1.5 5.69 | int_score int64 2 5 | detected_licenses listlengths 0 160 | license_type stringclasses 2
values | text stringlengths 9 7.85M |
|---|---|---|---|---|---|---|---|
Java | UTF-8 | 3,408 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package cherry.gallery.db.gen.query;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.sql.ColumnMetadata;
import java.sql.Types;
... |
Python | UTF-8 | 4,365 | 2.96875 | 3 | [] | no_license | import queue
class Graph:
def __init__(self,nV):
self.nV=nV
self.adjMatrix=[[0 for i in range(nV)] for j in range(nV)]
def dfsHelper(self,sv,visited):
print(sv)
visited[sv]=True
for i in range(self.nV):
if (self.adjMatrix[sv][i]>0 and visited[i] is False):
self.dfsHelper(i,visited)
def DFS(self... |
Markdown | UTF-8 | 26,731 | 2.921875 | 3 | [] | no_license | # Pang Yong Hock and Another v PKS Contracts Services Pte Ltd
**Case Number** :CA 103/
**Decision Date** :19 April 2004
**Tribunal/Court** :Court of Appeal
**Coram** :Chao Hick Tin JA; Tay Yong Kwang J; Yong Pung How CJ
**Counsel Name(s)** :Gregory Vijayendran and Linda Wee (Wong Partnership) for appellants... |
Java | UTF-8 | 641 | 1.8125 | 2 | [] | no_license | package edu.unlv.kilo.domain;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.ManyToMany;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.r... |
Java | UTF-8 | 2,733 | 3.6875 | 4 | [] | no_license | package trees_graphs_4;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
public class BSTSequences_4_9 {
public static void main(String[] args) {
TreeNode root = new MinimalTree_4_2().binarySearchTreee(new int[]{1, 2, 3, 4});
System.out.prin... |
C++ | UTF-8 | 3,093 | 3.625 | 4 | [] | no_license | /*
* Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces ' ' when necessary so that each line has exactly L c... |
Markdown | UTF-8 | 6,350 | 3.140625 | 3 | [] | no_license | # Why & How To Host a Club In A Low-Connectivity Neighborhoods
> Help the next billion people read, write, and participate on the web with hands-on activities suitable for a low-connectivity environment!
You decided to help your community learn new digital skills but you’re in a place with low-connectivity or no conn... |
C++ | UTF-8 | 1,703 | 2.640625 | 3 | [] | no_license | #include "Usart.h"
// inicjalizacja wlasciwosci statycznych klasy Usart
Scenario Usart::scenarios;
uint8_t Usart::params[4];
uint8_t Usart::paramsToRecv;
uint8_t Usart::commandWithArguments;
char Usart::incomeChar;
bool Usart::newCharReceived;
// definicja wektora przerwan odbioru danych USART
ISR(USART_RXC_vect)
{
... |
C# | UTF-8 | 1,739 | 3.140625 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | using System;
using System.Collections.Generic;
namespace IfInjector.Util
{
/// <summary>
/// Thread safe dictionary wrapper. Users supply a synchronization lock to allow for course-grained locking. Course grained locking helps to prevent obscure deadlock issues.
///
/// For performance, the dictionary s... |
Python | UTF-8 | 273 | 3.09375 | 3 | [] | no_license | lst = [4, 15, 6, 8, 10, 15]
max_val = max(lst)
c = [0] * (max_val + 1)
for ele in lst:
c[ele] += 1
for i in range(1, len(c)):
c[i] += c[i - 1]
res = [0] * len(lst)
for i in range(len(lst) - 1, -1, -1):
res[c[lst[i]]-1] = lst[i]
c[lst[i]] -= 1
print(res) |
Python | UTF-8 | 16,297 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 函数
# Python内置了很多有用的函数,我们可以直接调用。
# 注意:调用函数的时候,如果传入的参数数量不对,会报TypeError的错误;
# 如果传入的参数数量是对的,但参数类型不能被函数所接受,也会报TypeError的错误。
# https://docs.python.org/3/library/functions.html 含有内置函数名字。
# 调用函数需要根据函数定义,传入正确的参数。如果函数调用出错,一定要学会看错误信息,所以英文很重要!
# 求绝对值的函数
import math
fro... |
Python | UTF-8 | 421 | 4.4375 | 4 | [] | no_license | '''Elabore um programa que leia do teclado o sexo de uma pessoa.
Se o sexo digitado for “M” ou “m” ou “F” ou “f”, escrever na tela “Sexo válido!”.
Caso contrário, exibir “Sexo inválido!”. '''
#ENTRADA
sexo = input("Digite o seu sexo(M para masculino e F para feminino ")
#PROCESSAMENTO
if sexo.upper() == 'M' or sexo.u... |
Markdown | UTF-8 | 1,898 | 2.59375 | 3 | [
"LicenseRef-scancode-bsd-atmel"
] | permissive | USB_HID_MOUSE EXAMPLE
=====================
# Objectives
------------
This example aims to test the USB Device Port(UDP) and USB Human Interface
Device class (HID).
# Example Description
---------------------
The demonstration program simulates a HID-compliant mouse. When the board
running this program connected to a... |
PHP | UTF-8 | 204 | 2.765625 | 3 | [] | no_license | <?php
$array_keys = array('a', 'b', 'c');
$array_values = array('one', 'two', 'three');
print_r(array_combine($array_keys, $array_values));
/* kết quả:
Array(
[a] => one
[b] => two
1 => three;
)*/;
?> |
Java | UTF-8 | 1,231 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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.
*/
package Design.OOP.VendingMachine;
import java.util.List;
/**
*
* @author mankank
*/
public class Client {
public static void ... |
Markdown | UTF-8 | 2,261 | 2.671875 | 3 | [] | no_license | # [Target #70 - Froggy](https://cssbattle.dev/play/70)

```HTML
<!-- Battle #13 - Clip/ #70 - Froggy -->
<div class="l-i"></div>
<div class="l-inner-i"></div>
<div class="l-p"></div>
<div class="r-i"></div>
<div class="r-inner-i"></div>
<div class="r-p"></div>
<div class="l-no... |
TypeScript | UTF-8 | 425 | 3.046875 | 3 | [] | no_license | /**
* This class represents the end user reponse model
*/
export class APIResponeModel<
T = Record<string, any> | boolean | string | null
> {
//#region properties
public readonly success: boolean = false;
public readonly data: T;
public readonly message: string = '';
public readonly errors: string[] = [];... |
PHP | UTF-8 | 746 | 2.578125 | 3 | [] | no_license | <?php
use Flatness\Cache;
use PHPUnit\Framework\TestCase;
use Flatness\FileSystemInterface;
// phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
class CacheTest extends TestCase
{
public function test()
{
$data = ['a' => 'b'];
$fs = $this->createMock(FileSystemInterface::class);
... |
Swift | UTF-8 | 956 | 2.875 | 3 | [] | no_license | //
// UIViewController.swift
// Surfline
//
// Created by Ali Aljoubory on 12/12/2020.
//
import UIKit
extension UIViewController {
func presentAlert(title: String, message: String, actionTitle: String, actionStyle: UIAlertAction.Style) {
let ac = UIAlertController(title: title, message: message, ... |
Markdown | UTF-8 | 27,307 | 2.625 | 3 | [] | no_license | ---
title: 'Tutorial: Crear una aplicación web de una sola página - Bing Web Search API'
titleSuffix: Azure Cognitive Services
description: Esta aplicación de una página muestra cómo se puede usar Bing Web Search API para recuperar, analizar y mostrar los resultados de la búsqueda pertinentes en una aplicación de una p... |
Python | UTF-8 | 8,327 | 2.765625 | 3 | [] | no_license | '''
This module to "pretty print" the results
-------------------------------------------------------------------------------
Coded by Md. Iftekhar Tanveer (itanveer@cs.rochester.edu)
Rochester Human-Computer Interaction (ROCHCI)
University of Rochester
------------------------------------------------------... |
JavaScript | UTF-8 | 1,930 | 4.4375 | 4 | [] | no_license | /**
* Definition for singly-linked list.
* function ListNode(val, next) {
* this.val = (val===undefined ? 0 : val)
* this.next = (next===undefined ? null : next)
* }
*/
/**
* @param {ListNode} head
* @return {ListNode}
*/
/****************************************************************************
... |
JavaScript | UTF-8 | 5,187 | 2.65625 | 3 | [] | no_license | import axios from 'axios'
import React, { useEffect, useState } from 'react'
import './App.css'
//Função de listar usuários na página inicial
export default function List(){
let [usuarios, setUsuarios] = useState([])
let [showModal, setShowModal] = useState(false)
let [showTransacao, setShowTransacao] = useState(false... |
C# | UTF-8 | 1,369 | 3.390625 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Task_1
{
class Program
{
public static bool checkPrime(string name)
{
int cnt = 0;
StreamReader sr = new StreamRe... |
Java | UTF-8 | 723 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.rjs.mymovies.server.repos;
import com.rjs.mymovies.server.model.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
/**
* <p/>
* Created with IntelliJ IDEA.<br>
* Us... |
PHP | UTF-8 | 1,435 | 2.546875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: angelika
* Date: 10.02.19
* Time: 12:20
*/
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
/**
* @ORM\Entity
* @ORM\Table(name="progress")
* Class Progress
* @package AppBundle\Entity
*/
class Progress
{
... |
Python | UTF-8 | 1,737 | 2.625 | 3 | [] | no_license | #!/usr/bin/env python
# coding: utf-8
### Modules
# custom
import kerningMisc
reload(kerningMisc)
from kerningMisc import MARGIN_VER, MARGIN_COL
from ..ui import userInterfaceValues
reload(userInterfaceValues)
from ..ui.userInterfaceValues import vanillaControlsSize
# standard
from vanilla import Group, TextBox, Squ... |
C# | UTF-8 | 1,969 | 3.578125 | 4 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Task1
{
public abstract class Figure
{
public abstract void Draw();
}
class Program
{
// Напишите заготовку для векторного графического редактора.
... |
Java | UTF-8 | 207 | 2.390625 | 2 | [] | no_license |
public abstract class Processor implements Component{
@Override
public String name()
{
return "Processor";
}
public abstract float price() ;
public abstract String speed();
}
|
JavaScript | UTF-8 | 279 | 3.453125 | 3 | [] | no_license | function nextDay(year, month, day) {
let date = new Date(year, month - 1, day);
let tomorrow = new Date(year, month - 1, date.getDate() + 1);
console.log(
`${tomorrow.getFullYear()}-${tomorrow.getMonth() + 1}-${tomorrow.getDate()}`
);
}
nextDay(2016, 9, 30);
|
Markdown | UTF-8 | 839 | 2.515625 | 3 | [] | no_license | # Myleholic (iOS)
An iOS-App that let you know how far you've been on the move.
### Features:
* Any location can be easily found
* Routes are calculated based on previous travellings
* Geographical distances are summed up cumulatively
* Routes and places can be clearly seen on the map
## Dependencies
* [RealmSwift]... |
Markdown | UTF-8 | 1,227 | 2.734375 | 3 | [] | no_license | # PEKING UNIVERSITY [程序设计与算法](https://www.coursera.org/specializations/biancheng-suanfa) 专项课程学习记录
> 
## 专项课程介绍
- 本专项课程旨在系统培养你的程序设计与编写能力。系列课程从计算机的基础知识讲起,无论你来自任何学科和行业背景,都能快速理解;同时我们又系统性地介绍了C程序设计,C++程序设计,算法基础,数据结构与算法相关的内容,各... |
PHP | UTF-8 | 1,165 | 3.75 | 4 | [] | no_license | <?php
namespace App;
/**
* Permet de calculer le poids d'un nombre
*
* Class weightOfNumbers
* @author Guillaume RICHARD <g.jf.richard@gmail.com>
* @package App
*/
class weightOfNumbers {
/**
* weightOfNumbers constructor.
*/
public function __construct(){}
/**
* calculer le poids d'u... |
Java | UTF-8 | 674 | 3.359375 | 3 | [] | no_license | /**
* @Author: zl
* @Date: 2019/5/23 11:20
* @Description 数组实现出栈入栈
*/
public class Stack {
private int a[];
private int size;
Stack(int size){
a=new int[size];
}
private void insert(int data){
a[size]=data;
size++;
}
private void delete(){
if(size>0){
... |
C | UTF-8 | 7,303 | 2.734375 | 3 | [
"MIT"
] | permissive | /*
* usb_helper.c
*
* Created: 12/27/2017 7:34:07 AM
* Author: pvallone
*/
#include "usb_helper.h"
void sam_display_bmp(int x1, int y1, char *bitmap, int page){
struct bitmap_t bmp;
bmp.name = bitmap;
int8_t header_buff[60];
unsigned int byte_read;
volatile uint8_t lun = LUN_ID_USB;
int position ... |
Markdown | UTF-8 | 5,663 | 2.84375 | 3 | [] | no_license |
# Vefforritun 1, 2021: Verkefni 4, CSS #2
[Kynning í fyrirlestri](https://youtu.be/Nw7FkpJl-Xo).
Setja skal upp viðmót fyrir Vefforritunarfréttir, fréttamiðil sem færir vefforriturum mikilvægar fréttir af faginu.
Haldið verður áfram með verkefnið:
* [Verkefni 5](https://github.com/vefforritun/vef1-2021-v5/) gerir ... |
JavaScript | UTF-8 | 189 | 2.84375 | 3 | [] | no_license | function vogalOuConsoante(letra){
var letra = letra.toLowerCase()
if (letra== 'a'||letra== 'e'||letra== 'i'||letra== 'o'||letra== 'u'){
return "vogal";
}else {
return"consoante";
}
}
|
Python | UTF-8 | 727 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env python
"""
What is the sum of the digits of the number 2 ** 1000?
"""
def way_1():
# as we know, 2**1 = 0x10, 2**2 = 0x100, ...
# so we can get the result of 2**1000 in binary without actually calculating.
bin_sum = '1' + ''.join(['0']*1000)
dec_sum = str(int(bin_sum, 2))
sum_of_digi... |
Markdown | UTF-8 | 556 | 2.65625 | 3 | [] | no_license | # Introduction
In this project we will learn how to implement an APC Design Architecture (Application, Page, Control) in our Xamarin Forms application.
# Getting Started
The APC Architecture is based on the use of Styles which could be stored on the Application resources, Page resources or Control properties.
We wi... |
JavaScript | UTF-8 | 5,766 | 2.953125 | 3 | [] | no_license | let geometryInstance = null;
let arMarker = null;
//------------------基底クラス--------------------
class Geometry {
constructor(){
}
update(dt){
}
createObject(){
}
setMarkerObject(marker){
arMarker = marker;
}
static getInstance(objectName){
if(geometryInstance != null){
return ge... |
Java | UTF-8 | 1,532 | 3.046875 | 3 | [] | no_license | package app;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
public class Jmeter_WriteFile {
/* The default encoding. */
private static final String DEFAULT_ENCODING = "UTF-8";
/* version. */
private static final S... |
JavaScript | UTF-8 | 430 | 2.625 | 3 | [] | no_license | 'use strict';
window.error = {
showErrorMessage(msg) {
let node = document.createElement(`div`);
node.style = `z-index: 100; margin: 0 auto; text-align: center; background-color: red; color: white;`;
node.style.position = `absolute`;
node.style.left = 0;
node.style.right = 0;
node.style.fontS... |
PHP | UTF-8 | 3,529 | 2.53125 | 3 | [] | no_license |
<link rel="stylesheet" type="text/css" href="style.css">
<title>search</title>
<form method="post" action="">
<div class="container">
<div class="input-group">
<label for="type"><b>type</b></label>
<input type="text" placeholder="Enter type of the rooms" id="type" name="type" >
<label for="pr... |
Ruby | UTF-8 | 301 | 3.015625 | 3 | [] | no_license | class ETL
def self.transform(hash)
create_new_hash(hash)
end
class << self
private
def create_new_hash(hash)
new_hash = Hash.new()
hash.keys.map do |key|
hash[key].map {|element| new_hash[element.downcase] = key }
end
new_hash
end
end
end
|
C++ | UTF-8 | 1,189 | 2.875 | 3 | [] | no_license | //
//Manager.cpp
//
#include "Manager.h";
#include "ObjectList.h";
#include "WorldManager.h";
#include "LogManager.h";
//Constructor
df::Manager::Manager() {}
//Deconstructor
df::Manager::~Manager() {}
// Set type identifier of Manager.
void df::Manager::setType(std::string new_type) {
m_type = new_type;
}
// Get... |
Java | UTF-8 | 10,421 | 2.015625 | 2 | [] | no_license | package com.pentapus.pentapusdmh.Fragments.Encounter;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Handler;
import android.support.v4.content.ContextComp... |
Markdown | UTF-8 | 1,758 | 3.53125 | 4 | [
"MIT"
] | permissive | # Python 时间相关用法
### 相关函数功能转换示意图

### 字符串转整数时间戳
```python
import time
int(time.mktime(time.strptime('2013-10-10 23:40:00', "%Y-%m-%d %H:%M:%S")))
# 1381419600
```
### 整数时间戳转字符串
```python
import time
time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(15... |
Markdown | UTF-8 | 1,636 | 3.03125 | 3 | [] | no_license | # Analyzing and planning a new Rails app
-------------------------------------------
Today we will be looking at how to go about planning and thinking through a Rails application. We will be talking about some of the things that need to be done before you start coding.
## Agenda
1. A quick digression about partial t... |
Java | UTF-8 | 512 | 2.09375 | 2 | [] | no_license | package com.koreait.contact03.command;
import org.apache.ibatis.session.SqlSession;
import org.springframework.ui.Model;
import com.koreait.contact03.dao.ContactDAO;
public class SelectContactListCommand implements ContactCommand {
@Override
public void execute(SqlSession sqlSession, Model model) {
// 파라미... |
C++ | UTF-8 | 1,178 | 3.125 | 3 | [] | no_license | class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
vector<vector<int>> res;
vector<int> tmp_vec;
queue<TreeNode*> my_queue;
TreeNode* tmp_node;
int level = 2;
if(!root)
return res;
my_queue.push(root);
my_q... |
C++ | UTF-8 | 4,413 | 2.75 | 3 | [] | no_license | #include<iostream>
#include<string.h>
#include <fstream>
#include <sys/time.h>
//Deneme
//1 /2
using namespace std;
#define PENCERE 5
int pencere_ortalamasi_al (int * matris, int genislik, int indeks);
int main (int argc, char **argv)
{
if (argc == 2) {
struct timeval currentTime;
double startTime,endTime,... |
C# | UTF-8 | 878 | 2.890625 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Matveev.Mtk.Core
{
public abstract class FaceFunction
{
public abstract double Evaluate(Face face);
public double[] EvaluateGradient(Face face)
{
double[] result = n... |
Java | UTF-8 | 190 | 1.976563 | 2 | [] | no_license | package com.example.dason.simweather.api;
/**
* Created by dason on 2016/11/10 0010.
*/
public interface InformationTransmitter {
public abstract void receive(String dataAsJson);
}
|
TypeScript | UTF-8 | 4,078 | 3.296875 | 3 | [
"MIT"
] | permissive | import { generateMockFunctionsFromYaml } from "."
import { ObjectType, ObjectTypeMock, Resolver } from "./types"
describe("generateMockFunctionsFromYaml", () => {
it("handles strings", () => {
const yaml = `
name: Michael Scott
`
expect(generateMockFunctionsFromYaml(yaml).name()).toEqual("Michael ... |
Java | UTF-8 | 1,797 | 2.71875 | 3 | [] | no_license | /**
*
*/
package com.chinarewards.qqgbvpn.main.impl;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
*
... |
Markdown | UTF-8 | 12,023 | 2.890625 | 3 | [] | no_license | # 一、 什么是javax.validation
JSR303 是一套JavaBean参数校验的标准,它定义了很多常用的校验注解,我们可以直接将这些注解加在我们JavaBean的属性上面(面向注解编程的时代),就可以在需要校验的时候进行校验了,在SpringBoot中已经包含在starter-web中,再其他项目中可以引用依赖,并自行调整版本:
```xml
<!--jsr 303-->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api... |
Java | UTF-8 | 317 | 1.6875 | 2 | [] | no_license |
package com.youbenben.youbenben.skilltype;
import com.youbenben.youbenben.EntityNotFoundException;
public class SkillTypeVersionChangedException extends SkillTypeManagerException {
private static final long serialVersionUID = 1L;
public SkillTypeVersionChangedException(String string) {
super(string);
}
}
|
Python | UTF-8 | 110 | 3.28125 | 3 | [] | no_license |
def single_occurrence(txt):
return ''.join([i.upper() for i in txt if (txt.lower()).count(i.lower())==1])
|
Java | UTF-8 | 13,995 | 2.40625 | 2 | [] | no_license | package com.futchampionsstats.models;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.util.Log;
import com.futchampionsstats.BR;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Locale;
import static com.futchampionsstats.utils.Utils.calculateA... |
Python | UTF-8 | 4,209 | 2.875 | 3 | [] | no_license | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 5 16:28:12 2019
@author: rockywin.wang
"""
import time
import numpy as np
import cv2
import matplotlib.pyplot as plt
def CenterLabelHeatMap(img_width, img_height, c_x, c_y, sigma):
X1 = np.linspace(1, img_width, img_width)
Y1 = np.linspace(1, img_height, img_h... |
Java | ISO-8859-3 | 1,823 | 2.796875 | 3 | [] | no_license | package de.mwvb.teeuhr.service;
import java.util.ArrayList;
import java.util.List;
import javafx.geometry.Bounds;
import javafx.stage.Stage;
public class Config {
public void saveWindowPosition(String name, Stage stage) {
if (stage.isIconified()) { // x+y sind versaut
return;
}
String dat... |
Java | ISO-8859-1 | 799 | 2.609375 | 3 | [] | no_license | package me.jonasxpx.meuplugin2.comandos.warps;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.jonasxpx.meuplugin2.managers.Warp;
public class SetWarp implements CommandExecutor{
@Overrid... |
Java | UTF-8 | 1,125 | 2.296875 | 2 | [] | no_license | package ir.adicom.app.checkmanagmentapp;
/**
* Created by adicom on 12/6/16.
*/
public class Check {
private int id;
private String price;
private String vajhe;
private String babat;
private String date;
public String getBabat() {
return babat;
}
public void setBabat(Strin... |
Markdown | UTF-8 | 8,476 | 2.5625 | 3 | [] | no_license | # 1 简介
<a id=1.1></a>
## 1.1 SMOKE概要
社区已经开发了先进的空气质量模型(air quality models,AQMs),以了解气象、排放源(人为源和生物源)以及污染物在化学和动力学之间的相互作用。来自排放源模型和监管清单的排放源数据是这些空气质量模型最重要的输入文件之一。科学家将空气质量模型用于许多目的:包括州和联邦环境实施计划的制定、改进建模方法的研究、以及近期的空气质量预测。在所有这些应用中,研究趋势都是以更精细的网格分辨率、更完整的排放源和研究对象(例如臭氧、颗粒物、有毒物质),对更大的区域进行建模。而这些需求需要可以高效计算、用户友好且灵活的排放源数据处理系统。
MCNC环境建模... |
Markdown | UTF-8 | 821 | 2.640625 | 3 | [] | no_license | # Submissão de Exercicio
**Exercicio:** 4 - Cifra de César
**Nickname:** Clerijr
**Nível Técnico:** Estudante
**Twitter**: https://twitter.com/clerijr
**Dificuldade de Resolução:** Média
**Gostaria ainda de adicionar:** Um exercício muito bom, que acredito que existam diversas outras formas de realizá-lo. Utilize... |
JavaScript | UTF-8 | 2,614 | 2.515625 | 3 | [] | no_license | import React, { Component } from "react";
import api from "../../../api/api_board";
import { Link } from "react-router-dom";
import Container from "@material-ui/core/Container";
import Paper from "@material-ui/core/Paper";
class RecruitUpdate extends Component {
state = {
title: "",
body: "",
purpose: "... |
Markdown | UTF-8 | 1,911 | 2.921875 | 3 | [
"MIT"
] | permissive | # OngairRuby
Ruby gem for using Ongair to to interact with WhatsApp; send messages, send media, add contacts, create groups, create lists, send broadcasts and many more.
## Installation
Add this line to your application's Gemfile:
gem 'ongair_ruby'
And then execute:
$ bundle
Or install it yourself as:
... |
Java | UTF-8 | 1,332 | 2.1875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package em.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import em.domain.Jgpush;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class JgpushSv... |
PHP | UTF-8 | 788 | 2.5625 | 3 | [] | no_license | <html>
<head>
<title>Data Download</title>
</head>
<body>
<h2 align="center">Data Download</h2>
<a href="form_upload.php">Upload File</a>
<table align="center" border="1px"; width="800px" >
<tr>
<th>No</th>
<th>Nama File</th>
<th>Tanggal</th>
<th>Tipe File</th>
<th>Ukuran</th>
<th>Aksi</th>
... |
PHP | UTF-8 | 7,186 | 2.984375 | 3 | [] | no_license | <?php
namespace ryunosuke\Functions\Package;
// @codeCoverageIgnoreStart
require_once __DIR__ . '/../utility/function_configure.php';
// @codeCoverageIgnoreEnd
/**
* 変数をリソースのように扱えるファイルポインタを返す
*
* 得られたファイルポインタに fread すれば変数の値が見えるし、 fwrite すれば変数の値が書き換わる。
* 逆に変数を書き換えればファイルポインタで得られる値も書き換わる。
*
* 用途は主にテスト用。
* 例えば「何らか... |
Java | UTF-8 | 7,159 | 1.828125 | 2 | [] | no_license | package com.anning423.mibandapp.device;
import android.app.Activity;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.Servi... |
C# | UTF-8 | 2,968 | 2.53125 | 3 | [] | no_license | using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataLibrary.DTO;
namespace DataLibrary.DAO
{
public class ThuViecDAO
{
TuyenDungModels db = new TuyenDungModels();
private ThuViecDAO() { }
priva... |
Markdown | UTF-8 | 575 | 3.421875 | 3 | [] | no_license | # predict-age-after-100-years
predict age after 100 years and an input year using python
Your Age In 2090
Take age or year or birth as an input from the user and tell them when they will turn 100 years old.(5 points) Don’t use any type of module like datetime or dateutils(-5 points).
They can then optionally provide... |
Java | UTF-8 | 5,914 | 2.375 | 2 | [] | no_license | package com.example.yash.registerlogin;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.uti... |
Swift | UTF-8 | 718 | 2.796875 | 3 | [] | no_license | //
// TaskModel.swift
// todoloc WatchKit Extension
//
// Created by Jean-Christophe MELIKIAN on 20/01/2018.
// Copyright © 2018 Nico. All rights reserved.
//
import Foundation
public class TaskModel: Codable {
var id: String = ""
var name: String = ""
var detail: String = ""
var finished: Bool = ... |
TypeScript | UTF-8 | 1,351 | 2.921875 | 3 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | import {lazy, ILazyParams, ILazyComponent} from './lazy';
const wait = (loader, delay) => new Promise((resolve) =>
setTimeout(() => resolve(loader()), delay)
);
const RIC = (window as any).requestIdleCallback || ((callback) => setTimeout(callback, 300));
const PRIC = (loader) => new Promise((resolve) => RIC(() => ... |
JavaScript | UTF-8 | 2,543 | 2.75 | 3 | [] | no_license | import {GET_STUDENT_WITH_BRANCH_FAIL,GET_STUDENT_WITH_BRANCH_SUCCESS,
GET_STUDENT_FAIL,GET_STUDENT,GET_SINGLE_STUDENT,
SET_ATTENDANCE,SET_ATTENDANCE_FAIL,SORT_STUDENT_BY_BRANCH,SORT_STUDENT_FAIL_BRANCH, SEARCH_STUDENT,SEARCH_STUDENT_FAIL,SEARCH_STUDENT_FAIL_BRANCH, SEARCH_STUDENT_BY_BRANCH} from "./../actions... |
Rust | UTF-8 | 2,733 | 3.265625 | 3 | [] | no_license | use crate::projects_and_tasks::{
list_with_names::ListWithNames,
project::{Project, ProjectWithTasks},
project_error::ProjectError,
task::Task,
};
#[derive(Debug, PartialEq)]
pub struct Projects {
projects: Vec<ProjectWithTasks>,
}
impl ListWithNames<ProjectWithTasks> for Projects {
fn items(&... |
C++ | UTF-8 | 1,542 | 3.46875 | 3 | [] | no_license | // vegnews.cpp -- using new and delete with classes
// compile with strngbad.cpp
#include <iostream>
using std::cout;
#include "string1.h"
void callme1(String &); // pass by reference
void callme2(String); // pass by value
int main()
{
using std::endl;
{
cout << "Sta... |
Markdown | UTF-8 | 1,495 | 3.125 | 3 | [] | no_license | # React Google Maps Example
I created this little web app in order to learn react and google map API. It provides a query box and and then calls the Places Library for Google Maps.
Results are formatted to give a good user experience.
The app includes:
1. A map with location markers/pins
2. A list of locations, ... |
Java | UTF-8 | 2,216 | 2.546875 | 3 | [] | no_license | package com.psi_stud.arturas.ggdb;
import android.os.StrictMode;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.LinkedList;
/**
* Created by Arturas on 2015-12-16.
*/
public class Game {
private int gameID;
private String na... |
Java | UTF-8 | 279 | 1.859375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author shital
*/
import java.awt.*;
import javax.swing.*;
public class hell extends JApplet{
Label l = new Label("heelo this is me your shital");
}
|
SQL | UTF-8 | 3,385 | 3.515625 | 4 | [] | no_license | set serveroutput on;
set verify off;
-- QUESTION 2a
create or replace procedure generate_multiplication_table_for
(usr_input number)
as
small_buff varchar(10);
large_buff varchar(20);
begin
if (usr_input < 1 OR usr_input > 10) then
dbms_output.put_line('Please enter a value between 1 and 10.');
retu... |
Java | UTF-8 | 41,919 | 1.625 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 by Norman Fomferra (https://github.com/forman) and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction... |
Shell | UTF-8 | 500 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# MidoNet repo
MIDONET_REPO=${MIDONET_REPO:-http://github.com/midonet/midonet.git}
MIDONET_BRANCH=${MIDONET_BRANCH:-master}
MIDONET_DIR=${MIDONET_DIR:-$DEST/midonet}
# MidoNet service endpoint configuration
MIDONET_API_PORT=${MIDONET_API_PORT:-8081}
MIDONET_SERVICE_PROTOCOL=${MIDONET_SERVICE_PROTOCOL:-$SE... |
Java | UTF-8 | 6,329 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.text.write.tables.settings.creation;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EnumSource;
imp... |
TypeScript | UTF-8 | 598 | 2.953125 | 3 | [
"MIT"
] | permissive | import {
PHASE_TRANSITION,
CHANGE_MODE,
SystemState,
SystemActionTypes,
Phase,
Mode
} from "./types";
const initialState: SystemState = {
phase: Phase.NEW,
mode: Mode.LIGHT
};
export function systemReducer(
state = initialState,
action: SystemActionTypes
): SystemState {
switch (action.type) {
... |
Markdown | UTF-8 | 3,844 | 2.75 | 3 | [
"CC0-1.0"
] | permissive | # MongoDB - Aula 02 - Exercício
autor: Alison Monteiro
## Crie uma database chamada be-mean-pokemons;
```
MacBook-Pro-de-Alison-monteiro(mongod-3.0.6) be-mean-pokemons> use be-mean-pokemons
switched to db be-mean-pokemons
```
## 2. Liste quais databases você possui nesse servidor;
```
MacBook-Pro-de-Alison-monteir... |
C | UTF-8 | 4,041 | 3.09375 | 3 | [] | no_license |
#include "functions.h"
/* initialize foreground-only mode to false */
int foreground_only = 0;
/* expand '$$' in command into process ID of the shell
several lines adapted from https://www.linuxquestions.org/questions/programming-9/replace-a-substring-with-another-string-in-c-170076/ */
void expandPID(char co... |
Markdown | UTF-8 | 524 | 2.9375 | 3 | [
"MIT"
] | permissive | ## CN
简单 LRU 缓存。
### constructor
|参数名|说明|
|-----|---|
|max|最大缓存数|
### has
检查是否有缓存。
|参数名|说明|
|-----|---|
|key|缓存键名|
|返回值|如果有,返回真|
### remove
删除缓存。
|参数名|说明|
|-----|---|
|key|缓存键名|
### get
获取缓存。
|参数名|说明|
|-----|---|
|key|缓存键名|
|返回值|缓存值|
### set
设置缓存。
|参数名|说明|
|-----|---|
|key|缓存键名|
|val|缓存值|
### clear
清除所... |
Markdown | UTF-8 | 503 | 2.53125 | 3 | [] | no_license | layout 也就是 UI 组件的接口
无样式文件,有样式接口
它们的实现在 themes 文件夹
写作约定:
组件元素名应当和class名一致
example:
```
let main = E().P({
className: C(
appearance.main,
),
disabled: props.ifDisabled,
});
```
Button 中,你可以看到 `let main = ...`, `appearance.main` 两处用了同样的名称 "main"
为什么这样做?
为了让你看到 layout 就知道... |
Java | UTF-8 | 1,948 | 1.867188 | 2 | [] | no_license | package cn.tyyhoa.dao;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import cn.tyyhoa.pojo.OaRlzybInterview;
public interface OaRlzybInterviewMapper {
int deleteByPrimaryKey(Integer interview_id);
int insert(OaRlzybInterview record);
int insert... |
C | UTF-8 | 231 | 2.609375 | 3 | [] | no_license | typedef unsigned long size_t;
extern void *memset(void *s, int c, size_t n);
int main (){
char str[50] = "This is string.h library function";
char* str1 = memset(str,'$',7);
ASSERT(str1[3] == '$' && str[2] == '$');
return 0;
} |
Markdown | UTF-8 | 1,629 | 2.796875 | 3 | [] | no_license | ---
layout: default
title: About
permalink: /about/
---
<img src="{{ '/assets/images/KQM.svg' | relative_url }}" alt="KQM logo" width="50%" height="auto" align="right">
# Stimulans til diskusjon og samarbeidslæring i matematikk
**Prosjekt**: P34/2017 i [Norgesuniversitetet][Norgesuniversitetet].
Quiz, i ulike varian... |
Java | UTF-8 | 8,734 | 2.578125 | 3 | [] | no_license | package generators.maths.northwestcornerrule;
import generators.maths.northwestcornerrule.views.CodeView;
import generators.maths.northwestcornerrule.views.GridView;
import generators.maths.northwestcornerrule.views.VariableView;
import interactionsupport.models.FillInBlanksQuestionModel;
import java.awt.Color... |
C++ | UTF-8 | 138 | 2.53125 | 3 | [
"MIT"
] | permissive | #include <sensor.h>
void Sensor::setReading(double reading) { m_reading = reading; }
double Sensor::reading() const { return m_reading; }
|
Markdown | UTF-8 | 696 | 2.703125 | 3 | [] | no_license | # Dashboards
There are various dashboarding tools and experiences, below are a few mockups.
Her is a nice blog showcasing a few of them https://www.datarevenue.com/en-blog/data-dashboarding-streamlit-vs-dash-vs-shiny-vs-voila#:~:text=Streamlit%20is%20a%20full%20data%20dashboarding%20solution%2C%20while,develop%20code%... |
Markdown | UTF-8 | 823 | 2.890625 | 3 | [] | no_license | ## Processing non-ending text
In previous chapters we saw how to process a document with FreeLing. The text was first read into a string, and then processed by each of the required modules.
But in some scenarios it is not possible to load a whole document into a string \(e.g. when the document is very long\), or we ma... |
Java | UTF-8 | 2,780 | 3.46875 | 3 | [] | no_license | //package algorithm;
//
///**
// * @author xiaoqi.zyq@alibaba-inc.com
// * @date 2019/08/19
// */
//public class LongestPalindromicSubstring {
//
// public static void main(String[] args) {
// String aba = new LongestPalindromicSubstring().longestPalindrome("babad");
// System.out.println(aba);
// }... |
C# | UTF-8 | 2,541 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | namespace Web.DataModels
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using Model;
public class GameDetailedOutputDataModel
{
public GameDetailedOutputDataModel()
{
this.YourGuesses = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.