blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9cf0f32bf084dae5f77deaf0c8b0fa769f272b68 | f4c2244632310fdeb0578a3112ef75ce9727fe3b | /Hackerrank/Python/Finding-the-percentage.py | 3d60e194c10276705f4c427cb0098d6b2b9f5052 | [] | no_license | KUMAWAT55/Monk-Code | 1f4ba5709d5ebd64cbd72c1cfdb49f6b7f38d3f7 | 9920ccc74aa26ccf7bb6e530be400081a93e9c1c | refs/heads/master | 2021-05-14T02:10:02.985763 | 2018-02-16T17:58:53 | 2018-02-16T17:58:53 | 43,749,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
n=input()
dic={}
lis=[]
for i in range(n):
a=raw_input()
lis=a.split()
d=lis[0]
lis.remove(lis[0])
lst1=list(map(float,lis))
dic[d]=lst1
name=raw_input()
if name in dic:
marks=dic[name]
t=0
for i in marks:
t=t+i
t=t/le... | [
"noreply@github.com"
] | noreply@github.com |
80c33d1bb5c426a16cacf906af5e9b05cce93b96 | 8542fbf185f9d1e7776520360d0eb1653a5cf0c4 | /Movie DDRental/src/MovieDDL/controller/ControllerRental.py | b11eeeac662de63d46ae1658003c2e702383a12d | [] | no_license | Skysoulther/Python-assignments-A1 | 7e1d520b6eb33dde06df96eeca3d11a0966b4ded | 85bd43fbf4a82d2cc31a90fd65b17e403f7f07fd | refs/heads/master | 2021-01-16T23:03:26.112330 | 2017-01-15T18:24:18 | 2017-01-15T18:24:18 | 71,887,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,131 | py | '''
Created on 6 Nov 2016
@author: DDL
'''
from MovieDDL.domain.Entities import Rental
from MovieDDL.controller.UndoController import Operation
from MovieDDL.controller.ControllerExceptions import ControllerException
from MovieDDL.repository.SortingFilter import SortingFilter
import datetime
class rentalController:
... | [
"skysoulther@gmail.com"
] | skysoulther@gmail.com |
3f76c5219763ce65b0e9516ffd62f0b5c83303d7 | b603ec8037a2aee7dc0426cc0baffb5889011a3f | /Final_Task/transformers.py | 7824d1269b9e612c196418402806bad5950fa7d0 | [] | no_license | SiarheiZhamoidzik/Python-Course | 30ae0398229ba44424ebff19a7054dc9855c6126 | 54dad20a4f6aad9d08bca7a260921f5484eda668 | refs/heads/master | 2023-06-05T23:50:41.265452 | 2021-06-23T07:31:20 | 2021-06-23T07:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #from collections import defaultdict as dd
#from datetime import datetime
#from copy import deepcopy
#from datetime import datetime
#import re
class FeatureTransformer:
@staticmethod
def transform_date(date):
pass
@staticmethod
def price_to_float(price):
pass
| [
"Egor_Pilat@epam.com"
] | Egor_Pilat@epam.com |
159e1bbb69f50777b2ba294e3298a272b72dcb2a | 7f4c82f7eb8d2805e378586f14e214cdaacfdb4a | /books/model/CommentList.py | 4c2ece791575dd51f9a9ea502c5e8bd24457084a | [
"MIT"
] | permissive | deepubansal/books-python-wrappers | 5a922267ec8382b3542638d894c96f4891b57bf5 | 51210c8d557a32564f976a56214d3c0807f46a90 | refs/heads/master | 2022-12-05T11:25:01.694021 | 2020-08-29T07:35:23 | 2020-08-29T07:35:23 | 288,738,813 | 0 | 0 | MIT | 2020-08-29T07:35:24 | 2020-08-19T13:26:04 | Python | UTF-8 | Python | false | false | 1,042 | py | #$Id$
from books.model.PageContext import PageContext
class CommentList:
"""This class is used to create object for comments."""
def __init__(self):
"""Initialize parameters for Comments list."""
self.comments = []
self.page_context = PageContext()
def set_comments(self, comment)... | [
"sahaya.ramesh@zohocorp.com"
] | sahaya.ramesh@zohocorp.com |
56268a103fe83d78d38f018dedf55473c7f45c3a | b089108f89769712e7d5be265f19f87f2912b6e3 | /Práctica 7/Ej14.py | 46f7b862b0a1da05e33538ac3e8c560c9137aa18 | [] | no_license | Asintesc/PROGRAMACION | f8dc02950dfde03204008bca1f2327fb3841396f | bd42203f7218c30111251cb9a8f4feb8486569b1 | refs/heads/master | 2020-08-20T17:38:32.454570 | 2019-12-10T15:54:20 | 2019-12-10T15:54:20 | 216,049,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | diccionari = {
1: 'Enero',
2: 'Febrero',
3: 'Marzo',
4: 'Abril',
5: 'Mayo',
6: 'Junio',
7: 'Julio',
8: 'Agosto',
9: 'Septiembre',
10: 'Octubre',
11: 'Noviembre',
12: 'Diciembre'
}
fecha = input("Dime la fecha: ")
def fecha_mes(d,f):
split = f.split... | [
"albeertsc@gmail.com"
] | albeertsc@gmail.com |
96b63c7726f7ad96496b3359c66f0089bdb68609 | 663e7987c923fac93c96921e6a6bd4eebdc43873 | /P3_Implement_SLAM/helpers_test.py | 2af7b3d7c15221776f23121e70ad022f7a68df05 | [] | no_license | boyshen/udacity-cv | dcbc376f33c3f894149efe635d55712d967c9627 | 974b2520231be31e9c6905606b3ed08d75448f8e | refs/heads/master | 2020-04-29T21:12:49.568127 | 2019-05-08T04:25:26 | 2019-05-08T04:25:26 | 176,406,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | from robot_class import robot
from math import *
import random
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
# --------
# this helper function displays the world that a robot is in
# it assumes the world is a square grid of some given size
# and that landmarks is a list of landmark position... | [
"yangwayu999@qq.com"
] | yangwayu999@qq.com |
5b999742e90a5b35598a16d0af48b143d26136b8 | 4f24e195835c07e451a6b250ad8c056cd8858164 | /socket/nodemcu/nodemcu.py | 8e3e33c84413bac45c95457f90b280694617df9a | [] | no_license | nano-2-ly/nodeMCU-server | e16d1ea05ea53bef3641585fc64ee7fa3f49c688 | b7d58afec687efa2418c062e86e0cd791aac26b3 | refs/heads/master | 2020-07-04T10:00:11.316270 | 2019-08-14T01:27:22 | 2019-08-14T01:27:22 | 202,249,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Echo server program
import socket
import sqlite3
conn_db = sqlite3.connect('./nodemcu_DB.db')
cs = conn_db.cursor()
query = "CREATE TABLE IF NOT EXISTS data (ip VARCHAR(255), data VARCHAR(255))"
cs.execute(query)
HOST = '' # Symbolic name meaning all available interfaces
PORT = 8000 # Arbi... | [
"dong991207@unist.ac.kr"
] | dong991207@unist.ac.kr |
243f9844bc2368e7521d055910a36de2f944497b | c03225c395b5b0d8cdd79e88f78c13666c7c953a | /utils/dataset/__init__.py | 816fb0be6aedd8710f9820a6ca430f6ba99fe353 | [] | no_license | zhaoyin214/cv_lab_pytorch | de52bacd098c378cd06a80f6f77a76b42d7d0e42 | 4ccaf973678943f6b8e3b07d053cc447d5d57e76 | refs/heads/master | 2022-11-17T06:48:58.121305 | 2020-07-15T23:48:33 | 2020-07-15T23:48:33 | 272,972,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from .load import load_ibug_300w | [
"zhaoyin214@qq.com"
] | zhaoyin214@qq.com |
44e91287be6fa1cf1f09cf83e30d086e58f1966e | 2e4e85c1e871eb5e258d6bd03ad20541757c9095 | /change_tracker/frcnn_object_detector.py | 8d20a119e6bcf084ba5996ae670a6bde0101bf2a | [] | no_license | emreegriboz/od_api_tf_my_notebooks | 222f734985ad19044f192d9b8c57d6602829a957 | c66d760d8cf60ffd2c96dc7ad2cc02fecab60dd5 | refs/heads/master | 2022-01-12T21:21:24.639884 | 2019-05-23T15:33:52 | 2019-05-23T15:33:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,751 | py | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from distutils.version import StrictVersion
from collections import defaultdict
from io import StringIO
from matplotlib import pyplot as plt
from PIL import Image
# This is needed since the ... | [
"bbaltac.mihai@gmail.com"
] | bbaltac.mihai@gmail.com |
c0e5794c8fba8e6317e8362da2e6120a576bd597 | a69673b0cc47c7bd4156cc5181e6a60698d1e5de | /application/admin/delete_db.py | cc5ab0ff0e7ce40531bc66a78002e8ad3e77774f | [] | no_license | tible/HT-Match-Predictor-Py | e33fc9882250636cf50d73dc0ed7ba45a38e6fd2 | 25a3561ae1ffe68a944e9f41ee363e2ab1cfe108 | refs/heads/master | 2022-07-10T21:53:17.628218 | 2020-05-19T14:25:54 | 2020-05-19T14:25:54 | 265,358,319 | 1 | 0 | null | 2020-05-19T20:28:09 | 2020-05-19T20:28:08 | null | UTF-8 | Python | false | false | 449 | py | import os
from sqlalchemy_utils import drop_database
import application.dialog_windows as dw
import global_library
def delete_database():
if os.path.exists(global_library.database_file_path):
drop_database(global_library.database_file_uri)
dw.show_info_window_in_thread(title='Succes!', message='... | [
"alex.zanardi@gmail.com"
] | alex.zanardi@gmail.com |
d7e694d8b7e339f353fe621aef7be75b1bd0d979 | 9a1b033774e371bd6442048f43e862dfb71abed7 | /Lists As Stacks And Queues/Exercises/Cups_and_Bottles.py | 57a94258fc2f957d4054343b06ab2bb9d026c989 | [] | no_license | mialskywalker/PythonAdvanced | ea4fde32ba201f6999cd0d59d1a95f00fb5f674b | c74ad063154c94b247aaf73b7104df9c6033b1a5 | refs/heads/master | 2023-03-09T00:13:28.471328 | 2021-02-24T15:21:11 | 2021-02-24T15:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from collections import deque
cups_capacity = deque(int(el) for el in input().split())
bottles_capacity = [int(el) for el in input().split()]
wasted_water = 0
while True:
if not cups_capacity or not bottles_capacity:
break
bottle = bottles_capacity.pop()
cup = cups_capacity.popleft()
total ... | [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
04ee7321aedd012f9d423909892f46d094c42241 | de570029bc591e7fe8371151d9376803fc501561 | /Facial Expression Recognition/project/com/dao/DatasetDAO.py | dd42591ea724f86f124f310c574879d29ea8eb4a | [] | no_license | MaulikZalavadiya/final_year_project | fdc82cb177dbfb931bb69b58ad7ccb9867caf276 | 7b2c30dec3d832bae79da8673f04fce76ff23233 | refs/heads/main | 2023-01-23T01:58:27.100437 | 2020-11-25T09:43:23 | 2020-11-25T09:43:23 | 315,892,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | from project import db
from project.com.vo.DatasetVO import DatasetVO
from datetime import datetime
class DatasetDAO:
def insertDataset(self, datasetVO):
db.session.add(datasetVO)
db.session.commit()
def viewDataset(self):
print("hello from viewDataset")
datasetLis... | [
"maulik@aksharmineche.com"
] | maulik@aksharmineche.com |
2a8f39b09a2cb2ea1eafb3b7598ac5640ccedeef | 07149c3efeb879a3f7dbe735d8efb4427323d455 | /src/hubmap.py | 6866ba93f30209c2b3303847675a0bbf666d5f19 | [] | no_license | Bdl-1989/KidneyRepo | c5bac80603902a05760e84c9e0db533cae726d4f | c8f02d6a351b29b35e03627d4116f474249e4377 | refs/heads/main | 2023-02-11T00:30:51.848849 | 2021-01-05T14:27:20 | 2021-01-05T14:27:20 | 327,018,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | from common import *
import tifffile as tiff
import json
data_dir = os.getcwd() + '/data'
def read_tiff(image_file):
image = tiff.imread(image_file)
if image.shape[0] == 3:
image = image.transpose(1, 2, 0)
image = np.ascontiguousarray(image)
return image
# --- rle ------------------------... | [
"dl.super@hotmail.com"
] | dl.super@hotmail.com |
619678a330185af0106634f96800527442f9aecb | 471cab6ba89d01cf0361722ee02cbc33b2787c49 | /_exercicios/ex067_a15_tabuada_3.0.py | 4dcf60c62e864919f32aae0deafd54ec62852c5e | [] | no_license | ercris990/_curso_gg_py_3 | 2e9d6445ec9b0f40bca36bbfd684a09d5b91cb3b | fe4ab944be911edf51683fdab0d6aa452ed96b12 | refs/heads/master | 2022-11-30T02:00:53.947613 | 2020-08-09T10:59:41 | 2020-08-09T10:59:41 | 282,326,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | num = 0
while True:
num = int(input('Digite um valor para ver a tabuada: '))
print('_-_' * 13)
if num <= 0:
break
for i in range(1, 11):
print(f'{num} x {i} = {num * i}')
print('=+=' * 13)
print('PROGRAMA TABUADA ENCERADO. Volte sempre!')
| [
"ercris990@gmail.com"
] | ercris990@gmail.com |
416d169e47bff48b0597e33ac2869e41bcc7c7d2 | c2b222336e5595b0c73c78be51ba34c4ea6c8f40 | /inClass03nap.py | 291378742e09bb2c20b75bb37fd7064dce874f56 | [] | no_license | npaul007/DataStructuresHomeWorkCSC212 | 794cad073cc1cedbc8b3ce8a6991cd1f933bbe03 | cbcd84b8fec91bc410e531c380d8fcde7550a6b9 | refs/heads/master | 2020-05-23T12:26:54.866907 | 2017-04-23T03:23:58 | 2017-04-23T03:23:58 | 84,768,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,793 | py | # Implementation of an Unordered List ADT as a linked list. The list
# is accessed through a reference to the first element, head.
# Adopted from Section 3.9 of the textbook.
# Node class representing a node in a linked list
# A node contains data and reference to the next node
# Adopted from Section 3.9 in the tex... | [
"npaulemon@gmail.com"
] | npaulemon@gmail.com |
833b2cedd23e6d055dabd3abc3309d7d8b3dd5c7 | 727feea87e535902c39324f49b6bdc68798bc640 | /qad_api/__version__.py | 3d8040fa073c4e2cdb5809d99d9ee9a50a2aab44 | [
"Apache-2.0"
] | permissive | stjordanis/qad-api | b1cb510e77476f517279a4adeb574a997add0133 | 123200d1a5044b8e38a73b3c40f0870ff603c1be | refs/heads/master | 2022-12-22T19:19:14.236532 | 2020-10-06T07:14:12 | 2020-10-06T07:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # Copyright 2020 HQS Quantum Simulations GmbH
#
# 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 agree... | [
"sebastian.lehmann@quantumsimulations.de"
] | sebastian.lehmann@quantumsimulations.de |
346c684e98233a116ab34c44eac7e3ba8cb16476 | c11f738961c5d699ce91100d7c33b5877a814477 | /userpro/models.py | 227d38f0ee2fa5431d175416f1c7441859ad6ad2 | [] | no_license | dotaing/icqb | 0c29e38c0fd673a9056871df262dc83b0270ec11 | 97bc47f8a3d2625648ea89136c83dd668e801d7b | refs/heads/master | 2021-01-01T05:21:06.414451 | 2016-05-09T10:18:34 | 2016-05-09T10:18:34 | 58,362,651 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | #-*- coding:UTF-8 -*-
from django.db import models
class UserGroup(models.Model):
"""用户权限分组"""
name = models.CharField(unique=type,max_length=20,verbose_name="组名称")
permission = models.CharField(max_length=500,verbose_name="组所有权限")
is_doc = models.CharField(max_length=200,verbose_name="注释")
def ... | [
"9512727@qq.com"
] | 9512727@qq.com |
46449184dd1392a243a1a920c645acf77d085a56 | 96bc060c502db8b2dd4308bf0ec4d12422ef3f61 | /portfolio/migrations/0001_initial.py | 2d77c7409c77457420039f7ded4d21ce32d58203 | [] | no_license | kdh92417/new_stock_api | 0b5c1708d5e6d089ce300eb1eeb64c268d111af3 | 271978a3f33daa66930e7a101d802e6d88892d4c | refs/heads/master | 2023-08-11T08:26:06.852435 | 2021-09-22T13:05:01 | 2021-09-22T13:05:01 | 395,270,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | # Generated by Django 3.2.7 on 2021-09-21 20:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('company', '0001_initial'),
migrations.swappable_dependency(sett... | [
"kdh92417@gmail.com"
] | kdh92417@gmail.com |
03432da73f21498b90e123b644298e3e39f491fb | 016f273695785240bb01f416c812ddc072586ef5 | /PMI/2016/ShamugijaLika/task_1_18.py | ecfedbda2bdb540c0868538454c6ff5a1021cf27 | [] | no_license | Rokkitt/rgr | 55fcf2ea45166d05fbcfdbe4c81ac78951ed50a5 | 64d02b45f1e1d5a4aff3338bc8b1faa5165797ae | refs/heads/master | 2021-01-21T10:41:45.289912 | 2017-04-08T18:53:23 | 2017-04-08T18:53:23 | 83,471,719 | 0 | 3 | null | 2022-03-23T12:08:24 | 2017-02-28T19:36:10 | Python | UTF-8 | Python | false | false | 660 | py | #Задача 1. Вариант 18.
#Напишите программу, которая будет сообщать род деятельности и псевдоним
#под которым скрывается Мария Магдалена фон Лош. После вывода информации
#программа должна дожидаться пока пользователь нажмет Enter для выхода.
#Shamugija L.G.
#13.03.2017
print("Затянувшаяся дискуссия означает, что обе... | [
"shelley.bass.li@gmail.com"
] | shelley.bass.li@gmail.com |
96725e15b759b87dd5e711c6eaba643f5e3dc82a | 6cbc748a19758c702b2ebcc4085157e42bdb8436 | /Class9_[18-11-2018]/zip.py | 41c0ce1a52a2cab3abc3c846845cb2647ad77ef5 | [] | no_license | rohitgit7/Ethans_Python | 5a426410a2ef34b5fa08d04c9bd807860ce5fb55 | 621b28d477764b5a98c8182eaa7c61aaea930890 | refs/heads/master | 2023-01-12T19:57:10.638671 | 2020-11-16T12:12:33 | 2020-11-16T12:12:33 | 313,290,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #Zip() aggregates elements based on the iterables passed, and returns an iterator of tuples
#List of tuples
lt1 = [1,2,3,4,5]
lt2 = ['one','two','three']
lt3 = ['a','b','c','d']
ret = zip(lt1,lt3,lt2)
print ret #will print the list with smallest no. of elements(here lt2)
print "ret[0]",ret[0]
print "type(ret)",type... | [
"rohitgit7@users.noreply.github.com"
] | rohitgit7@users.noreply.github.com |
058afedbf094af580771ffe9fc6a5a0d485bc5be | 82779f61bb540c5eb5376746d04930de9e5e9d08 | /traveler/urls.py | 464a7af40a432eb867e1c073f8f7b5a0e6575479 | [] | no_license | vijayraval406/TravellerApp | fe6f7dff963ac7d99643abf7e8b25c621dbe043a | 3abf631db060e6df91668b39986e3a9378933eff | refs/heads/master | 2023-06-20T12:00:47.660808 | 2021-07-21T15:58:56 | 2021-07-21T15:58:56 | 388,171,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index,name='index'),
path('contact/',views.contact,name='contact'),
path('destination/',views.destination,name='destination'),
path('pricing/',views.pricing,name='pricing'),
path('signup/',views.signup,name='signup'),
... | [
"rvr10081985@gmail.com"
] | rvr10081985@gmail.com |
aee868eb2597469429538bbd075d10a018a753ac | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode_medium/Question_111_Combination_Sum_III.py | 96ac21f6e928162be84fa4ea48977d9e38d1fd35 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | #!/usr/bin/python
# coding: utf-8
class Solution(object):
def combinationSum3(self, k, n):
"""
:type k: int
:type n: int
:rtype: List[List[int]]
"""
vec = []
res = []
self.helper(k, n, 1, vec, res)
return res
def helper(self, k, n, l, vec... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
5c4481583616b552e258f790a750fce1afc4245a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/MPOA-EXT-MIB.py | 8cccf569872dba8ee2a1f2f3442c0ee661ce4a91 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 10,427 | py | #
# PySNMP MIB module MPOA-EXT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/MPOA-EXT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 14:14:59 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019,... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
32dfb20f883bdf96177a04c14bb4d9b15114f4a0 | 645877ca2c70cdb573e729aa2873f91057dbb990 | /Frontend/Password_Window_S.py | fd6349dcdb908ab0ae4f2b6b030f80143541ad4c | [] | no_license | Jefferson-9907/SYSTEM_IFAP | aa9c7fdc8c7cc4c5b1c9061016b6fece23ca12ab | 4c79258ec7dcbf92dfbd3cd0ec2841f016b31111 | refs/heads/main | 2023-07-20T20:08:37.399487 | 2021-08-14T01:03:48 | 2021-08-14T01:03:48 | 395,813,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,167 | py | # Import Modules
from _datetime import datetime
from tkinter import *
import mariadb
from tkinter import messagebox, ttk
class Password_S:
def __init__(self, root):
self.root = root
self.root.title("SYST_CONTROL--›Usuarios")
self.root.attributes('-fullscreen', True)
self.root.res... | [
"jeffersoncaguafigueroa@gmail.com"
] | jeffersoncaguafigueroa@gmail.com |
c3f2b8f0d8c6f079bf8e9c35baec97c029ca844c | e2a7d114abe00c293a661506382aabc991144dd5 | /Services/ResponderMensagem.py | 990231df1d928d5684bfabb381b8b747df9ebe4f | [] | no_license | alexaugustobr/impacta-desenvolvimento-aplicacoes-distribuidas | 57978053cbacd678802f830bc838c5e756e6b770 | c449dc7aa5c790e09a596971b507ced6308e3f94 | refs/heads/master | 2021-09-14T12:25:54.427637 | 2018-05-13T20:44:54 | 2018-05-13T20:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from Server import mensagens
from Models.Mensagem import Mensagem
from Services.CadastrarMensagem import cadastrarMensagem
def responderMensagem(id, resposta):
for mensagem in mensagens:
if str(mensagem["id"]) == str(id):
resposta = cadastrarMensagem(resposta)
mensagem['respostas']... | [
"alex.augusto@cartorios.com.vc"
] | alex.augusto@cartorios.com.vc |
4226d913c82fc3fd3d68a44df6697fe697b6cc5c | ca5b5c217e0053645c2664d777699e9a5050715e | /tex/gen_links.py | 2a733f8bffe856d7ac4c2dffecd46daa7733bfae | [
"MIT"
] | permissive | rodluger/starrynight | 1405ffdb5a0dd0fefc0ae34e7cdaf7eab4735356 | d3f015e466621189cb271d4d18b538430b14a557 | refs/heads/master | 2021-10-26T03:32:15.220725 | 2021-10-22T15:16:48 | 2021-10-22T15:16:48 | 236,542,672 | 7 | 1 | MIT | 2020-06-03T19:51:10 | 2020-01-27T16:58:05 | Jupyter Notebook | UTF-8 | Python | false | false | 881 | py | from __future__ import print_function
import subprocess
import os
# Generate the github links
hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("utf-8")[:-1]
slug = "rodluger/starrynight"
with open("gitlinks.tex", "w") as f:
print(
r"\newcommand{\codelink}[1]{\href{https://github.com/%s/b... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
44cd07d49d544ba58d1b0d5a4e6f1e31628e7fb4 | 200d2ab5cb13df314d7fa9a7e281000d32b72b5e | /asd.py | 44660173276579fdf4cf39b4c433e56de2460401 | [] | no_license | xowjd258/ML_with_python | 246bece6a22177a5b4231c8b4cdbb2602607ffbd | 814e289a25768caf3fb0780e3d25e03a81b54233 | refs/heads/master | 2020-08-02T16:24:39.304517 | 2019-11-24T07:46:04 | 2019-11-24T07:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import torch
# In[2]:
torch.empty(5,3)
# In[3]:
x=torch.rand(5,3)
# In[4]:
print(x)
# In[5]:
torch.zeros(5,3,dtype=torch.long)
# In[6]:
a=[
[1,2,3,4],[2,3,4,5]
]
# In[8]:
torch.FloatTensor(a)
x = torch.tensor(a)
# In[10]:
print(x.size())
... | [
"noreply@github.com"
] | noreply@github.com |
fa20d3ae1f8e6295713b6a8f217a871b4d843616 | b6f4393777d4f6a3a8b599700ce3405be76c4bc4 | /Apple-Music/Leticia/api/models.py | eb394de811af6473a82f9e7f5f7aa8d11e8e4c24 | [] | no_license | azatnt/Apple-Music-rest_framework- | b13897dd40337384469df269cdf46bd085487442 | 09b7e602078a6d82f63725b757bb657afd221776 | refs/heads/main | 2023-02-10T16:45:47.618860 | 2021-01-14T14:37:25 | 2021-01-14T14:37:25 | 326,934,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django.db import models
import string
import random
def generate_unique_code():
length = 6
while True:
code = ''.join(random.choices(string.ascii_uppercase, k=length))
if Room.objects.filter(code=code).count() == 0:
break
return code
class Room(models.Model):
code =... | [
"58590243+pr1nce07@users.noreply.github.com"
] | 58590243+pr1nce07@users.noreply.github.com |
def63f86d5ae9ed379eaafccbf5fab2b06e4b68a | eb2998606d9b8e6ad9ecdb5a602f2060cb9f5d55 | /scripts/guiScripts/pathLists.py | 2ca77076d1a8b3f7164f0461b01799bb4bcc6e3b | [] | no_license | hirokimoto/CodeAnalysis | 5faa2fdf8ce2502c2d9434e2127fa0871f85e941 | 5f8bc2962dfc366c5eafdfac17801f56decc857a | refs/heads/master | 2021-01-19T15:50:02.866043 | 2017-04-14T18:39:10 | 2017-04-14T18:39:10 | 88,230,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#pathLists.py
#Defines lists which will be used on the GUI and main to synchronize
#Created: ssia@keystonestrategy.com
#Last Updated: 11/16/2016
def returnPaths():
pathList = ["rampout", "diffout", "inputFolder", "langDef", "undpath", "strings", "depout", "profout", "... | [
"hiroki.moto.pro@outlook.com"
] | hiroki.moto.pro@outlook.com |
df04a0ca32872fae075e270fad43a2e7b4c7e86f | 0b8b6b6ae8e3544f214c18aab5a023ce45e4e763 | /Partie 3/app/boids.py | 519c11a75df78d5302fd98dad42241d59913a69e | [] | no_license | 3201101/3I025 | 7b86ac478fa85cf73d88543b60f0464f0a7d4661 | 89dbbb1f3d88bf9d69f625d4b2f65576cf0b09aa | refs/heads/master | 2021-01-13T00:37:37.627313 | 2016-04-12T00:35:10 | 2016-04-12T00:35:10 | 51,313,851 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,271 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# multirobot.py
# Contact (ce fichier uniquement): nicolas.bredeche(at)upmc.fr
#
# Description:
# Template pour simulation mono- et multi-robots type khepera/e-puck/thymio
# Ce code utilise pySpriteWorld, développé par Yann Chevaleyre (U. Paris 13)
#
# Dépendances:
# ... | [
"loglisci@hotmail.fr"
] | loglisci@hotmail.fr |
da07c9bf4e4dfa6fedec67e45efc284753925f26 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02952/s489061530.py | c11b8cfc760ea2a0ea44bc3ca92b0888dbd71b04 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | s=str(input())
n=len(s)
s=int(s)
if n==1:
print(s)
elif n==2:
print(9)
elif n==3:
print(10+s-100)
elif n==4:
print(909)
elif n==5:
print(910+s-10000)
else:
print(90909) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e5de502355aee9790733fb5254d6bc4f05305577 | 0024f0d37290bca5e15ec2c5a2d569cb03a7acd5 | /main/urls.py | 8836528307934fd1111e7ad2e8dea60eacfdcc2b | [] | no_license | Anjali-Joy/covidSafe | 78d9483f248923a7cc6905ad419bdcfc68ba12a6 | 0b32b0f3c9d3469804f104913c10f1d299eeb633 | refs/heads/master | 2023-01-24T04:10:23.776063 | 2020-11-30T18:43:33 | 2020-11-30T18:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | """covidSafe URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-bas... | [
"neharosegeorge@gmail.com"
] | neharosegeorge@gmail.com |
bb9751619e50440d869dca9747dcc8bbc008e715 | 6e54ce02441211085d2dff6a3d9ef4127b2902e8 | /manage.py | 4af45206f7a7f222d5204c3ece4239dd1cb6c8ef | [] | no_license | jeffplata/flask-base-app | 3079ec96e8c80109ce56ac989a4e0f86a69279b9 | 69843974d92bc762888d5f86186287b8018461e9 | refs/heads/master | 2022-12-29T07:52:36.849474 | 2020-10-12T00:30:43 | 2020-10-12T00:30:43 | 303,238,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | """This file sets up a command line manager.
Use "python manage.py" for a list of available commands.
Use "python manage.py runserver" to start the develop web on localhost:5000.
Use "python manage.py runserver --help" for additional runserver options.
"""
from flask_migrate import MigrateCommand
from flask_script i... | [
"rjreside@nfa.gov.ph.local"
] | rjreside@nfa.gov.ph.local |
26cc986e7a163cb9431a684a0d09b876fd8e7f95 | 354ee2dc23ac7a58bbe512c98d9febf2bfa47249 | /py/bee/bee_runner.py | f83143f45c83d19b38d84cf6b3400fc6a6487785 | [] | no_license | domingoxx/bee-leader | 61ccb82a48bfa0d552a5d3c6f038a160dfae156f | 6500757e7277fc7af3aa91d2640376e39420d2fb | refs/heads/main | 2023-05-30T07:21:26.501833 | 2021-06-08T13:33:23 | 2021-06-08T13:33:23 | 372,505,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | import sys,threading, subprocess, signal, os
commandArgs = " ".join(sys.argv[1:])
def beeDataPath(dirname):
return f"/opt/data/{dirname}/bee"
def kill_child_processes(parent_pid, sig=signal.SIGTERM):
ps_command = subprocess.Popen("ps -o pid --ppid %d --noheaders" % parent_pid, shell=True, stdout=subprocess.P... | [
"wangchenxu92@gmail.com"
] | wangchenxu92@gmail.com |
8566bb358d3e0f236f623eb78b073d0d7776e85a | 77dcc06d8237c98218924a16b3138c857c405721 | /mysite/settings.py | 7b36e6d9443e22f10a8b8d9f3ab5dd262027efff | [] | no_license | gtoerner/django_shopcart1 | 8a7f10f21e007dfca17b2be5e51a57ada6842481 | 6aee9eaa3ba604846fccf318ba50ab94ab7011da | refs/heads/master | 2020-03-25T22:41:36.276309 | 2018-08-10T04:44:37 | 2018-08-10T04:44:37 | 144,236,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"gtoerner@gmail.com"
] | gtoerner@gmail.com |
0823f5ea3e81c4e1e9f4032ea6744467374ffecf | da00754b095f2783166aa50eaab83d6d0875488b | /blog/models.py | 14f1278870c00fa950830261027e1091b8248466 | [] | no_license | Krom121/Pytonixs-v2 | 0e5b6c575c16715b0be471b2472c59a665c1317a | 087ddcffe2c414b0da78f7d994f9990594031cae | refs/heads/master | 2022-12-11T18:29:00.077621 | 2020-01-22T14:32:02 | 2020-01-22T14:32:02 | 235,055,686 | 0 | 0 | null | 2022-12-08T03:28:59 | 2020-01-20T08:43:55 | CSS | UTF-8 | Python | false | false | 3,305 | py | from django.db import models
from django.urls import reverse
from django.utils import timezone
from django.contrib.auth.models import User
from ckeditor_uploader.fields import RichTextUploadingField
from ckeditor.fields import RichTextField
from imagekit.models import ImageSpecField, ProcessedImageField
from imagekit.p... | [
"stephenmacgregor9@gmail.com"
] | stephenmacgregor9@gmail.com |
2b871da9be741dbd1b9ef07d92c2e2156e9f0b24 | 16eccb09227958ef909c745b76df9c9eb264fa3d | /blog/migrations/0004_auto_20191111_0432.py | 0c3bc1cf60c80bb7dfc38a1852bff9e929778b6a | [] | no_license | yosephbernandus/my-first-django | f53f48b5e7cc60e8ad5ca14ba1d9c9a607d91a6d | a1ad6ac815eb548e49e20555279c66d7001731c6 | refs/heads/master | 2020-09-11T22:13:00.086623 | 2019-11-20T12:40:30 | 2019-11-20T12:40:30 | 222,206,869 | 0 | 0 | null | 2019-11-20T12:40:31 | 2019-11-17T06:26:53 | Python | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.2.6 on 2019-11-11 04:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20191111_0310'),
]
operations = [
migrations.AlterField(
model_name='post',
name='tag',
... | [
"yosephbernandus@gmail.com"
] | yosephbernandus@gmail.com |
9ff36f0d84b6706713ba5db7bb10bfe7f268b71d | 0ca383fe9093940e549b38a06ad1b9f199d9b675 | /water_quality_index/taskOne.py | 55e85c30b74ef8b2bc1a14722e2164a63aa9dd05 | [] | no_license | harshithanjaniathi/HYDROTEAM8 | b79911929d378e7dfa5f78abd351c179ca09ddc4 | abae29d75d278d3fbdaa51e1d87349a1c452c13a | refs/heads/master | 2022-12-24T01:58:45.713576 | 2020-10-03T06:30:24 | 2020-10-03T06:30:24 | 300,853,287 | 0 | 0 | null | 2020-10-03T10:38:40 | 2020-10-03T10:25:41 | null | UTF-8 | Python | false | false | 2,347 | py | import tkinter as tk
from selectPage import SelectPage
from vars import Vars
class TaskOne(SelectPage):
def __init__(self, parent, controller):
self.pH = "pH"
self.temp = "Tempurature"
self.wind = "Turbidity"
self.tdv = "Total Dissolved Values"
self.ns = "Nitrates"
... | [
"cipher.bsd@gmail.com"
] | cipher.bsd@gmail.com |
93698e028445ae34d152462b1fb93ed46657de65 | 4c6d87577d9f12c08b5cd23ca294e0c94ebf92fd | /app.py | 62a558972aadd15b280de597e2cfa26fc75d31f3 | [] | no_license | wonhee0803/web-midtem-test | 732b3aba9650e1926ebc56b00cfc72f134dc22d8 | 7353ad8e39ea0f608b52bb6436145cd76ea05647 | refs/heads/master | 2023-01-05T09:20:58.636442 | 2020-10-29T13:38:09 | 2020-10-29T13:38:09 | 303,866,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | from flask import Flask, render_template
from flask_bootstrap import Bootstrap
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
import os
basedir = os.path.abspath(os.path.dirname(__file__))
app = Flask(__name__)
bootstrap = Bootstrap... | [
"noreply@github.com"
] | noreply@github.com |
3d6543fe5c68e08ed789ad69df3e48da6f7addc9 | 119068a3c18a27a36d2c9cacb7a416a85443a7ff | /Fakerproject1/MyApp1/views.py | 1f4228d68d5a783579a97b92c51f78265bdbd42c | [] | no_license | Poojathimmanna/Faker_project | b4d49a1d4bb5f67319e3d25bf1f289f7367ead7e | 750020a49e7936b52a1c76b84f88ba1e0686a5b1 | refs/heads/master | 2023-04-01T04:37:20.820297 | 2021-04-15T09:56:21 | 2021-04-15T09:56:21 | 358,217,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.shortcuts import render
from MyApp1.models import Student
def view1(request):
S=Student.objects.all()
d={"std":S}
return render(request,'MyApp1/1.html',d)
| [
"poojathimmanna@gmail.com"
] | poojathimmanna@gmail.com |
a40845fe784984a2a2ef36f79556424959d0fcd3 | 5689bffe9a9594e52f934542994db464ed095d71 | /08_unittest/test05_assert_exercises.py | 1d6a1bd6fa8d1033455a67c98cde5e33428fe349 | [] | no_license | WenhaoChen0907/Web-automation | 5c0e2c61e247f32b0e5f2f2a33c9f8cc6e73dc20 | 5488f2c62016f02c934b709e7e9e6ea831d9891c | refs/heads/master | 2023-03-07T13:31:10.265019 | 2021-02-15T06:33:50 | 2021-02-15T06:33:50 | 338,986,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | # iwebshop正向登录代码练习
import unittest
import sys
import time
from time import sleep
from selenium import webdriver
class IwebLogin(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Firefox()
self.driver.maximize_window()
self.driver.implicitly_wait(30)
self.driver.get("http:... | [
"18738127274@163.com"
] | 18738127274@163.com |
b28c6969f1c0ba1babff55ae8e4e2731fe7d109a | 377adaa60de35b5afd2fb4e211f57db41c631cf5 | /tools/svglit/metaPath.py | 58a628c5645fb64147f8e59593a695c78cacc751 | [] | no_license | tyrande/spbot | c071a73824a86f55b4d2908f27a4d46810f5fde7 | 9964481986350190381de3c6bfda606bfb5a6875 | refs/heads/master | 2016-09-05T23:19:29.668489 | 2014-01-16T15:58:35 | 2014-01-16T15:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | from point import point
from line import line
from curve import curve
from qcurve import qcurve
import math, re
class metaPath:
def __init__(self, dataStr):
self.curves = []
if not re.match(r"^[Mm]", dataStr):
raise "no start point"
_ds = re.sub(r"([Mm])", r"\1:", dataStr)
... | [
"xuekun.s@gmail.com"
] | xuekun.s@gmail.com |
96fd031274243132b38f7eb70a57d295d5cdd79e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sy9.py | dbeb1cd55cf03ba4853cb5971ccaa811db6542f3 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
5edf93f12059539e3393547eb7eda1639274dad2 | bd2ce1aa961845820457c9873fa92eb5ea5f1b4a | /backend/mongo.py | 77e02959f1575f33aba999c462b482e88a631ba9 | [] | no_license | janslee/crisis_predictor | 0ca8447209032c491c7e41bc4cf5a1c7ffaef7e7 | 55a135473a815c372f449b68b77bdc9810aa9efc | refs/heads/master | 2020-05-16T12:06:51.804927 | 2018-11-06T09:10:30 | 2018-11-06T09:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | from pymongo import MongoClient
import csv
import json
connection_params = {
'user': 'master',
'password': 'stanford1',
'host':'ds041167.mlab.com',
'port':'41167',
'namespace': 'crisis'
}
client = MongoClient('mongodb://master:stanford1@ds041167.mlab.com:41167/crisis')
db = client.crisis
with open... | [
"tejav@stanford.edu"
] | tejav@stanford.edu |
6470058545a094cfec1eaa39c814657a621889d2 | 377b42bb9e7ebe1b0c56bcab87e78572d98ccc34 | /Algorithm/Algorithm Level1/sublist_max_2.py | 9b63323dfe5907848a455f536ec7f7172ee09ce7 | [] | no_license | YONGJINJO/Python | 9cd9ef1d3a7ac840670b10a10e91f93fd1b52d96 | 833a7fa5572872eef746b3951d4ee3d7da78291f | refs/heads/master | 2021-03-06T22:31:30.600563 | 2020-04-20T10:11:10 | 2020-04-20T10:11:10 | 246,223,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | def sublist_max_2(profits):
max_profit = 0
for i in range(len(profits)):
total = profits[i]
for j in range(i + 1, len(profits)):
total += profits[j]
max_profit = max(max_profit,total)
return max_profit
print(sublist_max_2([4, 3, 8, -2, -5, -3, -5, -3]))
print(sublist... | [
"49581644+YONGJINJO@users.noreply.github.com"
] | 49581644+YONGJINJO@users.noreply.github.com |
ee7845df3aecfb80de476bbf727aca8a2ade8529 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startQiskit_QC118.py | 5c08e2c7132cd11baec4e6f28b5a87f2de870cc0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | # qubit number=3
# total number=20
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5f1c21424845a3cf18b69179939ab7c25bf02e94 | becc4f2b55204034e4fc2260e3bba202a0d997d4 | /liam_chatbot/interact.py | dce636c795bd53b39e1f16ddc10539bb0b3bc3c2 | [
"MIT"
] | permissive | soneo1127/liambot | 0002340f6f88f9e5f18bcda3912c41180ac051fe | 3a6640c4e9af4718548c939abf002bf2a9d5fdcd | refs/heads/master | 2022-11-29T12:07:10.510763 | 2019-11-02T11:36:58 | 2019-11-02T11:36:58 | 219,141,933 | 1 | 1 | null | 2022-11-26T20:32:09 | 2019-11-02T11:06:09 | Python | UTF-8 | Python | false | false | 10,730 | py | # # Copyright (c) 2019-present, HuggingFace Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
# utf-8をシェルで出力するおまじない https://qiita.com/ikuyukida/items/89e70d6516b5051dba7b
"""
import sys
import io
sys.stdin = io... | [
"osone.hiroyuki.su@alumni.tsukuba.ac.jp"
] | osone.hiroyuki.su@alumni.tsukuba.ac.jp |
15fcc498298fb27365a93e3595794528564152ce | 9a2fd5e27d3f811cb18763ed388c2d56ae9907b6 | /爬虫练习/gupiao.py | ee4595015acd484f424596fda32dc78170398d30 | [] | no_license | wzc-ob/PycharmProjects | 5297ce60bade883495e5dbdb614131d31c47682e | 09f5ad6004dbdc83d456cabd78b769fde13d5357 | refs/heads/master | 2020-05-05T07:12:38.789400 | 2019-04-06T10:06:08 | 2019-04-06T10:06:08 | 179,817,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | import re
import requests
from bs4 import BeautifulSoup
import traceback
def getHTMLText(url,code = 'UTF-8'):
try:
kv = {'user-agent': 'Mozilla/5.0'}
r = requests.get(url, headers=kv, timeout=30)
r.encoding = code
# print(r.text)
return r.text
except:
return ""
d... | [
"43775612+wzc-ob@users.noreply.github.com"
] | 43775612+wzc-ob@users.noreply.github.com |
ed61ba463ce8957822c31da9eb498f9c5fdf53b7 | 75f13621d926b968474d1ffe0aeb40ab8394358a | /shapeEditor/tms/apps.py | 1c028b4e44e4fe1975bcf3aaf811ab8df84930d1 | [] | no_license | kamzmaseno/ShapeEditor | 2bc97c72ee76d499ea9915f5a6100677baaf5da0 | 121fef1cc39066b6d8ce3ee0a24af17581be6515 | refs/heads/master | 2021-01-20T21:07:22.968076 | 2016-06-18T12:44:02 | 2016-06-18T12:44:02 | 61,432,986 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class TmsConfig(AppConfig):
name = 'tms'
| [
"gatugimato@gmail.com"
] | gatugimato@gmail.com |
af20a58c05e5138a7719bb4e16dae03e8f9a9d7d | ee6c0f161b6f3d524a7c137b53531107ba74367e | /myapp/views.py | 1582e40ea4944acedfb486795840f5c9cf79752e | [] | no_license | prachikalbhor/quiz-app-master | 18dd37acc4796a30aba1579b16bae0634816e971 | 16ff018dc39726ddfaff63af0f357bedd5c3cd39 | refs/heads/master | 2022-04-15T17:14:57.048898 | 2020-04-14T10:24:28 | 2020-04-14T10:24:28 | 255,565,254 | 0 | 0 | null | 2020-04-14T10:22:45 | 2020-04-14T09:24:44 | JavaScript | UTF-8 | Python | false | false | 1,713 | py | from django.shortcuts import render,redirect
from .models import Questions,Review
# Create your views here.
def home(request):
return render(request,'home.html')
def allreview(request):
r = Review.objects.all()
return render(request,'allreviews.html',{'reviews':r})
def test(request):
question= Ques... | [
"noreply@github.com"
] | noreply@github.com |
e3aaeaaf28467cd124290d5f46c50d80f92b0aea | 75055956f43a467ed62724683a1aa116207c12c9 | /demo/weather.py | 5ea55a0e7bce5ef7c3133782b550b5cc0efe9877 | [] | no_license | Eagle112/pyautogui | 4ea642ad52d32b00fab86a6347a9a1d293f154ab | be9ebf5325cbde30d59ffd94f427f9aa77c63070 | refs/heads/main | 2023-07-09T07:18:27.275407 | 2023-06-22T13:56:35 | 2023-06-22T13:56:35 | 355,157,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # encoding:utf-8
import requests, json
from bs4 import BeautifulSoup
#api地址
def getWeather(city):
f = open('city.json', 'rb')
cities = json.load(f)
citycode = cities.get(city)
url = 'http://www.weather.com.cn/weather/'+ citycode +'.shtml'
response = requests.get(url)
response.encoding ='utf-8'
# d = res... | [
"yinghongbin@appledeMacBook-Pro.local"
] | yinghongbin@appledeMacBook-Pro.local |
9771714fa9460a5eb150ffff0bd397386631123b | 0568572ff27fb32e1c407c27f70a850eb9c2005f | /hw-2.py | 23f4bb94b05c1d7e66b884bc3e434104586f484e | [] | no_license | ElinaKirillova/lesson2 | 8f0981d91c4764a991d9756a7755de0c59ef2e9f | 6a7d9bd231c7921f5cfbf727fc68f6b18edeb169 | refs/heads/master | 2020-05-22T00:35:57.119749 | 2017-03-25T09:04:33 | 2017-03-25T09:04:33 | 84,656,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | journals =[
{'school_class': '1a', 'scores': [5, 4, 3, 2, 5, 4, 4, 4, 5, 5, 3, 5]},
{'school_class': '1b', 'scores': [5, 5, 4, 3, 2, 5, 4, 5, 4, 3]},
{'school_class': '2a', 'scores': [5, 4, 3, 4, 3, 3, 3, 4, 5, 4, 5]}
]
def calc_mean(array):
return sum(array) / len(array)
all_classes_means = 0
all_cl... | [
"asfaganova@MacBook-Air-Elina.local"
] | asfaganova@MacBook-Air-Elina.local |
61b227fb19c0098e0d8449df91b59cc77ac3049d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/662.py | e253a45877c6e9142d258233d25715ca05f57e07 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | if __name__ == "__main__":
with open("A-small-attempt1.in", 'r') as inputf:
outputf=open("A_out.out",'w')
line=inputf.readline()
line=line.rstrip('\n')
test_num=int(line)
for test in range(test_num):
line = inputf.readline()
line = line.rstrip('\n')
n = int(line)
analysis = [[[[]]],[[[]]]]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
797c22f5c1259641bc1dfd92fdf2388f63a890f7 | a2096f8b24db6ae3d563ccb64fd826fc70ae6b30 | /test/unit/model/v2/test_verifier_section.py | 867158fe26aa05f4efab10b58f2dcb46a27e10d0 | [
"MIT",
"CC-BY-ND-4.0"
] | permissive | kunstkomputer/molecule | 70ca3d3f0b26536e03dc2d39b1a5433d0d61963c | 3eea75f2e85efa649eda235b1f42b115e99b1a97 | refs/heads/master | 2020-03-11T04:30:21.119602 | 2018-04-23T12:21:55 | 2018-04-23T12:22:54 | 129,778,013 | 0 | 0 | MIT | 2018-04-16T17:04:36 | 2018-04-16T17:04:36 | null | UTF-8 | Python | false | false | 5,205 | py | # Copyright (c) 2015-2017 Cisco Systems, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge... | [
"noreply@github.com"
] | noreply@github.com |
fced50c84cb7719556400b17068c0514cd1b5fc6 | 42132c3853a9d1a8377bd8373d15c54ee6256635 | /test_5.py | 7f7c05e6ba43efc381540e08e629800b44ba4326 | [] | no_license | Djet78/hillel_homework_repository | a767b6de504e3482600e2b7cfbc24ed46a6cc3b1 | a2709c16e34b7aea0f8e042cc578efc6e96bcefe | refs/heads/master | 2020-03-16T20:07:47.655961 | 2018-06-26T06:04:08 | 2018-06-26T06:04:08 | 132,947,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # ----------------------- task 5 ------------------------
def nearest_to_ten(first_num, second_num):
"""
:param first_num:
:param second_num:
:return: nearest number to ten
"""
first_distance = abs(first_num - 10)
second_distance = abs(second_num - 10)
if first_distance > second_distan... | [
"vacheslavuslistyj@gmail.com"
] | vacheslavuslistyj@gmail.com |
326f720d3f00ce6fea68425c9d1ebfbc2906b8df | 9de9bcd87e3f15f743de436d669feb979e55f005 | /timesketch/lib/analyzers/ssh_sessionizer_test.py | a432041fce5b9ee04a020c5228287f633afbcdc1 | [
"Apache-2.0"
] | permissive | jorlamd/timesketch | 97b1f08e9797837672a51bc817426ae61f5fb529 | c7704bede82747d42a8579a264d2b385b93d6dee | refs/heads/master | 2020-12-04T02:54:57.496194 | 2019-11-12T21:07:21 | 2019-11-12T21:07:21 | 230,008,261 | 0 | 0 | Apache-2.0 | 2019-12-24T22:09:17 | 2019-12-24T22:09:16 | null | UTF-8 | Python | false | false | 6,551 | py | """Tests for SSHSessionizerSketchPlugin"""
from __future__ import unicode_literals
import mock
from timesketch.lib.analyzers.ssh_sessionizer import SSHSessionizerSketchPlugin
from timesketch.lib.testlib import BaseTest
from timesketch.lib.testlib import MockDataStore
# TODO _create_mock_event will be renamed in anot... | [
"tomchop@gmail.com"
] | tomchop@gmail.com |
ec4edc8cbff797fbd1e94da6de3c6cd670d3a6b9 | 867fe6404f05b6153813bcc1ee83dc6511c0de97 | /python_drill2/testCode4.py | 3467c5610e32d793f3b10dc9cc03ce14c772e97a | [] | no_license | eriatlovj/The-Tech-Academy-Basic-Python-Projects | 5dc41b75252d274995c82525b32c328515ea71ef | 2887fe6b73b34d7368d99ccded173b8efe777e43 | refs/heads/master | 2020-09-06T04:01:01.680251 | 2020-02-19T18:20:14 | 2020-02-19T18:20:14 | 220,315,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import os
def writeData():
data = '!dlrow olleH'
with open('test.txt', 'a') as f:
f.write(data)
def openFile():
with open('test.txt','r') as f:
data = f.read()
print(data)
f.close()
if __name__== "__main__":
writeData()
openFile()
| [
"56607475+eriatlovj@users.noreply.github.com"
] | 56607475+eriatlovj@users.noreply.github.com |
b3eecc48b5a6655fb0ae16960cff65aa207ed89d | a6ef13387c24c719a0dcfeb173521cd70beac282 | /devops/day4/ding_Robot.py | 8f01ac1bc53391322f4ad3edd35ab0fd70672935 | [] | no_license | youjiahe/python | f60472d61daf58b7f5bb6aa557949de4babf8c9c | 74eb4c5ba211ae5ffed2040576e5eead75d16e7d | refs/heads/master | 2020-03-31T02:35:55.787809 | 2019-12-02T16:32:54 | 2019-12-02T16:32:54 | 151,831,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python3
import json
import requests
import sys
def send_msg(url,remiders,msg):
headers = {'Content-Type':'application/json;charset=utf-8'}
data={
"msgtype": "text", # 发送消息类型为文本
"at": {
"atMobiles": reminders,
"isAtAll": False, # 不@所有人
},
... | [
"youjiahe@163.com"
] | youjiahe@163.com |
27c30b4e28cd6209d4467194ca8a6e7dbac36009 | cb2c548c83aeb88a75eaa8615a2b1e0aeddb90f4 | /enterprise_exam/netease/tiaozhuzi.py | a854069592a22d85cd4a835b5569efe46804f7be | [] | no_license | SuMarsss/exam | ee961c93d3de225420bcf9b923053d510d7af5d1 | 5f387e258b43ef1b3179186cabfd87be4d3a250e | refs/heads/master | 2023-05-30T10:25:24.172703 | 2021-06-09T07:35:57 | 2021-06-09T07:35:57 | 263,010,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | # T = int(input())
# # T =1
# for t in range(T):
# n,k = list(map(int, input().split()))
# h = list(map(int, input().split()))
#
# # n,k = [10,5]
# # h = "50590387 8028493 660013516 226575217 85137277 569716449 31075276 331696 27381455 503700401"
# # h = list(map(int,h.split()))
# # n,k = [5,3]
... | [
"1204568237@qq.com"
] | 1204568237@qq.com |
1f776ab59de60a4dc27a7ae37e53c3e7898ac312 | f8384e2f19b57a6783f4206c589adf8fb83d62b4 | /sensor_process.py | f798eb8762d81ec2eaedbacdf7d7405064f4c625 | [] | no_license | iandeboisblanc/Amber | 7fd69ef0800e8a05a9db37fcb853f97714b32e5a | 4e0922759179aeaa1b312ea138cc4d49eaef83e6 | refs/heads/master | 2023-04-07T05:05:50.645370 | 2019-06-09T04:58:08 | 2019-06-09T05:07:03 | 189,902,775 | 0 | 0 | null | 2023-03-31T14:41:26 | 2019-06-02T22:48:06 | Python | UTF-8 | Python | false | false | 944 | py | from multiprocessing import Process
import redis
class SensorProcess():
def __init__(self, name):
self.name = name
def _make_target(self):
def target(redis_conn_pool):
redis_client = redis.Redis(connection_pool=redis_conn_pool)
self.run(redis_client)
return target
def start(self, redi... | [
"grady.hsimon@gmail.com"
] | grady.hsimon@gmail.com |
edcb1a2c177f6634d25b679f32eaa3d10997b8ca | b6aed63c49d24b4c3e2d5be6795ecbcf0a793653 | /examples/feature_engineering/get_scdv.py | 13cd8123885cea7a8d6159052e017ea37f9643c2 | [] | no_license | sidhee-hande/nlp-recipes-ja | 713f053a3cc907a314c6575a0ce65de2b36076c9 | 8ac5e898864137841de8b03c11da34815009af24 | refs/heads/master | 2023-04-25T03:41:33.536244 | 2021-04-10T23:07:45 | 2021-04-10T23:07:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from konoha import WordTokenizer
import neologdn
import numpy as np
from utils_nlp.dataset.livedoor import load_pandas_df
from utils_nlp.features import scdv
from utils_nlp.models.pretrained_embeddings.word2vec import load_pretrained_vectors
if __name__ == '__main__':
df = load_pandas_df(nrows=10)
# Normali... | [
"upura0@gmail.com"
] | upura0@gmail.com |
9706c26c8869c0333343a0dae2cbbd2467b37e93 | 94a2c4417c1fdd8577a75b09a17912ebae129e6c | /test/test_prop_is.py | e211fe127da287bfb4f0504b7a588929a7f6c795 | [
"MIT"
] | permissive | slavaGanzin/ramda.py | ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8 | 634bfbe0dcb300315ded327756cb3e33241589b8 | refs/heads/master | 2023-01-23T04:43:48.485314 | 2023-01-06T10:11:53 | 2023-01-06T10:11:53 | 142,413,822 | 68 | 7 | MIT | 2021-12-22T13:59:56 | 2018-07-26T08:43:31 | Python | UTF-8 | Python | false | false | 278 | py | from ramda import *
from ramda.private.asserts import *
from numbers import Number
def test_prop_is():
assert_equal(prop_is(Number, "x", {"x": 1, "y": 2}), True)
assert_equal(prop_is(Number, "x", {"x": "foo"}), False)
assert_equal(prop_is(Number, "x", {}), False)
| [
"slava.ganzin@gmail.com"
] | slava.ganzin@gmail.com |
fbee2b55008deb726fe9493adc2b602013480099 | 3a4cea5ad919e01fc72934f6e7cb34e57ebda887 | /tests/test_pipe_seisspark_modules.py | ac99915b237f1f474ef59126298d94e1efc254f4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kdeyev/SeisSpark | ca2d4e4b2ea0a07ca424f8d5aef6cf22e8587b3f | 528d22143acb72e78ed310091db07eb5d731ca09 | refs/heads/master | 2022-09-05T20:42:31.122894 | 2021-09-18T14:02:51 | 2021-09-18T14:02:51 | 97,557,820 | 11 | 6 | Apache-2.0 | 2022-08-10T22:22:34 | 2017-07-18T05:50:52 | Python | UTF-8 | Python | false | false | 1,815 | py | # =============================================================================
# Copyright (c) 2021 SeisSpark (https://github.com/kdeyev/SeisSpark).
#
# 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 Lice... | [
"kostya.deev@bluware.com"
] | kostya.deev@bluware.com |
765c13a3d98c4b1797f5687016e83f23d80773fb | 7b1917c526a26940bbfb4e0518719d277d5acf3d | /src/hellobioinformatics.py | 69cd5e925fe22adee1da19399c9d2aa1a8ee3793 | [] | no_license | tcloudb/Biological-Databases-Assignment-1 | e21c6316105bbb824411e81673d9380b400294ba | 4c3e68e7cf6578e4040af0d84e9f2c9d4d10bec4 | refs/heads/master | 2021-01-19T04:24:37.504146 | 2017-05-11T18:02:43 | 2017-05-11T18:02:43 | 87,369,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | print("Hello Bioinformatics") | [
"tcloudb@gmail.com"
] | tcloudb@gmail.com |
db193ead0fdb7a4c4c2e4c6e535a38d266999794 | bb4ccc87eb582a763d88671677f88052889c969e | /python/simulation/new_method_vs_old.py | a719fca3ccc824985789b43b7cc4ae72b600cdd2 | [] | no_license | victor-zheng/book | ff63e66683abb3fe654c70249e0f4d5118830999 | f9bc443d4f7f7f5abf676f89bf5d94f0b856988d | refs/heads/master | 2021-05-12T11:55:39.712245 | 2018-05-09T08:43:46 | 2018-05-09T08:43:46 | 117,399,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,374 | py | import numpy as np
import matplotlib.pyplot as plt
#user input
period_step = 100 # simulation step number in one period
period_num = 2 # how many cycles you want to calculate
Vdc = 1 # bus voltage
Vref = 1.4 # regulator output the voltage reference
#generate input variable
total... | [
"yi@surface"
] | yi@surface |
d70d328ae9c6d2d57d96e74cc9e2196f7104bcb4 | 69b757e0abc78c52befee2940a6607cdd76e1438 | /Lab 03 -- The Wave Equation - Steady State and Resonance/src/problem 3-4b part ii.py | 69e84f1d84c083525ba38320a0716970a4e62600 | [] | no_license | y624745579/python-for-scientific-computing | 71d4235ed967ebe166779c3e75c6458ac6a12da1 | e452e5c3ec666bbd3f6b6c8e834e41b788848dd6 | refs/heads/master | 2023-03-15T11:52:31.122953 | 2019-12-16T19:30:53 | 2019-12-16T19:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 23 11:13:18 2019
@author: dboyce5
"""
import numpy as np
import scipy.linalg as la
import matplotlib.pyplot as plt
#we wish to solve the equation g''(x) = (-mu * omega**2 / T) * g(x) as an eigenvalue problem
# we will solve it in the form A g = lambda B g, w... | [
"danielwboyce@gmail.com"
] | danielwboyce@gmail.com |
81e43dc7f6f67c70626ca1cefee9b9d5d50febca | 430d2da1bd471d0e3c9b78cc39103b0f5480d923 | /myblog/myblog/urls.py | 195af32e35bd95500fca9237a9aaed6c20cc42e7 | [] | no_license | bigharshrag/sm-website | 9d7feb5aaf43ab7729b88f6052aca787c4c0d46f | 7050adc05572089e4c0c9a807d9e4414a2d3b9b3 | refs/heads/master | 2016-08-11T21:22:11.327662 | 2016-03-06T21:23:30 | 2016-03-06T21:23:30 | 44,806,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | """myblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"garg.rishabh22@gmail.com"
] | garg.rishabh22@gmail.com |
dc7407be2eac74329684c8bbfcf4fcb7843780dd | d7388b0405dc60189203d062ee359a66d718449e | /FCG/online/PlayerClient.py | 04fc22a0c6f5c6eed175bfca3ab339a5c0def06a | [] | no_license | Defratino/FCG | 6032dda72f5660e55bb2d30b003f37cf9811011e | fde6a39635e525a31aebdf513d74fbc98b852b21 | refs/heads/master | 2020-03-12T06:03:48.947757 | 2018-04-23T13:40:14 | 2018-04-23T13:40:14 | 130,477,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | import pygame
import socket
import threading
import Client
import online_constants
import display_constants
import colors
class PlayerClient(threading.Thread):
def __init__(self, ip, port, client_id):
threading.Thread.__init__(self)
self.client = Client.Client(ip, port, client_id)
... | [
"noreply@github.com"
] | noreply@github.com |
a0f654a97c55a0d9d61f08e7bef2078a6a016bdc | 2aa00a04b1132159155879ce339cb9c491b85ee1 | /Module2/hop/musicstore/payment/views.py | ee471defc05a4ea8489d071892fb41973bc99756 | [] | no_license | datphan126/CS260_Django | 187eefb6fbd6c486f772f26e7a3ec421568deb20 | 49573ad24b120f78d38571971c852d8c690782cb | refs/heads/master | 2020-08-07T05:25:02.655628 | 2020-01-30T03:13:16 | 2020-01-30T03:13:16 | 213,311,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from django.shortcuts import render
# Create your views here.
# Set default payment type to creditcard
def pay(request, payment_type="Creditcard",discount=0):
# 'city' has value 'Seattle' or '' if city not in url
# 'zipcode' has value '98101' or '' if zipcode not in url
city = request.GET.get('city', 'N/A... | [
"dphant126@gmail.com"
] | dphant126@gmail.com |
d82ad526feef8c98d335aa9b18ab22ab1b55e45c | 982194d558b20c32c70ae22bd1935f1728321c56 | /download.py | f98197d588495bb7a8bb01b16cfac373cefeef40 | [] | no_license | maconel/stockwatcher4py | 96502e9f7dca40c348d45ea23fd379915979aea7 | 12847d07283fd4acb82d8be4b399e2c55a795e27 | refs/heads/master | 2016-09-06T14:25:12.764616 | 2008-11-04T02:42:41 | 2008-11-04T02:42:41 | 32,499,523 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 546 | py | # -*- coding: gb2312 -*-
import httplib
#传入股票的代码或简写或名字,下载包含股票信息的html页面,返回html页面的内容。
def download(stockSymbols):
try:
url = "/p/pl.php?sc=1&st=1&code="
for symbol in stockSymbols:
url = url + symbol + ","
httpConn = httplib.HTTPConnection("stock.business.sohu.com")
... | [
"lenocam@528a26e0-fc4f-0410-9ef4-f340f0ff023a"
] | lenocam@528a26e0-fc4f-0410-9ef4-f340f0ff023a |
73a95223af8b6bcebbae53588c38d1b3ee61928e | 14722f3f263018d11c83634ad27a5995b646a137 | /web-crawling/recursive-crawler/myproj/myproj/middlewares.py | e21161770b57182e657e45dbcbcf456c6dc84a9e | [
"MIT"
] | permissive | ayushnagar123/Data-Science | 509046e963c6fe1e29b2f7d957ef02ce545db6d4 | 22fa3a2d2eee1adaf4be51663b61bcae587cfe21 | refs/heads/master | 2020-06-28T16:10:45.626000 | 2020-03-29T00:24:12 | 2020-03-29T00:24:12 | 200,277,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,597 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class MyprojSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"an431999@gmail.com"
] | an431999@gmail.com |
ce4ca846b3f0da4e32b60528ef313c47c6527e6a | 4376b6dcd01c12844c27916effc0448826605828 | /tools/x86prime.py | 5eed0229c9e8f59aae23401c5838f1139801e5d2 | [] | no_license | PtxDK/compSys-e2018-pub | 5111fcfbe12b12e56d90da1a58c9de5b0683af23 | 79fd8c830562fbbaa3ae8dee860b8ac3f28e2d0b | refs/heads/master | 2020-03-31T08:52:24.537821 | 2018-10-08T07:35:02 | 2018-10-08T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | #!/usr/bin/env python3
import sys, re, os, mimetypes, argparse, requests
# -f <name of file> translates and assembles file
# -txl transform gcc output to x86prime
# -asm assemble x86prime into byte stream
# -list list (transformed and/or assembled) program
# -show show each simulation step (requires -run)
# -tracefil... | [
"kirkedal@acm.org"
] | kirkedal@acm.org |
a9c16ccb95144821a4c1c4ca84a2f1682c2c148a | 9c6411a79d0352d2e03e389902f7e5bc1036afa9 | /lgb/src/0_data_preprocess.py | ec80ca4658c396e19012287bab6abd2a4230b438 | [] | no_license | zhenghaoj/OGeek-1 | b426336306bb00e47e5633e2a2c61e262f7b4f98 | fb2a8b8c43509a4bffbf0d16089b8ab436cee257 | refs/heads/master | 2020-04-01T16:18:50.521634 | 2018-10-16T23:27:55 | 2018-10-16T23:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,332 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
import json
import time
import logging
import pandas as pd
import numpy as np
sys.path.append("conf")
import config
sys.path.append("tool")
import nlp_basic
logging.basicConfig(
level = logging.INFO,
format = "[%(asctime)s] %(message)... | [
"yangxiaohan@xiaomi.xom"
] | yangxiaohan@xiaomi.xom |
43d6be02ad53d10fe603d86bb6d22aa3a1315b94 | 7b1ca1f076afd2ae6f3630db892a8312b7a4a4f3 | /CivitasScrapers/providers/CivitasScrapers/en/hosters/bs.py | a1d62d7597c89269d4c5d6196eb0cadeccda899a | [] | no_license | WeedOverfeed/ScraperPackages | 743066bb3be0e843e193210540042b18e8e3d6b7 | 5626b1f14f3bbae10ba69d0cdd40036819ef997f | refs/heads/master | 2020-04-26T14:58:02.356732 | 2019-03-03T22:27:04 | 2019-03-03T22:27:04 | 173,632,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,016 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vanLeeuwenDaan@outlook.com"
] | vanLeeuwenDaan@outlook.com |
bafddbac9090d52a9bf31d8ace6a5b456b428687 | 3228c7ab30e7d1b8a51454b470b4b94a6c810cbf | /CSDGAN/classes/tabular/TabularNetD.py | eab4f746b12cc612bd2c2d248e7363bad142fd55 | [
"MIT"
] | permissive | GAIMJKP/CSDGAN | ca0cdf66f0219dd50aaa4a4ffbab305ad30fe4f9 | 712be213e59b32a79a4970684d726af63616edaf | refs/heads/master | 2022-03-30T04:44:18.298640 | 2020-01-25T00:13:01 | 2020-01-25T00:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,550 | py | import torch.nn as nn
import torch
from CSDGAN.classes.NetUtils import NetUtils, GaussianNoise
import torch.optim as optim
import numpy as np
# Discriminator class
class TabularNetD(nn.Module, NetUtils):
def __init__(self, device, H, out_dim, nc, noise, lr=2e-4, beta1=0.5, beta2=0.999, wd=0):
super().__in... | [
"aj.gray619@gmail.com"
] | aj.gray619@gmail.com |
712905a2830d7d74c9e8d58ab90cc13afff73f85 | 51bca51cc0d81cf15cae4422a0d70deea79f51bd | /Recursos/PostProcesamiento/testingEscenaHOGSVM.py | 0c5a331cc30656800afd2327867b59192e0054d3 | [] | no_license | DetectorPersonas/PeopleDectectionCountingSys | fae6dd862bf3622d5a0939dfb0fb5953d034a098 | 7d6800026ce6b04c6454305de7dacf3d69bb1bc5 | refs/heads/master | 2021-05-10T17:42:19.283402 | 2018-01-23T21:02:43 | 2018-01-23T21:02:43 | 118,552,409 | 1 | 1 | null | 2020-08-07T17:05:44 | 2018-01-23T03:28:40 | null | UTF-8 | Python | false | false | 21,588 | py | import sys, glob, argparse
import numpy as np
import math, cv2
from scipy.stats import multivariate_normal
import time
from sklearn import svm
from sklearn.ensemble import RandomForestClassifier
from sklearn.externals import joblib
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
... | [
"andresfelipelunac@gmail.com"
] | andresfelipelunac@gmail.com |
be320a449fe3bf7958632efd9d081e35040cd7ce | 167923e16f1b6fcb40d979b38eae6348b97d9d35 | /ops.py | a107b7cdb7043580d5685063bc17ca1a739399ee | [] | no_license | halimiqi/www21 | e6cbf04a6034d62c798fa7effa2b9055cdcd05c4 | 0603c819123d29220a0ddd9bd6ebf86c8b60d099 | refs/heads/master | 2023-02-27T00:07:34.640575 | 2021-02-07T13:16:32 | 2021-02-07T13:16:32 | 329,658,371 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | from tensorflow.contrib.layers.python.layers import batch_norm
import numpy as np
#from tensorflow.python.layers import batch_norm
def batch_normal(input , scope="scope" , reuse=False):
return batch_norm(input , epsilon=1e-5, decay=0.9 , scale=True, scope=scope , reuse=reuse , updates_collections=None)
def print_s... | [
"zhanghl1996@163.com"
] | zhanghl1996@163.com |
637bb3d2c2ec2fdc5a8bfa3d383807a9429896f0 | c5c1560bacd9fdac9aa623deee7f878f98021d02 | /str_token.py | f04267f0213e76c41bc96d74c5a2273606bc5583 | [] | no_license | shirouzu/teaching | 6fef8a5685880318d9f426f48fb8610143ff521e | 6daa6c5008c6fdfb294b196a31f60a01d8610775 | refs/heads/master | 2022-12-08T10:32:18.317415 | 2020-08-22T07:10:43 | 2020-08-22T07:10:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | # global keyword has risk, H.Shirouzu
next_str = None
# if targ_str is None, tokenize trail substring
def str_token(targ_str=None):
global next_str
if not targ_str:
if not next_str:
return None
targ_str = next_str
tlist = targ_str.split(maxsplit=1)
if len(tlist) == 2:
... | [
"noreply@github.com"
] | noreply@github.com |
f2ac05164c08227219172faf8205fd443bc1bc92 | 9c507b6008919e1d3ab17921b0f483a0660dbc0c | /tc_lab13_convo_mnist_1.0_softmax.py | 331257c25181c66215d6405b8e8b5bd6f0460517 | [
"Apache-2.0"
] | permissive | ltchuan/tensorflow-mnist-tutorial | 884af2ebf5d9122e5ceee58ba8fd0075590d2757 | 98774bffa79c19c86b54b29e6bc1d4164007aadd | refs/heads/master | 2020-05-24T23:33:25.318156 | 2017-03-16T07:37:37 | 2017-03-16T07:37:37 | 84,890,639 | 0 | 0 | null | 2017-03-14T01:16:00 | 2017-03-14T01:16:00 | null | UTF-8 | Python | false | false | 6,927 | py | # encoding: UTF-8
# Copyright 2016 Google.com
#
# 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... | [
"ltchuan@gmail.com"
] | ltchuan@gmail.com |
71bf52c3f75e834fe7938987cc7b559aa46b54db | ab0e9b543852bc2d3c828b2351c30d1626f0b321 | /CustomProceduralRiggingTool/CustomProceduralRigTool/rigLib/base/controlShape/unitSliderControl.py | f55103622c28f26d51caf910f83abbbaf7302f2a | [] | no_license | tHeBeStXu/CustomProceduralRigTool | 397011b9519a3e5382aec5aee6115f3e6a14a802 | 003fa61b460d8e76c026f47913ebdab5c0cbfef8 | refs/heads/master | 2021-07-13T09:02:07.697909 | 2020-07-09T07:28:27 | 2020-07-09T07:28:27 | 157,082,564 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | import maya.cmds as cmds
def createShape(prefix=''):
"""
create a unit slider for blend operation
:param prefix: str, prefix of the control
:param scale: float, scale of the control
:return: str, ctrlBox of the unitSliderControl
"""
Ctrl = cmds.circle(radius=0.2, nr=(1, 0, 0), n=prefix + '... | [
"328665042@qq.com"
] | 328665042@qq.com |
dbf83c7d3adc355a74fec95bf764ff880f412e5d | 1c2584495c65f28b08830bef2fc51f91adc61c71 | /query_results/extractEntitiesMod.py | 0bb405c4a2268013d9fa26d621f5787931e884f7 | [] | no_license | locta66/TweetEventDetection | 6db46bdc0727bfa33768f72f9b97251da12969e6 | a55740afe5358b8958d4821785029f3c1d848045 | refs/heads/master | 2020-03-14T05:10:52.692916 | 2018-05-02T07:18:34 | 2018-05-02T07:34:32 | 131,458,887 | 0 | 0 | null | 2018-04-29T02:07:31 | 2018-04-29T02:07:30 | null | UTF-8 | Python | false | false | 11,154 | py | #!/usr/bin/python
import sys
import os
import re
import subprocess
from signal import *
BASE_DIR = 'twitter_nlp.jar'
if os.environ.has_key('TWITTER_NLP'):
BASE_DIR = os.environ['TWITTER_NLP']
sys.path.append('%s/python' % (BASE_DIR))
sys.path.append('%s/python/ner' % (BASE_DIR))
sys.path.append('%s/hbc/python' ... | [
"dong17.14@163.com"
] | dong17.14@163.com |
249edc0e5fb7c5fae23b6d8c5752ffa60b404a5b | 60aa3bcf5ace0282210685e74ee8ed31debe1769 | /base/lib/uu.py | 6ee9f9acad9bccce569ad6152e8da80b8e368319 | [] | no_license | TheBreadGuy/sims4-ai-engine | 42afc79b8c02527353cc084117a4b8da900ebdb4 | 865212e841c716dc4364e0dba286f02af8d716e8 | refs/heads/master | 2023-03-16T00:57:45.672706 | 2016-05-01T17:26:01 | 2016-05-01T17:26:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,505 | py | import binascii
import os
import sys
__all__ = ['Error', 'encode', 'decode']
class Error(Exception):
__qualname__ = 'Error'
def encode(in_file, out_file, name=None, mode=None):
opened_files = []
try:
if in_file == '-':
in_file = sys.stdin.buffer
elif isinstance(in_file, str):
... | [
"jp@bellgeorge.com"
] | jp@bellgeorge.com |
fc88b01f572ee5e686b4e934fd4d14b69c47ff05 | c0595eca0c5cbc5cad7b9cd84ecc8f5c5b6e1a84 | /app/auth/forms.py | de1fa77ad193937198163c7277f77ed238719d82 | [] | no_license | libinglove/flask_app | e8f394d71e46a3531ac5fd43e2eab5b765752a24 | e3c19e7ef64de49ac257d2539e434d664c4d53ec | refs/heads/master | 2020-04-15T04:36:16.423571 | 2019-01-12T01:26:35 | 2019-01-12T01:26:35 | 164,389,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import Required, Length, Email, Regexp, EqualTo
from wtforms import ValidationError
from ..models import User
class LoginForm(FlaskForm):
email = StringField('Email', validators=[Requ... | [
"18310275531@163.com"
] | 18310275531@163.com |
e06f579b86ff58dcdec29c650eeab1896303af0d | 8e082fd485d8f9bf79c8cf9fc5fb44d8ac2b2968 | /Test2.py | b09b622623c70a8b8404140f3ba74a851361c2a3 | [] | no_license | igor94grozdanic/GitHub1 | c6e4fda53d14f5f1cb8b8f4c7d89ee81e2cbb3ac | bd7d3a69448bb954c1d65fe545ad38834f17ca26 | refs/heads/master | 2022-12-24T14:29:00.756168 | 2020-10-04T20:36:45 | 2020-10-04T20:36:45 | 300,065,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | print("This line will be printed 3.") | [
"igor94grozdanic@gmail.com"
] | igor94grozdanic@gmail.com |
aac4d5fd43519d3e8b5e64343338316a33460a65 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/catapult/telemetry/telemetry/web_perf/metrics/rendering_stats_unittest.py | e96c06c9f476e5202881973b78f825e7781a8062 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 24,876 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import random
import unittest
from telemetry.timeline import async_slice
from telemetry.timeline import model
from telemetry.util import perf_tests_helper
f... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
f46478898719688e54f93619c63e8f87a40c6778 | 83016459a416564b6d5148eb49e9ad2bfb4e0b50 | /libreria_complejos.py | 5a8dd16f4153445105c3ef17b512ae5bd9dea036 | [] | no_license | CarlosOrduz777/Proyecto_complejos | de5a23101d7b94f5fb7c9f820fdbce87087dea4c | 18cb74f3077fa7b1966c29b29a7fe82260ce45ee | refs/heads/master | 2022-12-25T02:38:33.938592 | 2020-09-30T16:29:00 | 2020-09-30T16:29:00 | 286,089,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | #Libreria de Numeros Complejos
#Fecha: 4/08/2020
#Autor: Carlos Javier Orduz Trujillo
from math import pi,atan,atan2,sin,cos,sqrt
def sumar_complejos(c1, c2):
"""Funcion que toma dos numeros complejos(como vectores) y retorna su suma
( list, list )---> list"""
return [c1[0] + c2[0], c1[1] + c2[1]]
def pr... | [
"carlos.orduz@mail.escuelaing.edu.co"
] | carlos.orduz@mail.escuelaing.edu.co |
931d1d4f3cfb9a546c89598dd1f4e43ee3dffe6c | 3d3f2b56b073a8de123aeed141cf03932cebe456 | /engine/utils/constants.py | b0bc8b78e7d79100b6fdf30a180bce70776cf11e | [] | no_license | wilson-calixto/angular-electron-with-python | d8c9ec05294a21d07fc656567f94b5fc55af056f | a1a5e84bb58a51822857bbb5561887ac8150191c | refs/heads/main | 2023-04-11T19:01:55.286606 | 2021-05-04T15:43:24 | 2021-05-04T15:43:24 | 354,842,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | NEW_PDI_CROP='NEW_PDI_CROP'
WITH_WHITE_SCREEN='WITH_WHITE_SCREEN'
HDMI_ANN='HDMI_ANN'
GRAY_LEVEL_ANN='gray_level_crop'
MURA_ANN='mura_ann'
WHITE_AND_BLACK_PATTERN=106
| [
"wilsoncalisto2012@gmail.com"
] | wilsoncalisto2012@gmail.com |
405b40fed8c06654f5d01ec7edc2fac779de95ac | 6910b127858c5dab983fab4da044a6742875567f | /xsxc/yike.py | f7c76ebc0fb67ec47a7cddac36def7a31651b6dc | [] | no_license | amperwang/hitom | 58422d5129344e7fb4adb2eca61c3a0eb614d179 | 4887b0486edbcdd8bfc8b6a81f81dcead1b37aa0 | refs/heads/master | 2020-04-15T22:16:28.963029 | 2019-03-24T08:43:35 | 2019-03-24T08:43:35 | 165,066,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | from flask import Flask, render_template, url_for, request, jsonify
from flask_sqlalchemy import SQLAlchemy
import config
app = Flask(__name__)
app.config.from_object(config)
db = SQLAlchemy(app)
class Student(db.Model):
__tablename__ = 'students'
id = db.Column(db.Integer, primary_key = True, autoincrement =... | [
"wfwang1123@163.com"
] | wfwang1123@163.com |
e54cb9984892e2ea197e14be2a17bc7122fbe045 | 11dfdd1b1027c96a1b541d8b6de899518dec32ab | /test.py | 1172b9e4010dfbae9732ba6fe0431a7ee105ef05 | [] | no_license | AnthonyQuantum/python-course-tasks | 353db4e92392e328b411fdb91b9382a5c2dd6ddf | 0183195e1e3a0c89e4b6c17813fec799d31c5b81 | refs/heads/master | 2020-08-07T00:59:05.458581 | 2019-10-06T19:27:52 | 2019-10-06T19:27:52 | 213,230,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | print(AssertionError.mro()) | [
"noreply@github.com"
] | noreply@github.com |
8ac2981396ce3c864570de3b0c3c3b5ea3581540 | 3fefbb4aad2e49552de61ea867ca434979684cd2 | /routine/base/models.py | 50d84dfab04d947562f44cd446616210b0aefb31 | [] | no_license | riddhi0811/to-do-app | 9519613262631a4914b105c703e3a8b8f8af12d6 | 014956095d7ddccaf71130136341b577592c7aa5 | refs/heads/master | 2023-06-03T05:37:54.694936 | 2021-07-02T13:02:46 | 2021-07-02T13:02:46 | 382,345,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user= models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True)
title= models.CharField(max_length=200)
description= models.TextField(null=True,blank=True)
compl... | [
"siddhidubey47@gmail.com"
] | siddhidubey47@gmail.com |
36dac1185836a41d62e7890b1a1d00a3ead74cbf | b6ee46de1a2cab744aedd942942265dad09a0779 | /Stack/Easy/1441. Build an Array with Stack Operations/solution.py | 8b4ffc07376780a7d7b582575a809b53ee5a7485 | [
"MIT"
] | permissive | tintindas/leetcode-solutions | 0e01245036a9bd36e93b51b8c8c1ae3b8ca9554c | eb97254dafddffccbce048ef04aea1e934277282 | refs/heads/main | 2023-04-20T03:11:15.218001 | 2021-05-20T17:11:28 | 2021-05-20T17:11:28 | 346,100,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from typing import List
class Solution:
def buildArray(self, target: List[int], n: int) -> List[str]:
i = 0
j = 1
res = []
while i < len(target):
if target[i] == j:
res.append("Push")
i += 1
else:
res.extend([... | [
"upamanyu.das.work@gmail.com"
] | upamanyu.das.work@gmail.com |
64bf3f596ddb68f5fd19cd6ddf3d2a13a5a0cebe | c377e63059c8176d404644305af5980662368679 | /questions_api/views.py | 6ee550131cf6a312d4b8fd29b337910526030eb0 | [
"MIT"
] | permissive | v-yadykin/questions | bf4cb4c8402d62257f691c6235b62033b4426653 | 83f6dd0e44b42b1bce6a2cdf94b3f892392f5170 | refs/heads/master | 2023-09-01T05:09:19.049570 | 2020-07-03T15:03:59 | 2020-07-03T19:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | from rest_framework.views import APIView
from rest_framework import viewsets
from rest_framework import filters
from rest_framework.response import Response
from rest_framework import status
from rest_framework.authentication import TokenAuthentication, SessionAuthentication
from rest_framework.permissions import IsAut... | [
"VEL4EG@yandex.ru"
] | VEL4EG@yandex.ru |
a335c4193efcda24ba5d4b087319a3d44cf95b76 | 2183156fec0cf3f704a3f78ffe672ed90090fe8a | /problem_examples/signature/fastbit/checker.py | 5a81871ed827c667851116f9acd4b7a5cf4cca97 | [] | no_license | DMOJ/docs | 3714ee8ba36a1c35c9270b481345dffc2d302eb0 | 15ce3a0d6397e81c3a903ecca7184bce2441d17e | refs/heads/master | 2023-07-20T20:02:56.743010 | 2023-07-10T17:09:59 | 2023-07-10T17:09:59 | 31,271,968 | 25 | 126 | null | 2023-07-22T17:45:28 | 2015-02-24T17:23:40 | Python | UTF-8 | Python | false | false | 427 | py | from dmoj.result import CheckerResult
from dmoj.utils.unicode import utf8text
def check(process_output, judge_output, judge_input, point_value, submission_source, **kwargs):
result = utf8text(process_output.rstrip()).split('\n')
if len(result) != 1 or result[0].strip() != 'Correct.':
return CheckerResu... | [
"vulcainus@gmail.com"
] | vulcainus@gmail.com |
8b92c3aa92ffdd47189bf395cbe5c5ac6bb78180 | 5b48a2afed9f1021952a64331cc3977393cfdc3b | /ConfigMaker.py | db795b02cc24b658a3bd7d5902f130e1d24d012a | [] | no_license | snagultoof/UAEConfigMaker | ab167343b0b26dba6cc6fbb6e05e341e618e38c9 | b73a1e5d3d0829616a94645bb337ed1ca6c6f0de | refs/heads/master | 2021-01-21T05:10:14.315182 | 2017-02-23T22:25:20 | 2017-02-23T22:25:20 | 83,138,815 | 0 | 0 | null | 2017-02-25T14:56:05 | 2017-02-25T14:56:04 | null | UTF-8 | Python | false | false | 33,527 | py | import glob, platform
from urllib.request import *
#from urllib.request import urlopen, Request
import urllib
import ssl
import os
import math
import shutil
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BO... | [
"horaceandthespider@hotmail.com"
] | horaceandthespider@hotmail.com |
0a607ad298916549426f6f843ef6ce749fadc185 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03610/s415894874.py | 9a33970973344ddf348592e3209a4248803c0737 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | s = list(input())
t = []
for i in range(0, len(s), 2):
t.append(s[i])
print(''.join(t))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f78dc2017f0e9588d5ed2188d02785b189ec637 | 0bb474290e13814c2498c086780da5096453da05 | /abc133/E/main.py | 20212d42d80ef6a27ba00b0743cbd41a23b91777 | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/env python3
import sys
MOD = 1000000007 # type: int
def solve(N: int, K: int, a: "List[int]", b: "List[int]"):
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
92df5f0ae14e23c0600fd57b407368f340103547 | 4b431704fa58900a7b848aada3d10949be76ba65 | /student/views.py | 8ed0983ae38fa181f3a834d1c67585b80d645e7b | [] | no_license | priyankaonly1/Session_project | 1b5e48a77753cfa87c93fff7463d758cf0f1dcd8 | 41529270c0390627824b6de1aed6fdf4bb75a95c | refs/heads/main | 2023-06-03T04:21:38.411008 | 2021-06-17T10:32:13 | 2021-06-17T10:32:13 | 377,792,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from django.shortcuts import render
# Create your views here.
def setsession(request):
request.session['name'] = 'sonam'
request.session['lname'] = 'Jha'
return render(request, 'student/setsession.html')
# def delsession(request):
# if 'name' in request.session:
# del request.session['name']
... | [
"priyankabiswasonly1@gmail.com"
] | priyankabiswasonly1@gmail.com |
8459423345d61a3988b5a726a810f1e52cd1eab4 | 4ef7725748abef45ff23053b7b2e87af1f93d24f | /Day_of_the_Programmer.py | 581079469673756a1f7d837c1c1184d7b6099c0b | [] | no_license | akash-yadagouda/code-library | 6020656cadd53d4fde4abc873df70f9d913a6406 | 004aa7627d54415b3e922a0c1d8ef5a2d2edfedb | refs/heads/master | 2022-07-09T22:38:08.090646 | 2020-05-17T06:04:26 | 2020-05-17T06:04:26 | 236,165,799 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py |
def check(a):
if(a%400):
return True
else:
if a%400:
if a%100!=0:
return True
else:
return False
else:
return False
a=256
year=int(input())
if check(year)==True:
print(12.09.2016)
else:
print(13.09.2017)
| [
"noreply@github.com"
] | noreply@github.com |
ee5638f427e266afc5d5855606c34b7c76ac09b2 | c68d36ed1d36ede96a5a22e1052c73b8515feaae | /HyperNews Portal/task/hypernews/news/views.py | 3cefca44c6ba79a74ca61d32697ea15338fb602a | [] | no_license | wangpengda1210/HyperNews-Portal | dd531889666794c11158dc92a9dcdb03293d409b | 436e257dd315999187650dedf3dce2ff12267a77 | refs/heads/main | 2023-03-03T03:22:59.644304 | 2021-02-09T00:19:23 | 2021-02-09T00:19:23 | 336,978,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | from django.shortcuts import render
from django.views import View
from django.http import Http404, QueryDict
from django.shortcuts import redirect
import datetime
from collections import defaultdict
import json
from hypernews.settings import NEWS_JSON_PATH
with open(NEWS_JSON_PATH, 'r') as f:
news_list = json.load... | [
"515484505@qq.com"
] | 515484505@qq.com |
620f4e5be97f032147d6ed2f55233997dc8baf7d | 765fe526adfb30e37f47e84a732d3d4b05197e9a | /tripadvisor/items.py | bb3029f03b8c355f09e17f3e5dfbbd650256f7c9 | [] | no_license | YShinohara07/TripAdvisor_Scrapy | 4059670e29c61b5203123fd8864205bc6f45591f | a2d68d4630113bb878d0dfaf93e5d2ee1504f4e8 | refs/heads/master | 2020-12-21T11:41:10.075252 | 2020-01-30T23:02:14 | 2020-01-30T23:02:14 | 236,420,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class TripadvisorItem(scrapy.Item):
# define the fields for your item here like:
title = scrapy.Field()
rating = scrapy.Field()
to... | [
"yasuhiro.yks@gmail.com"
] | yasuhiro.yks@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.