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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2bd87a7aa56b344c55ef25bb7d11c215473055d2 | b3d8a02bdcb563f9f8f819ca278e548cbbb6a719 | /weekday.py | 5b0c41b175d75e561bcf314b105ecd97f5ba1244 | [] | no_license | shadab4150/data-mining-call-records-to-get-location-of-cellphone | f1b05b6ccbbbf9140b485fb7314eff665ef2bf6b | 4e0712806c12956eff6db84bb76bdf68df14fc53 | refs/heads/master | 2020-06-12T22:21:15.634498 | 2019-09-08T12:35:38 | 2019-09-08T12:35:38 | 194,445,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | import pandas as pd
from datetime import timedelta
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
import matplotlib
matplotlib.style.use('ggplot')
def clusterInfo(model):
print("Cluster Analysis Inertia: ", model.inertia_)
print('------------------------------------------')
for i in range(l... | [
"noreply@github.com"
] | shadab4150.noreply@github.com |
138f7f252d73e83411d17c2c349d424fa7ffc5fb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03326/s918359184.py | 35df2f464cf01c216168e48da719752b335b7739 | [] | 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 | 432 | py | N,M = map(int,input().split())
P = []
for _ in range(N):
x,y,z = map(int,input().split())
P.append([x,y,z])
ans = 0
for X in(1,-1):
for Y in (1,-1):
for Z in (1,-1):
A = []
for i in range(len(P)):
val = X*P[i][0] + Y*P[i][1] + Z*P[i][2]
A.appen... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8cb8a267d2c5699a88f8202a1ecf829665a6f44e | a48727b9dbbf05df1409039eeb19101d6f8e019e | /killprocess.py | 97f8c0b288382d1a425925db00bdddd7afef74c4 | [] | no_license | uthpalaherath/dotfiles | 6295f14e9879014ecc5d9092bc9af9d83b1d801e | a40f7aacb5f0270929de9690cddec3176007ad52 | refs/heads/master | 2023-07-24T09:27:48.863480 | 2023-07-20T03:49:18 | 2023-07-20T03:49:18 | 251,228,637 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #!/usr/bin/env python
# Author: Pedram Tavazohi
import psutil
import sys
import time
import datetime
import os
user = os.getenv("USER")
def check_proccess(name):
"""
"""
for proc in psutil.process_iter():
try:
# Check if process name contains the given name string.
if ... | [
"ukh0001@mix.wvu.edu"
] | ukh0001@mix.wvu.edu |
61c862ac3821e764fea417da189d6089f06a7489 | a81884be41488f92725b6dae1bb3b6d9eae3380d | /build/micros_swarm_framework/swarm_library/olfati_saber_flocking/catkin_generated/pkg.develspace.context.pc.py | 10acf535eca20f93b4da38546351948c5fc62f87 | [] | no_license | conniemzhang/RoboSquad | a22b76c4b551990926c374390983501658bdf24d | e4fd7ca51678fe914316d80488f11ce4b322f001 | refs/heads/master | 2021-09-13T18:22:29.336941 | 2018-05-02T21:53:21 | 2018-05-02T21:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/connie/robo_squad/src/micros_swarm_framework/swarm_library/olfati_saber_flocking/include".split(';') if "/home/connie/robo_squad/src/micros_swarm_framework/swarm_library/olfati_saber_flocking/inc... | [
"cmzhang96@gmail.com"
] | cmzhang96@gmail.com |
01e353a3b4ade220580e478a7c1f4d7c0b2b10a7 | a50c5d933bd361271518817a6735907e77f66340 | /Map.py | 895c9dd6ee55e24c8b41c650034a709fc4540ec8 | [] | no_license | amansanghvi/Thesis | ffb0c727f9415b8291763658a39a59697d4b1991 | ea14efc28e9b1de338fd8cb48687fed907c447ee | refs/heads/main | 2023-06-19T20:36:09.281009 | 2021-07-23T07:17:13 | 2021-07-23T07:17:13 | 307,730,159 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | from abc import abstractclassmethod
from typing import Any, List, Optional, Tuple, Union, cast
import matplotlib.pyplot as plt
import numpy as np
from lidar import Scan
from models import Pose, Position
MAP_LENGTH = 10 # metres
CELLS_PER_ROW = 100
CELL_SIZE = MAP_LENGTH / CELLS_PER_ROW
RELEVANT_POINT_DIST = 10.0
OCC... | [
"aman302@hotmail.co.uk"
] | aman302@hotmail.co.uk |
d40b5547fccf65fbb18f85c0e34c54e4c17caa25 | 1b3c967ffa3496b9a4244307672f9e1582882b83 | /refactor/tilde_essentials/example.py | bb28750fd506917847f9fcdeeb200a384f859bb0 | [
"Apache-2.0"
] | permissive | joschout/tilde | ae4a28edd69425583dee26622fc3e475315e6917 | 1403b50842b83f2edd6b16b1fbe24b9bec2d0048 | refs/heads/master | 2021-06-30T00:43:02.948058 | 2020-09-21T08:30:38 | 2020-09-21T08:30:38 | 158,675,050 | 21 | 5 | Apache-2.0 | 2020-03-26T00:31:58 | 2018-11-22T09:34:10 | Python | UTF-8 | Python | false | false | 2,037 | py | from typing import Iterable
from refactor.tilde_essentials.destuctable import Destructible
class Example(Destructible):
"""
Container class for an example, storing its data and label (types undefined)
"""
def __init__(self, data, label):
self.data = data
self.label = label
def ... | [
"jonas.schouterden@student.kuleuven.be"
] | jonas.schouterden@student.kuleuven.be |
10b9f0f7db2392f39950951bfb506cb3ad55492c | c0c6d3e792c3b9a7bcc1db7b6937f6ff0b2ccb60 | /training_scripts/not_in_paper/affine_pretrain_triangles_unet.py | 48d084cb6c0508a34d074f2bac1ad84b2b9859cf | [
"Apache-2.0"
] | permissive | tbirdso/ICON | 4ff8ae69b4e54cd264f1b3b2621bce94f4e9244e | c87495d1f479297cea456f752dc477c16f3587aa | refs/heads/master | 2023-08-29T16:46:01.704033 | 2021-10-15T23:27:03 | 2021-10-15T23:27:03 | 418,936,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | import parent
import torch
import numpy as np
import networks
import visualize
import inverseConsistentNet
import data
import describe
import os
import matplotlib.pyplot as plt
import random
import pickle
batch_size = 128
data_size = 50
d1, d2 = data.get_dataset_triangles(
"train", data_size=data_size, hollow=True... | [
"tgreer@biag-gpu1.cs.unc.edu"
] | tgreer@biag-gpu1.cs.unc.edu |
e61b90ba4e178454779746270d09b9427093070a | e65e7b9157b80d4f1d0d37fecd5869416083cad2 | /silverlink.py | a883d83fe4fc81a31bae666745ccfea731882be2 | [
"MIT"
] | permissive | jherning/link68 | 33964064861c62d917120853172a71ae38389198 | 20f1dc0ca9e90818b06770979ecf6c4cb6dd829f | refs/heads/master | 2023-07-12T00:55:09.716305 | 2021-07-27T20:49:41 | 2021-07-27T20:49:41 | 390,125,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | #### SilverLink ####
# Notes:
# idVendor=0x0451, idProduct=0xe001
# IN endpoint: 0x81
# OUT endpoint: 0x02
# Always should read 32 bytes at a time, so a read buffer is used because
# we may get some of the next packet.
import usb.core # For Silver Links
import usb.util # For Silver Links
class glink:
def __init... | [
"83619895+jherning@users.noreply.github.com"
] | 83619895+jherning@users.noreply.github.com |
d66aef0bd44d235f1c4c4f1f9e60660a2065f012 | b5499572b71a7f5d2d3fed2142fbd2be4befa3f3 | /app/settings.py | 974ea197af5d4e9166c4111b414eb4fcfbcdfdc6 | [] | no_license | A-you/goods-give | 74d78378d6e2cc613f7b2ea70f1b06b0c9b19a15 | c254908ee46afb044fc3e0f4aa0e72b36f48daec | refs/heads/master | 2022-12-17T00:33:25.210994 | 2019-04-15T12:59:56 | 2019-04-15T12:59:56 | 179,241,999 | 0 | 0 | null | 2022-12-08T05:00:08 | 2019-04-03T08:11:27 | CSS | UTF-8 | Python | false | false | 340 | py | # -*- coding: utf-8 -*-
# @Time : 2019/4/2 10:18
# @Author : Ymy
RECENT_BOOK_COUNT = 30
BEANS_UPLOAD_ONE_BOOK = 0.5
MAIL_SERVER= 'smtp.qq.com'
MAIL_PORT = 465
MAIL_USE_SSL = True
MAIL_USE_TLS = False
MAIL_USERNAME = '582838918@qq.com'
MAIL_PASSWORD = 'kwidjayghflcbbbj'
#MAIL_SUBJECT_PREFIX = '[小尤]' #开头
#MAIL_SENDER =... | [
"youyi.ren@foxmail.com"
] | youyi.ren@foxmail.com |
c30ffe6c3473b88893cc787d5641d485f00ff058 | 19a8cdf9639235cbb502ebc8e8458ee9630d5a8c | /NeuralModel/GRU_Dynamic.py | c3e1730a7a78a77c70d026742d8ee34d77d33127 | [] | no_license | yangliuy/bAbi | a9cbd0f66f120bab76977cc27ce5d31139fc3c85 | 0236d7c15cae7320abd8346381061bb301c4d7c1 | refs/heads/master | 2021-04-29T07:46:31.390681 | 2016-06-11T15:59:45 | 2016-06-11T15:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | # -*- coding: utf-8 -*-
__author__ = 'benywon'
import theano
import theano.tensor as T
sigmoid = lambda x: 1 / (1 + T.exp(-x))
def GRU_dynamic(embedding_in,attention_resource):
def one_step(self, x_t, h_tm1, W_iz, W_hz, b_z, W_ir, W_hr, b_r, W_ih, W_hh, W_ho, b_o, b_h):
zt = sigmoid(theano.dot(x_t, W_iz... | [
"bingning.wang@nlpr.ia.ac.cn"
] | bingning.wang@nlpr.ia.ac.cn |
dc865beb6b00a6c637df63a0eec9b5bcbab57be8 | 27141174f9349a76a0541a69f5627a83e3118d17 | /src/area_none_radio_survey.py | d76575c9ea104432a9887ad5b6f11fb2f1b237b8 | [] | no_license | sdweston/LikelihoodRatio | 7714b22f2c380f0ab839ba89ed99ff9487dd80cd | 3277af96ef38fbd8388ba793afe0059c801a2be7 | refs/heads/master | 2021-01-17T04:02:22.165101 | 2017-05-08T02:42:34 | 2017-05-08T02:42:34 | 41,524,007 | 1 | 3 | null | 2018-05-16T00:32:00 | 2015-08-28T03:05:31 | Python | UTF-8 | Python | false | false | 1,149 | py | #===========================================================================
#
# area_none_radio_survey.py
#
# Python script to query SWIRE_ES1 mysql database to determine the
# area of the survey for a sub-set of the survey.
#
#===========================================================================
#
# S.... | [
"weston.s.d@gmail.com"
] | weston.s.d@gmail.com |
9c43b1243714b0ae111247f46d626cbc4f8f00e7 | 62ab0fc1c028073b6eaac8c4bf4651d4a876e15d | /DjangoVf/mysite/settings.py | fafd0972be447cf3c9ee9136e09055f7e8ce2d00 | [] | no_license | jeanlucca/CampoMinado-Sd2019 | aa50646545535cb368af1bb15509bbfe762d3748 | efbc39d10c9bdb70fa5057031e17a5903cdde852 | refs/heads/master | 2020-11-24T08:22:57.651381 | 2019-12-14T16:04:31 | 2019-12-14T16:04:31 | 228,049,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.7.
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
... | [
"noreply@github.com"
] | jeanlucca.noreply@github.com |
07a96ba0e7ef7e527f3ff4c1455d92773758a154 | 32fdc94d1b8d98085db5d1e8caae4161d3e70667 | /3rd_party/python3.7/lib/python3.7/site-packages/markdown/serializers.py | 3cfa6bb9ea50e917f7bea65716a2a9a9bc05b39e | [
"Python-2.0"
] | permissive | czfdlut/ticket_proxy | fa0f1924a86babfa7ce96cf97e929f7bf78643b7 | 0d7c19448741bc9030484a97c1b8f118098213ad | refs/heads/master | 2022-12-23T05:25:58.207123 | 2019-11-20T03:58:31 | 2019-11-20T03:58:31 | 174,579,562 | 1 | 3 | null | 2022-12-18T01:18:07 | 2019-03-08T17:22:48 | Python | UTF-8 | Python | false | false | 6,770 | py | # markdown/searializers.py
#
# Add x/html serialization to Elementree
# Taken from ElementTree 1.3 preview with slight modifications
#
# Copyright (c) 1999-2007 by Fredrik Lundh. All rights reserved.
#
# fredrik@pythonware.com
# http://www.pythonware.com
#
# ------------------------------------------------------------... | [
"czfdlut@163.com"
] | czfdlut@163.com |
67316cfd4cfb23523ecc72c02a5deff397b79374 | b13463d9394250c63312c1d2316be91176dd9ebd | /riwayattujuantf.py | 2b802f93000a632bb689a6c6162bda7ed7db94ab | [] | no_license | ameriyulina/tubesDAPpython | aed044245e915b85f4d1600259b00c616f59c5ac | 035ecc22116515eb88b0b830f84dd483b90c1b7a | refs/heads/master | 2021-10-27T20:12:51.321405 | 2019-04-19T12:25:49 | 2019-04-19T12:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import json
def tujuan(b):
a = open("usersesama.txt", "w")
b = json.dump(b, a) | [
"noreply@github.com"
] | ameriyulina.noreply@github.com |
da6de61d9dbc577ebaa94684bcb934edecf913cd | 26d5a0cfab958aacbaff1b723bb6316cbd9c8f99 | /rough.py | 56a219c7883ee6bde6af2cf144c4ea6151a6d3f7 | [
"MIT"
] | permissive | Praveenstein/bigGanMicro | 75f586694e009be373c7ebb293f39f7b83b3ecb6 | d669874c0226907fa41b2140cdc8c46bdef2a283 | refs/heads/main | 2023-05-31T10:48:05.145167 | 2021-06-13T16:46:18 | 2021-06-13T16:46:18 | 376,592,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import pandas as pd
df = pd.read_excel("meta/micro_metadata_5.xlsx", index_col=0, engine='openpyxl', header=0)
print(df.shape)
df.drop(df.loc[df['primary_microconstituent'] == "figure"].index, inplace=True)
print(df.shape)
df.to_excel("meta/micro_metadata_6.xlsx")
| [
"praveenstein@outlook.com"
] | praveenstein@outlook.com |
b931cff1409ef09ae10709f5a39db9edd9385497 | 5a25f4f5f9c7cba03f9b5848eafc01a760c88768 | /reduction/pipeline_scripts/member.uid___A001_X1296_X1cb.hifa_calimage.casa_pipescript.py | df6acfc8555cb46bfa66612b457ab544e469c511 | [] | no_license | ALMA-IMF/reduction | b3579a548fe20193b807a7415a040f351c879beb | de606cc6bc542f088223ce84082ff333739c9007 | refs/heads/master | 2023-06-22T13:21:13.841999 | 2023-06-12T09:17:50 | 2023-06-12T09:17:50 | 115,018,799 | 9 | 29 | null | 2023-06-12T09:17:51 | 2017-12-21T15:13:55 | Python | UTF-8 | Python | false | false | 3,071 | py | from recipes.almahelpers import fixsyscaltimes # SACM/JAO - Fixes
__rethrow_casa_exceptions = True
context = h_init()
context.set_state('ProjectSummary', 'proposal_code', '2017.1.01355.L')
context.set_state('ProjectSummary', 'piname', 'unknown')
context.set_state('ProjectSummary', 'proposal_title', 'unknown')
context.s... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
fff35f266b7a945ce23d1b0459b2050cd40e8393 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_mustered.py | 3c16f077432205ec0353f9eb04415f43f24174b1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.verbs._muster import _MUSTER
#calss header
class _MUSTERED(_MUSTER, ):
def __init__(self,):
_MUSTER.__init__(self)
self.name = "MUSTERED"
self.specie = 'verbs'
self.basic = "muster"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
26d5648ee91fce4d36363b6590dcc75e80f1434a | 58916bca9a54b2d35dd2c867d7d54c2653cfdb49 | /DownloadBlobs.py | 51486086cd07ec857a9312e87ed258576fef04ac | [] | no_license | DashboardAnalytics/modelPipeline | b6ca968f04fafe123ce431a8033541630adeae41 | 2eb35a4f1aa31548695cd5cd0fcb8568a4f4c9f3 | refs/heads/master | 2020-09-29T04:04:20.088951 | 2019-12-17T01:07:27 | 2019-12-17T01:07:27 | 226,945,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from google.cloud import storage
bucketName = "streamed-videos"
# Get elements name
def download(bucketName):
storageClient = storage.Client()
bucket = storageClient.get_bucket(bucketName)
blobs = storageClient.list_blobs(bucketName)
for blob in blobs:
print("Downloading blob:", blob.name)
... | [
"sebastian.garay.p@usach.cl"
] | sebastian.garay.p@usach.cl |
6649e2913412a7d351bf1c8939a64e26bd4fa7a4 | 2759be4ce88912798687cde10b6cda436eb02742 | /dnppy_install/core/list_files.py | cf308f1375a7fdced4d9da3bac83136058e8ba42 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | jordanbudi/dnppy | 427033235aba0bdc2b9bca13e3f80c6abb191c20 | 9383f19296b30ae806d2a0563aa8c7b07e89c6ae | refs/heads/master | 2020-02-26T17:29:41.554760 | 2015-07-06T23:51:19 | 2015-07-06T23:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | __author__ = 'jwely'
import os
from exists import exists
from enf_list import enf_list
def list_files(recursive, Dir, Contains = False, DoesNotContain = False):
"""
Simple file listing function with more versatility than python builtins or arcpy.List
This function sifts through a directory and returns... | [
"jeff.ely.08@gmail.com"
] | jeff.ely.08@gmail.com |
f423f079d57cc99517810661096e85715d679271 | a1657a0c5c8f3f8b51b98074293e2f2e9b16e6f4 | /eks/demo/.cache/kubeflow/kubeflow-9804feb9fc23fc30075632a857087f4b529294e2/testing/kfctl/conftest.py | fbc70d557163bf70aef9ccc4fcb87e8378ccae42 | [
"Apache-2.0"
] | permissive | PipelineAI/pipeline | e8067636f5844dea0653aef84bd894ca2e700fc6 | 0f26e3eaad727c1d10950f592fe1949ece8153aa | refs/heads/master | 2023-01-07T15:27:33.741088 | 2022-10-25T23:01:51 | 2022-10-25T23:01:51 | 38,730,494 | 2,596 | 512 | Apache-2.0 | 2020-01-30T23:00:08 | 2015-07-08T03:49:23 | Jsonnet | UTF-8 | Python | false | false | 1,852 | py | import pytest
def pytest_addoption(parser):
parser.addoption(
"--app_path", action="store", default="",
help="Path where the KF application should be stored")
parser.addoption(
"--app_name", action="store", default="",
help="Name of the KF application")
parser.addoption(
"--kfct... | [
"chris@fregly.com"
] | chris@fregly.com |
23e945cb7d99b04e8f267992715e80682770df1c | 28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4 | /koku/reporting/migrations/0001_initial.py | 4508d4ab77013aa3f383bf70da436edc07f0ac51 | [
"Apache-2.0"
] | permissive | luisfdez/koku | 43a765f6ba96c2d3b2deda345573e1d97992e22f | 2979f03fbdd1c20c3abc365a963a1282b426f321 | refs/heads/main | 2023-06-22T13:19:34.119984 | 2021-07-20T12:01:35 | 2021-07-20T12:01:35 | 387,807,027 | 0 | 1 | Apache-2.0 | 2021-07-20T13:50:15 | 2021-07-20T13:50:14 | null | UTF-8 | Python | false | false | 182,140 | py | # Generated by Django 3.1.2 on 2020-10-05 19:29
import os
import pkgutil
import uuid
from decimal import Decimal
import django.contrib.postgres.fields.jsonb
import django.contrib.postgres.indexes
import django.db.models.deletion
from django.db import connection
from django.db import migrations
from django.db import mo... | [
"noreply@github.com"
] | luisfdez.noreply@github.com |
1cb5177d2ff89e1ef10c9b35fbf847f4179da0e5 | 4b579888f460ec89ebab6a6b19c1a49b9d76bb40 | /read_EPIC_output/read_EPIC_output.py | 38efcea9afc55339b6bb7295d22c621cdc1da3f0 | [] | no_license | xuesongzhang2004/EPIC-1 | f706b6ea0baf7e04ed7af65676c9ce5e293082f2 | e4d8d190289521efacf36576ec24508d83e2901c | refs/heads/master | 2021-01-22T04:14:21.134360 | 2015-04-24T22:00:22 | 2015-04-24T22:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import constants, pandas, pdb
from datetime import datetime, timedelta
df = pandas.read_csv('1.DGN', skiprows = 10, delim_whitespace=True,
parse_dates={"datetime": [0,1,2]}, index_col="datetime",
date_parser=lambda x: pandas.datetime.strptime(x, '%Y %m %d'))
print df.index
pri... | [
"ritvik@umd.edu"
] | ritvik@umd.edu |
fbccd6964f8fa99865a89acd3914b963964ac0d9 | 555cfc7588c9bfb6193652be2e047eae5fc1fd4b | /constructor_listas_1.py | 4de75248a6460e6aabf35690506805a295ffc0a5 | [] | no_license | MiguelAAguilarG/practicador_in | 15e203981f5cd86c4fb63743526c1945eb0afc7e | 2b6763017fbdf267cf66f5099cd221a572cce9a5 | refs/heads/master | 2020-04-07T14:07:29.045129 | 2019-07-02T06:12:39 | 2019-07-02T06:12:39 | 158,434,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | def impresor_lista_final(lista_0, lista_1, titulo, indice, lon, longitud):
lista = []
n = 0
x = 0
while x < len(lista_0):
y = 1
lista.append([])
lista[n].append([f'{titulo} {lon}'])
lista[n].append([f'{indice}{lon}'])
lista[n].append([])
lista[n].append([])
while y <= longitud:
if x < len(lista... | [
"migue_ag18@hotmail.com"
] | migue_ag18@hotmail.com |
9970c718359628f934827e8b37e99333f5d2bb23 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/NumberIslands_20200723183716.py | 0deddac0aacdbd85027aa37e835a7ea505d11b8a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | def mark_current_island()
def Islands(arr):
# the arr given is a 2 by 2 array
if len(arr) == 0:
return 0
number_of_islands = 0
for i in range(len(arr)):
for j in range(arr[i]):
if arr[i][j] == "1":
mark_current_island(grid,i,j,rows)
number_o... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
53965bb7e05ef6ca3a0598037ca3eeb3c05de87b | d41aa512f8ad7a28121121cf96f2286abc5391c3 | /scrape_argos/spiders/argos_spider.py | 5f859a470e55ca70e8b5c68d750aa910a60c08a1 | [
"MIT"
] | permissive | andyregan/scrape_argos | 8b1757819b013bbdb0d0c67ee6b205455aff5ea7 | a3cb44f29173cb4b64e8d73204aecfb40b9edfd9 | refs/heads/master | 2021-01-01T06:50:54.760280 | 2013-05-11T10:08:43 | 2013-05-11T10:08:43 | 9,894,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | from scrapy.contrib.loader import XPathItemLoader
from scrapy.contrib.spiders import XMLFeedSpider
from scrapy.http import Request
from scrape_argos.items import CatalogueItem
class ArgosSpider(XMLFeedSpider):
"""
A spider that crawls the argos.ie products sitemap and returns
CatalogueItems in a format t... | [
"andrewjregan@gmail.com"
] | andrewjregan@gmail.com |
d0175083db081277fb0f2d0146fdb3975c188091 | 9cac34ba9913efcf2bf9f328cd62de6541102547 | /flask-restful/app.py | 940be0749f7e7066055940361be7fcfd4bb2b811 | [] | no_license | gushiyu01/NLP | 542fa037cda1ebf96ac8d129ce51e9ee086e8f2a | 6d2d3dc15b3b38733010275c691fb3159027a4b3 | refs/heads/master | 2023-05-26T21:27:36.472838 | 2021-01-18T09:02:06 | 2021-01-18T09:02:06 | 255,058,732 | 0 | 0 | null | 2023-05-22T23:37:49 | 2020-04-12T10:30:36 | Python | UTF-8 | Python | false | false | 1,177 | py | from flask import Flask, request
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False
app.config.update(RESTFUL_JSON=dict(ensure_ascii=False))
api = Api(app)
parser = reqparse.RequestParser() # 定义全局的解析实体
# 定义参数 data,类型必须是整数
parser.add_argument('data', type=int, ... | [
"gushiyu@ictbda.cn"
] | gushiyu@ictbda.cn |
793a5b14a11afa9be26bd490eba05252d9be3f6b | f065e84587501a10259e113f39fc8ea7140cdd1e | /Projects/p2_w2.py | 3bc57bbb4ce6e9c5ad7631c14b752b97be714ea0 | [] | no_license | jjivad/my-tries | 8bf7e7cb83483935c02688f8d35f7a392db57529 | 78be243c836f46d82041270906b7a380e576ff89 | refs/heads/master | 2020-07-26T21:18:29.135660 | 2019-09-16T10:15:09 | 2019-09-16T10:15:09 | 208,768,263 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 10 14:34:04 2019
@author: VIJ Global
"""
balance = int(input("please put your balance on your credit card: "))
annualInterestRate = float(input("please put your annual interest rate in decimal: "))
monthlyInterestRate = annualInterestRate/12
i = 0
month = 0
m... | [
"noreply@github.com"
] | jjivad.noreply@github.com |
4bc9fefe6b6810184dc76d0ee18f7fe052cc225c | 0f6e2db3a768d3f28304f23c80ca0e6c32a0b0c9 | /models/transaction_models.py | 1c7f8984bb392d4d41091b9dc5fb2223d5ec365e | [] | no_license | jorge2692/cajero-api | 210c5058d653290f06cafc811a77255ed8ac2f8a | 98aea31c54bc94e6c808f68de3d506c3fcc99077 | refs/heads/master | 2023-01-24T18:32:24.203416 | 2020-12-13T01:08:32 | 2020-12-13T01:08:32 | 318,190,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from pydantic import BaseModel
from datetime import datetime
class TransactionIn(BaseModel):
username: str
value: int
class TransactionOut(BaseModel):
id_transaction: int
username: str
date: datetime
value: int
actual_balance: int
| [
"jorge@MacBook-Pro.local"
] | jorge@MacBook-Pro.local |
a543e63968aea961343d8d01676f463aa1d85e01 | 7b41f5cdff1569dcf6b6c20fd36eb09e1c861771 | /Game/001/001.py | d9df6faa4b4d57455c1e116324514cf5ef0b4304 | [] | no_license | Lynn524552751/Flynn | 7a898fb78bce6e87e3c6e49271eb8b3953a54a05 | b99183f2fb1b40a24212f0939c066aeac7608e3f | refs/heads/master | 2018-09-26T23:59:48.288734 | 2018-09-13T10:48:25 | 2018-09-13T10:48:25 | 114,985,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | #coding:utf-8
num = 0
xx = [2,3,5,6,8,9]
#bw-百位 sw-十位 gw-各位 h2-后两位
for i in range(10,100):
for j in range(10, 100):
num = i*j;
if num<2000:
bw = int(num % 1000)
bw = int(bw/100)
h2w = int(num % 100)
sw = int(h2w/10)
gw = int(h2w%10)
... | [
"524552751@qq.com"
] | 524552751@qq.com |
1689e0603d95b671d46b7a4702509b2d8885653b | b1caa409422f6fe6d0802689857fde31e2bebafa | /cms/migrations/0003_auto_20200605_1312.py | 1e9db50dfb361e58b14f1ee8c5828e293fb2dcb1 | [] | no_license | LelikovAlexandr/BlogCMS | a9df8b5d313ef54f5607817d7c3330f172d90d43 | b081c90f359d57960baac91a8be3d8e7481ca537 | refs/heads/master | 2023-03-07T21:54:02.779849 | 2021-02-16T07:14:33 | 2021-02-16T07:14:33 | 266,382,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # Generated by Django 3.0.6 on 2020-06-05 13:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cms', '0002_auto_20200605_1251'),
]
operations = [
migrations.AlterModelOptions(
name='price',
options={'ordering': ['number... | [
"houda.lamsaaf@ump.ac.ma"
] | houda.lamsaaf@ump.ac.ma |
67e7042acd1d1694f5043145c286b876ae67e8fb | 6d52a9760ee2118654ec6a7dbe294b6048d3a4c6 | /Mission_to_Mars_Challenge.py | f2c11c6a47ece62e67366abf0ab38437212dbf05 | [] | no_license | azarowj/Mission-to-Mars | 227bddc9e5a08b4a4b77c87a3a25fa5de1a05a3e | 4ae153ead96cff4ce19ed6402f7a3610981a7836 | refs/heads/main | 2023-04-14T13:33:00.936431 | 2021-04-27T23:22:31 | 2021-04-27T23:22:31 | 357,365,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,962 | py | #!/usr/bin/env python
# coding: utf-8
# Import Splinter and BeautifulSoup
from splinter import Browser
from bs4 import BeautifulSoup as soup
from webdriver_manager.chrome import ChromeDriverManager
import pandas as pd
executable_path = {'executable_path': ChromeDriverManager().install()}
browser = Browser('chrome', ... | [
"JAzarow@azarowj.lan"
] | JAzarow@azarowj.lan |
e8c46ab606c7cc5f2311830a5ed1932bb0e09370 | 4f9b506cc86cbc9d1a29caea572c19fbfed64366 | /CSD2a/python_basics/src/hello_world.py | a129e653a0f9420a26df93f9e31ed58ba526ffe2 | [] | no_license | w-ensink/CSD2 | af8259d71e30f89e32ab1a1ddc81ca121feb63dd | a11adf905df605ae35ef23b8313327cdd8597143 | refs/heads/master | 2023-02-13T08:25:29.915490 | 2021-01-05T09:56:56 | 2021-01-05T09:56:56 | 291,936,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py |
print('Hello, World!')
name = input('Please enter your name: ')
print(f'Hello, {name}!')
| [
"wouterensink3@gmail.com"
] | wouterensink3@gmail.com |
071ce847ec912c1a9566b2cd11c79e32f921ad72 | 2ce68cfbb8d893a29890e15e155593c357f68ffc | /tests/test_board_analyzer.py | 48bf0a315774118b704778998c754ddc55e098f4 | [] | no_license | yamakanto/Domineering | 209fad4cd06f37b3a0bd7a1067d43ba32301ad06 | 8b1553e31fd4a3836286b756afb1cbae051036f5 | refs/heads/main | 2023-02-15T01:33:32.288760 | 2021-01-07T12:47:11 | 2021-01-07T12:47:11 | 324,605,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import unittest
from domineering.board import Board
from domineering.board_analyzer import *
class TestBoardAnalyzer(unittest.TestCase):
def test_can_make_move_horizontal(self):
board = Board.from_string('EEV;EVV;VEE')
self.assertTrue(can_make_move(board, (0, 0), False))
self.assertTrue(... | [
"t.forner@tum.de"
] | t.forner@tum.de |
e3d01b107c2fe4527937f7247c7987250cb46730 | c91c3bd6f29a0d42ede2d5516c0dad9eefcf6b18 | /wiley_book/ch7_assortativeMating.py | 8b546290dfc0cfcded8934249c963d6d00e06a19 | [] | no_license | BoPeng/simuPOP-examples | bcc76406411705977b10ed33bce4e66ad126b8c1 | 79ac604bf7ab7ffe4affcc885d521cf0ce7999be | refs/heads/master | 2021-01-09T06:05:56.290019 | 2020-03-04T20:48:58 | 2020-03-04T20:48:58 | 80,897,728 | 1 | 7 | null | 2019-02-28T13:50:51 | 2017-02-04T06:04:22 | Python | UTF-8 | Python | false | false | 1,941 | py | import simuPOP as sim
from random import normalvariate
sigma = 1
def traits(geno):
'genotypes are arranged as a1a2b1b2c1c2... where a,b,c are specified loci'
A = sum(geno[:20]) + normalvariate(0, 2.5)
B = sum(geno[20:40]) + normalvariate(0, 2.5)
I = sum(geno[40:60]) + normalvariate(0, 2.5)
D... | [
"ben.bog@gmail.com"
] | ben.bog@gmail.com |
bda8d6a4be1ebc02d63eb97491450aa5aa1cb42c | 977d51ea06d78cfd7d75b8ab6545890843c0710c | /Notebooks/Advanced_Keras/NN_scratch_TF.py | 3e9798737f6450216e50336fe860d5ffdcbf7cef | [
"MIT"
] | permissive | Tech-at-DU/ACS-4511-Core-Apps-of-AI | ebf269e458f20fb02cbcd0a23c99c12ec04e0e28 | a3c22cfe71ff9db52926905fb321b74b66834165 | refs/heads/master | 2023-08-22T07:51:04.851696 | 2021-10-24T01:24:16 | 2021-10-24T01:24:16 | 390,577,389 | 0 | 0 | MIT | 2021-10-21T18:37:55 | 2021-07-29T02:40:15 | null | UTF-8 | Python | false | false | 3,334 | py | import numpy as np
import tensorflow as tf
rng = np.random
# check this out:
# https://www.analyticsvidhya.com/blog/2017/05/neural-network-from-scratch-in-python-and-r/
# Input array
X_data=np.array([[1.0, 0.0, 1.0, 0.0],[1.0, 0.0, 1.0, 1.0],[0.0, 1.0, 0.0, 1.0]])
#Output
y_data=np.array([[1.0],[1.0],[0.0]])
#Vari... | [
"miladtoutounchian@Milads-MacBook-Pro.local"
] | miladtoutounchian@Milads-MacBook-Pro.local |
a5c9cc9df4bd99702e27a912b9f37f7f32b33abe | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/fsl/tests/test_auto_PRELUDE.py | 328a8e327270073da52a17adab6fad01052ef8f3 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,273 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..preprocess import PRELUDE
def test_PRELUDE_inputs():
input_map = dict(
args=dict(argstr='%s', ),
complex_phase_file=dict(
argstr='--complex=%s',
mandatory=True,
... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
7cbbb2a8bce7bf3714e97be1e506397c1947a744 | 07b1331532346b7d423fac07fbbbf2ebc72acf98 | /backend/project/models/dto.py | 23fb38167249a85dc5a20845f4f082873a38597e | [] | no_license | glebapaulina/itmProj | 67465b16b15a7275a63b21c0b47fb0056436a988 | 695c2f7402aebee756dd98583324238a8e70cbd5 | refs/heads/master | 2020-03-12T07:42:05.565247 | 2018-04-21T20:54:39 | 2018-04-21T20:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | class WynikOperacji:
def __init__(self, id=None, wynik=False):
self.id = str(id)
self.wynik = wynik
class WynikRejestracji:
def __init__(self, accessToken=None, refreshToken=None, dodanoUzytkownika=False):
self.accessToken = accessToken
self.refreshToken = refreshToken
s... | [
"michalszmyt95@gmail.com"
] | michalszmyt95@gmail.com |
da8ec61d45afc243533780292ffb545c670d1743 | 3624e9f0a026b57ebdafa4e842b93f56e5a8504d | /Codeforces/Rockethon 2015/Problem B/a.py | dc6fcf72922e601ae0f17845097b2fbfcfa28ff7 | [
"MIT"
] | permissive | ailyanlu1/Competitive-Programming-2 | 54109c8644d3ac02715dc4570916b212412c25c0 | 6c990656178fb0cd33354cbe5508164207012f24 | refs/heads/master | 2020-03-23T07:48:20.560283 | 2018-02-15T06:49:49 | 2018-02-15T06:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from itertools import permutations
st = map(int, raw_input().split())
n, m = st[0], st[1]
l = [0] * n
p = [1]
for i in xrange(n-1):
p.append(p[-1]*2)
cnt = 0
first = 0
last = n-1
i = 2
while cnt < n:
if m <= p[n-i]:
l[first] = cnt+1
first += 1
else:
l[last] = cnt+1
last -= 1
m -= p[n-i];
#m -= p[n-i];
#p... | [
"adityapaliwal95@gmail.com"
] | adityapaliwal95@gmail.com |
7822a747b3837c20cada8ceca0c20dbeb0055a06 | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/accepted/그래프, DP/1005 ACM Craft.py | 7457a165206368ceb76255fbd70075af10846505 | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | from sys import stdin, setrecursionlimit
setrecursionlimit(101100)
def solution(N, K, T, G, E):
# use 1index
graph = [[] for i in range(N+1)] # record building before
for before, current in E:
graph[current].append(before)
# search using dfs
dp = [None for _ in range(N+1)] # None for n... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
887bb1aaf0e753e2feb192c0d6136742fdf0f3e9 | 127f5185a70aed31bcdb4251e46e1fbca0bafe1c | /util/src/util/knowledge_base/type.py | de745a4479aa18cdc4526f902f98e4cc4721167b | [] | no_license | Evana13G/RAPDR_babble | 66eaee5f4b225c46234157a3afb014d8f0454d80 | 58db492b918ae0407004c1fe7b18b5c13378cede | refs/heads/master | 2023-02-17T07:20:09.012859 | 2021-01-17T20:40:46 | 2021-01-17T20:40:46 | 228,928,211 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | #!/usr/bin/env python
class Type(object):
def __init__(self, parent, children):
self.parentType = parent
self.childrenTypes = children
def getChildrenTypes(self):
return self.childrenTypes
def __str__(self):
s = ''
for t in self.childrenTypes:
s = s + ... | [
"Evana13G@gmail.com"
] | Evana13G@gmail.com |
184f6f49d56c5a523456c098d4c4e773d37d12ae | 6da945420ecf40a797ae46528d48f2972216164f | /Uppgift1 september2020.py | f9aa4ae90c64e9eee8b7abbfe90e3d259c97b2b9 | [] | no_license | callen1991/kyh-practice | 4e0eb367575fa3fdc5f63ae5383168f98dd7ec37 | dec016b3f188207ba3e6198c4c0fd12e895ed9f9 | refs/heads/master | 2022-12-13T00:53:06.580251 | 2020-09-03T09:08:30 | 2020-09-03T09:08:30 | 291,671,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | Right_answer = "print"
correct_answer = True
input("Vilken funktion används för att skriva ut saker på skärmen? ")
print("Ditt svar: print")
print ("Rätt!")
| [
"carladam.tornkvist@student.kyh.se"
] | carladam.tornkvist@student.kyh.se |
0c19e7e1ce7c1b4fbad6def56d68b9d947efdb72 | 303416ce779a19dd37228d843f66b8466bba06fb | /benchmarks/operator_benchmark/pt/groupnorm_test.py | c1c638902af2c51c706bebc804c0d01a5f43185b | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | linziyi96/pytorch | dc3f5f4c7539a81e3a368c799065a5557af6bbd2 | c362138f4380c11ddeb07d7e7e34d75300091597 | refs/heads/master | 2021-02-10T09:51:31.802098 | 2020-06-25T15:49:04 | 2020-06-25T15:54:05 | 256,582,228 | 4 | 3 | NOASSERTION | 2020-04-17T18:38:38 | 2020-04-17T18:38:37 | null | UTF-8 | Python | false | false | 1,095 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import operator_benchmark as op_bench
import torch
import torch.nn.functional as F
"""Microbenchmarks for groupnorm operator."""
groupnorm_configs_short = op_bench.cr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
9a1d5bdebdf0044481c583792bccb114722a2f42 | 7ba48f82dac0c19d41d7da51cda3aef5173dd77c | /scheduler/models.py | b43d43e38b60bb133f1ca80f06c8be369c499f1e | [] | no_license | saiful7/Betasmartz | 09af8b11f816adf3c2dc41ad5a70f170d6dbb981 | 337a79b59498f42294f19e53eea9cd1c8019ee48 | refs/heads/master | 2022-05-10T04:14:31.382569 | 2018-11-23T06:50:45 | 2018-11-23T06:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation
from django.contrib.contenttypes.models import ContentType
from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.utils.functional import cached_property
from django.utils.translat... | [
"31435513+blueskaie@users.noreply.github.com"
] | 31435513+blueskaie@users.noreply.github.com |
ba52db75fb59ae3cea092f828953cf7d9751812d | da71f159a4e64b04f30438fd8d881886928241a9 | /ACM/LintCodeInPython/string_to_integer_ii.py | 622d7865c6191456eb007cb551dacd3718364280 | [] | no_license | zeroonechange/python | 0155b980d2a93069a1701ac74ab51c5695388644 | 6cd3f940666657da9a4bba8c5239db84cf39928a | refs/heads/master | 2021-04-18T11:23:16.999942 | 2018-11-18T05:09:31 | 2018-11-18T05:09:31 | 98,433,535 | 0 | 0 | null | 2017-07-26T14:42:26 | 2017-07-26T14:42:26 | null | UTF-8 | Python | false | false | 888 | py | # -*- coding: utf-8 -*-
class Solution:
# @param str: a string
# @return an integer
def atoi(self, str):
# write your code here
int_max = 2147483647
int_min = -2147483648
sum = 0
i = 0
str = str.strip()
if not str:
return 0
sign = ... | [
"zeroonechange@gmail.com"
] | zeroonechange@gmail.com |
b5fcaf8543eed0b9c5c786f8d3f3d164ee4bd170 | 5d0de63ae64fceb3f26abc6e9e5b0d48a6d0ed86 | /10000~10999/10950_A+B - 3.py | 0d5f0fa78f6e17c86a4852c63e5afe8b41cc4fe0 | [] | no_license | PowerNeverEnds/BaekjoonOnlineJudge_Python | 5b5cda3a07872f15846190b91c3adf18690abded | c1a4aba6c6cbc731a2bc52a73048e32f6a323381 | refs/heads/main | 2023-02-13T14:49:53.054363 | 2021-01-01T03:25:25 | 2021-01-01T03:25:25 | 324,266,101 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import sys
input = sys.stdin.readline
T = int(input())
for _ in range(T):
A,B = map(int,input().split())
print(A+B)
| [
"PowerNeverEnds8@gmail.com"
] | PowerNeverEnds8@gmail.com |
267d9bedd292039dea2fb0b1c5f08c4fa1a2f292 | 15ae2fd8044a3ba6e8fe8004779aaab971c74257 | /setup.py | 79c24455e1ff38cc8a6b8e2bb08d68b0861794af | [
"MIT"
] | permissive | cbamann/language-model | 7997997268e6eb54d31af49cc57000336d8d7a21 | d14410c2302bf42bb771abc4a6b859704847798e | refs/heads/master | 2020-07-24T06:47:31.650362 | 2019-09-11T14:45:33 | 2019-09-11T14:45:33 | 207,834,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,129 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys, os
# DATA packaged
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
# ML packages
import tensorflow as tf
from keras import backend as K
K.clear_session
# Word embedding
import gensim
#from gensim.models import Word2Vec
from gens... | [
"cbamann@student.ethz.ch"
] | cbamann@student.ethz.ch |
427a474a63b08ef6de2086ab55b872c0fd16775a | bab8e9d07bde113869273e57945d67ee0d6de2a3 | /apps/document_signatures/managers.py | c03e2b5699161607eb0afb734b35a6a2b9ba65b4 | [
"Apache-2.0"
] | permissive | trillobite/mayan | e0df04bf6ac4fe5010a05c2905c5fda0ea851071 | 0b6d30a50de8b0237bdc4ffe29ba65b93366e620 | refs/heads/master | 2021-01-10T02:45:15.710159 | 2016-02-19T23:25:56 | 2016-02-19T23:25:56 | 51,715,368 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | from __future__ import unicode_literals
import logging
from django.db import models
from django_gpg.exceptions import GPGVerificationError
from django_gpg.runtime import gpg
logger = logging.getLogger(__name__)
class DocumentVersionSignatureManager(models.Manager):
def get_document_signature(self, document_ve... | [
"jparnell0@gmail.com"
] | jparnell0@gmail.com |
01e7953945856e906873cc5f3a96960ba79d17c5 | 4a80c8d5ab6af276e3a998643abfa9fdae1cb8cd | /RUN_ME.py | 74fce4d92c22d6d4f8cb869832681afa9ae90025 | [] | no_license | denjn5/TopicStudy | 28b64e29f38e88fc040c63b27fee2d0d84d3d36d | 4e7c22d8fc4caeaf22e4ef8b204ddcbaf24d2637 | refs/heads/master | 2021-01-23T04:29:59.845832 | 2017-06-24T05:40:14 | 2017-06-24T05:40:14 | 86,205,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | """
Running this file makes all of the key stuff happen.
"""
import common
import bible
import tfidf
import topic
import vec_relationships
MAX_TOPICS = 40
SAVE_SOURCE = False
USE_LOCAL_SOURCE=False
def main():
# GET THE TEXTS
bib = bible.Bible("Matthew") # Get properly formatted corpus (a python list of d... | [
"denjn5@gmail.com"
] | denjn5@gmail.com |
cdaf1f14474fcbe19d3dea514702fa550dd021d0 | 289e359b1c40a5b434c925267db30bc8d5299807 | /Lab2/A2_5_py.py | db37889a5051ef88fd23d1a4c6a14c0f583f0d3b | [] | no_license | KandyKad/Python-3rd-Sem | fb960c8e018bb96d173759b10863d776d5574c8f | 1c54cf903e466f86906828a239b008c4dbe946b0 | refs/heads/master | 2021-01-07T11:57:56.355322 | 2020-02-21T16:27:48 | 2020-02-21T16:27:48 | 241,684,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | str = input("Enter a string:")
c,d = 0,0
for i in str:
if i.isdigit():
c=c+1
elif i.isalpha():
d=d+1
print("The number of digits in string are: {}" .format(c))
print("The number of letters in string are: {}" .format(d))
| [
"noreply@github.com"
] | KandyKad.noreply@github.com |
9f285253b5155effbe89ca925465b68c4d1277b8 | d8c4854d7c4ebd3d643ff50878b6100aa34d2dc3 | /venv/Lib/site-packages/numpoly/array_function/isclose.py | 1da61ffe23f6db54a147e591721af120c947898a | [] | no_license | quintelabm/PrmFitting | 35a8b7463d5fddb834eac1901a27a258de0c0da0 | b384b5bde0cbc2717bea936ddf151df619d8893b | refs/heads/master | 2023-08-06T04:03:16.864147 | 2021-09-17T02:43:45 | 2021-09-17T02:43:45 | 221,717,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | """Return true where two arrays are element-wise equal within a tolerance."""
import numpy
import numpoly
from ..dispatch import implements, simple_dispatch
@implements(numpy.isclose)
def isclose(a, b, rtol=1e-5, atol=1e-8, equal_nan=False):
"""
Return true where two arrays are element-wise equal within a to... | [
"46576343+jessica-garbero@users.noreply.github.com"
] | 46576343+jessica-garbero@users.noreply.github.com |
cc36255e7abfb129b63ea9ff85c20ca44d0d3d5c | 49c32e44a6e49b72c8454b0d165114808ee4ac90 | /howard/GrovePi-EE250/ee250/lab08/http_client_example.py | e9b0e7672a07b26980456d66001b9b532a86568d | [
"MIT"
] | permissive | wenyigao6/ee250 | 85a1991e00e019f3d91f358c2ce0df9695b1ed03 | 651f4a9de4b07df9c6c5903c7fbe22a0eead853d | refs/heads/master | 2021-05-05T05:33:58.976155 | 2019-03-07T04:21:46 | 2019-03-07T04:21:46 | 118,688,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import requests
import json
from datetime import datetime
import time
"""This file illustrates the typical calls you need from an http client.
More specifically, in your signal_processing.py code, you should have a
request.post() call everytime a movement is classified by your algorithm."""
if __name__ == '__main__'... | [
"wenyigao@usc.edu"
] | wenyigao@usc.edu |
8d1adff878356ce0b1320b63deda9a292ca26375 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210529115100.py | 3a9e3953cc01895bd407acc93e9b5d1586d666ea | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,910 | py | from flask import Flask, render_template, redirect, url_for, flash, request
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
a3156288c68ba13e56fa02089ab9f1f432f33e33 | 05df89f9b5354f1b459d020bd020100a08b9b30b | /data/util.py | 9767a15c05ce7eb6cd911c6f59a8a7babdad94f2 | [] | no_license | GuoDonger/graduation | 9e8da55f6ee97fd7648630ebdf9e36ff74910690 | bd4eb9eae9b6e58d0478a4f4c18982f6695e33e3 | refs/heads/master | 2020-05-05T14:03:40.459133 | 2019-05-06T00:48:49 | 2019-05-06T00:48:49 | 179,194,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | from urllib import request
from lxml import etree
import pymysql
HOST = '123.56.23.97'
PORT = 3306
USER = 'root'
PASSWORD = '111111'
CHARSET = 'utf8'
DATABASE = 'wumai'
HEADERS = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) \
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.8... | [
"18235445605@163.com"
] | 18235445605@163.com |
eb8e22f6495242dc6d530e2652a68d046074bfe0 | 2bc36cf3b249407015685726d964f7989c28e974 | /articles/migrations/0004_article_is_draft.py | a890b0c4ce6c0bb0c6d9d29be1932697429f9b4c | [] | no_license | AbhishekAmin/severus | 5ce3f587189bb21ae15067be41bd5f9b549f4d33 | e60ad55d3af779cdc1ad71f1026ed9ba60cea729 | refs/heads/master | 2023-04-29T23:17:31.949837 | 2019-08-20T02:57:45 | 2019-08-20T02:57:45 | 202,535,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2.4 on 2019-08-13 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0003_article_created_by'),
]
operations = [
migrations.AddField(
model_name='article',
name='is_draft',
... | [
"amin.abhi297@gmail.com"
] | amin.abhi297@gmail.com |
4688c862adbcad7d3cf9e5943df3d12fbd9f594c | 65d40eeeb94485fb981c138e89ccfadad0387748 | /NMF.py | 7dcefcc92a25fdff72b47c307a2a30e4f8359240 | [] | no_license | johnforrest/MachineLearning | 14ed7dad4d1da6ebf5db88e3154acb3dee65468b | 42a0877a950109fd5e8fce36b18b948ebaab4a9d | refs/heads/master | 2021-05-17T02:21:12.077236 | 2019-04-06T09:18:16 | 2019-04-06T09:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 25 17:23:41 2019
@author: Administrator
"""
from numpy.random import RandomState
import matplotlib.pyplot as plt
from sklearn.datasets import fetch_olivetti_faces
from sklearn import decomposition
n_row, n_col = 2, 3
n_components = n_row * n_col
image_shape = (64, 64... | [
"870407139@qq.com"
] | 870407139@qq.com |
ccb560c882140ca894d535fca4ac8ab4e79aaa5f | 7f53c41182a6d9c5da0c58a15716f01725ac0316 | /2019_1_9_public_test/q.py | 6e818a749b82cd297051abf4cbcbe60ceacce469 | [] | no_license | 1286211699/2019_1_23_pub_test | f6b7ee089e78ad673c56b3cd4ccee9b2154581f6 | 3aed7f4941353d48bf3407e9d30ac85c83b0ed7b | refs/heads/master | 2022-12-19T14:41:15.264627 | 2019-03-21T09:46:08 | 2019-03-21T09:46:08 | 167,125,649 | 1 | 0 | null | 2022-12-08T01:33:30 | 2019-01-23T05:54:52 | HTML | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# @Time : 2019/1/9 18:05
# @Author : for
# @File : q.py
# @Software: PyCharm
url = 'http://upos-hz-mirrorks3.acgvideo.com/dspxcode/m190109ws2e8185t3erk002bimbs16gx-1-56.mp4?um_deadline=1547037041&rate=500000&oi=3683615411&um_sign=1e6832d451fcacd171232b97f2609daf&gen=dsp&wsTime=1547037041... | [
"1286211699@qq.com"
] | 1286211699@qq.com |
d6e84a3e0ce87ad21e7f7c0a868cb25759fb1d64 | 6cdb8934e6793487a75d6a32c3b2d4c24e8aa120 | /cluster/link_check.py | 458ae9b92d7cd363de5850698f6b45db819d48dc | [] | no_license | FGPullen/shiny-couscous | db2a23a96492ad46fa5671f06cab26cf6ac7dfb7 | 15c33f930f18cff978746c818869a34243c480a0 | refs/heads/master | 2021-01-01T06:46:15.373554 | 2017-07-17T17:34:21 | 2017-07-17T17:34:21 | 97,504,924 | 0 | 2 | null | 2017-09-10T09:44:11 | 2017-07-17T17:41:59 | HTML | UTF-8 | Python | false | false | 2,238 | py | from pages import allPages
class link_analyzer:
def __init__(self, data_path,dataset):
self.pages = allPages([data_path])
self.dataset = dataset
prefix = data_path
self.file_set = []
for page in self.pages.pages:
self.file_set.append(page.path)
#print file_set
def getAnchor(self):
self.right_list ... | [
"xky0714@163.com"
] | xky0714@163.com |
eefe06af9a2f5bcf8c275f7eee55686b99bee991 | b82910ffd88fd90f9241564a7973c3a3cf46b3f7 | /seattle/vxlan_tool.py | 34c8fd5451500e507707f361d87c6890ec92e5dd | [] | no_license | jlausuch/sfc-work | fc8ea9c8952999e788d83d701df9b6925933c4f2 | f7fcd9648738953f96fab233e9eba20eb191d514 | refs/heads/master | 2021-06-05T22:51:19.328188 | 2016-08-23T14:14:36 | 2016-08-23T14:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,535 | py | #
# Copyright (c) 2015 Intel, Inc., Cisco Systems, Inc. and others. All rights
# reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html
__auth... | [
"root@fuel.domain.tld"
] | root@fuel.domain.tld |
2a4be14f4fce6bea15a6e689acb94e58aff1b21c | fc4625297dd6ffcee239bf332d46c483c42d5e74 | /02-Database-Socket/day10/exit.py | fab05a74c5ebd5d106ccf7d7f45b62d998053be1 | [] | no_license | Healer0616/aid1902 | cd6a23b0340b9c6739380377b866051dc8236c75 | 069991fd503931ea889d69a26e3f2819b44c2450 | refs/heads/master | 2021-07-08T14:39:21.879983 | 2021-03-19T06:55:37 | 2021-03-19T06:55:37 | 232,581,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py |
import os,sys
#结束进程,不执行下面语句
#os._exit(0)
sys.exit("进程退出")
print("Proccess over") | [
"healer0616@126.com"
] | healer0616@126.com |
e4dfb94a30f28fbb76f4e0e88c4a07ccf19c28b9 | e9a82ed691c23fdb9c3792832dc0137b3cf3bf8c | /Tutorial_Backup/circles.py | a68551b64fe198f00a847280162e927eeb58b38e | [] | no_license | psshankar64/PiGitFolderFDC | 55375c6b13e79a5c82e98fad58c5512478161ccf | 5ed7d5b8e8b0f2b936c0661ae5af7f5fd80b88d7 | refs/heads/master | 2020-06-25T03:42:49.846552 | 2019-09-25T09:36:39 | 2019-09-25T09:36:39 | 199,189,933 | 1 | 0 | null | 2019-09-07T10:03:47 | 2019-07-27T16:38:07 | Python | UTF-8 | Python | false | false | 1,609 | py | # This script will demonstrate how to draw a rectangle
import sys
import random
import math
import pygame
import pygame.gfxdraw
from pygame.locals import *
#Define some standard colors
FUCHSIA = (255, 0, 255)
PURPLE = (128, 0, 128)
TEAL = (0, 128, 128)
LIME = (0, 255, 0)
GREEN = (0, 255, 0)
OLIVE = (... | [
"psshankar64@yahoo.com"
] | psshankar64@yahoo.com |
eb78f117f39445b509a128d00ce2509547912f46 | 1ee7b843d18834d9bdab122da0a3641bad832515 | /WebServicesPython/WebServicesPython/asgi.py | f8f16dea5f5526f70c12c43e05d0b0d978c229b8 | [] | no_license | CarlosAlmeida2000/WebServicesPython | 8da5dbf8e70c7e52fe09f0209c42bd61a0df436e | bd2a4f2c53df8fa3724f2e0ecdd47b5018ac75f0 | refs/heads/main | 2023-07-08T13:11:03.946832 | 2021-08-11T00:06:16 | 2021-08-11T00:06:16 | 394,281,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for WebServicesPython project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"carlos.almeida2017@uteq.edu.ec"
] | carlos.almeida2017@uteq.edu.ec |
388843ec540100a8577f65678c60bc08e35de2e7 | 08e2f659aeac18351078468d28fbd39a19ba129f | /interpreterSample/Expresiones/Casteo.py | 4228c71f296e746542e7a097bf97dd38742a2aab | [] | no_license | josejfss/OLC1_Junio2021 | fa31b81b8a1248d84759882a9a26fd9056a365d4 | 36437d7da3594b3876a534f0ce9d6ed1fa0ad996 | refs/heads/main | 2023-06-06T01:04:27.235343 | 2021-06-30T20:46:25 | 2021-06-30T20:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | from Abstract.NodoAST import NodoAST
from Abstract.Instruccion import Instruccion
from TS.Excepcion import Excepcion
from TS.Tipo import TIPO, OperadorLogico
class Casteo(Instruccion):
def __init__(self, tipo, expresion, fila, columna):
self.expresion = expresion
self.fila = fila
self.colum... | [
"puac235@gmail.com"
] | puac235@gmail.com |
1e7f842df8f57de2892f6c63477347bd518f94bf | ba489597ca034481f3446767e7e29606d944780a | /main_gui.py | 176cf0192d916382288975130d761eaca9c2b15b | [] | no_license | mkelley88/BiddergyBrowser | 8dc8105dcc2f5c32e1df8c01e848366a973fb2c6 | db35aab244be8a01d7a5b35a17614f41f5bd297c | refs/heads/master | 2021-07-11T14:44:46.284517 | 2021-03-26T07:00:48 | 2021-03-26T07:00:48 | 45,760,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,387 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'biddergy3.ui'
#
# Created: Mon Nov 14 18:44:41 2016
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_MainWindow(object):
def setupU... | [
"mkelley88@gmail.com"
] | mkelley88@gmail.com |
ce9db6f9e843b7aa7979f8e3123b354b1a7549d8 | b1b492715300bee008eacc2708ff3aa9f6ff34ab | /mps_shape_completion/shape_completion_training/src/shape_completion_training/metric.py | 66a8c8d0064e050027826f98451b43f4c3214978 | [] | no_license | minlattnwe/unreliable-deform-manipulation | 1dd60a1f91af37c30e699b218ed374c3b65d0f9b | b04485ed98d78a5f35f5b4d29aac715e2c0ef6a5 | refs/heads/master | 2023-03-19T20:16:57.552013 | 2020-12-09T21:13:25 | 2020-12-09T21:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,131 | py | import tensorflow as tf
class Metric:
@staticmethod
def is_better_than(a, b):
raise NotImplementedError()
@staticmethod
def key():
raise NotImplementedError()
@staticmethod
def worst():
raise NotImplementedError()
class LossMetric(Metric):
@staticmethod
de... | [
"pmitrano@armstorm"
] | pmitrano@armstorm |
6d98248215769200c25572a4147a419d46be734e | dad40dc4fdba73b1dc074f3fb8373b8a3335cabf | /7.py | d78c77d1e482a9276de407b0c94d1bb5b63a139c | [] | no_license | chronosvv/exercise | cdab7c09fefc63f8ddd942d0246b277ea644866c | 9056d7a59af8b4cc447b88089415556000516d85 | refs/heads/master | 2020-03-12T23:35:12.191339 | 2018-04-24T14:43:34 | 2018-04-24T14:43:34 | 130,869,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | class Solution(object):
def convert(self, s, numRows):
if not numRows or numRows == 1 or len(s) <= numRows:
return s
dic = {}
count = 0
reverse = False
for i in range(len(s)):
if count < numRows and not reverse:
if count in dic:
... | [
"2662282459@qq.com"
] | 2662282459@qq.com |
fcd162157a215cb564359d193535f5473bd0fe4d | 11c68a5008331b94c6dad3b6c99a43355fa7fc3f | /test_package/person.py | cd3dbe038442c7305b4cacbe099c65779db268de | [] | no_license | sean0923/python3-net-ninja | 27b30268b3a960e2a62c9f64df00626e7c33cc04 | d6c93829d25034b85c720504a85e856b924d0e21 | refs/heads/master | 2020-03-19T13:11:56.378690 | 2018-06-11T01:08:39 | 2018-06-11T01:08:39 | 136,567,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Person:
# class level attribute
isHuman = True
def __init__(self, name, age, weight):
# instance attributes
self.name = name
self.age = age
self.weight = weight
def eat_food(self, food):
print(f'{self.name} is eating {food}')
@classmethod
def print_class_method(cls):
print(... | [
"iamseanhong@gmail.com"
] | iamseanhong@gmail.com |
9b09e7a645c9a90cda1d2800058bb219cecad885 | 4f98ccf8edab76c10a526b83837c79185b9e0132 | /applications/persona/views.py | 4fca4d1b1e3e592c43ebacf0390b02cdf374340b | [] | no_license | armandoSandino/empleado_dj | f1f8b86187ad9fe7218a5e95afc2eae01edc0772 | 5f652706308746b97a6a230f618062193a5c1dcb | refs/heads/master | 2022-12-03T21:00:29.197532 | 2020-09-01T00:10:36 | 2020-09-01T00:10:36 | 290,268,814 | 2 | 0 | null | 2020-09-01T00:10:38 | 2020-08-25T16:40:08 | Python | UTF-8 | Python | false | false | 8,875 | py | from django.shortcuts import render
# Nos permite invocar rutas
from django.urls import reverse_lazy
from django.views.generic import (
ListView,
DetailView,
CreateView,
TemplateView,
UpdateView,
DeleteView
)
# models
from .models import Empleado
from django.http import HttpResponseRedirect
#I... | [
"jsandino@aimservices.tech"
] | jsandino@aimservices.tech |
acafc2d39a45e3a0656ed56466fa2f8fb1875bc8 | efa2158f1666ab0fc22fbc16912a95a1f2bfb8ce | /pandas_inputoutput.py | 30cdb3dc86cbddce37cd9c866fdb5a6641b09b6b | [] | no_license | parthpm/PowerfulPandas | c90a42a780d38e6a85f480c3542134f60480355c | 80c1e1bb9e1ce22882af5ee8a86aad3ef40c7b23 | refs/heads/master | 2020-03-31T03:20:29.382971 | 2018-10-07T18:15:15 | 2018-10-07T18:15:15 | 151,861,289 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | #pandas can read a variety of file types using its pd.read_ methods
import pandas as pd
df=pd.read_csv('example.csv')
print(df)
#reading a excel file
df1=pd.read_excel('Excel_Sample.xlsx',sheet_name='sheet1')
| [
"noreply@github.com"
] | parthpm.noreply@github.com |
c2f77ebb3a5adfe51742f05b51d786453271740b | f5a2376a1051c223af80bd6645aaf19a2c78711c | /project/Python/User.py | 1fc7f20a15635d924edc986ec7a226d30c0617ad | [] | no_license | matthewjhoward/cmps203 | 6b204fc431e9baa0ac358862e3ea3dfa5ca7bea4 | 0dfbe4029f8e531a3a5b480c05258e10fb79f08e | refs/heads/master | 2020-05-06T20:04:10.250340 | 2019-06-21T01:52:50 | 2019-06-21T01:52:50 | 180,219,279 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | class User:
# Fields
# firstname = None
# lastname = None
# username = None
# password = None
# Constructor
def __init__(self, firstname, lastname, username, password):
self.firstname = firstname
self.lastname = lastname
self.username = username
self.password... | [
"alexps2master@sbcglobal.net"
] | alexps2master@sbcglobal.net |
667df5b8b5587191f37edc36f70b6425da2df46f | da63007b563f46da41bed7c770d3b4163bebb114 | /divisiors.py | 0a892d759a6b28a8a85e02188d4fef2ecca3e630 | [] | no_license | rajabade01/study | 8bac38d35126a41bef46077b21ad0a9fbf409029 | 24766508b668de944dcaffee79cbcc994a49289c | refs/heads/master | 2020-04-12T19:12:28.515253 | 2020-02-24T07:10:28 | 2020-02-24T07:10:28 | 162,702,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | def accum(s):
# your code
li = list(s)
#output = []
str1 = ""
for i, value in enumerate(s):
final = (value.upper())+(i * value) + "-"
str1 = str1 + final
return str1[:-1]
if __name__ == "__main__":
string = "abcdef"
output = accum(string)
print(outpu... | [
"noreply@github.com"
] | rajabade01.noreply@github.com |
be38242ac0b77a4b5205087ba42cf818e451a4d1 | 3ed65ce239f2db5de08b5c45caa97525a7379beb | /src/websocketpp_02/examples/echo_server/SConscript | abaa7c030c78827750ab09806c38a3b00872a1c8 | [
"BSD-3-Clause",
"MIT-Wu",
"ISC",
"BSL-1.0",
"MIT"
] | permissive | moorecoin/MooreCoinService | 9466aac3683ccc52e7ea89906e2bc6c90dae9922 | 6de5f5032972147c0d43c3ae48a088f9e1fa7d28 | refs/heads/master | 2021-01-10T06:05:51.501738 | 2015-11-14T13:18:47 | 2015-11-14T13:18:47 | 46,175,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | ## echo_server
##
import('env')
import('boostlibs')
import('wslib')
import('platform_libs')
localenv = env.clone ()
sources = ["echo_server.cpp"]
libs = [wslib, platform_libs] + boostlibs(['system',
'date_time',
'regex',
... | [
"mooreccc@foxmail.com"
] | mooreccc@foxmail.com | |
f8ca460657ca11ed2132d963217761141a03d7ad | 44dbb043e52f00c9a797b1bea8f1df50dd621842 | /builtin-eval-example-2.py | 558669a927a77e9ef2f20d4d97d2669c3e51bef6 | [] | no_license | peterdocter/standardmodels | 140c238d3bef31db59641087e3f3d5413d4baba1 | 7addc313c16b416d0970461998885833614570ad | refs/heads/master | 2020-12-30T16:59:30.489486 | 2016-12-13T06:32:03 | 2016-12-13T06:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | print eval("__import__('os').getcwd()")
print eval("__import__('os').remove('file')",{'__builtins__':{}}) | [
"415074476@qq.com"
] | 415074476@qq.com |
c488091f73195a4278f7b079f1cae84b9bd6af6b | 0eb5c5a8324200affb0ddc076c1115e802415595 | /练习/2.糗事百科.py | 5ad9139f35654a54d8d3af5c0531b18dace7bdeb | [] | no_license | jiangsy163/pythonProject | 5b7986fb5e89943fc949301c22d03e97bc34b41d | b27f0a5a09ca36063fb45d61ca6ebd06a494ea67 | refs/heads/master | 2023-05-12T03:42:45.885487 | 2021-06-04T09:21:53 | 2021-06-04T09:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | import random
import time
import requests
from utils.headers import headers_with_ChromeUA
for page in range(1,21):
time.sleep(random.randint(2,5))
import requests
requests.adapters.DEFAULT_RETRIES = 5 # 增加重连次数
s = requests.session()
s.keep_alive = False # 关闭多余连接
url = f"https://m2.qiushibaike... | [
"1247371788@qq.com"
] | 1247371788@qq.com |
653b4f86e1043a6ee11d346d1b4a9a030501f633 | 87e90dff9ff6f0f7af3a2d0f4c2464a9d4dca337 | /Do-it-first-python/mission/6-01.py | 6200b9a244c644f4202e49ab55171ab8ebf4f9be | [
"MIT"
] | permissive | siyoon210/Python-Practice | 462b0a0f33488bc8434f6328fd55f03e30c2d4f7 | 778922a8be2faaa564915bcbcab761d39753b1f8 | refs/heads/master | 2022-08-03T21:27:43.186667 | 2020-05-31T11:59:18 | 2020-05-31T11:59:18 | 267,727,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | jeju_word = ['혼저 옵서', '지꺼지게', '놀당 갑서양']
# Key = 제주 방언, Value = 표준어인 딕셔너리를 만들어 주세요
jeju_dict = {'혼저 옵서':'어서오세요', '지꺼지게':'즐겁게', '놀당 갑서양':'놀다 가세요'}
# jeju_word에 담긴 제주 방언의 표준어를 한 줄에 하나씩 출력하는 반복문을 완성하세요
for i in jeju_word:
print(jeju_dict[i])
| [
"siyoon210@gmail.com"
] | siyoon210@gmail.com |
3088c132d5c5c3a5203113ab711859901af846d5 | 25249760f40553495f7281a5f6c94f5bbba18e85 | /Numpy_notes/numpy_broadcasting.py | 6420d517543417faea2f874a8ea496247ba5e43a | [] | no_license | mandarspringboard/notes | 98d592b26a3eba4280e6a94abcfb93dba560feec | 28b5da39b90773b378303903cc46326b04dfa790 | refs/heads/master | 2023-08-11T05:34:33.979449 | 2021-09-30T07:26:05 | 2021-09-30T07:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,551 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 1 14:22:55 2020
@author: Gokhale
"""
# the * operator in numpy is elementwise
# use the dot method or the @ operator for matrix products
# what happens when we try to take * products when array sizes don't match?
# answer: broadcasting!
# other elementwise o... | [
"gokhalen@gmail.com"
] | gokhalen@gmail.com |
6b05b22a7ebab49d2eccf8fa2c311828e7cb5235 | 02870a6deae799b1689afe75885aaa841f8a912e | /mongo.py | 215688717120fd0d27f07c64754567a9d91ff725 | [
"MIT"
] | permissive | tbkraf08/xml2json | c3c0babafe68585437633bc4be02d5b771067011 | 9c3ff9f15f069e87252d120b647c88d333d7f803 | refs/heads/master | 2021-01-15T20:52:33.985200 | 2013-08-22T13:16:34 | 2013-08-22T13:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,674 | py | #!/usr/bin/env python
# Author: Toma Kraft
# Date: July 9th, 2013
import logging
import pymongo
import sys
import traceback #traceback.print_exc(file=sys.stdout)
import nltk
import csv
import types
import math
import datetime
from dateutil.relativedelta import relativedelta
def removeNonAscii(s): return "".joi... | [
"tkraft3@uncc.edu"
] | tkraft3@uncc.edu |
c1856835b721605747ed512749780fb027a7b384 | 51ec23083c01ad26f489ca0b033de0743286a93f | /app/routers/game.py | ea007c914809f48e84d20e18df8c2ed98f639fcc | [] | no_license | jads-dev/joegamevoting | ea8c292569b9976ea30c312a8b3ff6f42d1f0019 | 5ea768b708211457bd29b28e5aaacdf5c0436753 | refs/heads/master | 2023-03-14T15:15:42.698967 | 2021-03-10T23:59:31 | 2021-03-10T23:59:31 | 346,521,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | from os import name
from fastapi import Depends, APIRouter
from app.models.game import get_game_search, get_game, get_game_platforms, calc_votes, vote_game, get_game_voters, pitch_game, get_game_pitches
from app.routers.auth import User, get_userid, get_optional_current_user
from pydantic import BaseModel, constr
cl... | [
"me@nodja.com"
] | me@nodja.com |
7de00d560f70d9f34b9a9d1ecf15a69abf3af1a3 | 71b15561bde017c0dd4903e42f6b38312c5b0f40 | /dateandtimelibrary/datetimedemo.py | a76ae7cd8ed638ee7123abbc8c6521a181f1a401 | [] | no_license | Aditya-Lamaniya/PythonLearning | 1fc0d68f56bef045f1076706be047976fbcace12 | fa8500eaf9d7b67129829b4801ebd71284f99a0c | refs/heads/main | 2023-05-27T00:05:24.401305 | 2021-06-19T12:28:04 | 2021-06-19T12:28:04 | 378,397,766 | 0 | 0 | null | 2021-06-19T12:18:41 | 2021-06-19T11:39:45 | Python | UTF-8 | Python | false | false | 267 | py | import time,datetime
epochseconds=time.time()
print(epochseconds)
t=time.ctime(epochseconds)
print(t)
dt=datetime.datetime.today()
print('current date : {}/{}/{}'.format(dt.day,dt.month,dt.year))
print('current time : {}:{}:{}'.format(dt.hour,dt.minute,dt.second)) | [
"lamaniya.aditya@gmail.com"
] | lamaniya.aditya@gmail.com |
ee3b63a377f084f45bb320521be752079041b9e6 | a0a787923477b8c944b0973c932aaef379b573f5 | /DualBlock_fc.py | 6dfef3549f6adf977b40bf7ed30925406c84441d | [] | no_license | bdus/Action-Recognition | 553e0b91ce54c0b049c826273b8c16df733075a1 | e2081963afbb89c4db12034f0168377d0369b789 | refs/heads/master | 2022-10-15T08:56:23.448630 | 2020-06-16T14:34:52 | 2020-06-16T14:34:52 | 218,713,321 | 1 | 0 | null | 2020-01-22T10:49:04 | 2019-10-31T07:57:05 | HTML | UTF-8 | Python | false | false | 4,998 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
2020-2-5 18:17:19
@author: bdus
this is the model for idea1 experiment 4
video frames are take part into foregrounds and backgrounds
then feed into a dual stream network respectively
the network will fusion the result in difference method
the input is bgs and fgs fr... | [
"rovingthrough@163.com"
] | rovingthrough@163.com |
f0ee178adb59a9cacbdca23a12c8f609140aea58 | 42241260923cd24dac14a908be892064e9d29158 | /training.py | 5044d02852e37f1a1135f96e440c36d48df01bba | [] | no_license | yaoweihu/ImageClassification | ce1ae7eb9724d8ab33ade4c1febc5bf80a8c9fc0 | c91ed04a7781b8159aeea4e7ae06a7dc920708b0 | refs/heads/master | 2020-09-02T09:26:33.410827 | 2019-11-18T05:25:00 | 2019-11-18T05:25:00 | 219,190,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | import torch
from metrics import accuracy
from utils import AverageMeter
def train(train_loader, model, criterion, optimizer):
losses = AverageMeter()
top1 = AverageMeter()
model.train()
for input, target in train_loader:
if torch.cuda.is_available():
input, target = input.cuda()... | [
"huyaowei1992@gmail.com"
] | huyaowei1992@gmail.com |
b306ba76b5775d50c493b8e1fb27a87afcf4b412 | c6fa5a9806d219b9fb56aef7e08c07cdcff4772f | /model.py | 132879e39dac8130b423e45a1caae3dc5e260952 | [
"MIT"
] | permissive | mengkunzhao/tf2-unet | c0b84bc9af9c660382c232b0a43acbc864ce3ff5 | 552fba0d234a69a40c11447aff59fde2ddd11d29 | refs/heads/master | 2022-03-15T11:32:03.390877 | 2019-12-05T12:13:38 | 2019-12-05T12:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | import numpy as np
from tensorflow.keras.models import *
from tensorflow.keras.layers import *
from tensorflow.keras import backend as keras
def unet(input_size=(64, 80, 1), num_classes=10, use_sep_conv=False, use_deconv=False):
inputs = Input(input_size)
if use_sep_conv:
conv1 = Conv2D(8, 1, padding=... | [
"zhengankun@163.com"
] | zhengankun@163.com |
a5a2b893eee8228ae7d67d54efdd3555d3ba7b7d | dedf3f08e8fe8fbf3445e40ad85f4ea53f92b7f7 | /his_diary/diary/admin.py | 5babb89ae834920ad578cfb962ee5c3b4957078f | [] | no_license | timo7656/New-Project | 606fe8116012b399653f3edef221c1c08f049dc9 | 3b01f628fe6eb2f0c846b166baf31c5580025fbf | refs/heads/master | 2021-01-23T03:54:33.573531 | 2017-03-25T08:32:53 | 2017-03-25T08:32:53 | 86,137,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.contrib import admin
from .models import Article, Comment
# Register your models here.
#admin 항목들 추가!!
@admin.register(Article, Comment)
class DiaryAdmin(admin.ModelAdmin):
pass
| [
"Sungjunwg@choeseongjun-ui-MacBook-Pro.local"
] | Sungjunwg@choeseongjun-ui-MacBook-Pro.local |
dedf38ac505de5262415143ffbc2b42322fedceb | afb8489bf5c16d47472eedf017f2d76016d6c386 | /blog/models.py | 32fbf436f11896956e5a3346f5704dbfd1403c9b | [] | no_license | FugaHosomi/my-first-blog | 8bf04a07136ed5b30dc2995ac48acafad441ca2e | 652be98f118f93e72af25d1d4a1c21c1b3be9855 | refs/heads/master | 2023-08-17T18:03:24.263968 | 2021-10-12T13:05:42 | 2021-10-12T13:05:42 | 396,006,063 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_... | [
"m.hosomi@main.domain.local"
] | m.hosomi@main.domain.local |
e1a5f9f329b21a96c5fd92d94a2f4f61246a1101 | 952c71fea9dbab69aba63f56a4a6d1da538fdba4 | /accounts/migrations/0006_auto_20180506_2231.py | 3dea182e89fce70e685572099b0c318e1b8f12e8 | [] | no_license | Jd0824um/Django--VideoStreamingSite | 40e29a54e851da80ebbdc60027242f4a150d0498 | 69df77df7d64b2c8a853fb988aa7146961dc3d36 | refs/heads/master | 2022-12-12T23:38:11.015258 | 2018-05-08T03:31:51 | 2018-05-08T03:31:51 | 131,908,246 | 1 | 0 | null | 2022-11-22T02:28:55 | 2018-05-02T21:34:36 | Python | UTF-8 | Python | false | false | 516 | py | # Generated by Django 2.0.5 on 2018-05-07 03:31
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20180506_2205'),
]
operations = [
migrations.AlterFi... | [
"jd0824um@go.minneapolis.edu"
] | jd0824um@go.minneapolis.edu |
a609e0105364c9a594fdd0f5bcc9bc447c9635de | f094dad8af03ddb18a4357b09105e55f1362f040 | /FlowersML/utils.py | 609ca247b317984902ddd407ec97a1efceb98a42 | [] | no_license | hmilien/UdacityML | 5fa301561df3d5810142529ec80a5297286f3142 | 7b661f2a45c0ecc42711e83ba022936c8744d9d7 | refs/heads/master | 2020-12-31T11:13:45.346640 | 2020-04-03T16:35:26 | 2020-04-03T16:35:26 | 239,014,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | import torch
from torch.autograd import Variable
from torch import nn
from torch import optim
from torchvision import datasets, transforms,models
from PIL import Image
import numpy as np
import json
def load_data(isTrainMode, dirPath):
if(isTrainMode):
dataTransforms = transforms.Compose([transforms.Resize... | [
"heavens.milien@gmail.com"
] | heavens.milien@gmail.com |
0073c2800cb9c1491b9cba4519ee1a388aa6e2d6 | b84e7da785a09d010edaca222fe19b0d52184c63 | /work_dir/experimento/faster_rcnn_r101_fpn_bn_50e_coco_pre/faster_rcnn_r101_fpn_bn_50e_coco_pre.py | 9888b50bfd745e4ea85664a9b8f36600b573e2b1 | [] | no_license | camilaandrad/object-detect | 78f5d38d632c1107be3a788898a10ff888232e14 | 7c9435a3f492320af5dfbf68874eda6f39198ef1 | refs/heads/master | 2022-11-06T22:31:26.368140 | 2020-07-20T15:03:35 | 2020-07-20T15:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,137 | py | model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
style='pytorc... | [
"noreply@github.com"
] | camilaandrad.noreply@github.com |
2c79b23142060d76510c32b2e38cb7be973b788b | 75d89d8f3a6b6b06da95105243eebb7101922d07 | /test.py | 24fcb2666798184e4509ed7d9218ef46819e69c6 | [] | no_license | kelvinL3/kMeans-Fitting-Lines-to-Points | 28d63d0d852c2d2b07cb2011cf3e96c340c4d214 | 049bd63541707a929163346e5758104894915003 | refs/heads/master | 2020-03-09T08:54:54.062583 | 2018-04-12T16:29:51 | 2018-04-12T16:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import matplotlib.pyplot as plt
import numpy as np
import math
import scipy.io as sio
# for graphing
def graph(function):
x = np.array(range(0,80))
y = eval(function)
plt.plot(x, y)
Il = sio.loadmat('edges.mat')
I = Il['bw05']
# print(I)
# plt.matshow(I)
plt.imshow(I, cmap='Greys')
graph('-3.75/0.45 + (0.8... | [
"kelvinliu1234@gmail.com"
] | kelvinliu1234@gmail.com |
f9bc8486e87a590776570961aba3fe8dbfcc4259 | c855cbe713f247b59562c5045273766ee288dd6a | /user_profile/migrations/0002_userprofile_avatar.py | 92da5c9c12d3237a28c3b36487fd30c3afb14e0d | [] | no_license | underpr00f/drfreact | 27c3709c155579708d5e379a6973c1292f7479da | 47fd7a6c1f8340583ac3bcbc154a81a37b24d6fd | refs/heads/master | 2020-03-24T01:42:09.927601 | 2019-05-12T12:35:49 | 2019-05-12T12:35:49 | 142,347,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Generated by Django 2.1.7 on 2019-03-15 20:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profile', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userprofile',
name='avatar',
... | [
"underproof2014@gmail.com"
] | underproof2014@gmail.com |
8dcae2e44dc7f1cba2e8821e9cdb60f5b0619eee | 2d39088748666f7a07337a6d7fd69a1b1718caf2 | /testfile/test_CornerNetCls.py | 7a1389a46abc6e28764adbd43438c7bf049aaaf2 | [
"BSD-3-Clause"
] | permissive | philiptzou/DeepRule | d74f3c4731cb06d890096ef1d919b06ebbff1220 | ab309ceb7232e9e9c46aaff99116d8265c5bd45e | refs/heads/master | 2023-09-02T17:19:02.603433 | 2021-11-12T16:24:28 | 2021-11-12T16:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,965 | py | import os
import cv2
import json
import numpy as np
import torch
import matplotlib.pyplot as plt
from tqdm import tqdm
from config import system_configs
from utils import crop_image, normalize_
import external.nms as nms
def _rescale_points(dets, ratios, borders, sizes):
xs, ys = dets[:, :, 2], dets[:, :, 3]
x... | [
"t-juluo@microsoft.com"
] | t-juluo@microsoft.com |
6ff8f63a04c13564fb138d5caa95de69b78959ac | 7d54cc2fe2720000ee83e6825cfaf7c3eabd38c2 | /epaxos/tests/test_preaccept.py | e8fe64e48b37481577fbb122d9b3199047fa87c4 | [] | no_license | bdeggleston/cassandra_epaxos_prototype | 5401f17d80e21fd550614ba235176ffd1c4e2599 | 85c3775ca9318f7e1dce96fb96fb29ab75810f2a | refs/heads/master | 2016-09-06T13:43:37.389641 | 2014-09-24T00:57:49 | 2014-09-24T00:57:49 | 24,395,111 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | from base_epaxos_test import EpaxosTestCase
from epaxos.replica import *
class PreacceptTest(EpaxosTestCase):
def test_replica_leader_instance(self):
replicas = self.create_replicas(3)
leader = replicas[0]
remote = replicas[1:]
instance = leader.get_instance(replicas)
lea... | [
"bdeggleston@gmail.com"
] | bdeggleston@gmail.com |
d46b5bb9580871761d21e3059135c26129baf9b4 | 4a18e1a0baa8a9057dbaa2a7d2eacb994137088f | /app/grids/StaticGrid.py | bae7692bedb1c64a00209d3e4d7be0df6bbc922c | [] | no_license | CoDen256/TicTacToe | 3fd6f5d5e11de1fc84175e363d54dba4775804a0 | 979af9ba6d93ac12014a7751505ce37981e2c31f | refs/heads/master | 2022-10-19T22:36:15.045252 | 2019-06-02T22:32:45 | 2019-06-02T22:32:45 | 183,956,187 | 0 | 1 | null | 2022-10-09T11:40:28 | 2019-04-28T20:35:31 | Python | UTF-8 | Python | false | false | 1,915 | py | from grids.Grid import Grid
import pygame.gfxdraw as pydraw
import pygame
class StaticGrid(Grid):
def __init__(self, parent, position, cell_size, columns=3, rows=3):
super().__init__(parent, columns, rows, cell_size, position, scale=1)
self.scores = [0, 0]
self.touched = False
sel... | [
"den.blackshov@gmail.com"
] | den.blackshov@gmail.com |
72d053e7e01fe59bef3403b40576e6e3d075992c | 7826b4421030a0be0284cb664f88539162b33b0c | /accounts/tests.py | 0a0f2873e9a100b8f98429c6c9ce495341a5928b | [] | no_license | donkey-engine/donkey-engine | 13dbc2ba1abc712ae2a4c6c55846a5b239c052a3 | 82a2537c2ae841edec591a36c3f76da97f99701b | refs/heads/master | 2023-04-04T12:11:15.843476 | 2022-02-26T17:58:37 | 2022-02-26T17:58:37 | 336,823,392 | 7 | 0 | null | 2023-03-31T15:04:57 | 2021-02-07T15:43:05 | Python | UTF-8 | Python | false | false | 6,887 | py | from unittest.mock import patch
from django.contrib.auth.models import User
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.test import Client, TestCase
from accounts.models import Profile
class AuthTestCase(TestCase):
def test_auth(self):
user = User.objects.create_user(
... | [
"noreply@github.com"
] | donkey-engine.noreply@github.com |
c4c5d04ede303aa6c745065061dfa0d24afdd47a | aa62a7825b0fd18c11de409d082bcd392939a335 | /assignment1/misc.py | 79bda343f8ae576f1a8b5995ea375b7f8c271448 | [] | no_license | davidrosenberg/nn-practice | fb438fe06f22c91308544ff9f60de22fc878a78a | cbe1ba3c3523e4bafc6c347145d7a59cae69e316 | refs/heads/master | 2016-08-11T12:49:39.181178 | 2015-12-24T20:23:25 | 2015-12-24T20:23:25 | 44,833,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | def iter_over_pairs(pairs):
"""
Return an iterator over pairs present in the 'pairs' input.
:type pairs: dictionary or iterable
:param pairs: The pairs to iterate upon. These may be stored either as
(key, value) items in a dictionary, or directly as pairs in any kind of
iterable structure
... | [
"david.davidr@gmail.com"
] | david.davidr@gmail.com |
2684c3785482beb266ff8dce7a4d9a7caefe2f3c | 742a423cf08422e343023d2aed657fd969261411 | /src/far/tests/__init__.py | d8668d4649905816f97704fa1bf552e6fb2c4c24 | [
"MIT"
] | permissive | ksheedlo/far | ad7a6f54db2576d09bee9048704fa2c7f3ff9194 | 9e7819fd7163140a166936f09abf409a1b221006 | refs/heads/master | 2016-09-05T16:56:17.385947 | 2015-06-26T23:23:49 | 2015-06-26T23:23:49 | 32,540,006 | 1 | 0 | null | 2015-06-26T00:23:55 | 2015-03-19T18:46:08 | Python | UTF-8 | Python | false | false | 188 | py | '''
far: tests module.
Meant for use with py.test.
Organize tests into files, each named xxx_test.py
Read more here: http://pytest.org/
Copyright 2015, Ken Sheedlo
Licensed under MIT
''' | [
"ken.sheedlo@rackspace.com"
] | ken.sheedlo@rackspace.com |
1101a26ce213f56cfaa0e15b3aa9c4f46694f888 | a8e6569e0f91acc9278b273b6b83fc351a9b54e7 | /src/pokewiki/migrations/0004_auto_20201020_2010.py | 32c9bf83d8314191f1999589de73f947da8c8a95 | [] | no_license | Kyvin234/CS411poke | 4106bfb0d014f7223e4c5db0e1fb74eb2f5d89e9 | 0dc8a0807aed615b6ba0da035fa2f9fbdfc018cc | refs/heads/master | 2023-01-28T21:20:03.283191 | 2020-12-06T01:13:33 | 2020-12-06T01:13:33 | 302,526,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | # Generated by Django 3.1.1 on 2020-10-20 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pokewiki', '0003_auto_20201020_1943'),
]
operations = [
migrations.AlterField(
model_name='f_table',
name='atk',
... | [
"yuey8@illinois.edu"
] | yuey8@illinois.edu |
5b34dbc66c35275a7e2e6aedcd1e816a1be639ec | 073bba6af041505ccf6b23e88764bf42fbfea361 | /model_SEENET_SAD.py | 3e972299f1ead889afed69339fd638dc2ec18605 | [
"MIT"
] | permissive | carlinl/SEENET-SAD | 1aaf4cdaa87b970a22e6e1d0a2da3c585b0c239e | cf2989d0e571391b9b0cdf81bd4a480490a92bbb | refs/heads/main | 2023-02-19T00:29:00.304128 | 2021-01-26T08:56:38 | 2021-01-26T08:56:38 | 333,016,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,279 | py | # Enet pytorch code retrieved from https://github.com/davidtvs/PyTorch-ENet/blob/master/models/enet.py
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.parameter import Parameter
from utils.utils import mIoULoss, to_one_hot
from torchsummary import summary
class SELayer(nn.Module):
... | [
"noreply@github.com"
] | carlinl.noreply@github.com |
fe07f77c9691f0a4bea7feb8ad64497a3866cbb7 | 1362b977fd45dcdc773c836e9895701a20152bba | /multilayer/1d/setplot_oscillatory.py | a987c6bc8d824cbc5c8b74a5b13651beb9185be3 | [] | no_license | nthakkar/apps | 4cceacf85e5bdb505f7593fcb7e5c5f4bc5bc371 | f195821e4c8d153a93062af3ecb0c787ed51207f | refs/heads/master | 2021-01-18T11:59:18.972898 | 2013-08-13T00:28:33 | 2013-08-13T00:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py |
"""
Set up the plot figures, axes, and items to be done for each frame.
This module is imported by the plotting routines and then the
function setplot is called to set the plot parameters.
"""
import os
import numpy as np
# Plot customization
import matplotlib
import matplotlib.pyplot as plt
# Markers and ... | [
"kyle.mandli@gmail.com"
] | kyle.mandli@gmail.com |
0986397d64d691c050782ebd15070a81944e55bc | f16015e0beeb1cfdb855d1cf90ce136fe21d2f32 | /sparta_algorithm/week_2/03_add_node_linked_list.py | 6c01a49ba0803add7c4d34d02a8e5896aa3a99d5 | [] | no_license | linuxlight/sparta_projects | ca432ac8df5d4174d0c6a8f9609f82e121b24a9f | d553a4473f54a70e33f6f7d820765a550afc5e60 | refs/heads/master | 2023-03-26T04:34:13.795524 | 2021-03-25T11:04:43 | 2021-03-25T11:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self, value):
self.head = Node(value)
def append(self, value):
cur = self.head
while cur.next is not None:
cur = cur.next
cur.next = Node(valu... | [
"lnxlht4j@gmail.com"
] | lnxlht4j@gmail.com |
0bbbee650ea275eee04941656d20cd732df4c30b | 83da842d99587e99f217828b4f04a492b8ec109c | /meinheld/__init__.py | 21b3af519902aa609e6166bab8540863c191e88a | [
"BSD-3-Clause"
] | permissive | vuuvv/meinheld | 5878e75ff0ac9ed782ef0fa506563347630af86d | b3d64688c07cc60e30d522d8c378f8c40a49ba4c | refs/heads/master | 2021-01-18T06:21:22.415409 | 2012-10-22T13:02:57 | 2012-10-22T13:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from meinheld.server import *
from meinheld import mlogging
__version__ = '0.5.2'
| [
"yutaka.matsubara@gmail.com"
] | yutaka.matsubara@gmail.com |
38cef0612ba99f94b008f4aadf2fe5083785e04f | eb4f895182e796d49b707d5b9b5ba32a0edc420e | /Indexacion/10.py | ce96c72db00cccf7ef50bdbb9d0606337ab8572b | [] | no_license | ricardo2027/Trabajo02 | 6cbed72fbfdabbce44336909057aee95bfe00128 | 7fd9d21bfda4983de9489e6bc3e691a7130a8f7c | refs/heads/master | 2020-09-01T21:45:34.774994 | 2019-11-05T20:20:52 | 2019-11-05T20:20:52 | 219,066,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | d={0:10}
print(d[0]) | [
"ricardo20chamba@gmail.com"
] | ricardo20chamba@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.