text stringlengths 9 7.52M |
|---|
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Feb 29 20:13:41 2020
@author: rian-van-den-ander
"""
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.ensemble import RandomForestClassifier
df = pd.read_c... |
1
JEE Main 2022 (Online) 26th July Morning Shift
+4
-1
Let f : R $$\to$$ R be a continuous function such that $$f(3x) - f(x) = x$$. If $$f(8) = 7$$, then $$f(14)$$ is equal to :
A
4
B
10
C
11
D
16
2
JEE Main 2022 (Online) 26th July Morning Shift
+4
-1
If the function $$f(x) = \left\{ {\matrix{ {{{{{\log }_e}(1 - x +... |
No. 24; Updated March 2011
Click here to download and print a PDF version of this document.
Parents are usually the first to recognize that their child has a problem with emotions or behavior. Still, the decision to seek professional help can be difficult and painful for a parent. The first step is to gently try to tal... |
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 14 01:52:14 2020
@author: Sourabh
"""
import pandas as pd
file=r'C:\Users\mahesh\Desktop\Python Assign\Data.csv'
df=pd.read_csv(file)
print(df)
print("----------------------------------------------------")
#Find Male Employee
print("MALE EMPLOYEE")
male = df.loc[(df['... |
package com.pigcanfly.leetcoding.s442;
import java.util.ArrayList;
import java.util.List;
/**
* @author tobbyquinn
* @date 2019/11/29
*/
public class FindAllDuplicatesinanArray {
public List<Integer> findDuplicates(int[] nums) {
int left = 0;
while (left < nums.length) {
if (nums[le... |
## Course syllabus
MVE155 / MSG200 Statistical inference (7.5 hp) 2021
Course is offered by the department of Mathematical Sciences
Serik Sagitov
### Course purpose
"Statistical Inference" is a second course in mathematical statistics suitable for students with different backgrounds. A main prerequisite is an intr... |
package app.core;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import app.core.login.Logi... |
import * as _ from "lodash";
export class StringPoc {
public test() {
this.camelCaseFunc();
}
public camelCaseFunc() {
_.camelCase("Foo Bar");
// => 'fooBar'
_.camelCase("--foo-bar--");
// => 'fooBar'
_.camelCase("__FOO_BAR__");
// => 'fooBar'
... |
December, 1971 [Etext #1]
The Project Gutenberg Etext of The Declaration of Independence.
All of the original Project Gutenberg Etexts from the
1970's were produced in ALL CAPS, no lower case. The
computers we used then didn't have lower case at all.
This is a retranscription of one of the first Project
Gutenber... |
namespace SRF
{
using System.Collections.Generic;
using UnityEngine;
public static class SRFTransformExtensions
{
public static IEnumerable<Transform> GetChildren(this Transform t)
{
var i = 0;
while (i < t.childCount)
{
yield return... |
#ifndef _COMPUTER_HPP
#define _COMPUTER_HPP
#include "player.hpp"
class Computer : public Player
{
public:
int x;
int y;
int xPiece;
int yPiece;
bool makeMove(int x, int y, Board* board){return false;}
bool select(int x, int y, Board* board){return false;}
void makeMove(s... |
package objects_classes_methods.labs;
import java.awt.*;
/**
* Objects, Classes and Methods Exercise 4:
*
* Demonstrate method overloading with at least three overloaded methods.
*
*/
class Overload{
public void makePost(String text){
//Makes a post containing only text.
}
public void mak... |
#include <algorithm>
#include "truck.h"
#include "MPRNG.h"
#include <iostream>
using namespace std;
extern MPRNG mprng;
Truck::Truck( Printer & prt, NameServer & nameServer, BottlingPlant & plant, unsigned int numVendingMachines, unsigned int maxStockPerFlavour ) :
printer(prt),
nameServer(nameServer),
... |
from abc import ABCMeta, abstractmethod
import numpy as np
class LossFunction:
__metaclass__ = ABCMeta
@abstractmethod
def __init__(self, **kwargs):
pass
@abstractmethod
def loss(self, edges_batch, distance_info):
return 0.
@abstractmethod
def loss_gradient(self, edges_... |
public void UpdateCategory(Category category)
{
using (var Context = new AppDbContext())
{
Context.Entry(category).State = System.Data.Entity.EntityState.Modified;
Context.SaveChanges();
}
}
-> you use two different `DbContext`'s together (which can cause problems with change tracking)!
**Solution:... |
package com.github.TKnudsen.infoVis.view.painters.string;
import com.github.TKnudsen.infoVis.view.frames.SVGFrame;
import com.github.TKnudsen.infoVis.view.frames.SVGFrameTools;
import com.github.TKnudsen.infoVis.view.painters.grid.Grid2DPainterPainter;
import com.github.TKnudsen.infoVis.view.painters.string.Strin... |
function toStringSet(thing: unknown): Set<string> {
const set = new Set<string>();
if (Array.isArray(thing)) {
for (const item of thing) {
if (typeof item === 'string') {
set.add(item);
}
}
}
return set;
}
export { toStringSet };
|
package com.projectx.sdk.user.impl;
public class LoginCredentials {
String login;
String password;
public LoginCredentials() {
}
public LoginCredentials(String login, String password ) {
setLogin( login );
setPassword( password );
}
public String getLogin() {
return login;
}
public void setLogin(St... |
# Iterative Apprach
def gcdIter(a, b):
'''
a, b: positive integers
returns: a positive integer, the greatest common divisor of a & b.
'''
# Your code here
min = 0
if a < b:
min = a
max = b
else:
min = b
max = a
for i in range(min,0,... |
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace HelloWorldFromDB
{
public class HelloWorldRepositoryContext : DbContext
{
public DbSet<Messages> Messages { get; set; }
public HelloWorldRepositoryContext(DbContextOptions<HelloWorldR... |
tags: read
title: 《RESTful Web APIs中文版》-目录
### 第1 章 网上冲浪 1
场景1 :广告牌 2
资源和表述 2
可寻址性 3
场景2 :主页 3
短会话(Short Session) 5
自描述消息(self-descriptive message) 5
场景3 :链接 6
标准方法 8
场景4 :表单和重定向 9
应用状态(Application State) 11
资源状态(resource state) 12
连通性(connectedness) 13
与众不同的Web 14
Web API 落后于Web 15
语义挑战... |
package training.concurrency.ex_3.cache;
import net.jcip.annotations.ThreadSafe;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.ExecutionException;
import static ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace PbrResourceUtils.Model
{
public static class SegmentedCylinder
{
//All directions are assumed to be normalized
public class Segment
{
... |
# Activity 79 Analysis Questions
## Presentation on theme: "Activity 79 Analysis Questions"— Presentation transcript:
Activity 79 Analysis Questions
Describe the changes in direction and speed of the marble when they’re inside the circular track? The marbles’ direction changed constantly inside the circular track bec... |
Algorithm
B. Shooting
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Recently Vasya decided to improve his pistol shooting skills. Today his coach offered him the following exercise. He placed n cans in a row on a table. Cans are numbered from left to righ... |
Page 1 of 2
Automotive dual battery question
Posted: Tue Feb 24, 2004 8:30 am
I have a diesel pick-up with dual 750 CCA batteries wired in parallel. The passenger side battery has a 2/0 cable running directly to the starter. The drivers side battery is connected to the pass. battery thru a 5 foot length of 4 gauge wi... |
Previous abstract Next abstract
Session 40 - The Interstellar Medium.
Display session, Tuesday, June 09
Gamma Ray Burst (GRB) explosions can make kpc-size shells and holes in the interstellar media (ISM) of spiral galaxies if much of the energy heats the local gas to above 10^7 K. Disk blowout is probably the major cau... |
Question: How is bipolar disorder different from unipolar depression or 'regular' depression?
Answer: Both bipolar disorder and major depression are typically associated with depressive episodes. So both illnesses are accompanied by depressions. The difference is that in bipolar disorder people also have periods of ele... |
Making the Case for Action
This fact sheet(pdf) and slide deck provide essential state-specific information that addresses the economic imperative, the equity imperative, and the expectations imperative of the college- and career-ready agenda. These resources can be used on their own or serve as the foundation for a pe... |
<?php
$currentLocation = "";
// ---------------------------------------------------------------------------------------------------------------------
// Here comes your script for loading from the database.
// ------------------------------------------------------------------------------------------------------... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 1,077