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
3843cc9353c9488b2266f1de2b6f751192ebf63e
b5d3962153c6227cdf908273cdc4d479b4983ae1
/downloader_telekrytyka.py
20885824255ffbf2f3bce1f0d0702c304d3d5606
[ "Apache-2.0" ]
permissive
vlddev/news_downloader
c7cfffb0eeee5c688cc843558a30e3decb4f5b41
c1ed17a5c9771b00ae96055100fb1d3709040bd2
refs/heads/master
2022-05-11T20:20:16.591936
2022-05-06T15:25:47
2022-05-06T15:25:47
135,279,353
0
0
null
null
null
null
UTF-8
Python
false
false
16,423
py
import sys, traceback import datetime import subprocess import json import logging import re from bs4 import BeautifulSoup import stats import downloader_common class Article(object): def __init__(self, url, j): self.url = '' if url is not None: self.url = url self.dtStr = '' val = j[0] if...
[ "volodymyr.vlad@isys.de" ]
volodymyr.vlad@isys.de
9ac3d242361b974588e1943381d778b5824cee1b
60335f784680ecb729bf48c86a16508b66179281
/createcode.py
c879598ea35417f9ae0ed8819705b4c9f4e2573d
[]
no_license
zwade/Hackathon
83e9921c0570b633ab22ae4ffdc088f5a7b78c8a
2dbd92f086d69ec8eafddf3efaa48d063819639d
refs/heads/master
2021-01-10T18:07:12.792148
2013-07-22T20:24:32
2013-07-22T20:24:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
def createcrap(string): stri = "" for i in string: stri += chr(ord(i)+3) print("\"\".join([chr(ord(i)-3) for i in \"",stri,"\"])",sep="") def main(): from sys import argv crap = argv[1] or "hello" createcrap(argv[1]) main()
[ "zacharywade@gmail.com" ]
zacharywade@gmail.com
52f6e4838038f1d570395eb4a2e3eb970945bc52
77dadd97530d348ca030b38a724c1e06675b97e7
/spam_classifier.py
5733e6b221e9cadfa68b9a18f8740f0ee25c9214
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Kiyo5hi/Chinese-Spam-Classifier
df081db9cafe8183419aa1c065c1811dcd658c82
07b6849456a62b1aa36394330136118c71259a4e
refs/heads/main
2023-03-25T14:36:01.677481
2021-03-26T10:10:59
2021-03-26T10:10:59
311,594,449
4
0
null
null
null
null
UTF-8
Python
false
false
3,006
py
from sklearn.feature_extraction.text import TfidfTransformer from sklearn.feature_extraction.text import CountVectorizer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn import metrics import jieba import os import re from joblib import dump, load class Sp...
[ "i@k1yoshi.com" ]
i@k1yoshi.com
e37e591a40605391e98e275ba910759c8959f6ba
423d205ac73a009776b4f826ee56b4cf79d4d8fe
/apps/ops/tasks.py
32900c5c7e976f52422f1a251fc2d9eeaac326ec
[]
no_license
jackyops/hfops
531fe8998de57b0be481198b5f1cd4ea2afceb32
f1a4b3fe0ee6a7ea78366d80c1e6049070245dd3
refs/heads/master
2021-08-19T08:38:01.587270
2017-11-25T14:51:09
2017-11-25T14:51:09
108,856,735
0
0
null
null
null
null
UTF-8
Python
false
false
5,292
py
#!/usr/bin/env python # _#_ coding:utf-8 _*_ from celery import task from utils import base from ops.models import (Log_Assets,Log_Ansible_Model,Project_Order, Log_Ansible_Playbook,Log_Cron_Config, Log_Project_Config,Global_Config,Email_Config) from django....
[ "jackyops@163.com" ]
jackyops@163.com
0dc38b5ce96f3cedb10b11870c56bae3bfdd6c0b
af93904a99f956634b5d254cc90787e8966ea548
/Chat.py
75e72d19cd1e094f8d7821eeb8f8ca01e758fdcc
[]
no_license
jasonxi89/WechatBot
e120abbe98eb353c2d3a2381b5a2b79cc471c335
067fa352e3f04fbc8d77aac5d59dd151bedb124c
refs/heads/master
2020-04-12T18:42:34.013100
2019-01-13T23:27:33
2019-01-13T23:27:33
162,688,065
0
0
null
null
null
null
UTF-8
Python
false
false
3,619
py
import itchat import pymysql import re def sqlQuery(query): conn = pymysql.connect(host='192.168.31.168', port=3307, user='test', password='123456', db='test', use_unicode=True) cursor = conn.cursor() cursor.execute(query) values = cursor.fetchall() conn.close() ret...
[ "jasonxi89@gmail.com" ]
jasonxi89@gmail.com
dde73476fdc175081bcd43328db97d6fbf9d4426
e9ccd3ad6552d721482742d12bb3fd71e080d865
/crawl_news_mongo/spiders/norkhothom.py
bf06ae18258bac968ef5c30cb4a1fbae9902923a
[]
no_license
hoangduyphuc9x/KhmerNews
9013d5d9a67bd2f547f5722c470eac9f3e27b1be
7d55bdfe3c727d8ff60bed86ed5d4a017f20b9ce
refs/heads/master
2022-12-11T14:55:44.514532
2019-08-22T09:54:36
2019-08-22T09:54:36
196,173,710
0
0
null
2022-12-10T22:49:27
2019-07-10T09:17:07
Python
UTF-8
Python
false
false
3,399
py
import scrapy from ..items import NewsItem from datetime import datetime import pytz from ..config import categoryProcess, convert_month_to_int, DebugMode from pymongo import MongoClient client = MongoClient('localhost', 27017) if DebugMode(): db = client.TESTDB col = db["Norkhothom"] else: db = client.O...
[ "hoangduyphuc9x@gmail.com" ]
hoangduyphuc9x@gmail.com
6301e5ce5711488ed50bb66343401def93e6eb09
d7320f2f599d1d81e14aec5f62e9d48ee4fddfa2
/backend/mobile_23_dec_dev_17193/settings.py
de579c228368f904f01a84b5395bb4ed2917c868
[]
no_license
crowdbotics-apps/mobile-23-dec-dev-17193
be7f357b35147a9b4264f3b93482b18975e034ce
632ed98d9fa87fab09c91f41eea01b001fb40dae
refs/heads/master
2023-02-04T23:41:19.953146
2020-12-23T13:37:07
2020-12-23T13:37:07
323,806,565
0
0
null
null
null
null
UTF-8
Python
false
false
7,057
py
""" Django settings for mobile_23_dec_dev_17193 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ "...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
2737e918bb8c6228f8cb593064a7d4916e16c3a4
9a94211ee6eb5aa44b2ed0858430a074197a1c76
/slitherpygame.py
80e4ca5e39a74a87bc814aa5cc15b4e645737cf1
[]
no_license
Akashdeepsingh98/Workshop-pygame-snake
46a8311a1c9cf79688c7e8cc0ae2fa2b3c7e53f7
ab366f15be8a9195ad0ff5ffee83815e5cfb824b
refs/heads/master
2021-05-01T11:25:20.388038
2018-03-11T05:03:22
2018-03-11T05:03:22
121,120,065
0
0
null
null
null
null
UTF-8
Python
false
false
7,659
py
import pygame import random pygame.init() white = (255, 255, 255) black = (0, 0, 0) red = (255, 0, 0) green = (0, 155, 0) display_width = 800 display_height = 600 gameDisplay = pygame.display.set_mode((display_width, display_height)) pygame.display.set_caption('Slither') head = pygame.image.load('sna...
[ "noreply@github.com" ]
Akashdeepsingh98.noreply@github.com
b2663b1e9eea9620ae0937879b90f528fc8f426b
ca0030ad2adc678ebb92d5b48161163fa1fec352
/asyn06/协程实现asyn03.py
e837738af68a3b0cbcf7c2429f4d255e3d8c1941
[]
no_license
fxywky/tornadoProject
713edfbc6ebb5b2b05e2774511141c0cdfc7dc89
cf0a3922c2a5670d812a6ae353f875d96f657bf8
refs/heads/master
2020-12-06T15:12:29.589769
2020-05-11T12:49:09
2020-05-11T12:49:09
232,493,775
1
0
null
null
null
null
UTF-8
Python
false
false
1,142
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ import time import threading # 我理解的next()就是往下走。当yield的时候,就是卡在那里,next的时候,就会运行yield后面的程序 def genCoroutine(func): def wrapper(*args, **kwargs): gen0 = func(*args, **kwargs) # reqA 的生成器 gen1 = next(gen0) # longIO的生成器 def run(g): ...
[ "1024956214@qq.com" ]
1024956214@qq.com
1e33b6aca992623524e5f519287fa8957bd79e15
f818b8fa098a88f7c0dc9516ef384603ee52c58c
/docker_code/stack_segmentation/training.py
a482a8ddcefb2a1a9c26a92dcef44970733e5386
[]
no_license
eph2795/segmentation_pipelines
1c268090557ec36c86963b38ca508fd2845b2b1b
dba5d00f70936eea605ef4045ebe11f26ff74406
refs/heads/master
2022-12-12T22:24:29.533708
2020-02-23T17:34:14
2020-02-23T17:34:14
241,601,812
0
0
null
2022-12-08T03:38:52
2020-02-19T11:12:08
Python
UTF-8
Python
false
false
5,460
py
from collections import defaultdict from tqdm import tqdm import numpy as np import torch from torch.optim import SGD, Adam, AdamW, RMSprop from torch.optim.lr_scheduler import ReduceLROnPlateau import segmentation_models_pytorch as smp from .stack import Stack from .unet import UNet from .early_stopping import Ear...
[ "elavrukhin@ozon.ru" ]
elavrukhin@ozon.ru
9a47313b1510bcfddeeca1fb41bc3c0b99a35eda
04803c70bb97012b7d500a177ac0240fb2ddbe38
/blend4_pdep/pdep/network137_5.py
3bb47eb03df3725a21b1fbbb866e1271d6159d61
[]
no_license
shenghuiqin/chpd
735e0415f6688d88579fc935459c1b0f53596d1d
396ba54629036e3f2be0b3fabe09b78c90d56939
refs/heads/master
2023-03-01T23:29:02.118150
2019-10-05T04:02:23
2019-10-05T04:02:23
192,084,217
0
0
null
2019-06-18T18:33:13
2019-06-15T13:52:28
HTML
UTF-8
Python
false
false
288,786
py
species( label = 'C7H8(690)(689)', structure = SMILES('C=C1C=CC=CC1'), E0 = (169.147,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([2950,3100,1380,975,1025,1650,2750,2830,2910,2990,3070,3150,900,940,980,1020,1060,1100,300,800,800,800,800,800,800,800,800,800,800,1600,1600,1600,1600,1600,16...
[ "qin.she@husky.neu.edu" ]
qin.she@husky.neu.edu
f9844ec0882e76f90abffc2b3a67e1fcc71a68ed
e457ec8103562439d153403ad9106d42664976af
/set3/Code11.py
1fa4995d3c116856249400276c054458a73fcb6c
[]
no_license
ishaniMadhuwanthi/Python-Codes
548a5206bdcd50013abc91b3a0560f442bc910a7
8959b85bfa80a38f6111945e815499e39590233f
refs/heads/master
2022-08-12T03:59:05.770534
2022-07-26T04:55:18
2022-07-26T04:55:18
226,508,882
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import random print("Generating 3 random integer number between 100 and 999 divisible by 5") for num in range(3): print(random.randrange(100, 999, 5), end=', ')
[ "noreply@github.com" ]
ishaniMadhuwanthi.noreply@github.com
13ac729ae6b5ba84461ce7ee1ba4727d2d10efda
405df9af9bcece684ec520e44ffe162accca1baa
/testfunctions.py
694b3aecf557e56298ffd3c3b391f83a01dc59d9
[]
no_license
agustintorres/tichu-perceptron
ec284b3c53af316bb9ae0d21c3e6537a830b3ffc
5f3f8c2701a9895a47845b50bc3c3f272db178c9
refs/heads/master
2021-01-10T14:56:06.873131
2016-04-01T03:02:41
2016-04-01T03:02:41
55,194,907
2
1
null
null
null
null
UTF-8
Python
false
false
1,790
py
from student import * hand = [1,0,0,0,2,1,1,3,1,1,1,0,2,3,2,1,1] print "hand: " + str(hand) print "firstFeatureFunction: " + str( firstFeatureFunction(hand) ) print "numberOfCards: " + str(numberOfCards(hand) ) print "numberOfEachHighCard: " + str(numberOfEachHighCard(hand) ) print "numberOfHighCards: " + str(number...
[ "agustintorres@gmail.com" ]
agustintorres@gmail.com
bd43c74dbedfffa5f78047b657c12b942d4ddcc1
616ab64f86468877832bbbe82895bf3c02a47266
/jewels_and_stones.py
140518e3e213c1765e51a40383ce5da604464ea4
[]
no_license
sapurvaa/LeetCode-Challenges
57f339627f8c9485e0da9bbadb7bc7d508636793
53030bcc8b00c120ef97d9d7188d7ec2dfe947ad
refs/heads/master
2022-07-08T04:22:46.651694
2020-05-12T14:16:25
2020-05-12T14:16:25
262,454,028
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
''' Problem: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the stones you have are also jewels. The letters in J are guaranteed distinct, and all characters in J and S are ...
[ "sapurvaa@yahoo.in" ]
sapurvaa@yahoo.in
ee319cd6d901830a3b33ecf66eb0941f348ecb2e
e0527bce5c53a196752d3a16adf50cb60754de5f
/02-Workshop/Workshop-Questions/6_pollock.py
b27d6fead14feaff42588a9ffef6d02b37a30352
[]
no_license
ARWA-ALraddadi/python-tutorial-for-beginners
ddeb657f419fbc176bea273bc9fb6b88d1894191
21cedfc47871ca4d25c2382464c60ab0a2121205
refs/heads/master
2023-06-30T20:24:30.688800
2021-08-08T08:22:29
2021-08-08T08:22:29
193,094,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,870
py
## Jackson Pollock's Final Masterpiece ## ## 20th century "artists" such as Jackson Pollock achieved fame ## by stumbling drunkenly around a canvas on the floor ## dribbling paint out of tins. (We're not being rude - he openly ## admitted to being drunk when creating his paintings.) However, ## today we can...
[ "noreply@github.com" ]
ARWA-ALraddadi.noreply@github.com
63b1abf5bb225bb744665385b1829202b82b71b6
747ca7191e8c701ba72ee56c45ac88265359382b
/CompareTwoTreeWithDifferentCut.py
17cfc11d26ba90f8e9b28d7805e4680c1dc3ad73
[]
no_license
ram1123/TreePlotter
d2eb8ad08e7a840646850c64503d7d907d02cf18
354efc9d3a75284b4a7fdec9a418d54073b59539
refs/heads/TreeDrawMethod
2023-03-13T02:02:42.132580
2016-11-29T18:35:44
2016-11-29T18:35:44
40,403,513
1
1
null
2016-08-01T00:14:01
2015-08-08T13:21:42
C
UTF-8
Python
false
false
2,978
py
import re import sys import os import ROOT from ROOT import TFile, TH1F, TObject, TLatex ROOT.gROOT.SetBatch(True) # This will prevent histogram to show ROOT.gStyle.SetOptStat(0) ROOT.gStyle.SetOptFit(0) Path1 = "/home/ramkrishna/cernbox/aQGC_Studies/SecondStep_Ntuples/WW_Sample_NoVBFjetSelection_13Sept2016/output/...
[ "ramkrishna.sharma71@gmail.com" ]
ramkrishna.sharma71@gmail.com
d5da2c9ad8f1d9c5a08dac576a17d6a5a39515e4
44c091c9bebc5e0e4f6907de9b73fc2b5550852b
/assignment9.py
994a408696b548bfd1828f2ef486a5e76c1ca635
[]
no_license
canlasd/Python-Projects
f9a66d8cd80b65c64806915064d5efe14754f5f6
0047b8a2556b4d8818a502fc1afc526d2d37ec5a
refs/heads/master
2020-06-03T11:24:42.205807
2014-06-18T17:48:45
2014-06-18T17:48:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
records={} records2={} import shelve records=shelve.open('C:/Python Projects/records.txt', 'c') # input the student string value. Note only input was used student=input("Please enter student's name (or -999 to quit): ") while (student!='-999'): # input the grade. Note eval is added before input to store ...
[ "canlasd@aol.com" ]
canlasd@aol.com
89b6ebe9e6d0a67626bb5ba1b9278aa3ebafa35c
fd65851c7977176cfa69056ea5d63ca529e74271
/samples/core/loop_parameter/loop_parameter_test.py
11e2c9b0b63d408a08a93b63129a7a7b21c9e116
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
NikeNano/pipelines
dad9f45267a7f4c495a30880dd6fe1570f26fa64
73804f8928ce671839d34800627b6d3ea9f820a7
refs/heads/master
2022-01-29T21:24:43.693120
2021-11-20T18:18:35
2021-11-20T18:18:35
221,051,451
1
1
Apache-2.0
2021-04-23T20:07:11
2019-11-11T19:11:29
Python
UTF-8
Python
false
false
951
py
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
[ "noreply@github.com" ]
NikeNano.noreply@github.com
3b2bfe90e1713e4a3c44becca9465e02d8b99ecc
53ccc4f5198d10102c8032e83f9af25244b179cf
/SoftUni Lessons/Python Development/Python Fundamentals September 2019/Problems And Files/05 EX. B. SYNTAX, CONDITIONAL STATE. AND LOOPS - Дата 20-ти септември, 1430 - 1730/More Exercises/02. Find The Capitals.py
7eeea2620bed701edeaa70159043400ad4480ba4
[]
no_license
SimeonTsvetanov/Coding-Lessons
aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d
8f70e54b5f95911d0bdbfda7d03940cb824dcd68
refs/heads/master
2023-06-09T21:29:17.790775
2023-05-24T22:58:48
2023-05-24T22:58:48
221,786,441
13
6
null
null
null
null
UTF-8
Python
false
false
920
py
""" Basic Syntax, Conditional Statements and Loops - Exercise Check your code: https://judge.softuni.bg/Contests/Practice/Index/1720#1 Video: https://www.youtube.com/watch?time_continue=4&v=7sHE4HEUqi8 SUPyF2 Basic Exercise More - 02. Find The Capitals Problem: Write a program that takes a single string and p...
[ "noreply@github.com" ]
SimeonTsvetanov.noreply@github.com
7d69efce311174755631fa5cd76a2301e8f6b9b1
3e9eb3fbbcbd1f6254b451a50190f7eb79fdffcb
/python/web_request.py
b3a03964b2655d2f4ab5e56093192c4ce3925c9e
[]
no_license
punisherbash/scripts
408b504551294d2292be382de01b5e40c31036fd
0efaecce6a8cb7342058586aecb3bed9e2fee281
refs/heads/master
2023-03-01T23:53:15.541965
2021-02-09T01:43:42
2021-02-09T01:43:42
262,920,694
3
1
null
null
null
null
UTF-8
Python
false
false
289
py
#!/usr/bin/python3 ####################################### # punisherbash # ####################################### import requests site = requests.get('http://businesscorp.com.br/') status = site.status_code if( status == 200): print('Page Ok') else: print('Page not Found')
[ "zozielc@hotmail.com" ]
zozielc@hotmail.com
5bc1b9c932355a1fa5a5500db6aa6d0f9ca3cc41
ee82d5f781f9b2ad8d710e8b4ca723dd8b51fe22
/cryptomate/strategy/persistence/__init__.py
9205cb8a22c040162889979211d4230bff71b273
[ "MIT" ]
permissive
solid-abstractions/cryptomate
32538e9a65305cf1865452d29242a0b45e3a68ba
49b4fea8f2f0f1ad61309a44167d1732ef2af0e4
refs/heads/master
2020-03-29T15:53:08.362898
2018-10-30T17:08:33
2018-10-30T17:15:04
150,085,416
1
0
null
null
null
null
UTF-8
Python
false
false
85
py
from cryptomate.strategy.persistence.base import Persister __all__ = ('Persister',)
[ "julien@etherdream.org" ]
julien@etherdream.org
3b0cb6bf6324296f08c74e0e0da7621c7fddbbad
9ec6d7f7c98159c3c98fa8b107eb2e221d7dd37b
/graph_lm/models/__init__.py
06c429f9750262ec8ed2e9f0657b799250503bf7
[]
no_license
bstriner/graph-lm
8f4d8df4ba5595e616e1fbe78da92acf0eac4403
bc31caa1fed7d87bb57f0754fab1e1f96e410dbf
refs/heads/master
2020-04-24T18:33:40.416780
2019-05-10T18:40:05
2019-05-10T18:40:05
172,183,417
0
0
null
2019-04-08T13:59:52
2019-02-23T07:07:24
Python
UTF-8
Python
false
false
61
py
AAE_RE = 'aae' VAE = 'vae' AAE_STOCH = 'aae_stoch' AE = 'ae'
[ "bstriner@gmail.com" ]
bstriner@gmail.com
a1d53557bdf059b665d288399ca8406aac341ddf
bcae5b5da1f7ad38d33123dec4be34c89e219e18
/env/bin/iptest
fe270435a1f015c1415d599aa0079ff5972655e1
[]
no_license
peuic/crawlertest
c9a97f9613de087ddab5fe8296f908de8a02ae45
9004391a326842e6be244e5982358e3cde5e1421
refs/heads/master
2022-12-10T20:46:26.263706
2018-08-01T18:23:25
2018-08-01T18:23:25
138,191,603
1
1
null
2022-07-06T19:50:20
2018-06-21T15:50:39
HTML
UTF-8
Python
false
false
280
#!/Users/peuic/Documents/Projetos/crawlertest/env/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from IPython.testing.iptestcontroller import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "peuic@MacBook-Air-de-Romulo.local" ]
peuic@MacBook-Air-de-Romulo.local
73bb462ab5a083f962e51d1215edd7734ab66a48
2479d1ad23378a5f5fe9c54dda1f89dbd42f21e2
/preprocessing_pipeline/pipeline.py
be2f837efacedf41c64504da771e67d19e2415a1
[ "MIT" ]
permissive
sandhyavasthi/topic-modeling-textPrep
000a4c82539c293ad3cc627bbba3a1e49ad283e7
8138040308f33785cc5baa5f5982c2543e26ae0f
refs/heads/main
2023-06-07T04:32:20.354164
2021-07-07T19:09:00
2021-07-07T19:09:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,234
py
import math from .part_of_speech import PartOfSpeech from .remove_punctuation import RemovePunctuation from .remove_stopwords import RemoveStopWords from .remove_urls import RemoveUrls from .synonyms import Synonyms from .lemmatize import Lemmatize from .stem import Stem from .short_word import RemoveShortWords # from ...
[ "rchurch4@bu.edu" ]
rchurch4@bu.edu
72a08f9fcd290ea481f8bc985b1f603da9486c0d
d9afc55da8da26ecf5d520316114ca26610e5a27
/SUMOPython/venv/Scripts/easy_install-3.7-script.py
10916974561f945427761501f7222e4156f21804
[]
no_license
helenzuo/SUMO
64e48786eb689d0b973cf7100dad23875abd9eca
3c21b308e9944d6298e08db850a2dfa1dbe8253f
refs/heads/master
2023-01-04T20:27:53.504433
2020-11-04T06:48:28
2020-11-04T06:48:28
305,910,080
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
#!"D:\SUMO\Melbourne 2\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ...
[ "hzuo5@student.monash.edu" ]
hzuo5@student.monash.edu
627e4eae998210c50d39487331d14e0501358df4
ac63c3bd8ac1785b930ecb934ffa32ac902c23b1
/tests/test_unicode.py
d97dfb778ff8b165478865ad5f6d463dee11cc42
[ "BSD-3-Clause" ]
permissive
orome/crypto-enigma-py
875700558f144a508f442ad397de6778147f8e6b
c68ecdd1c4edff26b563d77d86df801e4f1f6943
refs/heads/develop
2021-07-17T03:44:49.378118
2019-04-25T19:57:58
2019-04-25T19:57:58
45,213,252
7
6
BSD-3-Clause
2021-03-03T15:56:28
2015-10-29T22:01:50
Python
UTF-8
Python
false
false
2,064
py
#!/usr/bin/env python # encoding: utf8 from __future__ import (absolute_import, print_function, division, unicode_literals) ''' Simple test file for debugging and testing at the shell. To use simply python test.py or ./test.py or run 'test' in PyCharm. ''' import pytest from crypto_enigma.mach...
[ "royl@aldaron.com" ]
royl@aldaron.com
1ec9ba794ac9baee1df67a506f295e337a25d7fb
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/ESAWnF3ySrFusHhYF_17.py
e5d41b17cbf9e0e12f8f85c729de22a0dd160c66
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
def edit_words(lst): return [ ''.join(add_hyphen(words)[::-1].upper()) for words in lst ] ​ def add_hyphen(string): half = len(string) // 2 return string[:half] + '-' + string[half:]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
81756459f0ba47567d1ae4bb6d2685bd6b2753dd
021f2e8de734b362d86262acf1fff60f31405c03
/meiduo/meiduo/apps/goods/utils.py
53b61a03939ca1f2c25eee66003d54aef497b6f3
[]
no_license
Jackvie/Meiduo
99f733cb37ea8fd6b08641acc823a08fe3b60ec8
52c9cb4ed594b1458c2ed36490fb7c5cd0151be6
refs/heads/master
2022-02-03T17:09:28.287022
2019-06-09T07:03:45
2019-06-09T07:03:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
from goods.models import GoodsCategory def get_breadcrumb(category): """ 获取面包屑导航 :param category: 商品类别 :return: 面包屑导航字典 """ # category 应该是3级数据对象 breadcrumb = dict( cat1=category.parent.parent, cat2=category.parent, cat3=category ) return breadcrumb
[ "15938721922@163.com" ]
15938721922@163.com
b2a3106a379c22fe0e7d4e763e29f6abfdc97c43
641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2
/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/mock_drt.py
d6184838495e80aa3d5676b5ce34964c83c10ace
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
massnetwork/mass-browser
7de0dfc541cbac00ffa7308541394bac1e945b76
67526da9358734698c067b7775be491423884339
refs/heads/master
2022-12-07T09:01:31.027715
2017-01-19T14:29:18
2017-01-19T14:29:18
73,799,690
4
4
BSD-3-Clause
2022-11-26T11:53:23
2016-11-15T09:49:29
null
UTF-8
Python
false
false
12,119
py
# Copyright (c) 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
[ "xElvis89x@gmail.com" ]
xElvis89x@gmail.com
d66a3005c423dd2c9ca316b67c11a1b9299da949
3777658387aa9e78d7c04202d7fd47d59b9e1271
/datavisualization/candlestick.py
a58d3bacc7e90462ace43536b3decbf25c7a586e
[]
no_license
jocoder22/PythonDataScience
709363ada65b6db61ee73c27d8be60587a74f072
c5a9af42e41a52a7484db0732ac93b5945ade8bb
refs/heads/master
2022-11-08T17:21:08.548942
2022-10-27T03:21:53
2022-10-27T03:21:53
148,178,242
4
0
null
null
null
null
UTF-8
Python
false
false
6,956
py
#!/usr/bin/env python import numpy as np import pandas as pd import matplotlib.ticker as mticker import mplfinance as mpf import yfinance as yf import matplotlib.pyplot as plt import matplotlib.dates as mpdates import finplot as fplt import pandas_datareader as pdr from datetime import datetime, date # aapl = yf.downl...
[ "okigbookey@gmail.com" ]
okigbookey@gmail.com
ce8a24220000f3436702c3832cb3362f2b4f0143
8453523b5101d7289cb5fcd3de6f9dff313e925c
/utils/cfgtool/cfg/extract/cfg/CfgExtractor.py
1f114bc1e2f3187f13715d269d068bc15b3ba810
[ "Apache-2.0" ]
permissive
mytoys/open-register-design-tool
127ff0f474f385deba06cadcfbf40c6330ea1f91
5d6dea268f77546a9a786a16603f50e974d87050
refs/heads/master
2020-06-04T15:18:29.442355
2019-12-02T09:20:09
2019-12-02T09:20:09
192,078,457
1
0
Apache-2.0
2019-06-15T12:54:52
2019-06-15T12:54:52
null
UTF-8
Python
false
false
795
py
#!/usr/bin/python3 ''' cg file parse to cfg model TODO... - handle parse of ned forms @author: snellenbach ''' #import sys from antlr4 import * # installed via pip3 install antlr4-python3-runtime from ConfigLexer import ConfigLexer from ConfigParser import ConfigParser from cfg.extract.cfg.CfgModelBuilder import CfgM...
[ "snellenbach@yahoo.com" ]
snellenbach@yahoo.com
4fd0d9a749c683d9f495f9a55e64c15641a7c56f
7766246d18c1ebb1ece1cbeacad8cdf0f550b455
/items/spear.py
0e1c6eec03da7f21387100b2a379492a2a920991
[]
no_license
Tairesh/telegram-rpg
f4c372709960c0901755566ab0927862ea66df8a
280f440306eab5d9dc2435dbb83768cf20fc553d
refs/heads/master
2020-09-25T17:21:30.127889
2017-01-20T11:55:29
2017-01-20T11:55:29
67,795,201
1
0
null
null
null
null
UTF-8
Python
false
false
347
py
from consts import * name = 'Копьё' isWeapon = True attackMethods = ( ATTACK_SLASH, ) def getAttackMethodSkills(self, method): if method == ATTACK_SLASH: return ('spear', 'fight') else: return () def getDamage(self, user, method): if method == ATTACK_SLASH: return 3 elif method == ATTACK_THROW: return ...
[ "tairesh.rus@gmail.com" ]
tairesh.rus@gmail.com
e0f59fc7f281bcaee1065d1bbff4cca605524180
c53efb55eab40508a20fd70f2e52caaf7516cbb3
/py/demo_cogs2.py
b99435427978f1fdf9ddfba4e6356c592bbfd795
[]
no_license
hackxxnotecardnpl/HACKXX_Webapp
95cc8fc049a9eebd1c34aa15a4295a252dba4094
390159f950592193b7a89175f5e4678e397b5da7
refs/heads/master
2020-05-05T09:22:25.016085
2019-05-10T13:09:11
2019-05-10T13:09:11
179,901,375
2
0
null
2019-04-07T01:16:11
2019-04-07T00:29:27
HTML
UTF-8
Python
false
false
2,616
py
# tester import nltk import re from nltk.corpus import stopwords import math import nltk.data import wikipedia from nltk.corpus import wordnet def readWord(content): wordList = [] wordList = content.split('\n') return wordList def generate(path,fileName): file = open(path, 'r') content = file.read()...
[ "noreply@github.com" ]
hackxxnotecardnpl.noreply@github.com
bf9a1065dd596722c53084ddc72852f87d34c6c3
6160c6635a80072524e014b43cfe2a632076b07f
/envOS/lib/python3.6/site-packages/openstackclient/image/v2/image.py
1e67692a543df3cc4e9b406aee190e1b56d3b759
[]
no_license
githubfans/op3nst4ck
1906232c75dbc2d00a115697c66524fda0308ed0
925453387ce1d8e0a58e54a21ce0a119ce7bc6e4
refs/heads/master
2022-09-24T20:27:44.679497
2018-12-14T01:51:43
2018-12-14T01:51:43
158,508,543
0
0
null
2022-09-16T19:34:22
2018-11-21T07:33:58
Python
UTF-8
Python
false
false
41,888
py
# Copyright 2012-2013 OpenStack Foundation # # 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 la...
[ "ajijogja@gmail.com" ]
ajijogja@gmail.com
47cf462efc28a2d3cf998b03dac3d81ebc268a70
20b9e875d2701ad198635c495625b49530338b46
/tzgx_tzxw/tzgx_tzxw/items.py
7e80ad77f4311a154dd8ed56a02f7c78d8381e56
[]
no_license
leading/crawler-scrapy
816339483447fb9c59db4327e5e65e83bde383fb
06b37be4ce34252c4f3f23b22d9b3634cac57fad
refs/heads/master
2023-01-03T17:48:34.233613
2020-11-03T14:01:49
2020-11-03T14:01:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
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 re from urllib import parse from scrapy.item import Field import scrapy from scrapy.loader.processors import TakeFirst, MapCompose, Join class tzgx_tzxwItem(sc...
[ "sn_baby@qq.com" ]
sn_baby@qq.com
9b29b97d740d3bc7b5632ea840ff4a3b6129faf8
821a1afa1182e94d5dc2a9f157323f984aa357a0
/test/main.py
ed4c68c6143bce1b336917bdf9caf40db3c49cc9
[]
no_license
JiaoPaner/detector-onnx-linux
b98325f683814eb4d558517958a7a7b3b6997d9e
892b20eb3b7296a99d4d9bccee323e9f9cce7024
refs/heads/master
2023-03-04T17:08:04.448550
2021-02-02T15:20:17
2021-02-02T15:20:17
298,494,785
2
1
null
null
null
null
UTF-8
Python
false
false
2,549
py
import cv2 import ctypes import base64 from PIL import Image from io import BytesIO import json # frame2base64 may has a error,is waiting to test def frame2base64(frame): img = Image.fromarray(frame) # 将每一帧转为Image output_buffer = BytesIO() # 创建一个BytesIO img.save(output_buffer, format='JPEG') # 写入output...
[ "jiaopaner@qq.com" ]
jiaopaner@qq.com
af8d67927a2e594c57650db3ab9f5c49323d2cc9
25321dc0a877b58bec114b05e943ccf1c98ca5a0
/simplesocial/accounts/migrations/0001_initial.py
eabbeb4da6ac039f1fa7fb389cbe835ce048450b
[]
no_license
manthakamesh/Social-media-clone
dd58d56e6bcf4e7ee501a22ffb0572db465f058c
fc02c8fad8c0f59bf2f32c4b3b741cbbddee3440
refs/heads/master
2020-05-22T16:36:57.777178
2019-05-13T14:22:52
2019-05-13T14:22:52
184,466,128
0
0
null
2019-05-04T13:27:03
2019-05-01T18:58:49
Python
UTF-8
Python
false
false
981
py
# Generated by Django 2.1.2 on 2019-04-11 17:56 from django.conf import settings import django.contrib.auth.models from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max...
[ "kamesh.mantha@adp.com" ]
kamesh.mantha@adp.com
ef5846c17626f8661bc8939b16710bf0b4dbc461
e8bf00dba3e81081adb37f53a0192bb0ea2ca309
/domains/explore/problems/training/problem107_EE.py
c88780c7450b5b528861aa509adde0683f99158f
[ "BSD-3-Clause" ]
permissive
patras91/rae_release
1e6585ee34fe7dbb117b084df982ca8a8aed6795
0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30
refs/heads/master
2023-07-13T20:09:41.762982
2021-08-11T17:02:58
2021-08-11T17:02:58
394,797,515
2
1
null
null
null
null
UTF-8
Python
false
false
1,826
py
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
[ "patras@umd.edu" ]
patras@umd.edu
6dcb5e5776852d70f9652f57bdcec71f620bea21
3b106a84dc5ed201e4521deb2684ea27cea6d853
/my_pychram/tree/4문제/venv/Scripts/pip-script.py
ddb9595f45f2197552c284cb37b9281d65f5a3a9
[]
no_license
ksinuk/python_open
1a1acac542c0a38270b177ec65092309a0599222
f2132f7478bfeee6c54ac3897030a1c11366997c
refs/heads/master
2020-07-24T15:41:53.368439
2019-09-14T08:32:52
2019-09-14T08:32:52
207,972,800
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
433
py
#!C:\Users\student\Desktop\python\my_pychram\tree\4¹®Á¦\venv\Scripts\python.exe -x # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?...
[ "ghttttgu@naver.com" ]
ghttttgu@naver.com
f687ff7c7c299afcc80daf17f334f6524c99faf4
d6a2d13d5a62c19b4072f26c649aacc8bc0d3309
/pages/urls.py
7f7d702a5aca4d0be76f883c50c64cab14328662
[]
no_license
rifqirosyidi/django-polls
d4894add29063136592f0a788c043f687f416237
deeb46483344543163bb469d9df9642757025f83
refs/heads/master
2023-04-29T09:13:31.524308
2021-04-12T09:42:23
2021-04-12T09:42:23
210,758,484
1
0
null
2023-04-21T20:37:50
2019-09-25T04:55:44
Python
UTF-8
Python
false
false
127
py
from django.urls import path from . import views app_name = 'pages' urlpatterns = [ path('', views.index, name='index') ]
[ "rief.rosyidi@gmail.com" ]
rief.rosyidi@gmail.com
032808fd2ce559a1b61dc2cc01b468e8909a1d8e
47855ed6dacc1236becfe6023ed931edcebe8ec8
/CONFIG.py
639a7ad63e6a80982b5623464c9aa734f48f1db2
[]
no_license
carlosguerrero/cuttriga
1d50b347f9bded7e2b3c1799f7fbea65eb484228
6564ce55db1610f9279c9114ca7ecd237b8968b0
refs/heads/master
2020-04-01T09:25:40.355377
2018-10-15T07:58:15
2018-10-15T07:58:15
153,074,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,721
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Feb 16 10:56:02 2017 @author: carlos """ import copy import random as random from datetime import datetime class CONFIG: def __init__(self): self.topologyFile = 'topologyMatrices.dat' #nombre donde se guardan los dato...
[ "carlos@MacBook-Pro-de-Carlos.local" ]
carlos@MacBook-Pro-de-Carlos.local
3656aa256343b6291c4101a4db770d311f15e264
aee145f5aa7384859692e2eb18eb68060d51a16b
/urls.py
94fd1934b8d2099ec03f12d676ca5a8bd8c5b224
[]
no_license
tiredofnick/wedding_site
767bb22502a5a6a170130a34a9f0f469b0b317a5
52cb066f79b13d663a8e7e62db957ead55e02013
refs/heads/master
2016-09-06T01:51:37.389973
2011-02-11T18:09:54
2011-02-11T18:09:54
1,289,463
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^rsvp/', include('rsvp.urls')), (r'^admin/', include(admin.site.urls)), )
[ "nick.bonadies@gmail.com" ]
nick.bonadies@gmail.com
cf4865556db57055bd35680fe369d939ae17c4d7
ba3abf9616a1d22a1ba550d61242a775cbb7632b
/test/gw/plot_test.py
e85aac75a6582834c504e66ab66aa7a90077a484
[ "MIT" ]
permissive
Samanwaya1301/bilby
f44a745760c2555f95812e891d85895c00697209
205dd291895c4df0c5d079a9c2d72ed740f571e8
refs/heads/master
2023-07-27T09:59:37.456811
2021-09-09T11:10:39
2021-09-09T11:10:39
274,110,092
0
0
MIT
2020-10-02T16:34:42
2020-06-22T10:43:24
null
UTF-8
Python
false
false
5,429
py
import os import shutil import unittest import pandas as pd import bilby class TestCBCResult(unittest.TestCase): def setUp(self): bilby.utils.command_line_args.bilby_test_mode = False priors = bilby.gw.prior.BBHPriorDict() priors["geocent_time"] = 2 injection_parameters = priors....
[ "gregory.ashton@ligo.org" ]
gregory.ashton@ligo.org
75e42a0895c53a0b10443d6cd9750d95a81fa9e5
cb7ae10692a3692cad7d500cddadfbf7ea4f4a1a
/python/Tesla/singleStage.py
0c898ccdd688639667772fa42ac09ee506e64562
[]
no_license
UCSD-SEELab/ContextEngine27
c715b32ab08a94224b289a7e00d8d51d6cfc9e84
754458c919d96a338d010a6eab31bcb93ee73e09
refs/heads/master
2021-06-16T07:16:31.951345
2017-04-27T19:52:07
2017-04-27T19:52:07
62,247,545
1
0
null
null
null
null
UTF-8
Python
false
false
18,612
py
import numpy as np import os.path import pickle import math from Tesla import Tesla # Tesla training objects kitchOut2Trainer = Tesla(order=2,numInputs=1); kitchOut3Trainer = Tesla(order=2,numInputs=1); kitchOut4Trainer = Tesla(order=2,numInputs=1); microwaveTrainer = Tesla(order=2,numInputs=1); oven01Trainer = Tesl...
[ "jugador87@gmail.com" ]
jugador87@gmail.com
748f32a58eceb72f9e74aa36266bff7459967152
9047cbf319d9214f1e8bc42518315c8b36478e02
/alien.py
420b91a328dbfc2975a63e6a7f9b07e3d13fe26b
[]
no_license
dfeinzimer/Alien_Invasion
a3191995af220b2055ffe2149cccd021c45f514e
d26f97af3c922070f90c9bd534aebff8b3de3fa1
refs/heads/master
2021-09-23T10:53:33.300023
2018-09-21T16:12:58
2018-09-21T16:12:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
import pygame from pygame.sprite import Sprite class Alien(Sprite): """A class to represent a single alien in the fleet.""" def __init__(self, ai_settings, screen): """Initialize the alien and set its starting position.""" super(Alien, self).__init__() self.screen = screen self...
[ "dfeinzimer@gmail.com" ]
dfeinzimer@gmail.com
60023f8a5b3047e711f00886fbaa2db04dde1087
3801c2f78bac8fa160490628bb9456f050762ffe
/calculator/calculator.py
2f0ed1cc8f07fe986583acc54b01646fcd5bfd7a
[ "MIT" ]
permissive
StephenGemin/Simple-Calculator
67f725cf84042e085cd24245c22b9cee066d478c
8df433ce1f9f27b7b7f825d28821287af15fb602
refs/heads/master
2021-07-11T11:02:55.944330
2020-02-27T02:42:10
2020-02-27T02:42:10
243,156,946
0
2
MIT
2021-04-20T19:20:46
2020-02-26T03:12:11
Python
UTF-8
Python
false
false
372
py
""" Calculator library containing basic math operations. """ def add(term1: float, term2: float) -> float: return term1 + term2 def subtract(term1: float, term2: float) -> float: return term1 - term2 def multiply(term1: float, term2: float) -> float: return term1 * term2 def divide(numerator: float,...
[ "45926479+StephenGemin@users.noreply.github.com" ]
45926479+StephenGemin@users.noreply.github.com
04ab52160a08de1490f991d8175d0bc2ae66e7c6
3403759d99624c9ae15020ea5ae9491aed2822fe
/logger.py
8977ab51ff013ee2c27b080826bfd70eb86cb714
[]
no_license
AndZhi/APIStackExchange
1cdeda61cd9bb1a73627e6cedba4dae542826939
e3d85cd1da8a444337dc9ad4ad97321802bc4e0a
refs/heads/main
2023-07-11T15:31:50.396704
2021-08-20T10:47:38
2021-08-20T10:47:38
391,128,718
0
0
null
2021-08-20T10:48:28
2021-07-30T16:29:36
Python
UTF-8
Python
false
false
5,749
py
""" Файл с функциями для логирования. """ import logging as logging import os import structlog import sys from logging.handlers import TimedRotatingFileHandler from structlog import processors import config_manager _service_name = 'API_Stack_Exchange' def _get_filename(filename): # Получаем директорию, где рас...
[ "Andrew-wow@yandex.ru" ]
Andrew-wow@yandex.ru
eb2b8b94905b12e4518e44ed2ecaef71a40f83d8
2d22c7c83dfbafbc00ae0505d9fcfefd0986eeda
/Blogs/urls.py
fa14edc908879f8563f330b79886c411ecbd5cce
[]
no_license
Rudolf866/Django_Tytorial
a6f10bd6310b79c3dc9c32459570a2293fa8d5d5
9c8ccf17befb4632c98d9781d5c5cc19d3cc5c99
refs/heads/master
2023-02-18T05:57:37.027501
2021-01-24T13:22:44
2021-01-24T13:22:44
329,737,747
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
from django.conf import settings from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.urls import path, include from Blogs import views app_name = "blogs" urlpatterns = [ path('', views.post_list, name='post_list'), path('tag/<slug:tag_slu...
[ "kovalevskiy2017@outlook.com" ]
kovalevskiy2017@outlook.com
7781ecc296df81052241d659b46eacbafd2217d6
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/share/pyshared/checkbox/message.py
f81e761880abaeabd4e31698b0696aeda026851d
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
10,966
py
# # This file is part of Checkbox. # # Copyright 2008 Canonical Ltd. # # Checkbox is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # C...
[ "root@xinli.xinli" ]
root@xinli.xinli
5453e2ba929e2cb73c12c01cdc7a59b0ab31978c
b23f0a74a20b52f0638527521c859135b13b7058
/tensorflow/contrib/tensor_forest/python/ops/gen_model_ops.py
db8104dbfe52f24fb7c2cbb2b66b9e6db3ce2810
[]
no_license
BIT-Brain-Lab/Brain-Sort
bd9550b10b1f7d5f45a4a9d6f7c6b25aed4e1d32
002e8b51014fcdfecd65fa620e9a0ad3fd4184fd
refs/heads/master
2020-03-29T13:40:19.809280
2018-09-23T13:15:27
2018-09-23T13:15:27
149,975,794
3
0
null
null
null
null
UTF-8
Python
false
false
32,071
py
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _c...
[ "18811379768@163.com" ]
18811379768@163.com
6c85118cef1ca2aa8f49c01e87a7ce8740c949c0
1bd38a2a4cfae3100dfbbe63bf56fecd5a45cc26
/s3/remove_bucket_objects.py
549451c97c7a3c18daf98ae6f634d038cc53b6d3
[]
no_license
DSincerity/AWS
77dd6fc41e4502588a048d572c09eca2c5353a97
34ad5dd30c85a167351983eac88349a3c22b905d
refs/heads/master
2021-06-23T19:13:52.355827
2021-03-11T02:42:23
2021-03-11T02:42:23
207,200,864
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
def remove_bucket_objects(bucket_name:str, prefix_list:list): """ delete object in specific prefix of S3 """ s3 = boto3.resource('s3') bucket = s3.Bucket(bucket_name) total_delete_obj_cnt=0 for _prefix in prefix_list: try: #delete all objects under a sepecific path ...
[ "dskwon@dskwonui-MacBook-Pro.local" ]
dskwon@dskwonui-MacBook-Pro.local
bd7c6c72cce3c5ccd8121b728272ee2ab6cea1aa
cfab317a6abeb828b651935737304c3fd5fe5eff
/src/visualization/statistics.py
22a3a3ed893283b7d567f9bca11cf9c46f3ddb3b
[]
no_license
ga65duy/Topic-Modeling
2ea98133dd53ef6a0222e85f0923d0e7c1575894
34cdff618595bdb495d0cd7b23e543e089ea0c41
refs/heads/master
2020-12-06T23:35:14.763363
2020-01-09T00:09:46
2020-01-09T00:09:46
232,579,685
0
0
null
null
null
null
UTF-8
Python
false
false
8,662
py
import json import os import src.data.data_loader as dl import pandas as pd import matplotlib.pyplot as plt from src.definitions import DATA_DIR import numpy as np def _source_relevance_statistics(lang, type): if lang == 'german': sources = dl.german_types[type] else: sources = dl.english_type...
[ "maria.potzner@tum.de" ]
maria.potzner@tum.de
7c2b561cb7d8f78719cd3ace62ea3ecdae24ad1e
114e7f97b9fd36001269db08d72b41537152a088
/news/migrations/0005_auto_20210308_0005.py
0c4e765a86a7e1aeb1159d7d8c6842606ccd64da
[]
no_license
azgmus/cgildren_education_center
cac9c8163d032fb692ff0bd2dbda1eaa715f3857
98ec1cb34a0aafc301174d4989c50c18df9ae7d5
refs/heads/master
2023-06-04T01:58:46.100953
2021-06-21T05:22:58
2021-06-21T05:22:58
323,413,208
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
# Generated by Django 3.1.4 on 2021-03-07 21:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('news', '0004_auto_20210223_2205'), ] operations = [ migrations.AlterModelOptions( name='article', options={'verbose_name': '...
[ "herodotus@inbox.ru" ]
herodotus@inbox.ru
36ba214e142b196b8c0ff8d0fe05f1d7b6ea63e5
1664170773a86fb833dc07a66f1d92a90e5c77af
/AbstractModel.py
e0dc7c5a6ce959b7eefd28d422f32ae78c0d62e3
[]
no_license
CamdenClark/FirstDataScienceCompetition
f11c9f930e891bf785f6d6ab755ab43286630ae9
2f893fd3a8236f9fe9596598b10ee74f6bd5e041
refs/heads/master
2020-03-14T18:28:28.736711
2018-05-01T18:22:00
2018-05-01T18:22:00
131,742,019
1
0
null
null
null
null
UTF-8
Python
false
false
505
py
import uuid import os import datetime class AbsModel(): def __init__(self): self.uid = str(uuid.uuid1()) os.mkdir("./runs/" + self.uid) logfile = open("./runs/" + self.uid + "/run_log.txt", "w+") logfile.close() def log(self, msg): logfile = open("./runs/" + self.uid + ...
[ "cclark-work@Camdens-MacBook-Pro.local" ]
cclark-work@Camdens-MacBook-Pro.local
44100cd8a56941562abc28b6cc540426d38ee2b7
7faec297f7dc533e883ba10e930a8b322db0069c
/src/mercury/log_service/service.py
4f552ac953476dd9df5ca6d0987ad9a435bde444
[ "Apache-2.0" ]
permissive
SovietPanda/mercury
50c8bc1411a15a2c4d6f1d0373c072f034895192
3a6a16e5b176246f1df077df46249463e20736f2
refs/heads/master
2020-03-27T00:19:27.909490
2018-08-10T15:36:40
2018-08-10T15:36:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,947
py
import logging import time from mercury.common.configuration import MercuryConfiguration from mercury.common.exceptions import MercuryClientException from mercury.common.mongo import get_collection, get_connection from mercury.common.transport import SimpleRouterReqService LOG = logging.getLogger(__name__) MERCURY_L...
[ "jared.rodriguez@rackspace.com" ]
jared.rodriguez@rackspace.com
04e007ac52cc9e4a8da9c1f82b9df2ffb4c0501a
3311b2bfb870b0e1f697be885db76aa6535baeb8
/note/basic/04_dictionary/dic_05_判斷是否為字典.py
074be766085d7cc8890b6b165cac3a0bbd369840
[]
no_license
rogers228/Learn_python
8f06ceceb553f47f59a2c6fe1f4dd5edc10a8079
494ef61545bc946e2ba105483b662beba204c263
refs/heads/master
2023-08-31T01:56:32.607799
2023-08-30T01:23:49
2023-08-30T01:23:49
245,773,918
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
def test3(): a = {5:5} if isinstance(a, dict): print('a is dic') else: print('a is not dic')
[ "61651257+rogers228@users.noreply.github.com" ]
61651257+rogers228@users.noreply.github.com
dde6ebed45a16be7e53cf776c8d647e83acacef0
a1957356d5839548257e16f49f215184c7218996
/sdk/google-cloud-sdk/lib/googlecloudsdk/container/commands/clusters/describe.py
e90c1d64021774ee2a622b5268c55e9f5a644d3d
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
gtandeo/appengine
3335bcfeb032934fa2bf62922da376764db69ded
0dbeedc79395f8945824fcc108e9cf162bfc2521
refs/heads/master
2021-01-10T10:58:56.907544
2015-06-02T12:12:25
2015-06-02T12:12:25
36,715,149
0
2
null
2020-07-25T16:58:23
2015-06-02T07:14:15
Python
UTF-8
Python
false
false
1,343
py
# Copyright 2014 Google Inc. All Rights Reserved. """Describe cluster command.""" from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions from googlecloudsdk.container.lib import util class Describe(base.Command): """Describe an existing cluster for running containers.""" @static...
[ "gtandeo@e1r10p21.42.fr" ]
gtandeo@e1r10p21.42.fr
32204a3385fce81b05f66e16dfef23f0a4512653
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/cloudpipeline_client.py
daa42b91636e7d7f61ee082bc79f05b30fa09bb9
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,026
py
# coding: utf-8 from __future__ import absolute_import import datetime import re import importlib import six from huaweicloudsdkcore.client import Client, ClientBuilder from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkcore.utils import http_utils from huaweicloudsdkcore.sdk_stream_request imp...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
787c4fbddabdc8457dd07eaa569fc0f6b5141d56
f7525456f5451926282cba840dae1c4adba3573f
/4_Cicle_For.py
ddbcead2de56fcc6de1f94bbe82cb3be2c0dc0ee
[ "MIT" ]
permissive
AlPus108/Python_lessons
1f2ac6e1ce5a344e0c900249ef7864d257424436
0e96117d9a8b76fd651e137fc126ddedaa6accd9
refs/heads/master
2021-02-27T06:37:10.239125
2020-05-14T21:27:29
2020-05-14T21:27:29
245,588,486
0
0
null
null
null
null
UTF-8
Python
false
false
9,164
py
# Цикл for # Иногда называют синтаксическим сахаром. Потому что можно обойтись и циклом while # Но, для удобства и красоты применяют и for # Простейший for # Конструкция range(start, stop, step) - не включительно stop # start - число с которого начинаем, # stop - число, которым заканчиваем, но оно не включается в ин...
[ "alex.pustovoy@gmail.com" ]
alex.pustovoy@gmail.com
da2aea53c65b3983510b401cdee9d70ba18afa06
594fca0797a2f1cd335f314127203b51415f85f2
/app/firstApp/urls.py
b449f3b0e4758bec22f6776296371d56fc393458
[]
no_license
Sandeep-yadav-hub/django-celery-redis-postgres
eea755f1422ce4f00d26d602a18a3e7759c7954e
c43a92c5b88826e19ceb6804eb2498cb7d4b1696
refs/heads/main
2023-08-12T14:47:23.507191
2021-10-07T19:17:59
2021-10-07T19:17:59
410,887,210
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
from django.urls import path from . import views urlpatterns = [ # path('', views.home, name='home'), path('tasks/<task_id>/', views.get_status, name='getstatus'), path('add/', views.run_task, name='add'), ]
[ "sandeepky@SHIPL.com" ]
sandeepky@SHIPL.com
5a440de57d7fcffe156c9c819aa76dd055031c82
a2776c994fe091678ce8affd018ab883d3df86d8
/maquinaVirtual/bin/gunicorn
a253cd93067468941045b0c9260c310a74d51146
[]
no_license
michelspirlandeli/AvaliacaoUnifran
a68c85e6e0ed2eb346ec7a4475251b9ac1d0ec33
3a73dd7393f5781ca8b24bde36d7b0872711c290
refs/heads/master
2020-04-27T01:08:32.541081
2014-05-16T23:37:22
2014-05-16T23:37:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
#!/home/action/workspace/AvaliacaoUnifran/maquinaVirtual/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==18.0','console_scripts','gunicorn' __requires__ = 'gunicorn==18.0' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('gunicorn==18.0', 'conso...
[ "michelspirlandeli_@hotmail.com" ]
michelspirlandeli_@hotmail.com
582315922597d2eeb12b8233f51865c4a80088c3
4c5b675a6ab35ac13e8efb30b627b48ab3af8b68
/codes/extractive/utilities/get_ground_truth_sum.py
25698fc4727bf520a964736253085b09ab4eec36
[ "MIT" ]
permissive
mekomlusa/aston
b40d2f7b9a58ee8aef831b5863a07620b879562e
c3622dcc3e66f0f496abb5be8c232c0ec2abb871
refs/heads/master
2020-03-30T08:28:05.970502
2018-11-26T21:31:03
2018-11-26T21:31:03
151,017,559
0
0
null
2018-11-26T21:20:23
2018-09-30T23:55:10
Python
UTF-8
Python
false
false
771
py
import re import os.path def get_ground_truth_sum(file_path): with open(file_path, 'r') as rf: data = rf.read() # first count how many @highlights sentence_count = len(re.findall(r'@highlight', data)) * -1 # get the summary and the original text return [sent.strip() for sen...
[ "tsjtux@gmail.com" ]
tsjtux@gmail.com
f7ddab6f960fd5eb09ce9089ca8d7e640ced9c54
ec02467b0821fa66fe2992a8cf2643f0c68d42d9
/ass5.py
e8e7a550a88e20d115b8af1aa14fb7886db6a98e
[]
no_license
rohinikavitake/py_pretice
97eb9338d8cc674d743cffc2a427d6716a0f0915
a1951ff9dcafd1bb6b257c16515fd5f9107f5452
refs/heads/master
2020-11-26T23:48:29.301803
2019-12-17T07:39:18
2019-12-17T07:39:18
227,981,231
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
friends=["sneha","rohoni","shivani","vishal","sweety"] friends.append("jimmy") print(friends) friends.insert(1,"swati") print(friends) friends.remove("sweety") print(friends) friends.clear() print(friends) friends=["sneha","rohoni","shivani","vishal","sweety"] friends.sort() print(friends) friends=["sneha","rohoni","sh...
[ "rkdeveloper1989@gmail.com" ]
rkdeveloper1989@gmail.com
0177d05931723f17be73c58b7d0cdd44176b2328
f984307da6b3152f6487ad17b6d4463f436151f8
/tests/test_inutils.py
7970437b176cdb7056ca83d0c98c6e3890caad1a
[ "MIT" ]
permissive
buteco/inutils
50427724d4889a914ec8e18181de25fbc96764e1
67686bb244ef840e0f5ab8719256a74b11507d1e
refs/heads/master
2022-07-19T02:34:39.794792
2020-05-20T18:33:05
2020-05-20T18:33:05
265,089,396
6
0
null
null
null
null
UTF-8
Python
false
false
802
py
import pytest from inutils import chunkify @pytest.mark.parametrize( "iterable, expected", ( ([1], [[1]]), ([1, 2], [[1, 2]]), ([1, 2, 3], [[1, 2], [3]]), ([1, 2, 3, 4, 5], [[1, 2], [3, 4], [5]]), (range(1, 7), [[1, 2], [3, 4], [5, 6]]), ), ) def test_chunkify_size...
[ "luiz.menezesf@gmail.com" ]
luiz.menezesf@gmail.com
3003aab0e7cb14193b286ca9e10e71857baac3a3
b2cd6c7d2c76e9f88f61b12b33786e106f1c3eb0
/gdjet/useful/admin_template.py
0d2926c875d4898a5d11435c65eef252fb01fc9e
[]
no_license
gdjet/gdjet
5c5f44ba2a751d2d42fa9a3b707e05f5422a2627
ae32cdf8bf78c8ae5065f0a11aa3eeb3d168d82b
refs/heads/master
2020-04-09T17:31:34.534054
2011-02-01T15:49:58
2011-02-01T15:49:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,805
py
# -*- coding: utf-8 -*- from django.contrib import admin from django.conf import settings from django import forms from django.forms import widgets from datetime import datetime class ModelAdminForm(forms.ModelForm): def __init__(self, *args, **kwargs): forms.ModelForm.__init__(self, *args, **kwargs) ...
[ "gab@g4b.org" ]
gab@g4b.org
6301bd0540ed53f6274590817044bf53afc7c1ae
a06aa986c4eb387d4b4d30063c749fdb56153ea9
/plugins/hw_wallet/qt.py
a5af50e84636f01cf52e82bca8cd0ff9215caaa0
[ "MIT" ]
permissive
denariuscrypto/denariium
5066a642af0a1836d92addadd453dffb4fa0a421
6d4b84d514fd7332737dbe5a991a030a6cd60ba7
refs/heads/master
2021-05-13T22:39:06.760871
2017-10-23T20:47:39
2017-10-23T20:47:39
116,492,522
0
0
MIT
2018-01-06T15:15:59
2018-01-06T15:11:51
Python
UTF-8
Python
false
false
7,711
py
#!/usr/bin/env python2 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 The Electrum developers # # 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...
[ "carsenk@gmail.com" ]
carsenk@gmail.com
fdc08a5c8dcc36f3a3ccf9d7b8edc545cc178aab
bb51466ae6f2c1d2a292ee77068f057107136323
/Unit3_CNN/ByLeNet_Mnist.py
f5d9005f267817e01abd6905a81790e39efbd4da
[]
no_license
wangzycloud/deep-learning-pytorch
d2e5379c9e940859dbffe2bbdd59629c330ae7a2
4bd3483f7193cca68648e856964a1af778db85b9
refs/heads/master
2022-12-03T15:07:24.246987
2020-08-16T09:07:14
2020-08-16T09:07:14
287,908,664
0
0
null
null
null
null
UTF-8
Python
false
false
1,483
py
import torch import torch.nn as nn import torch.optim as optimize from torch.autograd import Variable from pytorch.DATA.loadDataLoader import trainDataLoader_Mnist,testDataLoader_Mnist,size_Mnist from CNN_LeNet import CNN_LeNet model = CNN_LeNet() criterion = nn.CrossEntropyLoss() optimizer = optimize.Adam(model.param...
[ "wangzycloud@163.com" ]
wangzycloud@163.com
60c7e83ccdd3c54c525eb4610ac24d2f6ad7f293
ca77158d03127cb151c531551e66e36ccdb85da9
/SparksFoundation(T6).py
c1df99a2ccc3e418a1e29cb77308a2e6f7169e8e
[]
no_license
abhiram1809/Automation-Testing
69a24bb0d5bbea16c643aade1149eed07e8345da
c11d8ecb8ceffb80214c5a982f6bbb656927c37d
refs/heads/main
2023-06-22T05:13:11.755640
2021-07-19T14:25:23
2021-07-19T14:25:23
387,491,098
0
1
null
null
null
null
UTF-8
Python
false
false
1,495
py
from selenium import webdriver from time import sleep from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options driver = webdriver.Chrome(ChromeDriverManager().install()) driver.get('https://www.thesparksfoundationsingapore.org/') print ("Opened Sparks F...
[ "noreply@github.com" ]
abhiram1809.noreply@github.com
b22bad1f316cf9be4b336e3be7ae6a5195e9b75b
9f613058d2df67f22b2e82a5b85da8a94b589766
/substitutions/data/3/html2json.py
5be4b191af00bb2cdbb006cd9b9046f710b02e0a
[ "MIT" ]
permissive
peterwwillis/notablogofrecipes
85aba0d52d554ee1cdb10265703de1afc8be3ddf
799cbd2f06ae878ec84543f0e2181073410fe58e
refs/heads/master
2020-04-18T10:25:02.023619
2019-01-29T09:24:54
2019-01-29T09:24:54
167,466,942
0
0
null
null
null
null
UTF-8
Python
false
false
2,073
py
#!/usr/bin/env python3 from bs4 import BeautifulSoup import json, sys import unicodedata def debugunicode(s): #r2e = row2.encode('utf-8') #r2en = unicodedata.normalize('NFKD', r2e.decode('utf-8', 'ignore')) #r2en = unicodedata.normalize('NFKD', row[2]) #print("row2: %s -> %s -> %s" % ( row2, r2e, r2en ...
[ "peterwwillis@gmail.com" ]
peterwwillis@gmail.com
01c8bff9cacd76f8143b112377aaff0552c81f94
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/73/usersdata/174/37158/submittedfiles/triangulo.py
f7f57035688a7678ea328f2c23e7fbde5c853f11
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# -*- coding: utf-8 -*- import math a = float(input('Comprimento A:')) b = float(input('Comprimento B:')) c = float(input('Comprimento C:')) if a>=b>=c>0 and a<(b+c): print('S') if (a**2)==(b**2)+(c**2): print ('Re') elif (a**2)>(b**2)+(c**2): print ('Ob') elif (a**2)<(b**2)+(c**2): ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
2988d840d388a7d7334866e8b7c7d4aaeda68a47
e01a7055ae90caaef793104de037ba66ef5443c4
/meiduo_mall/meiduo_mall/apps/users/views.py
26b828b029074f57e063c00af246bcb302283fd6
[]
no_license
Huang-OO/meiduo_project
dbfb149b1e1ab87a96e258001a0d3a285bd2a697
19ede61587ddbf1c9270ac80001cb789eacd136a
refs/heads/master
2022-11-30T15:55:14.831127
2020-07-24T14:00:33
2020-07-24T14:00:33
273,105,403
0
0
null
null
null
null
UTF-8
Python
false
false
20,485
py
from django.shortcuts import render from django.views import View from carts.utils import merge_carts_cookie_to_redis from goods.models import SKU from .models import User, Address from django.http import JsonResponse from django_redis import get_redis_connection from django.contrib.auth import login, authenticate, lo...
[ "huangoo1024.163.com" ]
huangoo1024.163.com
56d262272795296abdfd740106515c512449d3e2
7e3ae948daf34bfae35d3da695569cd944757ccc
/chat/serializers.py
47fdc573607ac05e5ded1d5a2ed2404ee48a1a92
[]
no_license
xRizwan/realtime-chat
ecafef99f40231032d5c90eabdd363065a349105
217698512344ed45135882339e82523f6cd94e37
refs/heads/master
2023-04-11T08:12:52.035330
2020-11-08T01:24:54
2020-11-08T01:24:54
301,795,090
1
0
null
2020-11-18T06:41:34
2020-10-06T16:52:57
Python
UTF-8
Python
false
false
215
py
from rest_framework import serializers from .models import Message class MessageSerializer(serializers.ModelSerializer): class Meta: model = Message fields = '__all__' depth = 1
[ "xrizwanr@gmail.com" ]
xrizwanr@gmail.com
a13241bdf8a7f6673b13b51d99ce11ac7f5815e0
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/memcache/v1beta2/memcache-v1beta2-py/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py
6dae41f8cdc2469b105c660bd19d5e0700e7fedf
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
120,536
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
e9c5e54034e1439827fb9ae4a546513360e70036
e590a717a01d060e39276217bd1464fb2b0092d9
/AA274_HW1/P3_pose_stabilization.py
99e4a4d481686346e75ed078725b0ea3cf2429da
[]
no_license
chizhang529/aa274
7caf82ab1e666192ed4e6bf8fa4f66ee6e0f27e8
3be776665006b9767ddda30dd3b0e62e824e7542
refs/heads/master
2021-03-27T19:42:01.040701
2018-05-18T07:34:40
2018-05-18T07:34:40
118,284,450
3
1
null
null
null
null
UTF-8
Python
false
false
1,223
py
import numpy as np from utils import wrapToPi def ctrl_pose(x,y,th,x_g,y_g,th_g): #(x,y,th): current state #(x_g,y_g,th_g): desired final state # Relative pos in global frame rel_pos_global = np.array([x-x_g, y-y_g]) # Rotation matrix from relative to global R = np.array([[np.cos(th_g), -n...
[ "zclovefd@gmail.com" ]
zclovefd@gmail.com
1911784cbc3e11dcd0f8e9d6b1e724c6cda07870
7855fc2958b04b46d4f4e83d0b9f6b457adbe91c
/Project/my_commentApp/urls.py
451a178120ef0ed896a317e90c70e499eec92ffb
[]
no_license
LuMingFeiReal/lzjProject
88f93ad4802ee16d118d87c8214c2f52daf0c945
9f9c734d8c212ce07f72f2d5e47c63f554cabc12
refs/heads/master
2022-03-23T22:59:28.583125
2019-06-21T06:46:03
2019-06-21T06:46:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
from django.urls import path from . import views urlpatterns = [ # path('get_comment/<str:key>/', views.get_comment, name = 'get_comment'), path('add_comment/', views.add_comment, name = 'add_comment'), ]
[ "386857271@qq.com" ]
386857271@qq.com
af3703dda4d67217bd57ca2c5fcf483621f26bc8
52492c659a1e141ef70947ede51b7726fc285ecb
/manage.py
d621593e474f4397411f10064b651e8d97bec346
[]
no_license
xiajieok/Django_share
4584a56f6eefb3926308a687f470390dfedee3d8
ee12bff25cc86658324ebd0c4c7918c1f2b8b07d
refs/heads/master
2021-07-20T10:13:15.474868
2017-10-29T14:44:26
2017-10-29T14:44:26
108,742,606
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ZOO.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "xiajieok@gmail.com" ]
xiajieok@gmail.com
be5aa5c050082e2c6f1a3fbcb6de611b920e9f3a
db54163bb2ece7c961e62618002b1cca7816f299
/seafile/seahub_settings.py
a9c30bbbc0cd20b213ce9870f0ee5cb8646b2cb9
[ "CC0-1.0" ]
permissive
jradxl/seafile-config
c679001314a04db2fdc13e42368e56ffd0a8c01e
e5a20a13b0abb6ceba03d9e6257094b8c186f99d
refs/heads/master
2021-05-24T12:43:47.678480
2020-04-06T22:15:13
2020-04-06T22:15:13
253,567,641
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
# -*- coding: utf-8 -*- SECRET_KEY = "secret key" #When False the files are served via a Nginx location clause SERVE_STATIC = False #Hard coded in clients #The subdomain "www" is the master domain. #The site root does 301 to www, which does not work here! FILE_SERVER_ROOT = 'https://www.XXXXX.dyndns.org/sfa/seafhttp'...
[ "jradley@xcase1.jradxl3.dyndns.org" ]
jradley@xcase1.jradxl3.dyndns.org
10cb527262d0afb476d84a8a39e915cb704511c9
a2911cf730510b7facaa1e0975edf23aea16d458
/projeto_clientes/clientes/serializers.py
7952f4e1e9a81f9e3d430913ba4f47bf3e3cc551
[]
no_license
Gustavo-Br-Santos/api_clientes_django_rest
fdbb2c3f8842bf3cf435607802ae4b612238cd6c
b025e1ed5d12355deb4b196570f921aa1a45ab51
refs/heads/main
2023-02-08T14:20:21.480553
2021-01-02T01:36:52
2021-01-02T01:36:52
325,707,943
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
from rest_framework import serializers from clientes.models import Cliente from clientes.validators import * class ClienteSerializer(serializers.ModelSerializer): class Meta: model = Cliente fields = '__all__' def validate(self, data): if not cpf_valido(data['cpf']): raise...
[ "gustavo.br.sant@hotmail.com" ]
gustavo.br.sant@hotmail.com
1ca3b6dff3e81e4776d8a3bcc0bb5847e2726f99
9d33280cf2ef462804eed4c4f51dd693191bb788
/gaohaiwai/settings.py
79108a55165c3ee93624891e6e90bd7a90d54f2f
[]
no_license
lvku/gaohaiwai
bd25f1b92a3fe8b0d0a1ffc7a00f8a127967fc89
4b9ceb686d0be8c755480c87de4d8130a7a8eca9
refs/heads/master
2021-05-07T16:49:53.640613
2017-11-20T02:46:44
2017-11-20T02:46:44
108,683,056
0
0
null
null
null
null
UTF-8
Python
false
false
3,105
py
""" Django settings for gaohaiwai project. Generated by 'django-admin startproject' using Django 1.11.6. 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 ...
[ "hongmingli1988@gmail.com" ]
hongmingli1988@gmail.com
3a42de5559607d37d3040ba6ae5a378abcc45257
3591ab22e1cc0fc1362f909017a8aa5c2b53bd92
/FundNavSpiders/LeiGenFund.py
61a013e9b179634dde51908a984a1dffba1e555d
[]
no_license
Wnltc/ggscrapy
ef7e9559ce6140e7147f539778e25fc7f6cbee4c
bf929112e14b875a583803fe92980fe67129bdac
refs/heads/master
2023-03-15T22:00:45.377540
2018-06-06T02:19:14
2018-06-06T02:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,050
py
from FundNavSpiders import GGFundNavItem from FundNavSpiders import GGFundNavSpider import json from datetime import date, datetime class LeiGenFundSpider(GGFundNavSpider): name = 'FundNav_LeiGenFund' sitename = '上海雷根资产' channel = '投顾净值' fps = [ { 'url': 'http://m.reganfund.com/we...
[ "songxh@go-goal.com" ]
songxh@go-goal.com
8491af94ca39cdda47ba34d89058d13737d9aaca
bfbb7e18de1aa4a62a204d8b62192ac6ee93b66d
/bin/svn_fetch_commits.py
ffa1dca2aadeddba2b485939ee68eab7b84e5c8c
[]
no_license
jocelyn/SCMlogs
5b0808b20048396d9e57bc92b43b48f5374f0bdf
f254120c5b40787a421386b882d8cf1d722bfbcf
refs/heads/master
2016-09-05T18:14:32.417516
2012-05-21T06:16:18
2012-05-21T06:16:18
4,390,496
1
0
null
null
null
null
UTF-8
Python
false
false
2,369
py
#!/usr/local/bin/python import os; import sys; import re; #import shutil; import datetime; import popen2; from string import atoi; # Usage: # # script path_to_config_file # # Config file will be formatted like that: # # logfile=commits.txt # logdir=/home/svn/logdir # repository=h...
[ "github@djoce.net" ]
github@djoce.net
0d887aaef5d61630968cc0569918c5c0cbe83892
682b8b44cb35f442140228ddf5d90b3436b896a4
/01_Data_Analyst/02_Data_Analysis/08_pandas_series_vectorized_operations.py
ed0550b0822c55a53e65986be26b6d1d53e255df
[]
no_license
trenton3983/UDACITY
955840136c72b4e82ffd8b0bd62c87894d64aaf0
abe283d868284e130f02de9f4833de191f8dc71e
refs/heads/master
2020-05-21T12:35:23.518321
2020-05-18T21:56:52
2020-05-18T21:56:52
134,120,109
1
2
null
null
null
null
UTF-8
Python
false
false
879
py
import pandas as pd # Change False to True for each block of code to see what it does # Addition when indexes are the same if False: s1 = pd.Series([1, 2, 3, 4], index=['a', 'b', 'c', 'd']) s2 = pd.Series([10, 20, 30, 40], index=['a', 'b', 'c', 'd']) print s1 + s2 # Indexes have same elements in a differ...
[ "trenton_mckinney@yahoo.com" ]
trenton_mckinney@yahoo.com
5186be8224769c0178c6deae6adc01a92c3e121d
07092f506257f6c4db460a04586c65dad92f3063
/student_sys/student/migrations/0001_initial.py
19e08dc07d9305ab0956e178ff555efd88a6db62
[]
no_license
Violet-VE/student_messagement
86622eaa4cde04355eec55ffacc1008b6f62532a
ebbb4f0fdf6c6cfcccbeda13eee768819899391d
refs/heads/master
2020-06-02T00:35:26.385364
2019-06-09T08:19:41
2019-06-09T08:19:41
190,979,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
# Generated by Django 2.2.2 on 2019-06-07 13:05 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Student', fields=[ ('id', models.AutoField(...
[ "m.sakura.saber@outlook.com" ]
m.sakura.saber@outlook.com
df6f8da809ec9c01c25252655d09852b64d3c9da
19c67345fe8ec17ea4196fed3141cd38133c16d6
/random_forest/feature-engineering.py
26863d5c1033e01b282d6c93798aa7ca434652cf
[]
no_license
sachinyar/machine-learning-in-spark-with-pyspark
c3f0e72d8ed85a51741c561a4cfe9d207d5f6439
ba0642f55370e5933fdb6b37eddc164b2ae030d8
refs/heads/master
2020-06-22T18:14:58.232817
2019-06-07T03:26:14
2019-06-07T03:26:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
from pyspark.ml.feature import VectorAssembler df_assembler = VectorAssembler(inputCols=['rate_marriage', 'age', 'yrs_married', 'children', 'religious'], outputCol="features") df = df_assembler.transform(df) df.printSchema() df.select(['features','affairs']).show(10,False)
[ "hernan.c.vazquez@gmail.com" ]
hernan.c.vazquez@gmail.com
758707d59bfdbd8d8222389e25438b2cf6ffa90a
865da1c5c322d8d23c319c657450d7470d1710be
/X+0 - main.py
d974c85682af678da501e2504f345b2f250b8ebb
[]
no_license
Quickmotions/X-O-game-python
d2d8cab933b3eb1118263363b785d530f86a61ad
5579e92a6bf34066bd5426be9257e12a3bdf65d6
refs/heads/master
2023-01-18T18:59:01.785403
2020-11-17T11:26:40
2020-11-17T11:26:40
291,131,181
1
0
null
null
null
null
UTF-8
Python
false
false
9,865
py
#imports import random import time #modules def playerChoice(): boxChoice = 0 Choice = "" if gameRunning == True: time.sleep(0.5) print("make first move") Choice = str(input("Enter a number between 1 and 9: ")) while boxChoice == 0: if Choice == "1" or Choice == "2" or Choice ...
[ "noreply@github.com" ]
Quickmotions.noreply@github.com
529099957ea2aae422390a42ae9646b5e661ce94
9736354690fe993b05da7c29f467d4f18077ca77
/allInstall/sub/gpu_deeplearning/resources/sample.py
3731227c26ef51553625c1e591498dbb26fcc462
[]
no_license
felidadae/_general
4fb4bbd6a0aa1af5b148d72e40a41eed84c09eda
739fa9947a2992493848e836be7a030118ec222a
refs/heads/master
2021-10-12T01:48:53.093775
2021-09-28T17:30:51
2021-09-28T17:30:51
70,048,062
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
from theano import function, config, shared, tensor import numpy import time vlen = 10 * 30 * 768 # 10 x #cores x # threads per core iters = 10000 rng = numpy.random.RandomState(22) x = shared(numpy.asarray(rng.rand(vlen), config.floatX)) f = function([], tensor.exp(x)) print(f.maker.fgraph.toposort()) t0 = time.tim...
[ "s.bugaj@samsung.com" ]
s.bugaj@samsung.com
18b2aa782fb799a67516b52b792295ede0f6227a
4a020c0a492d931f7da5c452c9569fba06703686
/testing/web-platform/tests/tools/wptserve/wptserve/constants.py
a5a2f76445b270513df3377699efbbf93a7fe34c
[ "LicenseRef-scancode-w3c-03-bsd-license", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rbernon/wine-gecko
353173511a790127ffa2ad39d630b8a0dcbbf5bf
550ad9eac229b769992f421ce9492ca46edabaa0
refs/heads/master
2023-08-06T21:25:26.836672
2020-11-30T12:47:56
2021-09-30T08:14:19
411,965,809
0
0
null
null
null
null
UTF-8
Python
false
false
4,623
py
from . import utils content_types = utils.invert_dict({"text/html": ["htm", "html"], "application/json": ["json"], "application/xhtml+xml": ["xht", "xhtm", "xhtml"], "application/xml": ["xml"], ...
[ "rbernon@codeweavers.com" ]
rbernon@codeweavers.com
7034296f573c9cad883dc4d3d04c799c7699ccb5
4a1a3375b24a44be6c2926eb3dd2c18d8c23ebf9
/test/nn/test_utils.py
af0081ccf4dd7233202326e6342a33311ea0286a
[ "MIT" ]
permissive
sufeidechabei/pytorch_geometric
a4a48339f4f115bee2973bb49ead71ee595d7ed3
3b478b2f9721f35cd1c93f7f8592691ad8f8a54d
refs/heads/master
2020-04-13T19:14:50.187401
2018-12-28T09:04:09
2018-12-28T09:04:09
163,396,833
1
0
null
2018-12-28T10:16:45
2018-12-28T10:16:45
null
UTF-8
Python
false
false
1,398
py
import torch from torch.nn import Sequential, Linear, ReLU from torch_geometric.nn.repeat import repeat from torch_geometric.nn.inits import uniform, glorot, zeros, ones, reset from torch_geometric.nn.reshape import Reshape def test_repeat(): assert repeat(None, length=4) is None assert repeat(4, length=4) ==...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
de81d198e36a28ad334958206d3187b48e5c690b
60892d103282945bc12d7e81e2e8c0349e020442
/predict.py
2e4e0105266afe7d431c9011ee85ada92d60dff4
[]
no_license
S-Maya/Tsukiji-fish_Machine-Learning
b89ecd555c97254fa929da4dce3b4babf62198b0
ae9f6a97552b58669cbd64349ba38ac914a7e321
refs/heads/master
2022-11-07T15:11:42.773279
2020-05-10T14:47:26
2020-05-10T14:47:26
260,557,235
0
0
null
2022-09-30T19:02:45
2020-05-01T20:58:39
Jupyter Notebook
UTF-8
Python
false
false
720
py
### YOU WRITE THIS ### import os from joblib import load from preprocess import prep_data import pandas as pd import numpy as np def predict_from_csv(path_to_csv): df = pd.read_csv(path_to_csv) X, y = prep_data(df) reg = load("reg.joblib") predictions = reg.predict(X) return predictions if __n...
[ "54159767+S-Maya@users.noreply.github.com" ]
54159767+S-Maya@users.noreply.github.com
30115bbe8fa2933607723a3ce6b73ae268df8cde
4a3e4c20cc7de2e80ed038bbfe9b359ba75daf07
/configs/RS-data/VHR10/Faster-RCNN/CBAM/cbam-r101-Backbone-R32.py
21195a128ff7eb1db6b308a335ce55155d04adec
[ "Apache-2.0" ]
permissive
CLIFF-BOT/mmdetection-1.0
b0b4f9b5586476f96ef55cf68373110f28e503a7
a16a7c6a8f0bf029100b85f0bd1b64093e7809af
refs/heads/master
2023-01-02T07:02:35.496174
2020-10-29T03:26:18
2020-10-29T03:26:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,654
py
# model settings 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), style='pytorch', ...
[ "nicholasirving@outlook.com" ]
nicholasirving@outlook.com
f72c7cc9580ffab45275c9f840da479c77826ccf
a64bf8ce8e52b257ad904909097a25d0affe8a47
/_python_sources/p1/DATABASE/Python_Learn/test4.py
f0a9470d3bdafb6f2477aeec121c5ca7651e6ba7
[]
no_license
nguyenvanhuy0612/html_local
4064f76df0e53678b775879c6579cc85a91952f4
ed845f8c0eeca4c3ab8636459d1f1e9204ad3306
refs/heads/master
2023-03-26T04:50:40.768981
2021-03-18T15:25:00
2021-03-18T15:25:00
303,089,186
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
l1 = [1, 2, 3, 4] l2 = [5, 6, 7, 8, 9, 10] for a, b in zip(l1, l2): print(a, " - ", b) l3 = list(range(0, 10)) print(l3) for i in range(0, 10): print(i, end="-") print("") l4 = range(10) print(l4, type(l4))
[ "nguyenvanhuy0612@gmail.com" ]
nguyenvanhuy0612@gmail.com
cabb53e698d48c0037ea1014120e0ec6a0618cf2
dfb474b20cf7e35d7d2c90b4ad4ff70b84c0a27e
/weather/migrations/0001_initial.py
c6e0249f0c0207d48e1c27bac9f1723343858b1a
[]
no_license
sivaneshl/django_weather
7b26df40ce0511ca74b7e7f0056fff84676ff48b
7d0530f4a9843583ae88979fe9175442929bbd1b
refs/heads/master
2022-11-25T09:59:25.339618
2020-08-02T18:59:34
2020-08-02T18:59:34
284,511,310
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
# Generated by Django 3.0.8 on 2020-08-02 18:37 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(aut...
[ "sivanesh.l@gmail.com" ]
sivanesh.l@gmail.com
5ef229b7e8ffe1fd6e506214f4574a932bdf561c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondTools/IntegrationTest/python/validate_dt_orcon_cfg.py
a1aaab0a17d8bfc6ba547ce4cb804c635d78318a
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
1,754
py
# The following comments couldn't be translated into the new config version: # Configuration file for EventSetupTest_t import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.PoolDBESSource = cms.ESSource("PoolDBESSource", loadAll = cms.bool(True), toGet = cms.VPSet(cms.PSet( r...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
92eb7eab2f0b7b54c08ff33b26aa5a7ff252d81d
0e2ecd3776944241d3203fcb205270cb1310cf08
/product/package.py
1126c0dd1eb047f4c9a21c33306dacc60558c81d
[]
no_license
jwtd/lab-monkey
afb03b45a77529bdf9943f233cad68ed7b31db66
f21c411814d7c2c0a4c2f61f297097bef64c10bc
refs/heads/master
2020-05-31T05:25:10.416695
2015-04-13T03:12:56
2015-04-13T03:12:56
32,498,487
0
2
null
null
null
null
UTF-8
Python
false
false
16,440
py
#!/usr/bin/env python """ StatelessPackageF """ from common.base import * from product.register import * from product.register_collection import * from product.serial_control_register import * from product.connection_adapters.connection_adapter_factory import * class Package(AppBase): """ A Pac...
[ "Jordan.Duggan@Gmail.com" ]
Jordan.Duggan@Gmail.com
8a7351694a71a7374ecd6b92b2ba5ac0e73b83bb
6c49b05ef5ce5226d4a8d42172eca6d443aa525a
/prova/Notebook.py
57a480eb993d9dd715a9d6fded342a5bfa3abd54
[]
no_license
RichardMatteus/AlgoritmosAtividades
24046ef69ec2df7de9f5202a62b5ba091a06a014
68504ac3c8266a29290ec4952891675eeed8526a
refs/heads/main
2023-06-22T08:04:53.448236
2021-07-18T18:27:16
2021-07-18T18:27:16
351,598,418
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
from Computador import Computador class Notebook(Computador): def __init__(self, modelo, cor, preco, tempoDeBateria): Computador.__init__(self, modelo, cor, preco) self.tempoDeBateria = tempoDeBateria def getInformacoes(self): print('Seu Notebook é um %s %s que custou R$ %s. Sua bateri...
[ "richardmatteus96@gmail.com" ]
richardmatteus96@gmail.com
68fcc0c58c66db20a96c5a3cf120717de4b740bf
12c94c446a07985b5c2f9f212bd4744a245f0f3b
/python/Datacenter.py
c643cfd44d9fdda6918df5444eb8844b071f3dde
[]
no_license
tarfaasima/cloud-simulation
323cdbca841c5acea4e7c5b3239393b90d4c1cd5
f31518bb436feb91209f7aa05e92ac2b9876701f
refs/heads/master
2020-12-30T10:36:22.567249
2012-06-02T18:21:01
2012-06-02T18:21:01
33,784,688
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
from Server import Server; class Datacenter: def __init__ (self,servers): self.servers = servers; def get_max_cpu(self): max = 0; for server in self.servers: if server.cpu > max: max = server.cpu; return max; def get_total_cpu(self): total_cpu = 0; for server in self.servers: ...
[ "hossam.saraya@gmail.com@85c2fadc-aa57-5d8c-a354-cfe211b09889" ]
hossam.saraya@gmail.com@85c2fadc-aa57-5d8c-a354-cfe211b09889
8ebf7364f88d1f1fabd25cd184b44c4a4725b1ba
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2431/60668/302927.py
fde0d78fce890f17b957f82f0b5117e9cd2288ca
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
350
py
def tree_29_wide(s,k): if s=="0 100": if k=="150 750": print(212.13,end='') elif k=="0 1000": print(291.55,end='') else: print(k) else:print(s) if __name__=='__main__': m,n = input().split() s = input() k = input() l = input() ii = ...
[ "1069583789@qq.com" ]
1069583789@qq.com
9fb3b54392d38705e056639aa5a10ff70b4f8ee6
b51f819d729bc59307d452a529a75a68bee64b58
/91.py
8bfaf35a702c3dcd1fe0a34defa2f69c8fcd43c0
[]
no_license
veqcc/nlp100
2c8743307d259eea8ea7fd7314d8ea8a49e5bbb9
22a6d278a54855d971c2f39a8b12966028a38b66
refs/heads/master
2020-03-25T01:35:57.575294
2018-08-14T05:01:43
2018-08-14T05:01:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
fname_input = 'questions-words.txt' fname_output = 'family.txt' with open(fname_input, 'rt') as data_file, open(fname_output, 'wt') as out_file: target = False for line in data_file: if target is True: if line.startswith(': '): break print(line.strip(), file=out_...
[ "kambe3141@gmail.com" ]
kambe3141@gmail.com
e3a595c05567f5a79aee21c2ee1e1a28e4f38899
31377fbc7f85c18cf644660208f019f4f8480b82
/soonmeet_api/manage.py
135de7bd680ca3d6694a812f972392e82e9aea83
[]
no_license
matgd/BSc-Thesis-Backend
07bc143dcea55aff5b8061334730184cc958d322
941a0b90e131804b3ff439a35e37f0c29ab850d6
refs/heads/master
2023-04-23T12:06:27.275259
2021-05-01T15:26:32
2021-05-01T15:26:32
285,857,073
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'soonmeet_api.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
[ "matgd@users.noreply.github.com" ]
matgd@users.noreply.github.com
23b478ca3f8ce31e060211d4f13d1c7e10bed220
a381cdbd28899ba5fb8f98b0974659be3161919c
/Python/MultiplicationQuiz.py
69729289d01eaa56b1ea9572d464fc1bfa047a0c
[]
no_license
TheRealChrisM/CVGS-Computer-Science
6d9644f6ea05cec846f511874469c409983bcbad
c6e18644628fe6f78988837ea5146d65da9792e3
refs/heads/master
2020-07-07T15:12:47.555359
2020-05-15T03:03:35
2020-05-15T03:03:35
203,385,361
0
0
null
null
null
null
UTF-8
Python
false
false
2,239
py
#Christopher Marotta #Lab Assignment 8/20/19 Part 2 #import modules import random #global variables numCorrect = 0 #Generate first problem firstNum = random.randint(1,9) secondNum = random.randint(1,9) #print first problem problem = str(firstNum) + " x " + str(secondNum) + " = " answer = eval(input(problem)) #check ...
[ "marottachristopher@gmail.com" ]
marottachristopher@gmail.com