blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5506648e5839441f8042bcb8beadaa3a9c211d93 | ef0220b65d3ac860d33d77b6a8eef74d2df3b81b | /mod10/flask/venv/bin/wheel-3.8 | e1b86e3bb58c1e5edfcfb27af7a4be942b7afe75 | [] | no_license | safwanvk/py | b9922df211fe7f4356be3221c639cdd6d3dcf2d8 | 52482a90fb39f15846987607f1988c50f07e758b | refs/heads/master | 2022-12-12T12:21:51.335733 | 2020-09-07T08:21:49 | 2020-09-07T08:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | 8 | #!/home/safwan/xanthron/mod10/flask/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
42aaccadf80def0301c5a1a59bb6af0850cce386 | a2bdc6d7b3a1290ee7ec69244ddf9d445cb7b595 | /preprocessing/create_sentence_boundary_rstdt.py | 9e98aae2231e209e7d14f2f790f86d4f49386950 | [] | no_license | arne-cl/DiscourseConstituencyInduction-ViterbiEM | 5b7f303f781c67ee1a193ffe9a25355022c48e6b | 49ac7d9af9fa31e0796125576de815f2b8f3e833 | refs/heads/master | 2022-04-17T14:19:57.251851 | 2020-04-06T07:34:19 | 2020-04-06T07:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,787 | py | import os
import utils
def get_sentence_boundaries(path_tok, path_conll):
"""
:type path_tok: str
:type path_conll: str
:rtype: list of (int, int)
Compute sentence boundaries based on the tokenized file and the sentence-splitted file
"""
edus = read_edus(path_tok) # list of list of int
... | [
"norikinishida@gmail.com"
] | norikinishida@gmail.com |
63a9b43aa118f51f86d01d2e1b256268bcdf1754 | e8dde776a6315101b25bcbd749a3c569cadb992d | /Scrapy_gs/shiyan/shiyan/items.py | 02c51063b99a73367ff56098dd12b5b8a1b8143c | [] | no_license | lsaac128/shiyanlou-code | d415e6c77a356cc4f072113622973a07d3cac27b | 620d803167544336a93687cb624093744b992370 | refs/heads/master | 2020-07-16T09:52:32.959670 | 2019-12-13T05:37:21 | 2019-12-13T05:37:21 | 205,764,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ShiyanItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
name = scrapy... | [
"343093497@qq.com"
] | 343093497@qq.com |
51dd65811d72d74966faf28d8b397f1eb74579b0 | ddda55fcfc84ac5cd78cfc5c336a3df0b9096157 | /components/ble/mynewt-nimble/docs/conf.py | 629b8a4f14b0e686d9f12357cc72d9f04ee83c5c | [
"LicenseRef-scancode-gary-s-brown",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | liu-delong/lu_xing_xiang_one_os | 701b74fceb82dbb2806518bfb07eb85415fab43a | 0c659cb811792f2e190d5a004a531bab4a9427ad | refs/heads/master | 2023-06-17T03:02:13.426431 | 2021-06-28T08:12:41 | 2021-06-28T08:12:41 | 379,661,507 | 2 | 2 | Apache-2.0 | 2021-06-28T10:08:10 | 2021-06-23T16:11:54 | C | UTF-8 | Python | false | false | 5,476 | py | # -*- coding: utf-8 -*-
#
# Mynewt documentation build configuration file, created by
# sphinx-quickstart on Tue Jan 10 11:33:44 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... | [
"cmcc_oneos@cmiot.chinamobile.com"
] | cmcc_oneos@cmiot.chinamobile.com |
bf2a5ffd97cccaa92d2fe656cb94dd123b0325cf | 020ddf79c83d24cbf8a3af9c51278d1239db6f8d | /gyp/art-dalvikvm.gyp | 5ab319a59a6cd83fb378a8ac59b487bd0f7d8a71 | [] | no_license | DmitrySkiba/ARTPart | cbf7a12d50823064f8071b9e7e644bfedb846c3d | 1c16aa6bb6519a37286d6c72d23ab7d4787f5b6b | refs/heads/master | 2016-09-06T02:56:20.756704 | 2015-03-28T05:54:07 | 2015-03-28T05:54:07 | 30,858,852 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | gyp | # Copyright (C) 2015 Dmitry Skiba
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"Dmitry.Skiba@gmail.com"
] | Dmitry.Skiba@gmail.com |
0aa51c85f1acc32bca1b8efbc5819d5ae89a7c73 | a35e499ac96ccba9cf3c991c007754a48cf48b65 | /spark-on-eks/source/lib/spark_on_eks_stack.py | 4051b5ff572fe0a7928fd9b4d0cae2422914de96 | [
"MIT-0"
] | permissive | QPC-database/sql-based-etl-on-amazon-eks | df433bd7035a26ac65e8987965d420d4a3e61534 | 9bec6879666cf637b79f94e0290d36faacf7281b | refs/heads/main | 2023-06-22T03:15:22.806742 | 2021-07-07T03:48:26 | 2021-07-07T03:48:26 | 384,840,396 | 1 | 0 | MIT-0 | 2021-07-11T01:54:50 | 2021-07-11T01:54:50 | null | UTF-8 | Python | false | false | 6,000 | py | # // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# // SPDX-License-Identifier: MIT-0
from aws_cdk import (
core,
aws_eks as eks,
aws_secretsmanager as secmger
)
from lib.cdk_infra.network_sg import NetworkSgConst
from lib.cdk_infra.iam_roles import IamConst
from lib.cdk_infra.eks_cl... | [
"meloyang@amazon.com"
] | meloyang@amazon.com |
35c12f8dd042fa9e218f0f82d1ced393a6413f71 | e839d7d13689529c945cfd923fa460b3a1fcd1f6 | /invariant3b.py | 58472fd2f3e0139e275e8344a2cc544051671055 | [] | no_license | KaplanLab/Invariants | 3a81765cf9debcc15faed425dc966ae3be5c7eec | b4432ec4639b0d08c0a90630fb1e32a13dfffebf | refs/heads/master | 2020-03-11T08:47:20.151603 | 2018-04-23T06:26:32 | 2018-04-23T06:26:32 | 129,892,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py |
from __future__ import print_function
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import argparse
import sys
def main():
parser=argparse.ArgumentParser(description='Calculates smoothness',formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_ar... | [
"noreply@github.com"
] | KaplanLab.noreply@github.com |
9b209805bbc3e5381db705ee82f66c38d2e5ef39 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.15/_downloads/plot_compute_rt_average.py | fd3b17129bcbbdb519a78a19a35ccce09b59e38c | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 1,912 | py | """
========================================================
Compute real-time evoked responses using moving averages
========================================================
This example demonstrates how to connect to an MNE Real-time server
using the RtClient and use it together with RtEpochs to compute
evoked respo... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
2588b58c60d47bb584362ec1a073150105b82209 | 8b71e73e4776aeef30a5fd23b185510f2ce8d0a8 | /pythonic_ocr-master/flask/bin/coverage3 | a2c4654b38caa41ba41c6aedc2c5c7dc5dca4d9d | [] | no_license | angelaaaateng/LinAlg_Project | d5e428dc1bae34f74850833d8d616f300658531c | eb5847ff327deb781cb409b933da00f455149373 | refs/heads/master | 2022-12-07T11:31:54.286539 | 2019-06-07T22:15:40 | 2019-06-07T22:15:40 | 186,526,704 | 2 | 1 | null | 2022-11-22T00:57:00 | 2019-05-14T02:06:10 | Python | UTF-8 | Python | false | false | 330 | #!/Users/Sam/ml/webml/flask/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'coverage==4.0.1','console_scripts','coverage3'
__requires__ = 'coverage==4.0.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('coverage==4.0.1', 'console_scripts', 'coverage3'... | [
"angela_teng@alumni.brown.edu"
] | angela_teng@alumni.brown.edu | |
dbc1c10415f60b72f07487f2f9e354e0d17427be | db94236acf2ec1150f768906dca872bc8109e424 | /.metadata/.plugins/org.eclipse.core.resources/.history/7b/20c08447c30b001713a6aee85c38bf9c | de40ebc1f38157a62b88184413ce4abf8ce65f5e | [] | no_license | ivanganchev93/TurtlebotProject2017 | 8188adf54afc2073b346ba4ec282e70172763fb6 | 84140ecdb04b3755cbe19c37fe52271f287680b8 | refs/heads/master | 2020-04-05T12:08:50.709200 | 2017-10-22T18:20:26 | 2017-10-22T18:20:26 | 95,221,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,262 | #!/usr/bin/env python
import roslib
import sys
import rospy
import binascii
import math
import numpy as np
import cv2
import io
import os
import warnings
from std_msgs.msg import String
from nav_msgs.msg import Odometry, OccupancyGrid
from geometry_msgs.msg import Point
from sensor_msgs.msg import LaserScan, Image, P... | [
"ivanganchev93@gmail.com"
] | ivanganchev93@gmail.com | |
09b7744d2aa86aeee801bb3ad1a107a845567fa8 | 56fb302a723dee461a37da81ae6e134b2660ca9f | /clientfeatures/__init__.py | 80108ce886b86e16b77679fc184b7e05809418fe | [
"MIT"
] | permissive | bpeschier/django-clientfeatures | 0ef3cc72bc98c768ac5f751d884aea30c2033c4f | ea9ff9cc5c0dd147ba43e46fa480a5cd4af6666d | refs/heads/master | 2020-05-03T12:31:12.385573 | 2017-04-06T09:15:21 | 2017-04-06T09:15:21 | 21,525,946 | 0 | 1 | null | 2016-12-09T15:59:40 | 2014-07-05T18:43:51 | Python | UTF-8 | Python | false | false | 67 | py | default_app_config = 'clientfeatures.apps.ClientFeaturesAppConfig'
| [
"basp@fabrique.nl"
] | basp@fabrique.nl |
3da13c58c4199d31c98e3b0c81e7ab5d55abad24 | a873f3cd46a10ad879fc56d78e1f533d8bf486c0 | /z_python-stu1/first/廖雪峰/迭代.py | 4115de44525792f329471d5da4b183b906436215 | [] | no_license | shenhaiyu0923/resful | d0301b39363e6b3d3659f62fa4a9b2532ebcd225 | 1e66cae7d68fa231794776953cc1a5e999bf36c6 | refs/heads/master | 2021-07-08T20:46:57.300298 | 2021-06-01T08:17:27 | 2021-06-01T08:17:27 | 244,308,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = '258815719@qq.com'
def findMinAndMax(L):
if len(L) == 0:
return (None, None)
else:
for i, x in enumerate(L):
if i == 0:
min = max = x
else:
if x > max:
max =... | [
"jwang9@vova.com.hk"
] | jwang9@vova.com.hk |
59f15c4e88d2a7e22e763aed34804af7a59fab04 | 837a6d9d8799fc64070eff54b24b6d6da035773c | /r2m_simulation/build/curiosity_mars_rover_description/catkin_generated/pkg.installspace.context.pc.py | dc13c4e238a6fd88c602e7348f3c6c2ece6ae909 | [] | no_license | umangkaswala/r2m_rover | 60b386ce8630536a09345799e720dc8bdda9f839 | 24f8ca29183df4e2cf7ba7600496ec0274a51a2b | refs/heads/master | 2022-01-08T19:56:21.736580 | 2019-07-31T17:26:52 | 2019-07-31T17:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;gazebo_ros".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "curiosity_mars_rover... | [
"siyi.dai@outlook.com"
] | siyi.dai@outlook.com |
aaef9b61d387b044c9aa2c263efce50935535202 | c03076b16fc7864f91def78d477dfa2f6104f1d6 | /Senior Codes and References/RPi/RPi-CK/pc_interface.py | 9c66edef2a877aa2a633548660551730e4f091e3 | [] | no_license | chia0360/MDP-Group04 | 16b01cabbd05dd9911f8834f615203f6bf308a6b | 4f87966d525cbae248909f928efd747b288e56c4 | refs/heads/master | 2021-01-11T18:23:27.813562 | 2017-04-11T02:45:37 | 2017-04-11T02:45:37 | 79,529,619 | 0 | 0 | null | 2017-02-11T10:31:49 | 2017-01-20T05:49:06 | Java | UTF-8 | Python | false | false | 2,048 | py | import socket
from interface import *
class pc_interface (interface):
# def __init__(self):
def connect(self):
try:
self.host = "192.168.9.9"
self.port = 3000
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# self.socket.allow_reuse_address = True... | [
"chia0360@e.ntu.edu.sg"
] | chia0360@e.ntu.edu.sg |
875b61123dd93a948ac250e15ea5b998a1923731 | 68947387d77e0c869494dd8e7539594a3d1a2ed9 | /Sean_Mitchell_CS_317_Extra_Credit.py | 75af29007b6e66934a52fb1e71785e43f3a3b07e | [] | no_license | SeanMitchell1994/CS317_ExtraCredit | 375702aaefe58a7baf6005b71c9feee6fb19b640 | 526ed1b173fb6490944f05cb2d1d459560057f43 | refs/heads/master | 2020-05-16T19:12:35.240076 | 2019-04-29T01:24:28 | 2019-04-29T01:24:28 | 183,251,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | # ====================================================
# Sean Mitchell
# CS 317-20 Spring 2019
# Extra Credit
#
# Creates a series of petals and rings using turtle
# The total shape as a color gradient that starts low
# and goes high as the shape size increases
# This base color is randomly chosen at runtime
#... | [
"noreply@github.com"
] | SeanMitchell1994.noreply@github.com |
196258d3272de1c192f99e01320a0b59413e834b | dddc7193d2cee71dd4f1a7bf5f869d984edd44b3 | /Avalanche analysis.py | d0bc8c2548fd5edf57fe4680d0d59b8e164298b9 | [] | no_license | BaptisteMP/ML_avalanches_prediction | 19c16bd0b63c5f4fcfa9edaccb1c9f883d55c594 | dd95afafc75514489a14d7ff6f3a8fe149ceb18b | refs/heads/master | 2020-12-28T02:27:15.898636 | 2020-02-04T09:23:58 | 2020-02-04T09:23:58 | 238,152,034 | 0 | 0 | null | 2020-02-04T09:22:45 | 2020-02-04T07:53:24 | null | UTF-8 | Python | false | false | 10,872 | py |
# coding: utf-8
# In[15]:
import numpy as np
from sklearn import cross_validation
import csv as csv
import pandas as pd
import sklearn
# In[53]:
with open('avalanche_accidents_switzerland_since_1995.csv', 'r') as csvfile:
data = csv.reader(csvfile, delimiter=',')
taille_data = 'tamere'
avalanches =... | [
"baptiste.moreaupernet@gmail.com"
] | baptiste.moreaupernet@gmail.com |
b9f3a49f7f1fe0e94be6a1066047c260b2555dcc | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374851334/HTT_24Jul_newTES_manzoni_Down_Jobs/Job_18/run_cfg.py | 38dbc249e4f6a3beb3e7f9386fe60200d89f9895 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,054 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/down/emb/DoubleMuParked/StoreResults-Run2012D_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
4581a71677876a19591feba186db5b19a914147a | 1a7595a5896ca709eb98805b2a570bf12775a9ff | /muonShieldOptimization/study_muEloss.py | 56d16036361c9cb08313151c37f2833ff4938c81 | [] | no_license | nathandpenha/CERN-FairShip | 953683117f4971b323392bc1213b7ae7d9a3a708 | 10db3d519a5ac8fd67132afd39736b550cb60a30 | refs/heads/master | 2021-05-24T10:10:11.763338 | 2020-05-06T18:46:14 | 2020-05-06T18:46:14 | 261,848,065 | 2 | 0 | null | 2020-05-06T18:47:30 | 2020-05-06T18:39:22 | C++ | UTF-8 | Python | false | false | 10,048 | py | #!/usr/bin/env python
import ROOT,os,sys,getopt,time,shipRoot_conf
ROOT.gROOT.ProcessLine('#include "FairModule.h"')
time.sleep(20)
import shipunit as u
from ShipGeoConfig import ConfigRegistry
mcEngine = "TGeant4"
runnr = 1
nev = 1000000
setup = {}
#
setup['NA62'] = {'thickness': 125*u.cm/2., ... | [
"Thomas.Ruf@cern.ch"
] | Thomas.Ruf@cern.ch |
1fcf7c5adfe328a9cbff60ebb27546955e3c696e | 586e822dd294e5b57de67b908c1d20583dfeada0 | /data_eda/missing_data.py | 6497f4c0a1641bc513384010180c7de6984a80a9 | [] | no_license | myhaa/Machine-Learning | 1c40ed7e02d7fdd75babb663faf29501926c5477 | f698ec353261fd10c1e6d97f0ad9477673779060 | refs/heads/master | 2023-07-22T04:06:16.600229 | 2021-09-07T15:43:00 | 2021-09-07T15:43:00 | 371,622,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | # -*- coding:utf-8 _*-
"""
Author: meiyunhe
Email: meiyunhe@corp.netease.com
Date: 2021/05/17
File: missing_data.py
Software: PyCharm
Description: 缺失数据通用函数合集
"""
# loading modules
import os
from warnings import warn
def check_missing(df, save_path=None):
"""
统计各特征缺失数和缺失比例
:param df: pandas Dataframe
:param sav... | [
"32893249+myhaa@users.noreply.github.com"
] | 32893249+myhaa@users.noreply.github.com |
eea6a5bdf52069a9d6c674bbba325b3c7939a612 | 58cde93d4adcf82f6753f4e06643045dead75146 | /venv/lib/python3.8/site-packages/bitlyapi/bitly.py | f4ad79c934674ae43f0e4b8360d2a38bd4f4334a | [] | no_license | atakanatamert/ShortyURLShortener | 2f6d73cce87687361374a5a38d22349bb144d901 | 10bd75e77f851d5ba3f97046f18ead63f1e54310 | refs/heads/master | 2022-04-16T16:32:06.303762 | 2020-03-24T12:54:31 | 2020-03-24T12:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | #!/usr/bin/python
import os
import sys
import urllib
try:
import json
except ImportError:
import simplejson as json
API_URL = 'http://api.bit.ly/v3'
class APIError (Exception):
'''Raised by BitLy instances in the event of errors returned by the
bit.ly REST API. An APIError instance provides the fo... | [
"atakan@Atakans-iMac-Pro.local"
] | atakan@Atakans-iMac-Pro.local |
05b2fd5abd1def71c9d8b87c5de771533ae8cf73 | 953f37707f4ebb477101480a8429ead70537607a | /create_sets.py | f3a770270e71da728a8ba96523459053f54df775 | [] | no_license | ollKTH/DL_project_latest | 87f6eb22daa41b172a4b3bf33269b628f14e10bd | 7dd7fcb9c9e0b34dc4931eec9365cfc6c2dc6caa | refs/heads/master | 2020-03-16T02:15:50.540061 | 2018-05-15T20:17:54 | 2018-05-15T20:17:54 | 132,460,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import numpy as np
def split(_images, _labels, _factor):
'''
Splits _images and _labels into training data and test data
:param _images:
:param _labels:
:param _factor:
:return:
'''
# First just try splitting straight off
_length = len(_labels)
_split_idx = np.round(_length * ... | [
"oll@kth.se"
] | oll@kth.se |
5fe0c36dfd90189443ff510579824e9ecd37ce54 | d9b992130073e63ca1173e317a1362bd54d431e5 | /blog/views.py | fc23bef1a263262c769abeb825f89da1319fbf0f | [] | no_license | boris-t/django_test_project | 61a0adc8dc2f35013d74fac413d67ffa2ed0b79e | 978ffa177eac84f2c5e17d098623a2f546ca5280 | refs/heads/master | 2020-08-28T00:53:10.776462 | 2019-10-25T14:37:40 | 2019-10-25T14:37:40 | 217,538,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from django.shortcuts import render
posts = [
{
'author': 'Boris',
'title': 'Blog Post 1',
'content': 'First post content',
'date_posted': 'October 25, 2019'
},
{
'author': 'Corey',
'title': 'Blog Post 2',
'content': 'Second post content',
'da... | [
"boris_tupik@senla.eu"
] | boris_tupik@senla.eu |
7cffd984d55e0708e92416f0d126056f75c33470 | ec062c479c09ce250c3e23ff47f144f423b55648 | /py/Lib/site-packages/azure/mgmt/compute/compute/v2016_04_30_preview/models/virtual_machine_paged.py | f4ce0dcbeaf516525bd3f7441a2a98148efea77a | [] | no_license | betisb/InputParser | c442ffc877a941bd5b7aac4d843a4d21594d8e96 | 68747d69e04d126f7ea679f93a291a6de244a95f | refs/heads/master | 2021-07-13T05:05:19.479329 | 2019-05-28T16:56:53 | 2019-05-28T16:56:53 | 188,087,891 | 0 | 2 | null | 2020-07-24T00:14:31 | 2019-05-22T17:52:13 | Python | UTF-8 | Python | false | false | 978 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"betis.h.a@live.com"
] | betis.h.a@live.com |
680d96b054b74302c31825e8d1fb6d117d66499b | a4515918f56dd7ab527e4999aa7fce818b6dd6f6 | /Data Structures/LinkedLists/Python/copy_random_pointer.py | b3ef4628d60d581eefa6d200d79fc56db9a8d61f | [
"MIT"
] | permissive | rathoresrikant/HacktoberFestContribute | 0e2d4692a305f079e5aebcd331e8df04b90f90da | e2a69e284b3b1bd0c7c16ea41217cc6c2ec57592 | refs/heads/master | 2023-06-13T09:22:22.554887 | 2021-10-27T07:51:41 | 2021-10-27T07:51:41 | 151,832,935 | 102 | 901 | MIT | 2023-06-23T06:53:32 | 2018-10-06T11:23:31 | C++ | UTF-8 | Python | false | false | 1,099 | py | """
A linked list is given such that each node contains an additional random
pointer which could point to any node in the list or null.
Return a deep copy of the list.
"""
from collections import defaultdict
class RandomListNode(object):
def __init__(self, label):
self.label = label
self.next = N... | [
"noreply@github.com"
] | rathoresrikant.noreply@github.com |
47d5f3f1a68dad5b149971eeaec9c78cb01c4c8e | 2bdef3359de28afe1def5a5cae208489ff4af781 | /sort.py | ef7c31e24d46670956b4d836d49ef4d5b3d5afd7 | [] | no_license | Hallyson34/uPython | 07a63b6f6385f67fae722619ec612ffa4a1512ae | 5668ac9d97aee31c091fff3c6c79a94549802b6e | refs/heads/master | 2023-07-07T19:36:20.280226 | 2021-08-07T02:56:57 | 2021-08-07T02:56:57 | 358,599,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | A, B, C = map(int, input().split())
if A<B and A<C:
print(A)
if B<C:
print(f"{B}\n{C}")
else:
print(f"{C}\n{B}")
elif B<A and B<C:
print(B)
if A<C:
print(f"{A}\n{C}")
else:
print(f"{C}\n{A}")
else:
print(C)
if B<A:
print(f"{B}\n{A}")
else:
... | [
"hallysonnobres@gmail.com"
] | hallysonnobres@gmail.com |
ff6683aeb21bc1bc07ca8691f1529e640f825454 | 75f2b0c621d13c2c1d8e0c5243583db7feb9f22d | /pantry_raid/models/forms/substitutionform.py | 670b9220afefe4d0a3ab3d6584c1e0e27d689cc0 | [] | no_license | Wizracc/PantryRaid | 562ed8581e95ee77f57688b0d5200f01c21fc357 | db90e70ba0524321a56491d7164f21a92da5e587 | refs/heads/master | 2022-12-10T22:55:21.400690 | 2020-02-11T09:05:11 | 2020-02-11T09:05:11 | 239,718,611 | 0 | 0 | null | 2022-09-16T18:17:08 | 2020-02-11T09:04:04 | Python | UTF-8 | Python | false | false | 1,152 | py | from flask_wtf import FlaskForm as Form
from wtforms import FieldList, FormField, SubmitField, StringField
from pantry_raid.models.forms.autocompletes import AutocompleteField
from pantry_raid.models.forms.buttons import CustomButton
class SubstituteField(Form):
quantity = StringField("Quantity", render_kw={
... | [
"wizracc@gmail.com"
] | wizracc@gmail.com |
98abec5efcce801961012aeb66f7b575f4629f70 | 4ce948abfe57dbca767784294a804be6586b6c74 | /login_page/login.py | 2d0d6760e771f8cd1aca33d2ed03237a2c84aed3 | [] | no_license | XampleV/Password-Ch3cker | 275ee1a8be1424e1ecc9257060f605324030b292 | 14dc9ce7732b671a5e35b2dbea181210d253ebc6 | refs/heads/main | 2023-04-17T04:54:43.800189 | 2021-04-03T21:40:48 | 2021-04-03T21:40:48 | 354,161,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | from PySide2 import QtCore, QtGui, QtWidgets
from PySide2.QtWidgets import *
import sys
from login_page.login_page import Ui_Form as login
from login_page.program_functions import login_functions
import tkinter as tk
import tkinter.messagebox
root = tk.Tk()
root.withdraw()
app = QApplication()
login_f =... | [
"noreply@github.com"
] | XampleV.noreply@github.com |
3d0018af2b85f6d0cf6fa49a37de798b4adf04e7 | 44440302635bf339b268775d88a7aed3a59f7d7b | /leetcode/mediansortarray.py | c1d096501b353371dc59887495b0995bf5f0348b | [] | no_license | EdwardNgo/Algorithm-application | 79eeb64b65071f0c014ff34fe7e75b865f97d6ee | 36d1bc5c6510d95f97dedebf11fbdf83824a39cc | refs/heads/master | 2023-07-12T01:28:49.750121 | 2021-08-15T02:28:14 | 2021-08-15T02:28:14 | 366,232,906 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | def solution(nums1,nums2):
| [
"hoangso8000@gmail.com"
] | hoangso8000@gmail.com |
da88d06918d51f179409201b383857c90aa6a173 | 0e529cabbd10c2428746088d8c0327523e2ee10b | /results/plot_graphs.py | e10f46f88cb38384594c2f511e5f35f4bb3b6f21 | [] | no_license | gsakkas/gpus-kmeans | b0de5565c7f450996ca435dcd5fdda265534a927 | bd7dcc4738b7d75d4b7d394122d9bd46b8d171ea | refs/heads/master | 2019-07-25T20:36:25.351104 | 2017-04-25T16:41:58 | 2017-04-25T16:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | """
========
Barchart
========
A bar plot with errorbars and height labels on individual bars
"""
import numpy as np
import matplotlib.pyplot as plt
def parse_results(condition, filename):
fin = open(filename)
lines = fin.read().rstrip().split("\n")
fin.close()
kept_lines = filter(condition, lines)
result = map(... | [
"konstantinos.kallas@hotmail.com"
] | konstantinos.kallas@hotmail.com |
c9c74a48846b3633abdbf55d3140a6485cc465a8 | 3ea851736abf69250dc1fd093e8f74abfe70e108 | /qa/migrations/0001_initial.py | 3b422157f32211a037e204eb69faa691b9d93397 | [] | no_license | SJ23y/my-first-blog | c211789d6552fed5c58cde37b59cc20243668dc6 | a5fec4fcba943ab8505e6191d787a40e32c8b1cb | refs/heads/master | 2020-12-27T09:31:02.253319 | 2017-06-09T22:51:49 | 2017-06-09T22:51:49 | 68,472,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"mcfolland@gmail.com"
] | mcfolland@gmail.com |
16b120ca9699f1c3db050a4efeacf9845bbd09af | 16f8e9dddeb046c51ed381e7e7fe20375633646d | /account/api/throttles.py | 182865cde730d41ced5768f5acbc02ff318e3eac | [] | no_license | AmilAbdullazadeh/django-rest | 600c556a1b8ad22ad1b794eeb1d256254b91a747 | 9aca56f85bb9884795716282d1f7d524f6f89d5e | refs/heads/master | 2022-12-12T04:47:58.228880 | 2020-09-01T06:58:39 | 2020-09-01T06:58:39 | 291,921,694 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from rest_framework.throttling import AnonRateThrottle
class RegisterThrottle(AnonRateThrottle):
scope = 'registerthrottle'
| [
"amilva"
] | amilva |
c3efcb46b691153ec799d7d3fc4cdaf0a4eb11e9 | b6a780446903726f1b8e80bbce105086f66387e6 | /tests/test_directory.py | a3130c6cbc09299c4ba0d0e8dc5f5a5eecc95097 | [
"WTFPL"
] | permissive | dornheimer/gogtool | 89544278180872fc9688ed4edf6f6a81f417b0e1 | 09ee025fea49cf11634baed970974ef716150743 | refs/heads/master | 2018-07-13T21:32:03.459370 | 2018-07-05T12:08:41 | 2018-07-05T12:08:41 | 113,966,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
import unittest
from testfixtures import LogCapture
from gogtool.directory import Directory
VALID_PATH = os.path.dirname(__file__)
INVALID_PATH = "directory/does/not/exist"
class TestLogging(unittest.TestCase):
def setUp(self):
self.capture = LogCapture()
def tearDown(self):
se... | [
"beaveroftime@gmail.com"
] | beaveroftime@gmail.com |
0504c14f96bdce17781d5abc4efbafb8c383f80a | ca00031df3e47bd9905ff9d40573e7837f5addba | /venv/Lib/site-packages/ibm_db_tests/test_144_BindParamInsertStmtPARAM_FILE.py | 3f9338d68102248c1ec75df865f10266935ad7c8 | [
"Apache-2.0"
] | permissive | abycyriac/Covid-Vaccine-Procurement-Webapp-Flask | dda02eb2e2807021f0621735fea458f740aae478 | a6ff7236cc6e5722f2da461a27ac55e8e17719fb | refs/heads/main | 2023-05-11T23:40:54.794264 | 2021-06-02T20:11:51 | 2021-06-02T20:11:51 | 373,290,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #
# Licensed Materials - Property of IBM
#
# (c) Copyright IBM Corp. 2007-2008
#
import sys
import os
import unittest
import ibm_db
import config
from testfunctions import IbmDbTestFunctions
class IbmDbTestCase(unittest.TestCase):
def test_144_BindParamInsertStmtPARAM_FILE(self):
obj = IbmDbTestFuncti... | [
"abycyriac96@gmail.com"
] | abycyriac96@gmail.com |
f35a1b5fd5ac6605e90666ff032d753126a89666 | 45db4a55c6bd5137b17bf8dfa54ed94f361c3bf6 | /ResonantCircuits/resonantCircuit.py | e092ec6a20e63812e33f488d85c4af3afa794def | [] | no_license | CatT-DancingDev/PythonProjects | 1be3e8f0b0528be1ccbe8aeadb76ac8a5f9961ae | 7b59d9b1843eaddb9254f980f178d6e8ba551106 | refs/heads/main | 2023-04-15T08:06:25.240981 | 2021-04-25T04:13:15 | 2021-04-25T04:13:15 | 361,327,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,609 | py | ###############################################################################################
#
# Program: Resonant Circuit Design
# Module: resonantCircuit.py
# Author: Catherine Trujillo
# Course: CSC 217-470
# Date: 7/07/2020
#
################################################... | [
"noreply@github.com"
] | CatT-DancingDev.noreply@github.com |
8fe088fdb84933fc73e957b74a89bbc398332e43 | 1fe8b4a22ba986e06788c31237171f986d5b440e | /uploader/admin.py | 3d8d57f43d4ba6b1119c84b3d84eaf416bfb5bec | [] | no_license | whitews/StickyTempFile | 0f654bafe23b6e4e104fe76368cd642c30f918d5 | 1812fa2c669c2128e13c9533b5ea6a97e5449e3e | refs/heads/master | 2021-01-19T05:29:59.049931 | 2013-03-07T21:36:11 | 2013-03-07T21:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from uploader.models import *
from django.contrib import admin
admin.site.register(UploadedFile)
| [
"whitews@gmail.com"
] | whitews@gmail.com |
3017eff3a8d21fac6867ed2bc8da08b705f9d229 | cfc415c9b247521b872bf86fd22b55b4a3ff2ee3 | /tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 4b83d50036b6c4e9572b40d7b6377685f94dacc8 | [
"Apache-2.0"
] | permissive | chengmengli06/tensorflow | f7fdb51d709e87b302d60a6dc9391cb6bbaaa3e1 | e81d0c5499eab1ae2d301c5caa128e0b69b0289b | refs/heads/master | 2021-06-24T21:54:28.571878 | 2018-11-16T06:45:48 | 2018-11-16T06:45:48 | 157,813,648 | 0 | 0 | Apache-2.0 | 2018-11-16T04:42:57 | 2018-11-16T04:42:57 | null | UTF-8 | Python | false | false | 6,225 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
104d93508feb5e6c8b3a020f564aa36f195f1f5d | f854d8fa7abfa3014c9657618a0bf6c5444ce701 | /test/model_Feature_AAN_only_video_Pooling.py | a70c88936341fd6b028c6536e76d1493d027879e | [
"MIT"
] | permissive | ivyha010/AttendAffectNet | 255713cfee8c1b201d39f96c186eb76f23b58095 | 583c15070baf6ba3c95e8515466631666c07ba73 | refs/heads/main | 2022-12-25T17:25:28.273506 | 2020-10-14T02:37:58 | 2020-10-14T02:37:58 | 303,881,618 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,137 | py | # Copyright: http://nlp.seas.harvard.edu/2018/04/03/attention.html
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import math, copy, time
from torch.autograd import Variable
import seaborn
seaborn.set_context(context="talk")
# ENCODER: CLONE
def clones(module, N):
"Produce N... | [
"ivyha010@gmail.com"
] | ivyha010@gmail.com |
2dd9fc92bb479d7ea6fd9fd47d4c000b3e9b3bc7 | 0f4422e10006b348d6aae29ba03bceb4baca52d9 | /vanilla_GANs/vanilla_gans_old.py | 74f567027dc5c44173e0dbc6b4a167ec9e1bd62d | [] | no_license | nikeshnaik/GANs_In_Tensorflow | edeb24fa76175f501cdb3189c3ca0ea03c64f417 | 09342bfb60ac7c7fc91085a4480561c7eaa500a5 | refs/heads/master | 2022-02-16T17:27:41.664188 | 2019-08-10T08:49:48 | 2019-08-10T08:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,034 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import os
import sys
from tensorflow.keras.layers import Dense, Activation
from tensorflow.keras.initializers import he_normal
modules = ['tensorf... | [
"nikeshinfinity@gmail.com"
] | nikeshinfinity@gmail.com |
d6d926460684758bfa1783aa26618668c90b37af | c3f1ebc74dec01fed73bc7ff6956f3c7fc24e430 | /SCAMP_Python_Track/Portfolio/landing_page/migrations/0002_auto_20200724_2220.py | d74ba3df40d156f6cb9faa1caf5c02278a0832b8 | [] | no_license | Aduketemi/SCAMP-Assesment | f8978006ca90766fc5ee58c2d629247eabc51300 | 859dc6f341f3e6e122362e87e3fab9e98114a6d0 | refs/heads/master | 2022-11-24T09:58:35.418395 | 2020-08-02T09:32:05 | 2020-08-02T09:32:05 | 257,937,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # Generated by Django 3.0.8 on 2020-07-24 21:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('landing_page', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Home',
new_name='Profile',
),
... | [
"adeoyemarytope@gmail.com"
] | adeoyemarytope@gmail.com |
eb64c1bd34e11a9a1bcdb5b6f0b59899137e2b03 | 3bfbb10285f484b228cf071d0c46239302df716b | /venv/Scripts/pip3-script.py | e8f450b961f0c02797ef36abc4f8f7c2644b76ca | [] | no_license | messi10hitu/RegularExp | 0599a3612d3d1eb204c1fb46b94c9e6994368f84 | 76f8af9bcdc4bbce6b75f7582df71924b13cb301 | refs/heads/master | 2021-03-15T00:34:16.005198 | 2020-03-12T10:37:25 | 2020-03-12T10:37:25 | 246,808,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\hitesh\PycharmProjects\RegularExp\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"salgotra.hitesh@gmail.com"
] | salgotra.hitesh@gmail.com |
80810bf8538a097220492556fb02df2122426b9e | e4007870b4d75ba23c2f12ac6646f272cf17865c | /FFMPEG_Scripts/Video_Drawer.py | ff79049fa690bf27f94f3a7db415cde233945c49 | [
"MIT"
] | permissive | knut0815/PythonUtility | 385ce332ff34501be7ad21ac7948eb609770e72a | 0062e1e60dc151776b963d13bc4c1763eb90d333 | refs/heads/master | 2023-01-10T09:58:14.619531 | 2020-11-10T12:22:47 | 2020-11-10T12:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | import sys
import platform
import subprocess
import os
horizontal_center = 'x=(w-tw)/2'
horizontal_right_margin = 'x=(w-tw)'
vertical_bottom_margin = 'y=h-(2*lh)'
class VideoDrawer(object):
@staticmethod
def _get_font_ifp():
if platform.system() == 'windows':
font_ifp = 'C:\\Windows\\Fon... | [
"sebastian.bullinger@iosb.fraunhofer.de"
] | sebastian.bullinger@iosb.fraunhofer.de |
a8a98f6a93e509c990d8f37c41df6cc4c7f00232 | 57e43b31a0b1448b6635ec505bfa27fcf5e4ebf3 | /spotiplay/prompt.py | f3f29e40d30a134a18cef16e36c7e0604b9d66e5 | [
"MIT"
] | permissive | jaruserickson/spotiplay | 6894036617befa46abbe22cdf7ed41fbff18f635 | 3e6e4a381d3899de75e7684d65cad1d40b81307b | refs/heads/master | 2021-07-11T17:10:59.766154 | 2017-10-14T01:02:24 | 2017-10-14T01:02:24 | 105,844,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | from __future__ import absolute_import, unicode_literals
import getpass
import os
from prompt_toolkit import prompt, AbortAction
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory
from prompt_toolkit.token import Token
from prompt_toolkit.styles import style_from_dict
from prompt_toolkit.contrib.completers ... | [
"jacob.erickson@mail.utoronto.ca"
] | jacob.erickson@mail.utoronto.ca |
f36b312afc18e9f6b1941362c2dfbc66574e3deb | 98b63e3dc79c75048163512c3d1b71d4b6987493 | /tensorflow/python/keras/tests/memory_test.py | 465df84d6fef375a6f515ec1eb64815e4b74ec3f | [
"Apache-2.0"
] | permissive | galeone/tensorflow | 11a4e4a3f42f4f61a65b432c429ace00401c9cc4 | 1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206 | refs/heads/master | 2022-11-13T11:56:56.143276 | 2020-11-10T14:35:01 | 2020-11-10T14:35:01 | 310,642,488 | 21 | 12 | Apache-2.0 | 2020-11-06T16:01:03 | 2020-11-06T16:01:02 | null | UTF-8 | Python | false | false | 2,599 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fc13fa23c678c4876fa24591c96db49e66f9ba4b | 577797412ba7c82748a36e0af06a5918456af0be | /Raspi/src/gameObjects/Category.py | 3af4069cb53c6a72a32154e3da847f7ff3a2e455 | [] | no_license | juanmoo/Buzzer-System | 67b1ac1776d8bf3295ddfb7b187e7477fda46e6f | af9516daa2567420191e7c260f06ecc2dd14df55 | refs/heads/master | 2020-04-06T06:58:37.797413 | 2016-08-11T23:46:01 | 2016-08-12T01:19:21 | 59,366,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | class Category(object):
idNumber = 0
def __init__(self, name, questionNumber,full_points, partial_points, penalty_points):
self.questionNumber = questionNumber
self.idNumber = Category.idNumber
Category.idNumber += 1
self.name = name
"""
pointKey stores the point ... | [
"juanmoo@me.com"
] | juanmoo@me.com |
03c44bbcc3cb986d47719e3b53198dc3ce277e67 | 3d752bef425e906cf0d44bd6ec1683faf53b9ff5 | /Arithmetic Game.py | 456bb95f4f24f345eb93f7bed194aac057013e2f | [] | no_license | MuhamadNawzad/Beginner-projects | 4abe2bf70eb494c4996e44413a12617a7b50d317 | 189842e0c66c36919cb4af7284509dd09c6ae06f | refs/heads/main | 2023-04-07T19:25:50.145710 | 2021-04-19T07:53:27 | 2021-04-19T07:53:27 | 359,373,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | import random
import time
class ArithmeticGame:
def __init__(self, num_questions):
self.num_questions = num_questions
def generate_questions(self):
operand1 = random.randint(0, 30)
operand2 = random.randint(0, 30)
operand = random.choice(['+', '-', '*', '//'])
... | [
"noreply@github.com"
] | MuhamadNawzad.noreply@github.com |
d2c8fcbbc8f09554ddb3fcbbe699c4096c534d5d | 5b4ef66e0edd872ae675042d7ff4f2891cbe27a9 | /src/config.py | b5ba1cdcf8e3c34c8d67774be029ea2a45b33204 | [
"MIT"
] | permissive | 0xMoJo7/spiders | 5776e3a4edb9f768e85b7cb3280f5058a29466ef | c9c32fa4259101f6a6e8e0cb750739b1ba8d7386 | refs/heads/master | 2023-05-28T07:07:08.833459 | 2019-08-07T18:25:09 | 2019-08-07T18:25:09 | 201,060,758 | 0 | 0 | MIT | 2023-05-22T22:29:13 | 2019-08-07T13:54:49 | Python | UTF-8 | Python | false | false | 674 | py | click_depth = 12 # how many links deep to go into webpage
min_wait = 5 # minimum wait time between requests
max_wait = 10 # maximum wait time between requests
min_proxy_pages = 2 # number of times to use list of proxies before fetching new group
max_proxy_pages = 14
debug = True
root_urls = [
"https://simpli.fi",... | [
"ericd@simpli.fi"
] | ericd@simpli.fi |
e107fbc09d667d6e7002ee969db496e3d3d7b58d | 8e9d04512cf1b0424cd5de331a30620a356c0818 | /Events/migrations/0001_initial.py | f38d44832908ee00a227c43cdd668d5229471fec | [] | no_license | shraysalvi/Arlarse001 | 949f8ad6a2da790bf2164cb555c9b537f07d2775 | 962b73f613880dae064a8756a01629bd8a095b0c | refs/heads/master | 2023-09-02T08:04:03.831670 | 2021-11-07T20:56:18 | 2021-11-07T20:56:18 | 424,014,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # Generated by Django 3.2.7 on 2021-11-04 10:25
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ApplyCandidates',
fields=[
('id', models.Bi... | [
"btoacpp@gmail.com"
] | btoacpp@gmail.com |
7eb105d6e6a9cab22984c6db01666070c56c508b | 2bf76e30ad517adf8805a9fdb22e60c4c010eea3 | /ipypandex/tests/echo_pandas.py | 4c35a62cf638ddd4aa4f4bf2ae5ef84c977c07cf | [
"BSD-3-Clause"
] | permissive | isabella232/ipypandex | 2be06d8be96280f110ffd063eb7f8c81a6d4dc8c | fc1023266a7e3e784595f296629f4fd827fb7d0f | refs/heads/main | 2023-02-11T20:15:02.731204 | 2021-01-06T00:41:44 | 2021-01-06T00:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import pandas as pd
from IPython.utils.capture import capture_output
with capture_output() as c:
display(pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]}))
print(c.outputs[0].data)
| [
"mseal007@gmail.com"
] | mseal007@gmail.com |
aeb34e6f1e8723cc6424c196cb99ef779f507e4d | c2081f368428e5fb684e08863ecac4f37f5717e5 | /jobapplicant/wsgi.py | 045dbc1851268e7d082365cdb2495383f2d755be | [] | no_license | agimenezpy/jobapplicant | 9148e80e3e535f7ea956992ba9c7fc0ea472b0e8 | 99ac06464a9137061c89fea0389b7c95422c29f2 | refs/heads/master | 2020-06-05T08:48:25.222470 | 2013-10-04T00:42:33 | 2013-10-04T00:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | """
WSGI config for jobapplicant project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATI... | [
"albergimenez@gmail.com"
] | albergimenez@gmail.com |
5b7e6308dff6821aa9531435e71f9c5518ce982a | cf1a8586e0ae28b96f5dc9f129e58e0eea962794 | /__main__.py | 8a231072a221c5ff3cae082173473c9fdd2d6744 | [] | no_license | PlexHaxx/plexlabels | 091fc668dae3d098bb7d8b7e3a3a1cbded4e2cfd | b553ea3b11bdd81b36643b19b2fe54d2a1758284 | refs/heads/master | 2020-05-29T11:37:38.126858 | 2015-02-23T11:40:14 | 2015-02-23T11:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | __author__ = 'raphi'
from MediaInfo.MediaInfo import MediaFile
from HttpApi.XMLHandler import parseXML
from HttpApi.HttpApi import HttpConn
if __name__ == "__main__":
import sys;
overviews = []
conn = HttpConn(sys.argv[1], sys.argv[2], sys.argv[3])
interval = int(sys.argv[4])
intrusive = False
... | [
"raphi.rm@gmail.com"
] | raphi.rm@gmail.com |
9be6c9b60a6871fc27eb6f3f9518c33a42785596 | c6c6c32547ba334f75a5cc938a9c07e708670365 | /buses/migrations/0002_alter_busbooking_bus_id.py | af6ea77ae0304b32d0b5ac41d86b6f261725998a | [] | no_license | wilsonmwiti/SmartTravel | e693acb0b323d1be9ae1c58917a32ef6a418448d | 9513f0f15745f9e73e70680c5d9e5798de85be7c | refs/heads/master | 2023-09-01T14:16:28.471037 | 2021-10-14T10:55:20 | 2021-10-14T10:55:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.2.8 on 2021-10-13 05:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('buses', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='busbooking',
name='bus_id',
... | [
"titusowuor30@gmail.com"
] | titusowuor30@gmail.com |
8ab7a399f4ab540a36f920fa8cdb90d8ca3db19b | 6b6c55c1631adb035dcf9cf92bb17eebbb738ff2 | /PAR III/update_stock.py | 07fdb1b648d0c84e8bb540b22dc4b6c4f1a4d708 | [
"MIT"
] | permissive | Anderson-VargasQ/mecatronicaUNT_Prog2_Digitalizaci-n_del_Sistema_de_Ventas.- | def210c9b124176372118c1b5f9d2138881bcd7b | a151f13da27040440eee7ae97520e34a9dc9f70c | refs/heads/main | 2023-03-13T06:46:51.434048 | 2021-03-05T08:49:37 | 2021-03-05T08:49:37 | 344,736,478 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import pymongo
def update_stock(codigo_producto,stock,stock_disp):
client = pymongo.MongoClient("mongodb+srv://grupo_hailpy:1a2b3c4d5e@proyectox.todpx.mongodb.net/Proyecto?retryWrites=true&w=majority")
db = client.test
try:
print("MongoDB version is %s" %
client.server_inf... | [
"noreply@github.com"
] | Anderson-VargasQ.noreply@github.com |
cf244cde6773aed449200ffb151ecb0d64c2134d | e8f3bd3fbb344c2005c74c41710d9bf109235727 | /小甲鱼课后习题/22/习题2.py | c5a42c9681a2b8c9b1c46dc83da34917f0c522f4 | [] | no_license | tigerruncode/Python-1 | 2ec99f44921d61f62398d17c2ef992c98c6f7611 | 6d7436b89dc86a40d38dee1f3260dd009e642c4e | refs/heads/master | 2021-04-15T18:50:55.105097 | 2018-03-18T08:15:53 | 2018-03-18T08:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | print('---Calculate the maximum common divisor of x and y---')
def gcd(x, y): # 使用递归算法及欧几里得算法求最大公约数
if x % y:
return gcd(y, x % y)
else:
return y
c = int(input('x:'))
d = int(input('y:'))
print(gcd(c, d))
| [
"448417505@qq.com"
] | 448417505@qq.com |
c614d728dc81ff7d988e8e31bef916f6660284a7 | 0b787275b7389f352da1b9cc38abba8ca42540a3 | /16 excepciones.py | 5653f0cb5eedb20d5bceb648edc0557db7c233e8 | [] | no_license | jorgerojaspython/clases_de_python | 76d9eb0b3233f75fae1279b04781393ce39aa33f | df9382cabfa02c3a11a315f77e10df15da3fe7c9 | refs/heads/master | 2020-12-13T22:29:09.958678 | 2020-02-01T17:17:48 | 2020-02-01T17:17:48 | 234,550,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | try:
x=int(input("Enter a number"))
y=1/x
print(y)
except ZeroDivisionError:
print("no puede dividir para cero")
except ValueError:
print("debe ser un entero")
print("the end")
import math
x = float(input("Enter a number: "))
assert x >= 0.0
x = math.sqrt(x)
print(x)
| [
"noreply@github.com"
] | jorgerojaspython.noreply@github.com |
71688feb0681e39a08137247598481369fa9f252 | a08b5385e41fd4a99cc47e71df8310a6ce58721a | /flappy_bird.py | 9199d0f2f28bf0155f7aa3c92d55a6b808867a51 | [] | no_license | walg/NEAT-Flappy-Bird | 91ecbf17969bce6240225b3d5d6a180693cb5efd | 707dee098cfa39cf25e295e76015149f23b5da81 | refs/heads/master | 2020-07-02T22:44:01.620700 | 2019-08-09T00:40:29 | 2019-08-09T00:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,612 | py | """
The classic game of flappy bird. Make with python
and pygame. Features pixel perfect collision using masks :o
Date Modified: Jul 30, 2019
Author: Tech With Tim
Estimated Work Time: 5 hours (1 just for that damn collision)
"""
import pygame
import random
import os
import time
import neat
import visual... | [
"noreply@github.com"
] | walg.noreply@github.com |
03a6cc2e483937f89f007060d6086be7425f4626 | 4e9d3ba19a694c25fdbfd4ed1c6ab66339674beb | /python/GafferUI/PopupWindow.py | b13e219fa456b6bdee63ed65695f9d5a99197b0f | [
"BSD-3-Clause"
] | permissive | mcanthony/gaffer | 0a6af7856b1c2ecae5620a9f2bd04316f2df271c | 32189357fda4bc4b2e5367a06af64928c479ffaf | refs/heads/master | 2021-01-18T19:59:29.212027 | 2015-10-26T20:43:45 | 2015-10-26T20:43:45 | 45,088,868 | 2 | 0 | null | 2015-10-28T04:30:06 | 2015-10-28T04:30:04 | null | UTF-8 | Python | false | false | 7,109 | py | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of so... | [
"thehaddonyoof@gmail.com"
] | thehaddonyoof@gmail.com |
ebe4f996d27d27006df85a8764fadbe018701ef2 | 3ce7471ed89bc360b35a867ec0b6712442ce1fab | /abo/backends/paymill/__init__.py | 39123b2018592752b38648c62de609a23c971931 | [
"BSD-3-Clause"
] | permissive | kralla/django-abo | b0684e37b34655ef8ceada09220c9be8016552bc | e0fa98ec44d5ea31ff2313ca0f96ff12d6aa26e4 | refs/heads/master | 2021-01-17T20:05:08.842631 | 2015-01-05T15:49:27 | 2015-01-05T15:49:27 | 26,873,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from django.core.urlresolvers import reverse
from django.utils.translation import ugettext_lazy as _
from abo.backends import PaymentProcessorBase
default_app_config = 'abo.backends.paymill.apps.PaymillConfig'
class PaymentProcessor(PaymentProcessorBase):
BACKEND = 'abo.backends.paymill'
BACKEND_NAME = _('P... | [
"sk-github@kanen.at"
] | sk-github@kanen.at |
162486044551faf2aa0a85dc6dc886e6e37a3b8b | 49a2cb132930bb0ea8a352be1fc48ce32e18f801 | /day02/1.py | ce85d16f725ec5c3f4825ce1d9c42064de153e1d | [] | no_license | zkutasi/adventofcode-2018 | c26175cc2e2c750e4c5cd298796ebf2440892a5a | 3cffce64a539156be1d316868ec812d7d472c3d4 | refs/heads/master | 2020-04-12T04:00:25.607159 | 2018-12-25T16:16:50 | 2018-12-25T16:16:50 | 162,281,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
import sys
def mapper(id):
m = {}
for c in id:
if c in m.keys():
m[c] += 1
else:
m[c] = 1
return m
with open(sys.argv[1]) as f:
doubles=0
tripples=0
for line in f.readlines():
m = mapper(line)
if 2 in m.values():
doubles += 1
if 3 in m.values():... | [
"zoltan.kutasi@ericsson.com"
] | zoltan.kutasi@ericsson.com |
80aed699a64f930d26a90b0f2021a48436486041 | 799119e8f0676280275b4252d5cb18e957ecf271 | /nets/resnet.py | c59f191bac3f55e246999567c765f60456d6e0e9 | [] | no_license | VERSPD0/Deep-Mutual-Learning | 5f842cfced8160c0ad9374ac162c43a3be3a3510 | 1cb3191e2943f85b126e0ed206804e0e9440cdb8 | refs/heads/main | 2023-04-20T17:56:48.302821 | 2021-05-11T06:57:57 | 2021-05-11T07:42:53 | 366,284,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,256 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import numpy as np
class Resnet(object):
"""docstring for Resnet"""
def __init__(self,is_training,keep_prob,stack_num=3,num_classes=100):
super(Resnet, self).__init__()... | [
"879223669@qq.com"
] | 879223669@qq.com |
831b79a3092e0a4c027903556aa8d5a0da312dbb | dfa52338be02769ae4383ec81620e7c10a774dd1 | /temp.py | 3dd9d66d49ec3761c6ccfaaf7b35ecc438fecc26 | [] | no_license | shuvayan/EloquentJavascript | 345933eb7f41d1829134441d65e09053b7919391 | 99681ffe3375a45a35eaec056038d78823de76ed | refs/heads/master | 2020-12-02T21:20:00.787785 | 2017-09-08T08:58:28 | 2017-09-08T08:58:28 | 96,296,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,091 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import numpy as np
import pandas as pd
#import seaborn as sns
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
#matplotlib inline
# Import statements required for Plotly
import plotly.offline as py
... | [
"noreply@github.com"
] | shuvayan.noreply@github.com |
5151b43cb8a410151868a0254c8c304e9e1e501f | c32f2e2906d815a052875b465dad4033bfb28d41 | /tunes_app/models.py | b1d0eefb5a891eb791733de8761814e13dfb8426 | [] | no_license | MetropolitanNumeric/tunes | cb9c9547f97f4ed34c0de6a8648d293adc1ee38c | 1c1fcaa1eda2f6473bd0b59bc0521da16f6de0cc | refs/heads/master | 2021-01-18T22:11:46.348065 | 2016-09-27T16:33:36 | 2016-09-27T16:33:36 | 68,855,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from django.db import models
from django.core.urlresolvers import reverse
class Album(models.Model):
name = models.CharField(max_length=50)
artist = models.ForeignKey('Artist')
genre = models.ForeignKey('Genre')
def __str__(self):
return self.name
def get_artist_names(self):
artis... | [
"william.richard.hurst@gmail.com"
] | william.richard.hurst@gmail.com |
8edff7f124c93cf9e0c641c9547b814688ecc5ad | e52a6dfca5667a03ca7d981687da075cfeca7b1b | /grp_18/urls.py | 5fadd527fdbaf1dc57b6948ac3c5f15d0536401e | [] | no_license | tinkercodes/grp_18 | d780c626c81ab44b836605d1a6f556f862bb5849 | 3022c91d248a78eef740404c51abdf3d072052da | refs/heads/master | 2023-07-04T00:16:36.728857 | 2021-08-09T13:40:34 | 2021-08-09T13:40:34 | 329,650,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """grp_18 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"prabhatpanchal8682@gmail.com"
] | prabhatpanchal8682@gmail.com |
6a8417179c00b75db42711f0e24dbf1199b787d0 | b797b310a33e7c77e768f0896f21f0f9ee7fc9d4 | /test_mysite/test_mysite/settings.py | f9f007f5051ffa0c80e1b499568702ff7b9807cc | [] | no_license | l1ghtn1ng-sec/1024 | 45c187bfc7887deb74259ca89d7891c4a3d20786 | 17b995e85fef71ccc56ed6ac7d44f061784eeef5 | refs/heads/master | 2022-04-11T18:53:14.980106 | 2020-03-04T09:10:52 | 2020-03-04T09:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | """
Django settings for test_mysite project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"2336469845@qq.com"
] | 2336469845@qq.com |
bca7014dbc8741221a33e7d7a12baae97ef356c0 | a0b9b0e0184af72708cf8ba11d50d8dbbcd5d333 | /Mentee/urls.py | 714b9dbeaf1efc703132409fa78f11cbac306240 | [] | no_license | fajriefji/DJANGO_coba | d710ac2aa5602de1d0659775a2297805aeddbed9 | 5a02688d93ed820fb1dfbe2070c19973ebb90d36 | refs/heads/master | 2020-04-22T14:08:41.786488 | 2019-02-13T03:28:16 | 2019-02-13T03:28:16 | 170,433,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.urls import path
from .import views
urlpatterns = [
path('Mentee', views.Mentee, name='Mentee'),
] | [
"fajri@alphatech.id"
] | fajri@alphatech.id |
523c2cb44bc1f073c73a02f1fbb6973101cea56d | 9b202d1440937afdc56128c04c132e249e525955 | /jstypes/named_accessor_property.py | 95095c63176c771aad0d6ce5239a7b7c346f5821 | [
"MIT"
] | permissive | bbraithwaite/ECMAStrict | 3730bab300a3fd9254553133b78086d5b9706c60 | d97be539a2b16d164273d86ec2ad66ff3058ba15 | refs/heads/master | 2021-03-12T23:59:50.875615 | 2015-05-29T15:39:39 | 2015-05-29T15:39:39 | 32,482,637 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from .types import Undefined, Boolean
class NamedAccessorProperty():
def __init__(self):
"""Sets the default values for the type."""
self.__get = Undefined()
self.__set = Undefined()
self.__enumerable = Boolean('false')
self.__configurable = Boolean('false')
def get(se... | [
"bradley.braithwaite@gmail.com"
] | bradley.braithwaite@gmail.com |
36a255bdfa0ae4e48cd1170b522ea6ada667d61b | 07e03f73ea68b22d10c92a0e61a86a42ff32d6fd | /Gerador de Planilhas para Memorion v4.py | a423fc21ce700d40c5aaebd5ca4d8826c056e7bb | [] | no_license | Erick-Faster/Projeto-Tradutor | d76b69fcf3d774aeb21573fcdcce62ac4b05706a | e0c53086879d9d9eb99c5e659eba4b6a44bc773f | refs/heads/master | 2020-12-19T06:16:12.003793 | 2020-01-22T19:08:54 | 2020-01-22T19:08:54 | 235,645,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,208 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 8 2019
Finished on Tue Jun 11 2019
###########FEATURES#############
-- Monta planilha de excel contendo
-- Palavras inseridas em alemao
-- Traducao das palavras
-- Genero dos Substantivos
-- 2 Exemplos de aplicacao
-- Tipo (substantivo, ve... | [
"noreply@github.com"
] | Erick-Faster.noreply@github.com |
c7867baeca22849ea7b5625a957b27b04f171214 | 3dcb9b9de4e27ee0e7ece48dcd51f920638ca14d | /api/api.py | 291f60faae09d446c7bb503a005fc97f6adb87c9 | [] | no_license | chyld/flask-postgres-react-docker | 4f4a7fb52c52df6fd005af68668a1425139613b1 | e36f36cb32ae259d6472ca7813c4dfb0cb3213da | refs/heads/master | 2021-01-20T07:02:13.625385 | 2017-05-02T06:26:40 | 2017-05-02T06:26:40 | 89,951,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from flask import Flask, jsonify, request
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from marshmallow import Schema
import os
app = Flask(__name__)
CORS(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:pass1234@db/animals'
db = SQLAlchemy(app)
@app.route('/hello', methods=[... | [
"chyld.medford@gmail.com"
] | chyld.medford@gmail.com |
0ba939c744fe84858b93f836679c134f43f4fe14 | 21ce30e043c07052a7fa39bb9fdd6cb7fda90aad | /algorithms hackerrank/cavity map.py | 35b32a34dc7171dfe4cebf4daebd0e4c3d1f0590 | [] | no_license | nikhildewoolkar/Competitive-coding | e41d5cc0ab5a45c9cf7177d3a1da553d45ccf6c3 | e45ba7e0c9fcc19da9fde2b0657eb7646f24147b | refs/heads/master | 2023-03-16T00:03:11.575553 | 2021-03-09T11:26:33 | 2021-03-09T11:26:33 | 340,855,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def cavityMap(grid):
grid1=grid.copy()
for i in range(1,len(grid)-1):
for j in range(1,len(grid)-1):
if(grid[i][j]>grid[i-1][j] and grid[i][j]>grid[i+1][j] and grid[i][j]>grid[i][j-1] and grid[i][j]>grid[i][j+1]):
grid1[i][j]="X"
for i in grid1:
print(''.jo... | [
"noreply@github.com"
] | nikhildewoolkar.noreply@github.com |
1ac83f62049fce578856131aec4108fba430100f | d2fb9166f0c8a40261715b9a06bb7a7c77fce46c | /apps/programs/models.py | 3eccd8950bc394620b5c36afc57b68880826271e | [] | no_license | surya20r/UNote | a5d205050bedb87e7011fe679f844943e39576bb | 5d034b1dcb3a6bdf307f18eb769b8dcfc5ca5448 | refs/heads/master | 2023-08-08T03:52:33.155638 | 2020-01-15T06:00:59 | 2020-01-15T06:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from django.db import models
# Create your models here.
class Program (models.Model):
name = models.CharField(max_length=200)
value = models.CharField(max_length=200) | [
"anish.mahto99@gmail.com"
] | anish.mahto99@gmail.com |
6ad81372712c472af6be858b03e71adf6307e80f | 32570615ec4465c972b0297cbb88ab9441ed06ee | /sample_program/配布2/001_helloworld.py | ea50287950d5295a1fc89d1bf92d7fe639def4ef | [] | no_license | inouelab-IoT/IoTproject | 22aa51e629df98d2d7de2b834f2c75bcff43cb38 | a07f7d9efd6ae6e7127bb91403dafae4d3971ff5 | refs/heads/master | 2023-01-23T11:55:42.604627 | 2020-12-09T19:17:07 | 2020-12-09T19:17:07 | 278,996,481 | 0 | 0 | null | 2020-10-19T03:54:02 | 2020-07-12T05:16:39 | HTML | UTF-8 | Python | false | false | 179 | py | def main():
i = 0
while i < 10:
print('hello world') # Python 3.X
#print 'hello world' # Python 2.X
i = i + 1
if (i == 5):
break
if __name__ == '__main__':
main()
| [
"bp15081@shibaura-it.ac.jp"
] | bp15081@shibaura-it.ac.jp |
9e8ce529901859670d5a4bcf1fe290375fc0056d | ca186ed749fb7d618b40dd5012124d5053c279da | /vfeedcli.py | 34b9069588c03dd0856f05b0e133f7f25a319ad9 | [
"BSD-3-Clause"
] | permissive | rmallof/vFeed | a6ec0fe9f1c5c1220bc5c5039d62cab1cbaeaade | 2fccd83aac2cc0b3c3f5e8db7d080e63833212bf | refs/heads/master | 2021-01-18T13:17:02.368454 | 2014-07-26T08:23:01 | 2014-07-26T08:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,556 | py | #!/usr/bin/env python
import sys
from vfeed import vFeed, vFeedInfo, vFeedXML, vFeedUpdate, vFeedStats
'''
vFeed - Open Source Cross-linked and Aggregated Local Vulnerability Database
Wiki Documentation https://github.com/toolswatch/vFeed/wiki
'''
def get_help():
info = vFeedInfo()
print ''
print '-----... | [
"nabil.ouchn@gmail.com"
] | nabil.ouchn@gmail.com |
e30491020a6fd96d5b31d0024462ca68ec66ef9d | 5ab82eb488e973fe9e4020f91adbfe4c38e16158 | /média.py | a4ad4a2580b78565a17b75ae014dd3f1a3202035 | [] | no_license | Robertobappe/Introdu-o-Ci-ncia-da-Computa-o-com-Python-Parte-1 | b6251a32a9f1f9669aa471fdbd459ed977d34757 | dd6c5af437bb0c482415b824f75742fc35bb5d27 | refs/heads/main | 2023-08-10T17:28:48.226620 | 2021-10-02T17:23:35 | 2021-10-02T17:23:35 | 411,464,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | pn=int(input("Digite a primeira nota:"))
sn=int(input("Digite a segunda nota:"))
tn=int(input("Digite a terceira nota:"))
qn=int(input("Digite a quarta nota:"))
media=((pn+sn+tn+qn)/4)
print("A média aritmética é",media)
| [
"noreply@github.com"
] | Robertobappe.noreply@github.com |
acd2950cfed4e0f2cc4704c1816266b24aa32f92 | 290b347513ec8bab851d6b76ff28288aaed31a27 | /fetch_posters.py | 84772c6881b932d4dad684c1ec3c2c00de891a48 | [
"MIT"
] | permissive | pncnmnp/Movie-Recommendation | a94df105a6dae16768dae1e3df680e8b0bc0f0fa | 2103464bab5cef47e49a7821da6846ef05699ffd | refs/heads/master | 2022-08-25T03:26:12.190914 | 2019-11-18T04:26:14 | 2019-11-18T04:26:14 | 210,127,386 | 4 | 6 | MIT | 2022-06-21T22:58:14 | 2019-09-22T10:16:09 | Python | UTF-8 | Python | false | false | 940 | py | from file_paths import *
import pandas as pd
import requests
from PIL import Image
import time
import os
POSTER_BASE_URL = "https://image.tmdb.org/t/p/w185"
poster_df = pd.read_csv(PATH_POSTERS)
poster_df["poster_path"] = POSTER_BASE_URL + poster_df["poster_path"]
movie_ids = pd.read_csv(PATH_MOVIES)["id"].tolist()
... | [
"parthparikh1999p@gmail.com"
] | parthparikh1999p@gmail.com |
e82662f1e18ae247ee50643b8d5bf26ee588c2fa | 29e9365e68d3f5ef8e9a758c207ea9b0e8980c33 | /supporting_functions.py | 7901fd9772a1afd2af648fc02dfe5691aae221c7 | [] | no_license | csababekesi/rice_collector | ce3ebba00d16da951ec0c18903763a2ad1dde469 | 6f1061fe527670ad31b61758e8058711b76e6583 | refs/heads/master | 2022-07-04T05:10:02.807751 | 2020-05-10T16:33:22 | 2020-05-10T16:33:22 | 262,879,380 | 0 | 0 | null | 2020-05-10T21:33:25 | 2020-05-10T21:33:24 | null | UTF-8 | Python | false | false | 6,831 | py | import pyautogui
import time
import random
import cv2
import numpy as np
from datetime import datetime
import requests
import pytesseract
from global_variables import positions
# On Windows you have to install Tesseract and provide a PATH to it:
#pytesseract.pytesseract.tesseract_cmd = r'C:\Users\username\... | [
"malatamark@gmail.com"
] | malatamark@gmail.com |
4d7f1f28dc9fb98b2c1de9f64a5c8e7490aa1c6b | 0c9e144bb9beec2d941708898943036b2ead74ca | /0x08-python-more_classes/2-rectangle.py | 5bc1989d63c2bb114cea06d1efb1648127614f15 | [] | no_license | rajsudeep/holbertonschool-higher_level_programming | d95657c9d67e10ecea0740de4e1dd206e16a292c | 9f9b905d5de58f145b1d61ceb1387dc05dcaae21 | refs/heads/master | 2020-07-22T22:54:55.643798 | 2020-02-12T00:45:29 | 2020-02-12T00:45:29 | 207,357,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/python3
"""
This module contains the Rectangle class
Defines a rectangle
"""
class Rectangle:
"""Rectangle defines a rectangle"""
def __init__(self, width=0, height=0):
self.width = width
self.height = height
@property
def width(self):
""" Size of width """
... | [
"sudrocks@gmail.com"
] | sudrocks@gmail.com |
2e24bb1da5abc68896108ac8b9934925cd0b5c5e | aa0c7bb4935ff68bb4ba2be4332890b760c9dda2 | /ipcv/scalespace.py | 998699a9f9b1b62a439bf745940a9dd6c314086b | [
"MIT"
] | permissive | andersbll/ipcv | 0b4deb5f867a4fd642aa7864769e7f4c4901e809 | ea533def7967c9d3a53002ae109db8b256b51c1d | refs/heads/master | 2021-03-12T23:40:26.990304 | 2014-03-05T13:57:31 | 2014-03-05T13:57:31 | 15,453,581 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | import numpy as np
from scipy.ndimage.filters import gaussian_filter
class ScaleSpace:
def __init__(self, img_shape, sigmas, dys, dxs):
''' Compute the scale-space of an image.
Upon initialization, this class precomputes the Gaussian windows used
to smooth images of a fixed shape to save t... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
279d995d38352c3e51c4cfee7f485f1086921721 | d7a403786e2a87ac51c30f2e62b71481b4089403 | /build/vesc_driver/catkin_generated/pkg.develspace.context.pc.py | 5829164fe6f4bf19027c503ac262343e8d3a4a52 | [] | no_license | mahmoodjanabi/caroline | 57f3de7e248c334684c83f98d7da76df14c2a0ed | e994f25c9d9c9ad30be9182daf8752b1b0bd525b | refs/heads/master | 2020-04-17T05:06:00.176575 | 2019-04-08T01:55:09 | 2019-04-08T01:55:09 | 166,262,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ubuntu/catkin_ws/src/vesc_driver/include".split(';') if "/home/ubuntu/catkin_ws/src/vesc_driver/include" != "" else []
PROJECT_CATKIN_DEPENDS = "nodelet;pluginlib;roscpp;std_msgs;vesc_msgs;serial... | [
"aljanabi.mahmood90@gmail.com"
] | aljanabi.mahmood90@gmail.com |
e3c17501820af99668a5090962fa38e7abe36853 | 831a90cec5be1579901b39f4cd0fbbc57a60fd64 | /libs/roc.py | e692a4d9b35b13f4890da161294ecf95d2a149db | [] | no_license | emithongle/thesis-20160530 | f7090545bfc0c459a465f33f6e6790ee994afa32 | 69e5ddf4fec1f6dcfee0880678cca1b20fa759f3 | refs/heads/master | 2021-01-19T01:23:07.686667 | 2016-06-04T10:16:04 | 2016-06-04T10:16:04 | 59,984,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | import numpy as np
from sklearn.metrics import roc_auc_score, roc_curve
from scipy.stats import mannwhitneyu
import scipy
def getScore(type='', y_true = [], y_score = []):
if (type == 'ROC'):
return roc_curve(y_true, y_score)
if (type == 'AUC'):
return roc_auc_score(y_true, y_score... | [
"lpthong90@gmail.com"
] | lpthong90@gmail.com |
3f7b73f4572985238fd69887dbe034b6bdf3b83f | b61a47202ffe716826e3498461e1243f8694a3e7 | /hesapla-arg.py | eb6bdb13f4c5bfccaba2b33c5d1059aa3ad70f5b | [] | no_license | serhatyazicioglu/Data-Science-and-Machine-Learning-Bootcamp | f4b3e4ed58c511a9187a14e50a03ae8eb8de8372 | 6584f3a83459b5674cb11f1fc89e12f99bbceee0 | refs/heads/main | 2023-03-23T02:14:58.347805 | 2021-03-16T17:40:27 | 2021-03-16T17:40:27 | 331,138,928 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: UTF-8 -*-
"""
Yazdığımız her uygulama grafik arayüzüne sahip olmaz.
Bazı uygulamalar komut satırına daha uygundur ve bu uygulamalar bazı parametrelere ihtiyaç duyar.
Argparse: Terminal üzerinden yazdığımız kodlara input'lar vermemizi sağlar.
Aşağıdaki argparse fonksiyonunu terminal üzerinden çalıştırma... | [
"noreply@github.com"
] | serhatyazicioglu.noreply@github.com |
ee82f549982587ab5b564579fb516fba6bdf691f | 22013212df1e21f29d0180f2109841177a2a8791 | /basic_addons/account_budget_report/reports/__init__.py | 08af8422c824fc2e2e1015f5bb8891ccaf05f79f | [] | no_license | butagreeza/DTDATA_A | f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6 | 90b09f89714349a3f26de671a440a979aeebd54c | refs/heads/master | 2023-06-18T00:41:02.521432 | 2021-06-14T21:17:06 | 2021-06-14T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Jesni Banu(<https://www.cybrosys.com>)
# you can modify it under the terms of the... | [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
831064eea03f634d055126cfd339905b4aaf40e1 | 41068281a63641164611a88fbf2da7d4d107cf90 | /members/forms.py | 0c4340f53d53da2361bc29d7f8f64ddcf9a7c132 | [] | no_license | ahmed-s-nada/seasons | 6a6dd28c7bbfdd19c3669ed283ce002db70e08e9 | 9a57b2c460c9fda701018a49652b3d987d7a3608 | refs/heads/master | 2021-05-08T11:38:19.612363 | 2018-02-14T20:30:06 | 2018-02-14T20:30:06 | 119,186,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | from django import forms
from members.models import member, SubMember
from datetime import datetime, date
class member_form(forms.ModelForm):
CLUB_CHOICES = ( ('ALAHLY', 'Al-Ahly' ), ('ALZAMALEK', 'Al-Zamalek'), ('WADIDEGLA', 'Wadi-Degla'), ('ALGEZIRA', 'Al-Gezira'), ('NEWGIZA', 'New-Giza'), ('ALSAID', 'Al-Said'... | [
"Ahmed_Nada@localhost.localdomain"
] | Ahmed_Nada@localhost.localdomain |
9657b3ceec8c66aed46b44498f1668e29d1b6871 | 3b09dc4623dac559c85c0333526d55b0615d79d7 | /problems/56.py | 94bcfe31fbef92738fe0088cba102cb331404cf7 | [] | no_license | Asperas13/leetcode | 5d45bd65c490ada9b3cb2c33331a728eab2ef9b4 | 7f2f1d4f221925945328a355d653d9622107fae7 | refs/heads/master | 2021-09-28T15:54:54.761873 | 2020-05-05T15:29:48 | 2020-05-05T15:30:59 | 145,767,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | class Solution:
def merge(self, intervals: List[List[int]]) -> List[List[int]]:
if len(intervals) < 2:
return intervals
intervals.sort(key=lambda a: a[0])
prev = intervals[0]
result = []
for i in range(1, len(intervals)):
if intervals[i][0] >= prev[0]... | [
"ivan.pashnev@developex.com"
] | ivan.pashnev@developex.com |
55a9234942dba8569fdb8f0a0f4f68176c5a93e9 | c7ddc853a9dbcb9470ef685ab68a3c9bbaa9eb31 | /6.00.1x/pset4/ProblemSet4/ps4a_repl.py | 898bc75bc9e4568a28c02bf9df296075007b4cad | [
"Giftware"
] | permissive | aasimsani/6.00.1x-2x | 6468ba67558c9c8a0f78c26e9a8da007bff5aaf2 | da724caee2352e0301035fa050f1c60b675c3d4b | refs/heads/master | 2021-01-13T12:37:42.056737 | 2017-03-28T03:37:24 | 2017-03-28T03:37:24 | 78,384,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,290 | py |
# 6.00x Problem Set 4A Template
#
# The 6.00 Word Game
# Created by: Kevin Luu <luuk> and Jenna Wiens <jwiens>
# Modified by: Sarina Canelake <sarina>
#
import random
import string
VOWELS = 'aeiou'
CONSONANTS = 'bcdfghjklmnpqrstvwxyz'
HAND_SIZE = 7
SCRABBLE_LETTER_VALUES = {
'a': 1, 'b': 3, 'c': 3, 'd': 2, 'e':... | [
"aasimsani05@gmail.com"
] | aasimsani05@gmail.com |
5473b4dc8a460bd82fdbb8d63a294758359036eb | 8b6edb9665bf90fe93d224fd2903e879d6f92f1d | /scripts/helpers.py | 9c11e71d8fc1a86076a5736f16fd84a717c1251c | [] | no_license | Mandyli1996/Multi-modal-learning-for-Neural-Record-Linkage | 808836f8b9f059e7fcf01db0a202bb100f27a806 | d6ada3bbc226adfa5ef5cfaae9b648e9b426921a | refs/heads/master | 2022-01-31T12:18:05.429898 | 2019-08-16T01:43:46 | 2019-08-16T01:43:46 | 197,054,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | import pandas as pd
import numpy as np
import os
import re
# DATA HANDLING
def is_str_list(x):
"""
given a pd.Series of strings, return True if all elements
begin and end with square brackets
"""
return np.all(x.astype(str).str.startswith('[') & \
x.astype(str).str.endswith(']'))
... | [
"noreply@github.com"
] | Mandyli1996.noreply@github.com |
857b85a762b079c37792bc79922db845a5951bbf | 4c6a18d17df8d9327d047857b4d5e832a476e0e1 | /venv/bin/pip3 | 46486eacd61a1d2f2f2258c808bbaede576109b3 | [] | no_license | grzeslaws/oauthFlask | 2026f457a616a4bf89d5059607316684a7922f58 | fd8f4e91a85037486eb925e3c377398d43e0a5de | refs/heads/master | 2022-12-22T05:59:49.020048 | 2018-05-30T08:38:58 | 2018-05-30T08:38:58 | 135,413,272 | 0 | 0 | null | 2021-06-01T22:20:09 | 2018-05-30T08:34:49 | Python | UTF-8 | Python | false | false | 253 | #!/Users/grzesiek/Desktop/sqlalchemy/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"grzesieks@sparkbit.pl"
] | grzesieks@sparkbit.pl | |
9222ec732fdf9bf8f7aad210a57dfc00e1c6611a | ba1585406af7a75e425b104a3a304ee99c9b11f0 | /asmodeus-histogram.py | 161eb5435e49646345aec772570c8c340a4aa4ff | [
"MIT"
] | permissive | sesquideus/asmodeus | 1ac9dce56b124f2c8318914b0d666a6ea4e079db | cc56357b7fc336e28d19a7297a67890669550be8 | refs/heads/master | 2023-08-03T08:55:51.305957 | 2023-07-25T18:01:14 | 2023-07-25T18:01:14 | 152,603,129 | 4 | 2 | MIT | 2023-02-10T23:14:38 | 2018-10-11T14:15:16 | Python | UTF-8 | Python | false | false | 126 | py | #!/usr/bin/env python
from apps.histogram import AsmodeusHistogram
if __name__ == "__main__":
AsmodeusHistogram().run()
| [
"martin.balaz@trojsten.sk"
] | martin.balaz@trojsten.sk |
537a655078659a64fd10f3ac755a9f1714cf227a | 57779967ffe41cab94d67542d9a5826a0abf943e | /migrations/versions/25aac75e8625_.py | ec7845d7e2051b41253a887559831fec3194d286 | [] | no_license | Jang-Boa/project_web | 83ead8a49e1c40f715b6da160940214c29c24643 | 4dcb358bfad82ece548ca1ac316c90d96adc28d4 | refs/heads/main | 2023-08-25T21:32:10.574866 | 2021-10-20T15:40:52 | 2021-10-20T15:40:52 | 416,203,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | """empty message
Revision ID: 25aac75e8625
Revises: cd08f7dab0bd
Create Date: 2021-10-19 17:50:22.149645
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '25aac75e8625'
down_revision = 'cd08f7dab0bd'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"boajang97@gmail.com"
] | boajang97@gmail.com |
ba40efc0bfb9c633b665651d2a5df988b9473ea7 | 250d92826005352e418d9bf9f902da4f6e60b85c | /Frittie/venv-frittie/lib/python2.7/site-packages/celery/task/trace.py | 2ac1a503d98c48ce5122543e571784ff46971406 | [
"BSD-2-Clause"
] | permissive | itamsvtd/FrittieHome | 0e4133e6d64b5d2f42824ec7854b080262a49279 | a81a708bf5c7ef2347f4a3e738a46c2776dce9ed | refs/heads/master | 2020-06-06T07:37:51.622937 | 2012-09-27T03:36:05 | 2012-09-27T03:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,253 | py | # -*- coding: utf-8 -*-
"""
celery.task.trace
~~~~~~~~~~~~~~~~~~~~
This module defines how the task execution is traced:
errors are recorded, handlers are applied and so on.
"""
from __future__ import absolute_import
# ## ---
# This is the heart of the worker, the inner loop so to speak.
# It used to... | [
"vthanhduc92@gmail.com"
] | vthanhduc92@gmail.com |
eea24f51c349fb5fbbbc953d159fc360bb09cf38 | 6355e7024c047cc074637011dcb9f9934073dbf3 | /les/wsgi.py | c6a33d0418d8d7a3a6c3bdc38beba57846e729a6 | [] | no_license | guilhascorreia24/Componentes-de-user | a25f56e4cab8b45fb7ba185fc5722d5521235f2a | acd8a63ac0ef448704616a378b5bc08b1c84ffb3 | refs/heads/master | 2021-02-28T20:41:04.678911 | 2020-03-13T21:13:02 | 2020-03-13T21:13:02 | 245,731,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for les project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"noreply@github.com"
] | guilhascorreia24.noreply@github.com |
9e560ff7f892b501b1c2b3e4d239b0401eddc10e | 2a1a5619a9e3ced181dc2c4fc6f046364a2076cb | /assignment_3/problem5/api.py | 41c01ebe76fa17d619507f4c62f02c77d6ec476f | [] | no_license | Jallenbo/is-206 | c9b8f0c72e2be4a5d6e75183c393565e25d87201 | fe4355681177cdf8ad7f5c9e10494a51561341ed | refs/heads/master | 2021-01-22T11:55:30.047406 | 2013-11-20T19:02:02 | 2013-11-20T19:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,771 | py | import os
import re
import random
import hashlib
import hmac
import logging
import json
from string import letters
import webapp2
import jinja2
from google.appengine.ext import db
#############################################################################
# Most of the code have already been commented in earlier p... | [
"jallis9025@gmail.com"
] | jallis9025@gmail.com |
58f7bc0c1b6d6896548b509a10c2457ecb0fc356 | cf6c905f8a446f8f5601d28502a3ed0914707b1c | /mysite/polls/models.py | 660fa2798bd686661b3b6421f208058838c9a465 | [] | no_license | cy0926/poll_system | dce4a7f283e3de139898acde832292030f0b74be | 7136dc78f85963dfd1922278bd8538252e686d56 | refs/heads/master | 2020-03-29T19:06:19.624540 | 2018-09-25T10:34:03 | 2018-09-25T10:34:03 | 150,247,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from django.db import models
from django.db import models
from django.utils import timezone
import datetime
# Create your models here.
class Question(models.Model):
def __str__(self):
return self.question_text
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date... | [
"ying.cao@socialcredits.cn"
] | ying.cao@socialcredits.cn |
54c97e297d324e1c04ce62adc25c5a40c1064c83 | 5067e146db7de78f61e7f09bd07b1d0a982270d6 | /python/lists.py | 9f49ccc3dc0ce5d2793bbfd8dc216f1a37a90b41 | [] | no_license | AliNisarAhmed/exercism-solutions | 024e0c5a3af09ebd03b6f9003af2c165d88dcc16 | d59fa32eba2b34326a8de00799bbe16e9309c662 | refs/heads/master | 2023-05-27T00:07:49.083346 | 2023-05-16T05:12:34 | 2023-05-16T05:12:34 | 205,302,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | """Functions for tracking poker hands and assorted card tasks.
Python list documentation: https://docs.python.org/3/tutorial/datastructures.html
"""
def get_rounds(number):
"""Create a list containing the current and next two round numbers.
:param number: int - current round number.
:return: list - curr... | [
"ali.nisar87@gmail.com"
] | ali.nisar87@gmail.com |
33708d51847a2c0f48609d985a8d8d1f806b84ba | 1f69ebe2eb1aa6214ba4bc0288940f2d4e580ab7 | /Assignment/assi1/harmonic.py | 70d44e00de90a4115ee6c3b1686d88795b276f9b | [] | no_license | Prathamesh-Mone/PPL19-20 | 68f8003760d62c782163def37fcc74050f9a8e4f | c192deff3e171099cca5ab6c880ef01ba149cb9c | refs/heads/master | 2022-10-05T09:30:16.835203 | 2020-06-11T06:21:50 | 2020-06-11T06:21:50 | 248,428,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | def sumreci(n) :
i = 1; new = 0
while i <= n :
if n%i == 0 :
new = new + 1/i
i = i + 1
return new
def numdivisors(n) :
i = 1; count = 0
while i <= n :
if n%i == 0 :
count = count + 1
i = i + 1
return count
if __name__ == "__main__" :
... | [
"noreply@github.com"
] | Prathamesh-Mone.noreply@github.com |
5a3725eeee67221e679b1ce3bd76c0a296537a2b | e2f8aacdfa66c56a4b7cece704452f4aa264edae | /test.py | 8d3fddf836b381580f1e48a004164189d2702b58 | [] | no_license | jvaldiviezo9/Simple-Test | 7bcef97b356d91a554ca4327f699e642a9e39b9e | 4fe61e89a54fbe4fdcccde43f3a1826833cbc4dc | refs/heads/master | 2020-07-28T07:33:48.333185 | 2016-11-10T21:00:34 | 2016-11-10T21:00:34 | 73,417,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | class A():
def __init__(self):
self.x=7
self.y=8
self.z="name"
class Employee(object):
def __init__(self, _dict):
self.__dict__.update(_dict)
class Employee_2(object):
def __init__(self, *initial_data, **kwargs):
for dictionary in initial_data:
... | [
"jvaldiviezo@hotmail.co.uk"
] | jvaldiviezo@hotmail.co.uk |
0ed7b61468039bba0ea71d5de30d3e64d0193ad3 | 470ee78176c144bd8e97cdd87723c0b11881405e | /color model/test_large.py | ec8b305cfce7588c6f110c6f7a1151a3966c90b9 | [] | no_license | Jizhongpeng/RevSCI-net | d1f5317124bd51236690eb55d0f436103f04e02f | 71ac125ab47dce2e4c091936e3a659900b7da258 | refs/heads/master | 2023-06-06T03:40:43.300103 | 2021-06-28T11:10:45 | 2021-06-28T11:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py |
from dataLoadess import Imgdataset
from torch.utils.data import DataLoader
from models import re_3dcnn1
from utils import generate_masks, time2file_name, split_masks
import torch.optim as optim
import torch.nn as nn
import torch
import scipy.io as scio
import time
import argparse
import datetime
import os
import nump... | [
"zhcheng@stu.xidian.edu.cn"
] | zhcheng@stu.xidian.edu.cn |
0b89423c220dcc5323af0513aba930115f2245b1 | d89e79cbabe985368645e12271419faf60b2f0cd | /forest_quiebra.py | 1ac0f0d398749fcf21abc3300581d81438ecc0da | [] | no_license | DiegoCelis33/CarranzaDiego_Ejercicio17 | 39e7f303c9a11685b1072a8a99c5d021bd770658 | ea0f2b7c24c33076b00a942ade4a35e621a1dc54 | refs/heads/master | 2021-04-23T20:23:48.557351 | 2020-03-25T16:58:56 | 2020-03-25T16:58:56 | 249,995,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | #!/usr/bin/env python
# coding: utf-8
# In[90]:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd # para leer datos
import sklearn.ensemble # para el random forest
import sklearn.model_selection # para split train-test
import sklearn.metrics # para calcular el f1-score
from scipy.io import arff
... | [
"noreply@github.com"
] | DiegoCelis33.noreply@github.com |
bacc780f56a918e21b35b9fecc1d2a15d95159bf | 5d1a348e11ad652e6cc8f894d4ca774429f335f9 | /Prob-and-Stats/_Calculators/confidence_intervals.py | 014691dd6abedfa0a271ad2b36d1498a30b5a843 | [] | no_license | anhnguyendepocen/UCSanDiegoX | 5332fe0780540038c0cde70af70d67544a3e7725 | 053a1fae52f9b46188a9fcf10729f70d10b3db63 | refs/heads/master | 2022-04-18T03:23:27.636938 | 2020-03-30T23:29:40 | 2020-03-30T23:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | import numpy as np
from scipy.stats import norm, t, sem
from math import sqrt
# list = [60, 56, 61, 68, 51, 53, 69, 54, 80, 90, 55, 35, 45]
list = np.random.randint(low=35,high=71, size=20)
print(list)
n = len(list)
mu = np.mean(list)
sigma = np.std(list)
var = np.var(list)
bounds = t.interval(0.90, len(list)-1, loc=... | [
"broepke@gmail.com"
] | broepke@gmail.com |
1d2f837e23035bd76be330308e35d904b0065647 | ba5b9667eb2137af160d69724261e31314f7f5d7 | /awards/views.py | 04cc5c064ba2e2d1e5b8c7fde9f2e75e9a3bdf95 | [
"MIT"
] | permissive | NatashaSenah/awards | 4e5ebd43edc6ba8225eb39131b936715ba887c38 | 352c72f40a1d1afa660456bd3d03934b097c149c | refs/heads/master | 2020-04-01T00:49:17.664144 | 2019-10-22T18:30:08 | 2019-10-22T18:30:08 | 152,714,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,938 | py | from .forms import NewProjectForm,ProfileForm,Votes
from django.contrib.auth.decorators import login_required
from django.shortcuts import render,redirect,get_object_or_404
from django.http import HttpResponse
from .models import Project,Profile,Ratings
from django.contrib.auth.models import User
# from django.http im... | [
"tashsenah@gmail.com"
] | tashsenah@gmail.com |
4b009d4e9e69e1406c459682024b574fc33ec762 | 92eb95fdf52bef9a8c66a6bd7062ac3ab3fc4d0e | /setup.py | 01a14d692b5d558e08849ee91b0793dc734fefcf | [] | no_license | alfredodeza/helga-jenkins | 4636919b6ed50356e50d9f8ede9f88e423a97602 | 7ed0572eb563ee36fcfa0f436b0473fe56364a11 | refs/heads/master | 2021-01-17T13:33:52.710495 | 2016-12-01T12:52:58 | 2016-12-01T12:52:58 | 34,229,899 | 3 | 2 | null | 2016-06-06T15:46:22 | 2015-04-20T00:30:04 | Python | UTF-8 | Python | false | false | 911 | py | from setuptools import setup, find_packages
version = '0.0.5'
setup(name="helga-jenkins",
version=version,
description=('jenkins plugin for helga'),
classifiers=['Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: OS ... | [
"alfredo@deza.pe"
] | alfredo@deza.pe |
6bf08a5eeb7496d01194cd95a6a6b984dc689343 | 129afd7e69b9105c1a80e1b51d73c2cd6a582025 | /uniquewords.py | 608c31e0a5f742fc028ced615d40e264c86d878a | [] | no_license | sailskisurf23/sidepeices | 736d977e7194843827e8cf6b0a9402fbe63ea580 | 582d40b761d7c6e215a3b27e6fb1665fce492948 | refs/heads/master | 2021-09-25T10:09:40.864109 | 2018-10-20T19:02:01 | 2018-10-20T19:02:01 | 101,957,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #userinput = "enter comma-seperated list of words: "
userinput = 'hello, there, how, are, you, hello, you'
set1 = set([x.strip() for x in userinput.split(',')])
print(", ".join(set1))
| [
"colinbrochard@Colins-Air.attlocal.net"
] | colinbrochard@Colins-Air.attlocal.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.