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
C#
UTF-8
10,371
3.046875
3
[]
no_license
using Model.Entity; using System; using System.Collections.Generic; using System.Data.SqlClient; namespace Model.Dao { public class AtendenteDao : ICrud<Atendente> //Realiza uma interface que recebe a classe atendente { //Objetos de conexão com banco de dados private ConexaoDB objConexaoDB; ...
Java
UTF-8
3,708
2.015625
2
[]
no_license
/* * 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 gui; import client.Chucnang; import client.G; /** * * @author minhduc */ public class Nhomchuathamgia extends javax.swing....
C++
UTF-8
18,657
2.53125
3
[ "MIT" ]
permissive
#include <list> #include <optional> #include <spdlog/fmt/fmt.h> #include "kaacore/easings.h" #include "kaacore/exceptions.h" #include "kaacore/log.h" #include "kaacore/nodes.h" #include "kaacore/transitions.h" namespace kaacore { TransitionWarping::TransitionWarping(uint32_t loops, bool back_and_forth) : loops...
Swift
UTF-8
631
2.609375
3
[]
no_license
// // MessageInputView.swift // playground // // Created by dsxs on 2019/03/30. // Copyright © 2019 dsxs. All rights reserved. // import UIKit class MessageInputView: UIView { @IBOutlet weak var textField: UITextField! var onNewMessage: ((String) ->Void)? { didSet { } } o...
PHP
UTF-8
486
2.71875
3
[ "0BSD", "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace App\Comment\Application\Command; use App\Shared\Application\Command\AbstractCommand; final class DeleteCommentCommand extends AbstractCommand { private int $commentId; public function __construct(int $commentId, int $userId, int $occurredOn) { parent::__...
TypeScript
UTF-8
2,467
2.921875
3
[]
no_license
import { getOptions, getTextures } from './level-mapping'; import levelsOriginCode from './level-config'; type optionType = { width?: number; height?: number; texture: { default: { sx: number, sy: number, sWidth: number, sHeight: number }, [k: string]: any } }; function get...
JavaScript
UTF-8
241
2.828125
3
[]
no_license
export const addImage = (image) => { const img = document.createElement("img"); img.src = image; img.style.width = "50%"; img.style.height = "auto"; img.style.margin = "auto"; document.querySelector("body").appendChild(img); };
Java
UTF-8
681
2.90625
3
[]
no_license
package com.zhangshixu.java.demo.designpattern.creation.factory.v1; import com.zhangshixu.java.demo.designpattern.creation.factory.v0.Circle; import com.zhangshixu.java.demo.designpattern.creation.factory.v0.Rectangle; import com.zhangshixu.java.demo.designpattern.creation.factory.v0.Shape; /** * This is {@link Main...
C#
UTF-8
5,720
2.671875
3
[ "MIT" ]
permissive
using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; namespace Horsesoft.Horsify.Resource.Windows.CustomControls { public partial class RatingControl : Control { public RatingControl() { } static RatingControl() { ...
Markdown
UTF-8
986
2.984375
3
[]
no_license
Nicholas Vrontakis, Patrick Kwong, and Cas Donoghue # CS325-400 Group 31 Project 2 README ## Running the Program 1. Put the makeChange.py program file in the same directory as your input file. 2. Run makeChange.py on the command line with your specific [input filename].txt ``` python makeChange.py Amount.txt ...
Java
UTF-8
768
3.671875
4
[]
no_license
interface VehicleDispInfo{ void vehicleDisplay(); } class Vehicle implements VehicleDispInfo{ public void vehicleDisplay(){ final String regNo = "TN04102021"; final String vehicleNo = "TN-21-2108"; String vehicleType = "2 Tyre"; System.out.println("Vehicle Registration Number is "+regNo+"\n"); Sy...
Python
UTF-8
2,069
2.6875
3
[]
no_license
import threading from datetime import datetime from django.core.cache import cache import time class CacheLock: def __init__(self, key, default=[], timeout=5): t = datetime.now().strftime('%s') thread_id = threading.current_thread().ident sign = "{}_{}".format(t, thread_id) self.sig...
Markdown
UTF-8
807
3
3
[ "Apache-2.0" ]
permissive
# Tensorflow.js Regression An online canvas where we can interactively work with different types of Regression and two different types of Optimizer is along with it. <br> Types of regression: <br> 1. Linear Regression https://en.wikipedia.org/wiki/Linear_regression 2. Binomial Regression https://en.wikipedia.org/wiki/B...
C#
UTF-8
1,904
3.703125
4
[]
no_license
using System; using System.Collections; using System.Collections.Generic; namespace ConsoleAppCodingPractice.Concepts { /// <summary> /// Check that string is balanced /// [{()}] = balanced string /// [{)} = not balanced string /// </summary> class BalancedString : IStartMain { pub...
Python
UTF-8
2,109
2.65625
3
[]
no_license
from flask_restful import Resource, reqparse from models.usuario import UserModel from flask_jwt_extended import create_access_token, jwt_required, get_raw_jwt from werkzeug.security import safe_str_cmp from blacklist import BLACKLIST attributes = reqparse.RequestParser() attributes.add_argument('login', type=str, req...
Java
UTF-8
106,864
1.59375
2
[]
no_license
/* * Copyright 2003-2010 Tufts University Licensed under the * Educational Community 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.osedu.org/licenses/ECL-2.0 * * Unless required by applicable la...
C++
UTF-8
498
2.703125
3
[ "MIT" ]
permissive
#pragma once #include <QWidget> class TrackingColor : public QWidget { Q_OBJECT public: TrackingColor() : _trackingColor(QColor::fromHsv(303,255,255)) {} // 303 pink, 143 green void paintEvent(QPaintEvent* /*event*/) override; QColor const & GetColor(){return _trackingColor;} void SetHue(int hue...
Shell
UTF-8
279
3.390625
3
[]
no_license
#!/bin/bash echo -e "Today’s date is: \c" date echo -e "\nThe people logged into the system include:" who echo -e "\nWould you like to see the contents of /?(y/n)-->\c" read ANSWER if [ $ANSWER = "y" ]; then echo -e "\nThe contents of the / directory are:" ls -F / fi
Shell
UTF-8
326
2.734375
3
[]
no_license
#!/bin/bash # *** Usage: ./gen.py <number_of_airports> <density> <min f/od> <max f/od> <max_hops> <alfa_error> # Ex: ./gen.py 10 100 1 3 4 2 for n in 4; do echo "generating instance with $n airports" ./gen.py $n 100 1 2 4 5 mkdir $n mv *.csv ./$n/...
C++
UTF-8
1,074
3.171875
3
[]
no_license
#include <iostream> # include <string> # include <vector> using namespace std; void prefix_func(const string &str, vector<int> &z) { z.resize(str.size()); z[0] = 0; for (int i=1;i<z.size();++i) { int pos = z[i-1]; while (pos > 0 && str[pos] != str[i]) pos = z[pos-1]; z[...
Shell
UTF-8
181
3.375
3
[]
no_license
#!/bin/bash echo “To compute the sum” num=$1 sum=0 while [ $num -gt 0 ] do rem=`expr $num % 10` num=`expr $num / 10` sum=`expr $rem + $sum` done echo “The result is $sum”
Markdown
UTF-8
1,162
2.609375
3
[]
no_license
--- copyright: years: 2015, 2017 lastupdated: "2017-11-16" --- {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:new_window: target="_blank"} {:tip: .tip} # Working with users {: #iamusermanage} Depending on the access options that you are authorized to manage, you can view and manage user...
Java
WINDOWS-1252
2,485
2.71875
3
[]
no_license
package apps.projectmanagement.component.staffnode; import java.awt.Color; import java.awt.Font; import java.util.List; import synergynetframework.appsystem.contentsystem.items.utils.IDrawableContent; import com.jmex.awt.swingui.ImageGraphics; /** * The Class StaffNodeDrawableContent. */ public class...
PHP
UTF-8
2,949
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Http\Requests; use App\Repositories\ParseArchiveRepository; use App\Repositories\ParseCategoryRepository; use App\Repositories\ParseItemRepository; use App\Repositories\ParseMenuRepository; use App\Repositories\ParseSubCategoryReposito...
C#
UTF-8
883
2.859375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
using System.ComponentModel; using System.Runtime.Serialization; using System.ServiceModel; namespace TestWcfDto { // NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in Web.config. [ServiceContract] public interface IService1 { ...
C++
UTF-8
3,059
3.21875
3
[]
no_license
#pragma once #include <utility> #include <unordered_map> #include <fstream> /** * A mutable unordered bimap for std::wstring and int values */ class mutable_word_mapping { public: std::unordered_map<std::wstring, int> word_to_int_map; std::unordered_map<int, const std::wstring> int_to_word_map; mut...
Java
UTF-8
455
1.890625
2
[]
no_license
package com.lym.mechanical.dao.mapper; import com.lym.mechanical.bean.entity.PaymentDO; import org.springframework.stereotype.Component; @Component public interface PaymentDOMapper { int deleteByPrimaryKey(Integer id); int insert(PaymentDO record); int insertSelective(PaymentDO record); PaymentDO s...
Markdown
UTF-8
860
2.625
3
[]
no_license
- I spent 8 hours to finish this project. - I finished below stories: . Enter bill amount in a simpler way I introduced something more convenient instead of built-in keyboard view. . Enter tip rate via a Slider Slider has stop points (0%, 10%, 12%, 15%, 20%, 25%, 30%, 50%); i.e. you don't get 44%, whic...
C
UTF-8
1,355
3.03125
3
[]
no_license
#include "gbk.h" /** *findd - finds the number occurance of tof in str *@str: string to be searched *@tof: string to fid *Return: the number of times teh delimeter ocures */ int findd(char *str, char *tof) { char *tokenized = NULL, *new = NULL; int i = 0; if (_strlen(tof) > _strlen(str)) return (0); new = _...
Markdown
UTF-8
860
2.734375
3
[]
no_license
bulk_ttl_update ====================== An example script that that updates the TTL value for a list of hostnames. The input is through a CSV file containing the zone, owner, record type and new TTL (see example.csv). This script requires the [UltraDNS REST API Client](https://github.com/ultradns/python_rest_api_client...
Java
UTF-8
940
3.1875
3
[ "MIT" ]
permissive
import java.util.*; import static java.lang.Math.*; public class _10721_BarCodes { public static void main(String[] args) { String data = "7 4 3\n7 4 2"; String data2 = "7 1 3"; Scanner scanner = new Scanner(data); while(scanner.hasNext()){ int n = scanner.nextInt(); int k = scanner....
TypeScript
UTF-8
3,000
3.578125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/** * MHub Message class. */ /** * Headers are key-value pairs that carry meta-information * about a message. */ export interface Headers { [name: string]: string | boolean | number; } /** * Interface describing what a 'raw' object should look like * if it is to be converted to a Message using `Message.fromOb...
Java
UTF-8
523
2.09375
2
[]
no_license
package com.github.feedly.util; import android.content.Context; import com.github.feedlyclient.R; public class GetFeedlyCategories extends WebApiRequest { public GetFeedlyCategories(Context context, String categoryName, String numberFeeds) { super(context.getResources().getString(R.string.feedly_api_url), "GET...
Java
UTF-8
8,653
2.671875
3
[]
no_license
import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax....
Python
UTF-8
255
2.875
3
[]
no_license
import collections n, m = map(int, input().split()) a = list(map(int, input().split())) b = [0] * (n + 1) for i in range(n): b[i + 1] = b[i] + a[i] d = collections.Counter(x % m for x in b) ans = sum(v * (v - 1) // 2 for v in d.values()) print(ans)
Shell
UTF-8
566
3.6875
4
[]
no_license
#!/bin/sh # HDMI switcher: # 80: PIO10.0 - S1 SoC # 81: PIO10.1 - S2 HDMI in2 # 82: PIO10.2 - S3 HDMI in3 usage() { echo "Usage:" echo "${0##*/} input" echo -e "\tvalid inputs:" echo -e "\t\t0 - from SoC" echo -e "\t\t1 - hdmi in 2" echo -e "\t\t2 - hdmi in 3" } if [ -z "$1" ]; then usage exit 1 fi i...
JavaScript
UTF-8
6,158
2.515625
3
[]
no_license
import React, { Component } from "react"; import { Form, Select, Input, Button, } from 'antd'; import styled from 'styled-components'; import axios from 'axios'; const { TextArea } = Input; const Option = Select.Option; const Container = styled.div` margin: 0 auto; width: 50%; text-align:center; `; class Admi...
C++
UTF-8
666
3.03125
3
[]
no_license
#include "iostream" // #include "algorithm" #include "math.h" using namespace std; int main(){ int n; cout<<"\nEnter number of observations : "; cin>>n;cout<<endl; float x[n+1],x1 =0,mean=0; x[0]=0; cout<<"Enter X :"; for (int i = 1; i <=n; i++) { /* code */ ...
C#
UTF-8
3,000
2.984375
3
[ "MIT" ]
permissive
using System; using System.Collections.Generic; using System.Reactive.Disposables; using System.Reactive.Subjects; using System.Text; namespace slimCODE.Models { /// <summary> /// Holds a list of <see cref="ObservableValue{T}"/> accessible by name. /// </summary> public class ObservableValues : IObser...
Markdown
UTF-8
3,259
2.96875
3
[ "MIT" ]
permissive
# Game of Drones Conquer your enemy! ## **Synopsis** In Game of Drones there are two players trying to conquer each other. Players take turns to make their move, choosing Paper, Rock or Scissors. Each move beats another, just like the game “Paper, rock, scissors”. Like so: * Paper beats Rock * Rock beats scissors ...
Rust
UTF-8
860
2.609375
3
[]
no_license
use crate::node::Node; use crate::node_descriptor::{NodeDescriptor, NodeId}; use crate::slots::node_slot::NodeSlot; use std::fmt; pub struct RootNode { descriptor: NodeDescriptor, pub slot: NodeSlot, } impl Node for RootNode { fn new(id: NodeId) -> RootNode { let slot = NodeSlot::new("all_nodes");...
JavaScript
UTF-8
2,094
2.65625
3
[ "MIT" ]
permissive
var albnam=""; $(document.body).on('click', '#createAlbum', function(){ albname = $("#albumName").val(); if(albname == ""){ alert("please enter albumName"); } else { $("#txt").css("display", "none"); $("#albumName").css("display", "none"); $("#createAlbum").css("display", "none"); $("#albtxt...
Markdown
UTF-8
1,016
3.15625
3
[]
no_license
--- layout: page title: Meta-data manipulation comments: true permalink: /meta-data-manipulation/ --- # Inspecting data structures The _glimpse()_ function is a great alternative for the _str()_ function: is shows data-types in a compacter way, and the screen size is taken into consideration for the output. # Column ...
Java
UTF-8
382
2.1875
2
[]
no_license
package com.mindlin.jjsbridge.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Mark an object to hold a generated prototype * @author wfeehery17 */ @Retention(RetentionPolicy.RUNTIME) ...
Java
UTF-8
4,242
1.90625
2
[]
no_license
package com.example.abodimazen.ChildCare; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; i...
Java
UTF-8
3,355
2.59375
3
[]
no_license
package util; import Models.Alarm; import Models.Event; import Models.EventParticipant; import Models.Group; import interfaces.PersistencyInterface; import java.sql.SQLException; import java.util.ArrayList; import java.util.Date; public class Persistency extends PersistencyGetMethods implements PersistencyInterface ...
Java
UTF-8
1,280
2.734375
3
[ "Apache-2.0" ]
permissive
package application.view; import javafx.fxml.FXML; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.scene.paint.Color; public class Visualisointi extends Canvas { @FXML private Canvas canvas; private GraphicsContext gc; double i = 20; double j = 20; public Vis...
Java
UTF-8
1,032
3.0625
3
[]
no_license
package cars.truck_auto; public class Kia extends TruckAuto { private String countryOfProduction; private String model; public Kia(String engine, int liftingCapacity, String countryOfProduction, String model) { super(engine, liftingCapacity); this.countryOfProduction = countryOfProduction;...
TypeScript
UTF-8
108
2.65625
3
[ "MIT" ]
permissive
export const toTitleCase = (title: string) => { return title.charAt(0).toUpperCase() + title.slice(1); };
Java
UTF-8
496
2.109375
2
[]
no_license
package com.nicloud.workflowclient.tasklist.main; import com.nicloud.workflowclient.data.data.Task; /** * Created by logicmelody on 2016/1/29. */ public class TaskListItem { public Task task; public boolean showDueDate; public boolean showDueDateUnderline; public TaskListItem(Task task, boolean s...
Shell
UTF-8
3,047
3.390625
3
[]
no_license
#!/bin/bash function pause(){ read -p "Press [Enter] to continue" } export UNAME=`uname` echo Welcome to the opportunity to free your Thrive! echo Originally developed by TYBAR at the Thrive forums, echo this tool pushes several files onto your device, echo then flashes the unlocked bootloader, then echo installs t...
C
UTF-8
4,381
3.40625
3
[]
no_license
#include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include "image.h" float get_pixel(image im, int x, int y, int c) { // TODO Fill this in x = (x < 0) ? 0 : ((x >= im.w) ? im.w - 1 : x); y = (y < 0) ? 0 : ((y >= im.h) ? im.h - 1 : y); return im.data[x + y*im.w + c*im.w*im.h]...
C
UTF-8
710
3.46875
3
[]
no_license
//https://www.interviewbit.com/problems/add-one-to-number/ int* plusOne(int* A, int n1, int *len1) { int* arr=(int*)malloc(sizeof(int*)*(n1+1)); int i=0; int carry=1; for(i=n1-1;i>=0;i--) { arr[i+1]=A[i]+carry; carry=0; if(arr[i+1]>=10) { arr[i+1]=arr[i+1]...
Java
UTF-8
1,798
2.359375
2
[]
no_license
package com.example.mystudyapp.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView;...
JavaScript
UTF-8
1,607
3.390625
3
[]
no_license
/* * Constructor function for a WeatherWidget instance. * * container_element : a DOM element inside which the widget will place its UI * */ function WeatherWidget(container_element){ //declare the data properties of the object /** //declare an inner object literal to represent the widget's UI //write...
C
UTF-8
716
3.90625
4
[]
no_license
#include <stdio.h> int main( void ){ /* Step 1: Create two doubles with values 0.3 and 0.1 */ /* Step 2: Subtract 0.2 from the first double */ /* Step 3: Print both their values and register addresses to stdout using fprintf */ /* Step 4: Write a conditional statement if the two values are equal */ /* Step 5...
Java
UTF-8
283
1.65625
2
[ "MIT" ]
permissive
package dk.kleistsvendsen; import com.google.inject.AbstractModule; public class GameClockModule extends AbstractModule { @Override protected void configure() { bind(IGameTimer.class).to(GameTimer.class); bind(ITicSource.class).to(TicSource.class); } }
Java
UTF-8
1,056
2.078125
2
[]
no_license
/** * 版权声明:lion 版权所有 违者必究 2016 * Copyright: Copyright (c) 2016 * * @project_name: lion-rpc * @Title: EndpointFactory.java * @Package com.alacoder.lion.rpc * @Description: * @author jimmy.zhong * @date 2016年9月23日 上午10:36:40 * @version V1.0 */ package com.alacoder.lion.rpc; import com.alacoder.lion.common...
Java
UTF-8
2,479
2.703125
3
[]
no_license
package com.tryouts.chris2pple.myapplication; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; import java.util.List; import androidx.annotat...
Python
UTF-8
422
2.6875
3
[]
no_license
# -*- coding:utf-8 _*_ class Solution: def grayCode(self, n): """ :type n: int :rtype: List[int] """ if n==0: return [0] ans=[0] for i in range(n): add=pow(2,i) tem=[] for j in range(len(ans)-1,-1,-1): ...
C++
UTF-8
694
2.953125
3
[]
no_license
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include <set> using namespace std; int main(int argc, char** argv) { ifstream in(argv[1]); string line; while (getline(in, line)) { stringstream ss(line); string token; vector<string> tokens; set<i...
Java
UTF-8
498
2.1875
2
[]
no_license
package enterprises.orbital.impl.evexmlapi.map; import java.util.ArrayList; import java.util.List; import enterprises.orbital.evexmlapi.map.IFacWarSystem; import enterprises.orbital.impl.evexmlapi.ApiResponse; public class FacWarSystemsResponse extends ApiResponse { private final List<IFacWarSystem> systems = new ...
Python
UTF-8
720
3
3
[]
no_license
import sys if __name__ == '__main__': T = int(sys.stdin.readline()); cases = 1 while T != 0: T -= 1 input = sys.stdin.readline().split() K, C, S = map(int, input[0:3]) if (K + C - 1) / C > S: output = 'Case #{0}: {1}'.format(cases, 'IMPOSSIBLE') print(output) cases += 1 conti...
Python
UTF-8
524
3.875
4
[]
no_license
""" Create a solution that checks if a given string contains a sub-string pattern repeated multiple times to return `True` or `False`. ### Examples repeated("a") ➞ False repeated("ababab") ➞ True repeated("aba") ➞ False repeated("abcabcabcabc") ➞ True repeated("aaxxtaaxztaax...
Python
UTF-8
1,319
2.9375
3
[]
no_license
#!/usr/bin/env python3 """Program that performs the backward algorithm for a hidden markov model""" import numpy as np def backward(Observation, Emission, Transition, Initial): """Function that performs the backward algorithm for a hidden markov model""" if type(Observation) is not np.ndarray or len(Obser...
JavaScript
UTF-8
801
2.578125
3
[]
no_license
function Props({ posts }) { return ( <div> <div style={{ margin: '1rem' }}> 이 페이지는 전달 받은 params가 없습니다. </div> {posts.map((post, idx) => ( <div key={idx} style={{ margin: '1rem' }}> {post} </div> ))} </div> ); } export async function getStaticPaths() { return { paths: [ { //...
Markdown
UTF-8
1,152
3.8125
4
[]
no_license
# Promise ## the Constructor * The constructor of the Promise object takes a function * This function receives two arguments: resolve, and reject ``` const myPromise = new Promise((resolve, reject) => { ... }) ``` ## the Value * The promise value represents its status which can be “rejected”, “fulfilled”, or...
C
ISO-8859-1
3,284
3.65625
4
[]
no_license
#include<stdio.h> #include<stdlib.h> #include<string.h> //Gustavo da Silva Braghin //uc19201375 struct tabelaHash { int codigo; // chave de ordenao char descricao[30]; }hash[10]; //*** MENU ******************************************************* int menu(void) { int op; printf("\n\n*** MEN...
Markdown
UTF-8
783
2.953125
3
[]
no_license
# UFO ## Overview of Project The purpose of this project was to create a webpage with a dynamic table to provide UFO sighting analysis as filtered by the user. This dynamic table allows for multiple filter inputs for a more robust analysis. ## Results The user can input analysis criteria into any of the 5 created fi...
Python
UTF-8
2,682
3.09375
3
[ "MIT" ]
permissive
from abstract_view import AbstractView class ZoneView(AbstractView): __offset = None __length = None __range_dictionary = None def __init__(self, range_dictionary, start, end): self.__range_dictionary = range_dictionary self.__offset = start self.__length = end - start ...
Python
UTF-8
4,958
2.890625
3
[ "MIT" ]
permissive
import pygame import game_functions as func class Settings(): """A class to store all settings for Space Invaders.""" def __init__(self): """Initialize game settings.""" # Screen settings self.screen_width = 768 self.screen_height = 672 self.caption = "Space Invaders" # FPS settings self.fps ...
Python
UTF-8
868
3.28125
3
[]
no_license
n=int(input()) arr=[list(map(int,input().split())) for _ in range(n)] white,blue=0,0 def recursiveDC(y,x,n): global white,blue #첫 컬러 지정. color=arr[y][x] check=True for i in range(y,y+n): #이미 어긋난 숫자가 있어서 뒤까지 살피는건 무의미. 그래서 for문 탈출 if not check: break ...
Java
UTF-8
846
1.960938
2
[]
no_license
package com.mvnikitin.itracker.rest.resources; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonRootName; import com.mvnikitin.itracker.rest.entities.UserEntity; import lombok.*; import org.springframework.hateoas.RepresentationModel; import org.springframework.hateoas.s...
Markdown
UTF-8
2,977
3.171875
3
[]
no_license
# Systems design interview questions ## Systems design interview tips When doing design questions in person be sure to **ask a lot of questions** before jumping in to writing a solution. Treat this interview as a conversation with the interviewer. While answering design questions you should cover: 1. **User interac...
C#
UTF-8
1,760
3.265625
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NetIMDB.Repository { public class MergedEnumerator<TModel>:IEnumerator<TModel> { IEnumerator<TModel>[] enumerators; int current_enumerator = 0; public Merge...
C++
UTF-8
6,551
2.515625
3
[ "MIT" ]
permissive
#include "StdAfx.h" #include "d3d11.h" #include "DirectXMath.h" #include "D3Dcompiler.h" #include "ColorShader.h" #include "ShaderResource.h" #include "Graphics\Mesh.h" #include "utils\assert.h" #include <stddef.h> ColorShader::ColorShader(void) { m_vertexShader = NULL; m_pixelShader = NULL; m_layout ...
Java
UTF-8
429
2.375
2
[]
no_license
package tion.ua.es; import java.util.Date; public class Periodico extends Publicacion{ private Date fecha; public Periodico(Date fecha) { super(); this.fecha = fecha; } public Periodico(String titulo, String autor, Date fecha) { super(titulo,autor); this.fecha = fecha; } public ...
C++
UTF-8
978
2.609375
3
[]
no_license
/* * SetShooterState.cpp * * Created on: Mar 6, 2017 * Author: Brin Harper */ #include "SetShooterState.h" #include "../Robot.h" SetShooterState::SetShooterState(int state, double duration, vector<shared_ptr<dependency>> dependencies, shared_ptr<Robot> robot) : Action (dependencies, robot), m_state(state),...
C#
UTF-8
4,876
2.828125
3
[]
no_license
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using GeoAPI.Geometries; using USGS.Puma.NTS.IO; using USGS.Puma.NTS.Features; using USGS.Puma.NTS.Geometries; namespace USGS.Puma.IO { /// <summary> /// Imports and exports ESRI shapefiles /// </summary...
C++
UTF-8
5,231
3.0625
3
[]
no_license
////////////////////////////////////////////////// // OLIVER LOGUSH // // 2015 // // DISPLAY DRIVER FOR A 32x32 RGB LED DISPLAY // // // // Version 1.0 // // ...
Python
UTF-8
365
2.8125
3
[]
no_license
#create date: 2020-06-29 13:18 import sys stdin = sys.stdin def ns(): return stdin.readline().rstrip() def ni(): return int(ns()) def na(): return list(map(int, stdin.readline().split())) def main(): n = ni() v = na() c = na() ans = 0 for vi, ci in zip(v, c): ans += max(0, vi-ci) prin...
Java
UTF-8
921
3.21875
3
[]
no_license
package com.linearsearch; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class DryWetClothes { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n =3; //sc.nextInt(); int m =3; //sc.nextInt(); int g =2; //sc.n...
Java
UTF-8
6,694
2
2
[]
no_license
package com.tooflya.bubblefun.managers; import android.annotation.TargetApi; import android.view.View; import com.google.ads.Ad; import com.google.ads.AdListener; import com.google.ads.AdRequest; import com.google.ads.AdRequest.ErrorCode; import com.google.ads.AdView; import com.tooflya.bubblefun.Game; import com.too...
Markdown
UTF-8
3,826
2.9375
3
[]
no_license
# Dockerfile Sirve para crear una imagen siguiendo una serie de instrucciones FROM: Para descargar una imagen: imagen : version_imagen ```shell FROM ubuntu:14.04 ``` RUN: Ejecutar comandos (apt-get, yum install) ENV: Para variables de entorno En este ejemmplo vemos como se inicia un servicio nginx con: ```shell roo...
Markdown
UTF-8
6,014
2.59375
3
[]
no_license
# OC对象原理下 ## 1. OC 对象的本质 ### 1.1 clang `clang` 是 LLVM 框架下 C/C++/Objective_C的编译器前端。 ```sh // 将 OC 源文件 重写为 C++ 源文件 clang --rewrite-objc main.m -o main.cpp ``` ### 1.2 OC类就是Struct ![](https://github.com/existorlive/existorlivepic/raw/master/%E6%88%AA%E5%B1%8F2021-04-21%20%E4%B8%8B%E5%8D%889.21.33.png) ![](https:...
Java
UTF-8
1,926
2.640625
3
[ "MIT" ]
permissive
package pl.mmorpg.prototype.server.objects.monsters.spells.objects; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.math.Vector2; import pl.mmorpg.prototype.server.communication.PacketsSender; import pl.mmorpg.prototype.server.objects.MovableGameObject; import pl.mmorpg.prototype.server.objects.mons...
Markdown
UTF-8
2,183
2.625
3
[]
no_license
{{Unreferenced|time=2013-04-25T12:11:53+00:00 }} '''水解'''是一种[[化工单元过程|化工单元过程]],是物質與水反應,利用水形成新的物质的过程。通常是指[[鹽類|鹽類]]的水解平衡。 ==無機物的水解== [[无机物|无机物]]在水中分解通常是双分解过程,属于[[复分解反应|复分解反应]]。[[水|水]]分子也被分解成[[氢离子|氢离子]]和[[氢氧根|氢氧根]],和被水解的物质残片结合形成新物质,如: *[[氯|氯气]]在水中分解,一个氯[[離子|離子]]和一个水被分解的[[氢離子|氢離子]]结合成[[盐酸|盐酸]],水分子的另一个氢氧根離子与另一个[[氯|氯]]離子结合成[...
Java
UTF-8
5,557
1.914063
2
[ "MIT" ]
permissive
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.exoplayer2.ui; import android.graphics.Bitmap; import android.os.Handler; // Referenced classes of package com.google.android....
Markdown
UTF-8
3,183
2.78125
3
[ "CC-BY-4.0", "MIT" ]
permissive
--- title: '配置组指标: Exchange 2013 Help' TOCTitle: 配置组指标 ms:assetid: 76ccd6a7-e2ec-42f4-9ab3-e8cc257ac896 ms:mtpsurl: https://technet.microsoft.com/zh-cn/library/JJ649327(v=EXCHG.150) ms:contentKeyID: 50490859 ms.date: 05/21/2018 mtps_version: v=EXCHG.150 ms.translationtype: MT --- # 配置组指标   _**适用于:**Exchange Server ...
Java
UTF-8
5,106
2.03125
2
[ "Apache-2.0" ]
permissive
package com.example.android.sunshine.app.wearable; import android.app.IntentService; import android.content.Intent; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.util.Log; import com.example.andro...
Python
UTF-8
258
3.640625
4
[]
no_license
list = [942,423,394,435,543,504] insert = int(input('can you insert a number here?: ')) #2. Create a for loop to test assumption: for index, num in enumerate(list): if num == insert: print ("Found") break else: print ("Not found")
Python
UTF-8
6,561
3.046875
3
[]
no_license
#try it out ----> http://www.codeskulptor.org/#user33_ybIjaqqMaO_15.py # Blackjack - with rules simplified a bit import simplegui import random # load card sprite - 949x392 - source: jfitz.com CARD_SIZE = (73, 98) CARD_CENTER = (36.5, 49) card_images = simplegui.load_image("http://commondatastorage.googleapis.com/cod...
C++
UTF-8
811
2.71875
3
[]
no_license
#include<iostream> using namespace std; int main() { int t; cin>>t; while(t--) { string output; cin>>output; int q; cin>>q; int count=0; while(q--) { int output_freq[26]={0}; for(int i=0; i<output.length(); i++) { out...
Java
UTF-8
1,190
3.4375
3
[]
no_license
package br.com.gatto.assessment; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.stream.IntStream; /** * The key to understanding this code is to notice that our thread ...
Java
UTF-8
1,916
2.5625
3
[ "MIT" ]
permissive
package com.tongming.manga.cusview; import android.graphics.Rect; import android.support.v7.widget.RecyclerView; import android.view.View; /** * Created by Tongming on 2016/8/11. */ public class SpaceItemDecoration extends RecyclerView.ItemDecoration { private int space; private boolean isGrid; public...
C
UTF-8
460
2.8125
3
[]
no_license
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> int main() { int open_file = 0; // buffer for writing to open_file char *write_buffer_open_file = "ABCDEFG"; char *read_from_scanf = (char *) malloc(sizeof(char)*7); if (writ...
C#
UTF-8
1,005
2.609375
3
[]
no_license
using System; using System.Windows.Forms; using System.Drawing; using System.Linq; using System.Collections.Generic; using NarouViewer.API; namespace NarouViewer { public class UniqueUserLabel : Label, INovelData { private NovelData _model; public NovelData model { set ...
C
UTF-8
858
3.390625
3
[]
no_license
typedef struct Snode { int data; Snode *next; }Snode,*PSnode; void BinaryAddOne(PSnode&L) { //链表表头到表尾依次为高位到低位 PSnode Temp, q, p, s; q = L->next; //遍历查找的头指针 p = L; s = NULL; //查找0位的标记指针 while (q) { if (q->data==0) s = q; //记录从最高位开始的最后一个0位的位置 q = q->next; } if (s) { s->data = 1; //记录的位置变为1 s ...
Java
GB18030
3,787
2.21875
2
[]
no_license
package com.imanager.consume.service.impl; import java.util.List; import com.imanager.consume.dao.IConsumeItemDao; import com.imanager.consume.dao.IConsumeTypeDao; import com.imanager.consume.domain.ConsumeItem; import com.imanager.consume.domain.ConsumeType; import com.imanager.consume.domain.input.ConsumeSe...
C++
UTF-8
6,899
3.109375
3
[ "Apache-2.0" ]
permissive
#include "constants.h" using namespace std; // convert coordinates from global to car (the car is always at 0,0). vector<double> global_to_car(double x, double y, double ref_x, double ref_y, double ref_yaw) { double shift_x = x - ref_x; double shift_y = y - ref_y; double x_car = shift_x * cos(0-ref_ya...