blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
6b12b49d87372aca89ae35371d4ccca75f75af68
027386902f7553dd417718499e686316e9ce3a34
/aula_10_b2.py
d0f38c3eb554f194efbe11fdcc63ca43c8b342e2
[]
no_license
pedropaixaob/selenium-course
e4df1c56f1cc4c112f70e4ef385b8b820cdc7aad
cab7d77810ddcc01bc498b67861bf4236d9d401a
refs/heads/master
2023-04-07T09:08:43.473285
2021-04-15T21:53:32
2021-04-15T21:53:32
354,393,937
0
0
null
null
null
null
UTF-8
Python
false
false
784
py
""" Usando located ao invés de element """ from selenium.webdriver import Firefox from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support.expected_conditions import ( visibility_of_element_located, invisibility_of_element_located, visibility_o...
[ "pedropaixaob@gmail.com" ]
pedropaixaob@gmail.com
7aac97bd18585740470971643e94c41583982cc6
b096dbccb31d3bd181259e930816964c71034ff4
/tests/test_base/test_signature.py
44e7721141d1ad15178fb3820f4cc6706d18aad4
[]
no_license
cosphere-org/lily
b68f95720381a69ce0caa5f47fca461b3f5242a9
f6a8281e10eedcccb86fcf3a26aaf282d91f70f4
refs/heads/master
2023-02-18T13:49:03.568989
2022-06-30T09:58:23
2022-06-30T09:58:23
175,789,374
6
0
null
2023-02-15T18:49:10
2019-03-15T09:28:05
Python
UTF-8
Python
false
false
3,362
py
from datetime import datetime import string from unittest.mock import call from itsdangerous import SignatureExpired, URLSafeTimedSerializer import pytest from lily.base import signature from lily.base.events import EventFactory # # sign_payload # def test_sign_payload__calls_dumps_correctly(mocker): dumps_mo...
[ "maciej@cosphere.org" ]
maciej@cosphere.org
8051ef83e0422775bc2c538d013d7886708ceffa
2bff702c0ba91580bdf48c79e9e9ba658877ac5c
/Unidad 3/PedirDatos.py
76be92a391077baadd449e98098fe0462af6a814
[]
no_license
benjaltamirano/testayed2021
528356e76269f35d555a8f921c885375f16909b0
ff9ef9e270cc617ba5a1a7adeaa8656919a1746f
refs/heads/main
2023-08-13T18:01:47.098625
2021-09-15T21:15:53
2021-09-15T21:15:53
406,923,095
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
""" El programa debe: * pedir al usuario 5 datos numericos * verificar que sean enteros y sino pedir nuevamente los 5 * cuando se tenga los 5 datos el programa debe devolver el promedio * no deben aparecer errores. """ print("Este programa calculará el promedio de 5 números") i = 1 acum = 0 while i<=5: try: ...
[ "benjiialtamirano@gmail.com" ]
benjiialtamirano@gmail.com
52a796fea30a838276a1d49ee092d40eaa50fcd7
f1df055ad7d7591f78fc1f29f7a4c79c41629e1b
/contact/views.py
c5361297eaab524960dfd6a98b35ced88434c428
[]
no_license
brokenhills/koskin
b2c370ebd7e1d7c47ee794a55e1b0921b34462d8
eaaccecf7166abea570706c8dd6d955bcea228c8
refs/heads/master
2022-02-16T10:58:14.798277
2018-07-22T19:18:27
2018-07-22T19:18:27
67,286,964
0
0
null
2018-07-22T19:18:28
2016-09-03T11:35:26
JavaScript
UTF-8
Python
false
false
223
py
from django.shortcuts import render from django.http import HttpRequest, HttpResponse from writings.models import Writings # Create your views here. def contact(request): return render(request, 'contact/contact.html')
[ "boneyard@yandex.ru" ]
boneyard@yandex.ru
5b886449cfd61d18cf46b00a7fc131c144ab5b18
27dac5daf81e3d4db99f45feaf1b696432f7bfcc
/OldScripts/Scripts/colorChanger.py
4bef8d46147bfec82cf24663d9229df925d0b07e
[]
no_license
WeirdistBuilds/DGM-3670
f18f38c7a28f5fc4bb344382018ee158e420677b
5efc2e902dfba1b8962876f0549008d4bd87f9f1
refs/heads/master
2020-07-07T03:34:05.862355
2019-12-12T12:06:23
2019-12-12T12:06:23
203,231,764
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
import maya.cmds as cmds def color_changer(color): this_color = { 'yellow': lambda: 16, 'red': lambda: 12, 'blue': lambda: 5, 'green': lambda: 13, 'purple': lambda: 7, 'orange': lambda: 11, 'black': lambda: 1, 'white': lambda: 15 }.g...
[ "kylehinckley@hotmail.com" ]
kylehinckley@hotmail.com
583945f36aa9b9f7eb694fffe00ba7c77fc7ce30
01edf75448e87427880053ce5d0799b9d05af51a
/sudoku/models.py
2f6343c0ab4b28dc355509f01cc69a34a41b006e
[]
no_license
eagles123/otree-sudoku
21950a7961d5ae21f119b430847eaa0cddedb879
657f158692d96b212189e4f2fe9fd4e3b2472249
refs/heads/master
2020-04-07T20:27:43.150765
2019-01-09T14:05:03
2019-01-09T14:05:03
158,689,178
0
0
null
null
null
null
UTF-8
Python
false
false
2,819
py
import csv from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Kevin Feng' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'sudoku' players_per_group = None num_rounds = 1 cl...
[ "sfeng.kevin@gmail.com" ]
sfeng.kevin@gmail.com
030f568824996dfb829af5b1539ff76264c70db7
32b070784826dcbdcf2961775b13d0af012ab062
/__init__.py
814fb5a48fe31d6922391568ee4b78ced47ed267
[]
no_license
yellowco/django_routing_numbers
258714384616affba20a5c396a6347449ebcab61
aa5e3aaa3b5c4eba90b7c77df048566c2de2e05b
refs/heads/master
2016-09-06T10:33:47.199118
2014-07-05T20:58:13
2014-07-05T20:58:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
from django.db.models.signals import post_syncdb from django_routing_numbers.models import Institution import django_routing_numbers.models def post_syncdb_callback(sender, **kwargs): django_routing_numbers.models.Institution.objects.fetch_dataset() post_syncdb.connect(post_syncdb_callback, sender=django_routing_num...
[ "root@kevmo314.uchicago.edu" ]
root@kevmo314.uchicago.edu
ec82b2b591aa5b1c9b2fb55006d74944ca7ad8b4
509b1f7c6c3856a238f289606ed68e7f0b3589d2
/mds.py
ee319006834a6509561fa65e45356ec4da054214
[]
no_license
andreaseliasson/dm-cw2
e41ab8fa56f8421b0b7414a5ec8491fe5e69b143
6fb9ce43dad805964b8c0f2df4833337d733d337
refs/heads/master
2021-03-27T09:46:27.450361
2017-03-19T22:49:05
2017-03-19T22:49:05
84,196,267
0
0
null
null
null
null
UTF-8
Python
false
false
2,186
py
from sklearn import manifold from sklearn.metrics.pairwise import euclidean_distances from matplotlib import pyplot as plt import numpy as np from sklearn.metrics.pairwise import cosine_similarity from colors import UNIQUE_COLORS def apply_mds(feature_matrix, dimensions=2, dissimilarity_measure='euclidean', metric=Tr...
[ "andreashg.eliasson@gmail.com" ]
andreashg.eliasson@gmail.com
16172b4fca0fd1ccab2a5eadd39860fe0e49a10a
b529a6ff97336a9b7773b8546b62d696d07d025c
/FP_reduction_1/pin_memory_selector.py
f880135519959e0485f89779b8dc537eeba8f1a0
[]
no_license
octaviomtz/LUNA16_nodule_detection2
31209973cd30bd4e412e581df75a4d6d39d48cdb
c8cc029c6362772088e269b1cc1725eb4f787914
refs/heads/master
2020-09-18T18:26:34.194331
2019-11-11T11:21:08
2019-11-11T11:21:08
224,165,110
0
0
null
null
null
null
UTF-8
Python
false
false
14,086
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Sep 3 15:07:08 2019 @author: se14 """ # test various values of pin_memory to find best for speed import os import sys import numpy as np import torch from torch.utils.data import Dataset, DataLoader import matplotlib.pyplot as plt import time import to...
[ "sam.ellis@kcl.ac.uk" ]
sam.ellis@kcl.ac.uk
d4853556d53a277b8cfd79dd1d8d66aa1db5f3a1
20f588c88eea91f0a23a9b6825919e33cd94df6a
/CvStudio-master/view/widgets/image_viewer/selection_mode.py
c4816ca9f46a41f704da3ebb38b2339c8806e360
[ "MIT" ]
permissive
mohitmaan1994/CvStudio
96cf1ab9604d9c74739da651b164bd1a6fe604e0
19add8364fcdf5aac5818611a1300f77c3884736
refs/heads/master
2020-09-07T01:44:57.936240
2019-11-09T09:41:25
2019-11-09T09:41:25
220,619,231
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
from enum import Enum,auto class SELECTION_MODE(Enum): POLYGON=auto() BOX=auto() FREE=auto() NONE=auto()
[ "mohitmaan1994@gmail.com" ]
mohitmaan1994@gmail.com
e6ef645851a1012fbf4693d69386c2ecca90a1ee
1fe36e0fe79422a9ef6ee2448df154bada2aed2a
/ProgrammingLesson_06/factorial.py
0e573d1ff5754a2b9ef36cc35987ddab82bd0196
[]
no_license
westondlugos/Dlugos_Weston
dc4acf3c6e36950711bb9807b55269aff67cc735
af01ca81a0ffa2be9e4184638d533519d97667e5
refs/heads/master
2020-04-06T20:13:18.734978
2017-05-10T17:24:45
2017-05-10T17:24:45
67,241,559
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
num = int(input("Input a number:")) factorial = 1 for i in range(1,num): num = num * i print("The factorial is ",num)
[ "dlugosweston@gmail.com" ]
dlugosweston@gmail.com
b3293d311675fab17255febd8777666c78c11a7c
42d3e676cb9da325712dd54001a8fdda1661d1e1
/OutOfAfrica.py
8459020897373768d0f5f6ef2277657bb5c6f9b3
[]
no_license
janaobsteter/msprime
5f139f2b101e7246e53a6d0baaff1f28cf1dfa6c
e96ae69720100d544f69384d19a28fcca07a9c1d
refs/heads/master
2022-08-03T11:35:51.759317
2020-05-25T07:59:49
2020-05-25T07:59:49
266,719,099
0
0
null
null
null
null
UTF-8
Python
false
false
2,470
py
import math import msprime # First we set out the maximum likelihood values of the various parameters # given in Table 1. N_A = 7300 N_B = 2100 N_AF = 12300 N_EU0 = 1000 N_AS0 = 510 # Times are provided in years, so we convert into generations. generation_time = 25 T_AF = 220e3 / generation_time # T_B = 140e3 / gener...
[ "obsteter.jana@gmail.com" ]
obsteter.jana@gmail.com
6d66a58fa96c0910398e505ea967743ccd96bbe5
32eb3faed96bc66a002da4a3198c84060d4000a1
/WyComment/wcPic.py
57ef11f0d62e7bf560d5bc674a056fbd11012980
[]
no_license
lifei1229/MySypder
ca12e81e940168def6b3f48e105a8a228a064638
276fd3de40ff0cb9ca3824a671b2a7dc6ffdd857
refs/heads/master
2022-11-15T16:41:36.671550
2020-07-14T06:30:45
2020-07-14T06:30:45
279,460,858
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
# -*- coding=utf-8 -*- import wordcloud import jieba # # 构建词云对象w,设置词云图片宽、高、字体、背景颜色等参数 # w = wordcloud.WordCloud(width=1000, # height=700, # background_color='white', # font_path='msyh.ttc') # # w.generate('从明天起,做一个幸福的人。喂马、劈柴,周游世界。从明天起,关心粮食和蔬菜。我有...
[ "282314528@qq.com" ]
282314528@qq.com
2877021577a8e80f26f5b6a242fec240560aa030
42f6f9f60c4da1a753d9a9d4565df9e79d0f5586
/serverstats/__init__.py
01882dc306b79058a6e1c5ec4cce59e938a7b63c
[ "MIT" ]
permissive
deep-compute/serverstats
2ef1c408198c23851946104d1d69242e1cbfdf19
3de8932492bc4ab9e8c6942a4e5863cad1349d11
refs/heads/master
2023-08-05T01:11:06.399284
2021-09-24T03:34:24
2021-09-24T03:34:24
119,831,763
0
3
MIT
2021-09-24T03:34:24
2018-02-01T12:17:15
Python
UTF-8
Python
false
false
74
py
from .serverstats import get_system_metrics from .serverstats import main
[ "janardhana@deepcompute.com" ]
janardhana@deepcompute.com
34d4e54242d87c835db20f12b83a40b5ef0a31d2
0c24fcbf802ed1881abdfbf14b867d4545237602
/students/y2336/practical_works/Zhilin_Ilya/sportapp/sportproj/forms.py
c2bd944d7b5f56d7a645bfb97b07c0de3d0dac4d
[]
no_license
TonikX/ITMO_FSPO_Web_Django_2020
d435d2984778d668f6d04c86d78c991b3f390c1a
267141d6e4ee231ca689c8929f3db25fef15a5fd
refs/heads/master
2023-01-18T17:38:05.964240
2020-11-20T18:08:57
2020-11-20T18:08:57
245,081,715
2
139
null
2023-04-25T18:54:50
2020-03-05T05:59:54
Python
UTF-8
Python
false
false
3,228
py
from django.contrib.auth import get_user_model from django.contrib.auth.forms import UserCreationForm from .models import * from django import forms class UserRegisterForm(UserCreationForm): class Meta: model = get_user_model() fields = ['username', 'email', 'password1', 'password2'] def save...
[ "gameinsir@gmail.com" ]
gameinsir@gmail.com
e3e1eedf8af143994b6a00eb159ad02be144eeb3
5c6782753d8ca5c7c4d14b1d66f94fcfa6b9a805
/photo-editor.py
efb13005d53092786719b3f4829bac2ef19d6006
[]
no_license
kavyashree-205/Photo-Editor
dda87f80d8d7c56a5b1c432f64483163022db052
2c2b8bdb6dafae93887e3a6c9780d44b89aa7156
refs/heads/main
2023-07-18T12:08:04.963452
2021-09-06T10:57:32
2021-09-06T10:57:32
377,482,980
0
1
null
null
null
null
UTF-8
Python
false
false
4,851
py
from tkinter import * from tkinter import filedialog from PIL import ImageTk, Image,ImageEnhance,ImageFilter import random import os root=Tk() screen_w=root.winfo_screenwidth() screen_h=root.winfo_screenheight() root.geometry("%dx%d" %(screen_w,screen_h)) root.title("Photo-Editor") def select_file(): ...
[ "noreply@github.com" ]
noreply@github.com
915c6ba879c889d4ffc33bfdebdff8a9cca2b574
6ee9362ed657f7684685ae0619040e73efb5df92
/backend/client/admin.py
f6597ef80f1afe1241879210ecf93a3f8f128a86
[ "Unlicense" ]
permissive
sebaskun/budget_app
8f616f6dab6725603633646f6962c519337e18f4
08d67be17a512d91ee49a4e9088c32392410be46
refs/heads/master
2023-01-20T02:08:31.171833
2020-11-30T23:52:38
2020-11-30T23:52:38
317,371,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
# # -*- coding: utf-8 -*- from __future__ import unicode_literals # # from datetime import date # # from copy import deepcopy from django.contrib import admin from django.utils.html import format_html from easy_thumbnails.files import get_thumbnailer from easy_thumbnails.exceptions import InvalidImageFormatError # i...
[ "gerardosebastian@hotmail.com" ]
gerardosebastian@hotmail.com
5df52b43485ee7da1f55a2b3596bb081d1dab826
adeb26014b0ba7a9d5cbaf8019cb80f7471d34ce
/CaptchaCreate/CreateCaptchaV2.py
c0ba8276da5d60271e981b4c531c2c3d999da22e
[]
no_license
miciny/MachineDeepLearning
36f74a215a2837c3a044b074bacb0323f72c8ae4
3d5c5832ef63d85f8141ce8b489c5576c0b138b5
refs/heads/master
2021-07-24T05:43:56.450353
2021-07-20T10:40:14
2021-07-20T10:40:14
224,813,793
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
from captcha.image import ImageCaptcha # pip install captcha import random from Config import characters, char_num, img_w, img_h import os # 验证码一般都无视大小写;验证码长度4个字符 def random_captcha_text(char_set=characters, captcha_size=char_num): captcha_text = [] for i in range(captcha_size): c = random.choice(cha...
[ "15201114041@163.com" ]
15201114041@163.com
f5bdb35b232eabf76f6685808f87bd5839a6ca32
392651974f2e6d006618b64aac6cc2613ba01883
/accounts/admin.py
5601dfa75500f8614dcb52e35fbc4181ec32ee53
[ "MIT", "Apache-2.0" ]
permissive
davidjrichardson/uwcs-zarya
654266dc67deaacd6dba2e390c6dbc85a9525d83
ab0a94540bf496531dd6b13fe7d313badc4a353c
refs/heads/master
2022-09-29T12:58:14.542328
2021-03-10T17:07:06
2021-03-10T21:24:29
63,612,819
7
6
MIT
2022-08-30T20:57:36
2016-07-18T15:04:54
Python
UTF-8
Python
false
false
1,088
py
from django.contrib import admin from django.contrib.auth import get_user_model from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from accounts.models import CompsocUser, ShellAccount, DatabaseAccount, ExecPlacement, ExecPosition class CompsocUserInline(admin.StackedInline): model = CompsocUser ...
[ "david@tankski.co.uk" ]
david@tankski.co.uk
78d431c41fded3649217fcd69d880a6e9465e897
ccd9289332e86173746230da4d433ed856172dad
/DB CONN/demo.py
d8374a4f0efe85be9e315c5ecbd3507f98b5df4d
[]
no_license
himanshu98-git/python_notes
c926d23fb44e47aecf45644ecfa1b314f4e67f0c
b888f0fc5a2e8fae4b8b0505a43d0810a6d787cd
refs/heads/main
2023-03-01T07:11:55.448460
2021-02-12T06:37:26
2021-02-12T06:37:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
from dbapi import Database user=Database( dbkind="local" dbpath="mypath.db" dbmodule="sqlite3" )
[ "himanshu@segnotech.com" ]
himanshu@segnotech.com
40bbabc22714444c51818c4b831b374ce28694a1
a1a9ea6b5a4242fd7c5d3c279d2b72921cc63665
/framework/rce/client/cred.py
fa328dbcbb17b80088658a5ea3b717cc3b6f4172
[ "Apache-2.0" ]
permissive
tuxido-feynman/rce
3b69a4c74cfc4c8225020aa5bce6b6e941da6a36
d8b59f16f8f63b6b9979840134c82c66a0d26261
refs/heads/master
2020-11-30T16:18:12.463767
2013-03-05T20:47:07
2013-03-05T20:47:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # cred.py # # This file is part of the RoboEarth Cloud Engine framework. # # This file was originally created for RoboEearth # http://www.roboearth.org/ # # The research leading to these results has received funding from # the E...
[ "dominique.hunziker@gmail.com" ]
dominique.hunziker@gmail.com
57724e842c451f0a91269ac27c38dc42f2937697
9c1966721f83c63e46788509951c273e2f8f9491
/Practice/linkedlist/duplicate.py
6a2706f0a5bc7e469ee663f9eb722c40dfe38ea6
[]
no_license
maiman-1/hackerrank-dump
daba30e81e6fdb118ed9b77dcc9393846468a17c
e499c923a8768efafde18e65c055c2ec8b219014
refs/heads/main
2023-06-03T12:30:17.827010
2021-06-27T04:22:09
2021-06-27T04:22:09
375,561,273
0
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
#!/bin/python3 import math import os import random import re import sys class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None class SinglyLinkedList: def __init__(self): self.head = None self.tail = None def in...
[ "noreply@github.com" ]
noreply@github.com
4007ae7498721dbde2ee84346b94e2765a92e869
dc8d7f3eceaa4012eb92dd1005583dd32c02e2b0
/emotionClassifier.py
6f84d28ba74aeddd7b3315d7837edd35c3d44249
[ "MIT" ]
permissive
HaiderShawl/emotion-classifier
135fbbe30f5bc3a6cb4fd47ad143010c171399cd
43a9c56cdfbb9b935f96dc2eada206107a680c17
refs/heads/master
2023-06-24T05:11:17.300187
2021-07-27T13:52:11
2021-07-27T13:52:11
389,902,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
import tensorflow as tf import numpy as np model = tf.keras.models.load_model('models/saved_model_cnn/my_model') class emotionClassifier: def __init__(self): pass def predict(self, img): class_names = ['disgust', 'happy', 'neutral', 'sad', 'surprise'] img_path = 'images/validation/su...
[ "34603371+HaiderShawl@users.noreply.github.com" ]
34603371+HaiderShawl@users.noreply.github.com
6956dea4c2afd5c4f50edf0656d50cc5e17083af
c4e96abed9d294aa40209f78e6c81654c89a606c
/Descriptors/lbp.py
bbf3326ab790ae07a12f068bad8499009fd3aba6
[]
no_license
gadese/INF6804_code
2f882779b681e06fbe17d4c2c6abdde740d99f2b
6f446607fef9626cb1f016cd612a65f9a5ee8fa1
refs/heads/master
2020-06-13T18:52:21.598024
2019-07-02T00:17:15
2019-07-02T00:17:15
194,755,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
import cv2 import numpy as np import matplotlib.pyplot as plt from skimage.feature import local_binary_pattern class LBP: def __init__(self, points=8, radius=1, method='uniform', show_images=False): self.points = points self.radius = radius self.method = method self.show_images = s...
[ "gabriel.descoteaux@polymtl.ca" ]
gabriel.descoteaux@polymtl.ca
883e4a0ba5ec6d3093ea2601e6c96210ee7737f7
b56b18b8ab3e60be881b2a8ec24fbf6a1c884bc7
/.local/lib/python3.9/site-packages/unfurl/vendor/toscaparser/elements/entity_type.py
17ac0582b36a45c01f2db27b982a655be4d97206
[]
no_license
jpravder/newDomainAutomate
601906e5f4fe537b3b5905960d68dd04614f30a5
31e5bf9df261f44b1a06f8bbd0bba7944bc60bf7
refs/heads/master
2023-07-28T11:47:06.523414
2021-09-13T15:37:17
2021-09-13T15:37:17
406,030,103
0
0
null
null
null
null
UTF-8
Python
false
false
7,154
py
# 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 writing, software # d...
[ "jpravder@gmail.com" ]
jpravder@gmail.com
19615e4337da149ca2ed1b253545b7f5e66843d1
4f0beffcf200dd0b42cc192a4a2b9c2d0f0a2a42
/rewrite/dsl/_dyacc.py
c7de0002f3dc35150c1a3e729ff2b20f0947c9d7
[ "BSD-2-Clause" ]
permissive
rebcabin/pyrewrite
d11a2385920a8b375e9f3f7a4cc81ed8a178cf28
226d139ff361b095d46a58c65bc345cd18443008
refs/heads/master
2020-03-26T00:09:40.835150
2013-02-13T16:46:24
2013-02-13T16:46:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,270
py
# /home/stephen/continuum/pyrewrite/rewrite/dsl/_dyacc.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = 'o\xdc).WL\x02\xb9\xbb\xdb=\xab\x84j\xd8l' _lr_action_items = {'NAME':([0,2,3,4,5,6,7,8,9,12,13,14,15,16,17,18,19,20,21,22,24,25,26,27,28,29,31,3...
[ "stephen.m.diehl@gmail.com" ]
stephen.m.diehl@gmail.com
0803491821fc33599e8a004e6ed827d160ebce56
43d626696ddfca269a50a83a31626d7a79359e58
/code/parallel_compute_working.py
85f35e3a9a34c1253eafe3ab2e280c93022ba1fe
[]
no_license
vishalbelsare/v-causal-snps
9064caee1649f979793e07f347ff1999e7abae95
303fcf8a6d34460a7fb014f361c881e4108ee975
refs/heads/master
2021-06-04T14:23:22.456458
2016-08-23T21:37:33
2016-08-23T21:37:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,610
py
__author__ = 'jlu96' import multiprocessing as mup import time import sys import os # class partitionThread (threading.Thread): # def __init__(self, function, args, input, input_index, threadID): # threading.Thread.__init__(self) # self.threadID = threadID # self.function = function # ...
[ "jhlu@princeton.edu" ]
jhlu@princeton.edu
66d7c83cc90b48877c3a5ae9fb98efdcd856a153
2559c602189a44b34f0c7597aab376ed20b4ccc7
/HandwrittenNumeralRecognition/venv/bin/easy_install
c04a3f1e6242d9a4b9f8bd4f1cff6a4b298d64f3
[]
no_license
TylerZhang0423/Spring-learning
6717022cc30f52e1702b827c4ab0a27299612e42
046b6ca981a2475550838cc3bdcde13d493c3958
refs/heads/master
2022-07-14T16:07:39.554092
2021-01-04T15:24:43
2021-01-04T15:24:43
187,480,444
0
0
null
2022-05-20T21:24:20
2019-05-19T13:30:04
JavaScript
UTF-8
Python
false
false
470
#!/Users/tyler/Desktop/Spring-learning/HandwrittenNumeralRecognition/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub...
[ "516492597@qq.com" ]
516492597@qq.com
c419e9d337f9d3c695e082fe1590742f793892c0
0bae9cba9e3a326f592deaa386892b8e2755c5c2
/modified_fib.py
4042d3ede362c8e8f579d848229cff78002f09e6
[]
no_license
divya84/HackerRank
d208f4168c24b84e0f9f132a6c0c476c5b112bdf
7ae35083c252e52f3b1ecee42fb75415f2f5180b
refs/heads/master
2020-06-14T01:51:55.457654
2016-12-09T10:21:30
2016-12-09T10:21:30
75,525,760
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
""" t_(i+2) = t_i + (t_(i+1))^2 """ import sys fibmem = [] def fib(n): fibmem.append(fibmem[n-2] + (fibmem[n-1] ** 2)) return def begin_fib(f,s,n): fibmem.append(0) fibmem.append(f) fibmem.append(s) for i in range(3,n): fib(i) return data = sys.stdin.readlines() s =...
[ "divya@unknown-b8-e8-56-04-4a-da.lan" ]
divya@unknown-b8-e8-56-04-4a-da.lan
03a07706818d574810ec935db21181a04033a556
fdd225853f42b361e4aca2e74321d7d2f130fd87
/05_tuple.py
3e7f56e3917fa1c754bd20d2acea1b16f8250333
[]
no_license
thanhtungittlu/PythonTutorial
a54213082eab00f33a95820730ec0eb96b8b6dd4
91d12c30d253a3934ae9fbf38e3f54f680366c54
refs/heads/master
2023-07-05T15:06:02.492488
2021-08-12T06:13:45
2021-08-12T06:13:45
395,214,325
0
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
# Được sắp xếp theo thứ tự và không thể thay đổi, được viết bằng dấu ngoặc tròn mytuple = ("apple", "banana", "cherry") thistuple = ("apple", "banana", "cherry", "apple", "cherry") print(thistuple) onetuple = ("apple",) # khi khai báo tuple duy nhất 1 phần tư thì cần thêm dấu phẩy cuối cùng print(type(onetuple)) # tu...
[ "tungteobeng357@gmail.com" ]
tungteobeng357@gmail.com
f52905480335777a8840eb382c0eff252160d18a
ad8d19a85bb3a3c43d75aa3951a6638dc1b9dbbd
/05-marcos.py
5782fdc7664bdd282d3ff84a194f2fc0e0ff9d82
[]
no_license
Peyo83/TKinter
3fc0446e45b5391812c2087ef5ed57b2ae797637
3af38b06d5e3c4cf4bede5db917cbeaa3422b704
refs/heads/master
2023-01-12T01:24:02.820265
2020-11-09T23:04:13
2020-11-09T23:04:13
301,496,877
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
from tkinter import * ventana = Tk() ventana.title('Ventana de Peyo') ventana.geometry('700x700') marco_padre = Frame(ventana, width=250, height=250) marco_padre.pack(side=BOTTOM, fill=X, expand=YES) marco = Frame(marco_padre, width=250, height=250) marco.config( bg='red', bd=5, relief=RAISED ) marco.pa...
[ "jpvase@gmail.com" ]
jpvase@gmail.com
77764321c46b85ea547f1665e7b53ed0b2e9e1d9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/468/usersdata/301/111541/submittedfiles/Av2_Parte3.py
a5ede4cca77b944784daf1e730e8b2f44e7d0ec2
[]
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
183
py
# -*- coding: utf-8 -*- a=[] m=int(input('a quantidade de listas: ')) for i in range(0,m,1): int(input('digite os elemnetos: ')) a.append(m) c=sum(a) b=len(a) print(a)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d9334e08d0c32f31dc68306456593e455d058a67
a21180e3ae400292a30e6ab31b32bea26f71421c
/SA_DQN/gen_config.py
6da5760be5ec004d44a03abfc957122ba74f9685
[]
no_license
skomatin/CSE257_SA_MDP
8fe63a8e6f9e2eb2591ea32d499c7856a7eb749d
3d7178eacc7b55ab15fc9013ed43e0ea68c311ac
refs/heads/master
2023-05-07T06:23:05.231499
2021-06-03T04:33:07
2021-06-03T04:33:07
373,377,808
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
import json import sys with open('defaults.json', 'r') as f: d = json.load(f) with open(sys.argv[1]) as f: old = json.load(f) new = {} def search(d, u, new): for k in u.keys(): if d.get(k, {}) != u[k]: if isinstance(u[k], dict): new[k] = {} new[k] = search(d.get(k, {}), u[k], new[k])...
[ "skomatin@ucsd.edu" ]
skomatin@ucsd.edu
5fa48d23d4fd552882c13a476edc2c95e9cca3c5
4b30d3e9076ef40165a6295a184646d3fdd2ad55
/python_skola/Beetroot_Academy_Python/Lesson9/lesson9_task1_2.py
e06a4ea81b2f77963b09e863cc31c2c6f343aa5e
[]
no_license
markuswesterlund/beetroot-lessons
67ea58677725bc75dd422bbb8b1f4ef304d1bf29
9c164ceb9273ac127fa1f29878e8a6187604300a
refs/heads/master
2023-02-23T03:49:02.228950
2021-01-31T11:16:23
2021-01-31T11:16:23
334,636,605
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
with open("myfile.txt") as file_object: print(file_object.read())
[ "westerlund@hotmail.se" ]
westerlund@hotmail.se
18ca4fe49c3a373eff2d58cd4615322d002593fb
d3efc82dfa61fb82e47c82d52c838b38b076084c
/crossmarketetf/crossmarket_redemption_HA/YW_CETFSS_SHSH_044.py
51dcf600f3979f6907a6dc09c820765634ed9b6c
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
6,671
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test") from crossmarketetf.cetfservice.cetf_main_service import * from crossmarketetf.cetfservice.cetf_get_components_asset import * from crossmarketetf.cetfservice.cetf_utils import * from crossmarketetf.cetfmysql.query_ce...
[ "418033945@qq.com" ]
418033945@qq.com
0f505cac33fd32fb549df9455005938e8b0736e7
86e45d6f82210888601a8063c4a491a36c886b60
/channels/management/commands/runserver.py
34154b95ace15eaa6c7c0a54bb444472e8d09fae
[ "BSD-3-Clause" ]
permissive
wengole/channels
68dfb1776f05bd5e8bafd82299b6274fbf932f4e
21b54e7db8f08a61af934a56d6832a3065d37676
refs/heads/master
2021-01-15T15:54:04.794407
2015-11-07T10:49:47
2015-11-07T12:47:26
45,731,612
0
0
null
2015-11-07T10:15:27
2015-11-07T10:15:27
null
UTF-8
Python
false
false
1,851
py
import django import threading from django.core.management.commands.runserver import Command as RunserverCommand from django.core.management import CommandError from channels import channel_backends, DEFAULT_CHANNEL_BACKEND from channels.worker import Worker from channels.adapters import UrlConsumer from channels.inter...
[ "andrew@aeracode.org" ]
andrew@aeracode.org
09f49e951dafe19531bc7f19fec90273c76d9c1a
b1951e5b58e78a41040c896b997249d0268e498d
/platter/test.py
573269af350e4f941bea2a5e04e388ea962599e7
[]
no_license
wnxntn/Processing
6d6931e23ddb6cad01db51e17b753bc53b1722cf
cebafde98b0e2b3d4af64057660b0d9228c079ca
refs/heads/master
2020-03-06T15:54:42.587606
2018-08-09T13:48:02
2018-08-09T13:48:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,338
py
import datetime import math canvas_size = 1400 #COLOR_LIST =[[233, 217, 229], [129, 176, 178], [168, 193, 200], [151, 166, 117], [234, 155, 103], [255, 220, 127]] COLOR_LIST = [[315, 27, 88], [193, 23, 72], [356, 19, 71], [172, 63, 78], [192, 82, 33], [40, 4, 86], [182, 24, 60], [115, 34, 87], [77, 22, 65]...
[ "wenxtn@gmail.com" ]
wenxtn@gmail.com
99bbc26ac8f552ab3dd7d43cdc102e73490dcd3e
1a276f7bc9f0a70f706468cb8862e4d21a1af35c
/app.py
f896b9ca5711046d0dac6ea873b393ab45abb1ed
[]
no_license
RanaEmad/fyyur
002d540841d7f02cf6fde061fce015f90a136e94
83a06b55c1d6149ac98acb0f6d096facf0dd209f
refs/heads/master
2022-11-30T14:32:59.290668
2020-07-18T15:20:11
2020-07-18T15:20:11
280,128,979
0
0
null
null
null
null
UTF-8
Python
false
false
14,511
py
#----------------------------------------------------------------------------# # Imports #----------------------------------------------------------------------------# import json import dateutil.parser import babel from flask import Flask, render_template, request, Response, flash, redirect, url_for from flask_moment...
[ "rana3emad@gmail.com" ]
rana3emad@gmail.com
15cab37a0fff674518dd717416107800a6969643
140473b18b73ffdcc3c0b4f27c7273b68ea6cd26
/!Tools/Wind_Python-master/version2/begin_Store_3Month_data.py
410a9a69d292a13bfb439d538a52b3f7948ba3be
[]
no_license
ccliuyang/-Ultralpha_Quant
f36913deb4a1455ca9a64e5d3a0a2076e4cb023d
9076c2c542fc988d64f8a31b6366e98893d7fcb9
refs/heads/master
2020-07-04T16:25:21.000969
2019-07-26T04:21:52
2019-07-26T04:21:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,241
py
# -*- coding:utf-8 -*- #################################################################################################################### ''' 从wind采集原始数据,存储到mysql中 ''' #################################################################################################################### import pandas as pd from WindPy i...
[ "yuanzhang2520@gmail.com" ]
yuanzhang2520@gmail.com
849d46356422a097ecc7263e58785eb248ccc1e4
a5d145d4802c6317fa012eb104f7e9724e4bb0ef
/preventivo/models.py
787f6e7945ab1c88ca7d1fc201e60b188cbc4e06
[]
no_license
Dandresfsoto/uptc
a9794f7ae40a5e86d4e7ad0ccf927b0d20c7f43d
b09dc3227b07a60031ec0941521d21228a65de6e
refs/heads/master
2021-05-29T12:45:31.453571
2015-07-28T22:09:12
2015-07-28T22:09:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
from django.db import models from inventario_equipos.models import InventarioEquipos class TipoMantenimiento(models.Model): nombre = models.CharField('Tipo mantenimiento',max_length=100) plan = models.FileField('Plan', upload_to='Plan/',blank=True) def __str__(self): return self.nombre class Acti...
[ "dandresfs_04@hotmail.com" ]
dandresfs_04@hotmail.com
71dc1640369562129756b43ba747e360d7d76480
d0e5ce6c1d6271cb2e3de985a8fc248c07807134
/Assignment1/classifiers/linear_classifier.py
7f9a1e9176ea26107bf8ccd8209ac871b8372fd6
[]
no_license
wjj19950828/CS231N
3dd65027500a26fc30a17b753c6243a043ee2662
d95defbaa5ee8e485503915e73fcee51641776b1
refs/heads/master
2021-04-15T03:56:06.788688
2018-03-24T11:45:50
2018-03-24T11:45:50
126,593,745
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
import numpy as np from classifiers.linear_svm import * from classifiers.softmax import * class LinearClassifier(object): def __init__(self): self.W = None def train(self,X,Y,lr = 1e-3,reg = 1e-5,num_iters = 100,batch_size = 200,verbose = False): #verbose: (boolean) If true, print progress during opt...
[ "noreply@github.com" ]
noreply@github.com
dfe2f10744fe04ac4a7fb141044fee8bc33d08e9
6fa4ac3e02b21461ac33e7ae594bfac5e0951fcf
/prgm.py
835beacf9a47b64580286caace9a0cca2ac9b98d
[]
no_license
AbhayPotabatti/Industrial-training
0d4fe13d3d695a81777fcb83bb6db6e07d046077
175857d81df1f60f99097e675a31a33fa0e87142
refs/heads/main
2023-08-08T01:09:09.739298
2021-09-14T09:18:10
2021-09-14T09:18:10
394,927,243
0
1
null
null
null
null
UTF-8
Python
false
false
38
py
a = 5 print(a, "is of type", type(a))
[ "abhaypotabatti2463@gmail.com" ]
abhaypotabatti2463@gmail.com
eba247150fe34f0e57202dfc505b3462f8305e55
6a3795f342a5fce20392b11e640d87ba23bc6815
/request.py
ff950f1fa8fbe2240631dc7c29a7bcc97c487b2d
[]
no_license
d2015196/PythonTutorial-
430cdda3cc3ea84d7e0ca72fb8c53ff8b33cc76d
7a3065f29565430c98a556579718c597f1cbb486
refs/heads/master
2021-01-20T20:45:19.669659
2016-06-19T17:44:09
2016-06-19T17:44:09
61,142,854
1
0
null
null
null
null
UTF-8
Python
false
false
26
py
Search = "Kim Kardashian"
[ "dromo@princeton.edu" ]
dromo@princeton.edu
3f1a3888b9c532422c71fdfc942de382eb312628
41bbe8dc8f4782234a6216bee33769f7e91ddfbb
/plots/plot_localisation_poses.py
6c3ab4125bbc91ff90145955f365ec6a62b778bf
[ "MIT" ]
permissive
aziaami/python-tools
a77c5c382da8b2b149200b7a9f7ee95b5b726a09
81e5103a5357ccc4daef97d87a6dd4633f0d72c5
refs/heads/master
2021-01-10T13:21:46.667349
2017-01-25T14:07:30
2017-01-25T14:07:30
54,965,525
0
0
null
null
null
null
UTF-8
Python
false
false
2,338
py
#!/bin/python # Script to plot global localisation_poses import matplotlib.pyplot as plt import os import random # ----------------------- # constants HOMEDIR = os.environ['HOME'] # ----------------------- def random_color(): colours = ['red', 'green', 'blue'] return random.choice(colours) def get_color...
[ "aamiraziz7@gmail.com" ]
aamiraziz7@gmail.com
829809559eb2926f7a158d13d371955bacf5d0f5
8c6ed76ad88c3505c944bb1a167383c3b0ad177c
/setup.py
612e01eb7c3c03da2be02dfc43e11de4d4487f33
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
christianwgd/django_hockeydata_api
cf70055c164145f2126c02ec26db7fedacbb4c06
975b4a9ff0382661c9bd029be8e32239b811415b
refs/heads/master
2023-02-12T13:33:37.924762
2021-01-10T18:15:46
2021-01-10T18:15:46
326,971,169
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name='django_hockeydata_api', version='0.0.5', description='A Django package for simple use of Hockeydata Javascript API', url='https://git.wgdnet.de/cwiegand/django_hockeydata_api...
[ "cwiegand@wgdnet.de" ]
cwiegand@wgdnet.de
cddf64d92aa8cf7375820e4d294e8ad662c33b1c
ab3bdcb08ee021a50221ad1e06d26a56fe2386eb
/venv/Scripts/pip3-script.py
280bba4e4e3d0501e2676062b231aef5c2ede121
[]
no_license
HASKADOG/xml-parser
c8b8f02a55730f240a7918c25db322942fa92adb
1b7f0a17f25243f7a94a921169650095c784fde3
refs/heads/master
2020-08-22T14:53:24.614097
2019-11-06T16:30:51
2019-11-06T16:30:51
216,264,211
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
#!C:\Users\Cplasplas\PycharmProjects\untitled\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "cplasplas16@gmail.com" ]
cplasplas16@gmail.com
993b9599285710ce71bb538fc66b1ded0a33ff4e
da5f8044078427e3c8e94bfa6429ecf27594efc5
/kbcfinal.py
e8a28a36e41dc6094c96e2f9321d412703c808a1
[]
no_license
diwakar17/python_kbc
aa651e24c1b9c7febcd4663eaabaa30e2dedc46f
1e705c537d8e90fb6b6a4332bbb407e4daa7fcd9
refs/heads/master
2021-07-09T22:29:57.580426
2017-10-09T04:12:26
2017-10-09T04:12:26
106,235,109
0
0
null
null
null
null
UTF-8
Python
false
false
1,994
py
question_list = ["what is the capital of India","who is the prime minister of India","who is the president of India","who is the home minister of India","who is the chief minister of New Delhi","what is the capital of MP","who is the president USA","which continent do the red color present on the olympics logo rpresent...
[ "diwakar17@navgurukul.org" ]
diwakar17@navgurukul.org
0f506c20beb65be6f34ecb5fcb1bcacae5c97864
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class2922.py
8052c4b482d939ce0e7613f8c75fb9223b0a120a
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,299
py
# qubit number=4 # total number=42 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
2816391722086df3dfeffc573cf0446551c2149b
4bed9030031fc99f6ea3d5267bd9e773f54320f8
/sparse/repos/MaayanLab/clustergrammer-widget/setup.py
0dd34fb3172e27c6f17267a1c21facac86ecae9f
[ "BSD-3-Clause" ]
permissive
yuvipanda/mybinder.org-analytics
c5f4b939541d29727bc8d3c023b4d140de756f69
7b654e3e21dea790505c626d688aa15640ea5808
refs/heads/master
2021-06-13T05:49:12.447172
2018-12-22T21:48:12
2018-12-22T21:48:12
162,839,358
1
1
BSD-3-Clause
2021-06-10T21:05:50
2018-12-22T20:01:52
Jupyter Notebook
UTF-8
Python
false
false
5,515
py
from __future__ import print_function from setuptools import setup, find_packages, Command from setuptools.command.sdist import sdist from setuptools.command.build_py import build_py from setuptools.command.egg_info import egg_info from subprocess import check_call import os import sys import platform here = os.path.d...
[ "yuvipanda@gmail.com" ]
yuvipanda@gmail.com
5d1998bbec3d01a7ea96753603dca7b207e7ad22
a97a7cdff02d36a32929846b8e5394e3933e65a9
/test/batch3/qw_ampt_v1_04.py
5757ae62c19e8135fb274af1aecb0b16200d5a8b
[]
no_license
EnrichedWillium-237/AMPT
e0e5298329eb299c7526f4f71d15a50d9eb97d80
52923e9bb4aa6ac8b469be4741939ef1e6b6bfff
refs/heads/master
2021-09-08T17:49:34.119537
2018-03-11T15:25:33
2018-03-11T15:25:33
112,527,893
0
1
null
null
null
null
UTF-8
Python
false
false
28,830
py
import FWCore.ParameterSet.Config as cms process = cms.Process("AMPT") process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.load('Configuration.StandardSequences.EndOfProcess_cff') process.load('Configuration.StandardSequences.Generator_cff') p...
[ "will.j.mcbrayer@gmail.com" ]
will.j.mcbrayer@gmail.com
634f73c7835182463cd8934a18effee0b17ffd4c
68d62d9b2521c9680d4381354c5a4cf4c302b997
/Curso_em_Video_Exercicios/ex069.py
4a7b2ac25b63f8aaa8aa8d61304933564a4966bf
[ "MIT" ]
permissive
MateusCohuzer/Exercicios-do-Curso-em-Video
1b4961c9db750ac10457061df19fe861b44e52b5
879cbb53c54ba226e12d9972bc28eadcd521fc10
refs/heads/main
2023-02-15T00:58:35.322766
2021-01-11T17:53:01
2021-01-11T17:53:01
322,418,431
1
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
#Programa pra ler sexo e idade de varias pessoas, o programa prgt se o usuario qr continuar, mostre ao fim: #a) qnd tem + de 18, b)qnts homens foram cadastrados, c)Mulheres com - de 20 c = h = m = 0 while True: print('\033[1;33m-' * 30) s = str(input('QUAL SEU SEXO? ')).strip().upper()[0] if s not in 'MF': ...
[ "matebatichotti@gmail.com" ]
matebatichotti@gmail.com
73c6fbe202adb37cfaa60701dbf155423a36249b
a775bb0ef2347a91aa1e6236f0e6eae6512a84ad
/src/robosub2019/armer.py
cbf0ec2d09da56ca925e8bb07392e777ba257059
[]
no_license
Tartan-AUV/tartan-sub
66376e163681bd7dac47c62e41669c0c842badc0
0a05156a887cdd6467813a358973cc23e6e55227
refs/heads/master
2020-04-06T16:45:04.396871
2019-10-19T17:46:37
2019-10-19T17:46:37
157,632,649
0
4
null
2019-11-03T20:26:47
2018-11-15T01:10:48
Python
UTF-8
Python
false
false
855
py
#!/usr/bin/env python import rospy from std_msgs.msg import Bool class Armer(object): def __init__(self, run_config): self.config = run_config self.pub = rospy.Publisher(self.config.arming_topic, Bool, queue_size=1) self.sub = rospy.Subscriber(self.config.arming_topic, Bool, self.callback)...
[ "you@example.com" ]
you@example.com
0b35459bca9eb2fc7dc2c4bd70f4010c359fd492
de41f8d8bd3bd3a84aece91a26658bd8792b472f
/python-web/app/models.py
ef30f8bf6665b1cce7acd36609c52aa370e2ce22
[]
no_license
yanglinzhen/python-web
5d3a0accf5b91d1e8f4765efd91821ca8a75ee60
57aa5d717e8efacc6d2b3a4a5169093d48938641
refs/heads/master
2020-05-04T21:28:45.610484
2019-04-22T09:43:22
2019-04-22T09:43:22
179,477,687
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
from . import db from werkzeug.security import generate_password_hash, check_password_hash class User(db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(64), unique=True, index=True) password_hash = db.Column(db.String(128)) @property ...
[ "yanglinzhen@outlook.com" ]
yanglinzhen@outlook.com
10dc28f9618ba9669fbf73bb52f0188b41ca1653
4bc2d855558ccb962991f997e9779919031687dd
/capstone/causalmodel/migrations/0026_suggestedintervention_is_priority.py
fa89dff57a9a21ae61b0079b3a2bd148a737e427
[]
no_license
jmblontoc/Likha-Capstone
80081e44b7ad6457eb776432e623c6db8b7a17e2
e1c32911b58cd1419c8e1a554ac32210456d201d
refs/heads/master
2022-12-10T03:26:32.946638
2018-12-09T04:33:10
2018-12-09T04:33:10
134,726,142
0
1
null
2022-11-25T23:52:42
2018-05-24T14:21:36
Python
UTF-8
Python
false
false
413
py
# Generated by Django 2.1b1 on 2018-11-01 11:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('causalmodel', '0025_suggestedintervention'), ] operations = [ migrations.AddField( model_name='suggestedintervention', ...
[ "37819032+jmblontoc@users.noreply.github.com" ]
37819032+jmblontoc@users.noreply.github.com
6c6fb590e49fc7dab4189222434b4e59bfcea644
efd34fa270b9d421fcf579fe1ee4c348b12eaa74
/blog/migrations/0006_auto_20190523_0807.py
b462486b7b472fde33a62835637f4d4ab3cd63ac
[]
no_license
diwap/portfolio
576e34385e17b33c67c63cf6d5e57c507f9c2e7a
b1f51ad0fde8cec2d753a675709a9d2d270afbdd
refs/heads/master
2023-04-29T03:57:42.279994
2019-06-11T05:45:03
2019-06-11T05:45:03
186,199,201
0
0
null
2023-04-21T20:32:03
2019-05-12T01:44:30
Python
UTF-8
Python
false
false
385
py
# Generated by Django 2.2.1 on 2019-05-23 08:07 from django.db import migrations import tinymce.models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_blog_content'), ] operations = [ migrations.AlterField( model_name='blog', name='content'...
[ "dipipandey1@gmail.com" ]
dipipandey1@gmail.com
804ad9539ed31190f8ad8f7f01cd6e5c03154096
cc28ba7703bdddc8335d311ae3ff3e944e9edd8b
/home/migrations/0012_auto_20200316_0130.py
506816aeb9f3e0977160f4be189297289d93ed35
[]
no_license
codetotransform-web/dkbrestaurant
60f42170e228bb991af299d4c4a1b22f219a8f1a
a37aa10860809ce8bb7ec939c5618b5e816e818d
refs/heads/master
2022-11-28T20:05:45.918156
2020-03-29T08:03:58
2020-03-29T08:03:58
250,944,534
0
0
null
2022-11-22T05:26:34
2020-03-29T03:20:06
Python
UTF-8
Python
false
false
440
py
# Generated by Django 3.0.4 on 2020-03-15 20:00 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0011_auto_20200313_1627'), ] operations = [ migrations.AlterField( model_name='booking', ...
[ "noreply@github.com" ]
noreply@github.com
51c49fc3154deee52d0c8f7793fbddac1737f209
70bfc97fb0ff98d817f72f27775a7b467ae66c39
/firmware/python_modules/sha2017/dashboard/installer.py
2bd071a428f17b60fb027c5bec3caf6cb46245ee
[ "Apache-2.0" ]
permissive
zakx/ESP32-platform-firmware
ae6ab2d023c06598dc6a9010fb4bfcf3a2d6710f
3593865602c2aba1f5a066a333ff864d9eaae4a3
refs/heads/master
2020-07-03T03:19:04.964007
2019-08-10T17:05:16
2019-08-10T17:05:16
201,767,805
0
0
null
2019-08-11T13:24:42
2019-08-11T13:24:42
null
UTF-8
Python
false
false
5,351
py
import orientation, dashboard.resources.woezel_repo as woezel_repo, term, easydraw, system, time, gc, ugfx, wifi, uos, json, sys, woezel, display repo = woezel_repo orientation.default() def showMessage(msg, error=False, icon_wifi=False, icon_ok=False): term.header(True, "Installer") print(msg) if error: easydr...
[ "renze@rnplus.nl" ]
renze@rnplus.nl
0266bfd3dabb66fbc32785187d7dd62dcd182a82
5399dd4580ea3f528753bc8b52a981743d62f8bb
/ML/m39_pickle.py
957e4037bd4d833cbf848e3087f487fa8f253ce3
[]
no_license
iwillbeaprogramer/Study
3ac7c118ffe3981d78b4ad263cb62432eae13970
3bfe571da5bbfc545b994e5878e217f9306bde14
refs/heads/main
2023-05-07T16:31:05.564973
2021-05-27T14:50:00
2021-05-27T14:50:00
324,044,441
8
1
null
null
null
null
UTF-8
Python
false
false
1,161
py
# eval_set from xgboost import XGBClassifier,XGBRegressor from sklearn.datasets import load_boston, load_breast_cancer from sklearn.model_selection import train_test_split import numpy as np from sklearn.metrics import r2_score,accuracy_score,mean_squared_error datasets = load_boston() x = datasets.data y = datasets....
[ "wisixicidi@gmail.com" ]
wisixicidi@gmail.com
a438bd7134de32e08c0c5b20cce4cd075122fc5c
431931011af6b9f811590cd098925b6fd9f5753e
/home_page/migrations/0002_cities_image.py
f81335f50f411d70c4f062d3d8b7db3ea21fa2eb
[]
no_license
aastha007/trip-travel
b58b3e2aea90f4bb7d78b33f498d2c6d60a2724d
39fa67345309c526cb5179ae33175916952e892b
refs/heads/master
2021-01-02T23:50:47.062112
2017-08-06T19:10:15
2017-08-06T19:10:15
99,507,721
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-07-14 10:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home_page', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "aastha7195@gmail.com" ]
aastha7195@gmail.com
30daa9f80ac39c56dcfcc589d906569e1952de45
afd2b6ae3421f82e9f3d3197d63ac39fb0470318
/ps1/ps1a.py
3696f50e7b69888feaa4542b70c02a8352184977
[]
no_license
Capt-Nemo/course6.00
5db8bcce0f3501fe10414aa62ad8fb3a50bbfe95
7cf5f1a9446eb68e171be84896cfb46beca4d83c
refs/heads/master
2018-12-28T21:30:34.983330
2013-07-26T04:53:11
2013-07-26T04:53:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
#Problem Set 1 #Name: Nemo rank = 3 TestNum = 7 while rank < 1000: Limit = TestNum/2 sign = 0 for i in range(3,Limit,2): if TestNum % i == 0: sign = 1 break if sign == 0: rank = rank + 1 print rank,TestNum TestNum = TestNum + 2
[ "snowball.cby@gmail.com" ]
snowball.cby@gmail.com
dcf618800272f57e6d20691a78ca673b3e73c233
b9d640c10d51b8eb3d740f895e5607c52f7f52a0
/corgi/examples/loadbalance/sim.py
289f3f9bff8df5a10acc010f0bebb7831bcd4d18
[ "MIT" ]
permissive
Krissmedt/imprunko
c0783e04d877698efea3d975c351bbaebdc827f5
94171d0d47171cc4b199cd52f5f29385cbff903e
refs/heads/master
2021-03-16T02:23:56.150324
2020-03-18T11:49:13
2020-03-18T11:49:13
246,895,948
0
0
null
null
null
null
UTF-8
Python
false
false
13,909
py
from mpi4py import MPI import numpy as np import os, sys import h5py import argparse try: import matplotlib.pyplot as plt from matplotlib import cm import palettable as pal palette = pal.wesanderson.Moonrise1_5.mpl_colormap except: pass import pycorgi.twoD as pycorgi # visualize matrix def ims...
[ "kristoffer@smedt.dk" ]
kristoffer@smedt.dk
0b330a3afbbf55128aa6e962b16c14c7c7eaf126
99b0631baa2fd9ab2455d848b47febf581916272
/study_code/learn_nonlocal.py
108dc21fa3015ab9051ced4645bbf529a466aeb5
[]
no_license
seceast/PyProjects
a934e366cb619f2610d75b9a0fb47d818814a4de
7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1
refs/heads/master
2023-03-07T22:23:21.229489
2021-02-25T05:37:58
2021-02-25T05:37:58
265,480,151
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
""" -*- coding: utf-8 -*- @author: yangyd @file: learn_nonlocal.py @time: 2019/10/14 0014 14:33 """ def outner(): b = 10 def inner(): # 声明外部函数局部变量,不声明可以使用b但是无法修改b nonlocal b print(f'old_var = {b}') b = 20 print(f'new_bar = {b}') inner() outner()
[ "yangyadong25@163.com" ]
yangyadong25@163.com
e5d999aeb876a4ae1300b977b508888156841025
1038aeb37ea344ffb4b72143e1e4e1762b86b9ac
/Working with custom markers/Custom marker and command line option to control test runs/conftest.py
bf90819d6ffcf2064a70a0f1cb82c6a2d381a917
[]
no_license
zsx19931129/pytest
c1b73d8ce1a6228d227a9f51974c7e176fa83cbf
86f2f27b4b70a49b4cebc19ac7c668a9e85277fd
refs/heads/master
2021-01-18T17:32:14.442623
2016-06-24T15:25:05
2016-06-24T15:25:05
59,412,899
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
# content of conftest.py import pytest def pytest_addoption(parser): parser.addoption("-E", action="store", metavar="NAME", help="only run tests matching the environment NAME.") def pytest_configure(config): # register an additional marker config.addinivalue_line("markers", "env(name): mar...
[ "zsx19931129@163.com" ]
zsx19931129@163.com
b7e597b69dadcad64d8f5b7168ab505fe5d4ed7c
0244f852c01e24e50dcb494818043b8000bbc956
/Perfectcrm/video/views.py
7e2cec263684af97473bf79abf123f45a074a7f0
[]
no_license
ime8/crm
d69840000ea5eba04c3089df725bee64788dc194
d08b0fe6ac0796a7f767eae6faaf7469df38ad0d
refs/heads/master
2021-03-23T19:57:09.914551
2020-03-15T14:23:14
2020-03-15T14:23:14
247,479,852
0
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
from django.shortcuts import render,HttpResponse from PerfectCRM.Perfectcrm.crm import models # Create your views here. def video(request,*args,**kwargs): contain = {} print(kwargs) for k,v in kwargs.items(): if v == '0': contain = {} else: contain[k]=v ...
[ "2506238526@qq.com" ]
2506238526@qq.com
9bd51fbc9d75fdb604efa54d7ece522c1606639a
5c32e0ca5b4dc0ec8cda141ac87cef883d8b3e98
/assimetry_coding/assimetry_coding/func.py
c4d873b1e63ca3a7fe737540ae8b86817202aeec
[]
no_license
Mirovengil/NetsInfo
25ceedfef5478c6a463e50316579696266f732d4
1e2b25025bec0a34f3ea7f36505d450d40cdc327
refs/heads/main
2023-07-15T21:03:58.901602
2021-09-05T12:15:10
2021-09-05T12:15:10
403,299,470
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
print(99999999999999999 * 9999999999999999)
[ "noreply@github.com" ]
noreply@github.com
853dc52871c3cacc341de2c08d13e6f8f092c466
91406a8a39d4cf9c9db57d57c13b74ea6a50b31d
/backend/theadvrou_19084/settings.py
b1326c53deb98ee4d1d5405cc5757874998d7f98
[]
no_license
crowdbotics-apps/theadvrou-19084
9fb5d3ebb645f946ed70469daf0c8770e8692723
ecb1356777441578fafd5816638c4056bdaa8c21
refs/heads/master
2022-11-25T06:13:56.853550
2020-07-22T10:03:51
2020-07-22T10:03:51
281,493,497
0
0
null
null
null
null
UTF-8
Python
false
false
5,806
py
""" Django settings for theadvrou_19084 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/ """ impo...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
a6424082a011f515c15ae995c6f6c761aaa6093b
624eeff66e276f291cf6d7c59f9f48044e0cb9d3
/tests/test_store.py
976fb39c695f95322e953b925ec16032261794ca
[]
no_license
galiaviyam/on_line_shop
2f7b17e7286acbab2fb0bc4237ca1c52eee8e83f
08da589b455ee11409796034ae198bccef4a8fed
refs/heads/master
2023-07-23T19:13:37.246149
2023-07-09T13:04:22
2023-07-09T13:04:22
253,861,985
0
0
null
2020-06-25T18:36:21
2020-04-07T17:13:48
Python
UTF-8
Python
false
false
5,313
py
from store import Store from user import User from database import Database import json from mock import patch, mock_open import os def prepare_store(mocker): with open("test_config.json", "w") as f: f.write('{ "store_name": "Goldilocks", "database_name": "Goldilocks.db", "timeout": 3600}') mocker.pa...
[ "gali.aviyam@gmail.com" ]
gali.aviyam@gmail.com
3f52cb7f354134071ca7b9aa0ee2b810466b0d7b
d76cf9484f93c1822c71c87980e6f76a2c0f5786
/application/api/superclass/superclasses.py
e73ead1271653b8a6b572471b3917a103589597d
[]
no_license
chris-hamberg/twitter
a02b0278eab609d696a84f39ea771a5936379561
b806de4e073a0f4791cde93111c69c4d44b6844a
refs/heads/master
2022-12-14T19:06:26.221176
2019-12-13T21:44:23
2019-12-13T21:44:23
172,611,261
0
0
null
2022-12-08T04:51:18
2019-02-26T01:02:13
Python
UTF-8
Python
false
false
4,721
py
try: from twitter.application.api.superclass.abstract_base_class import AbstractBase from twitter.application.subprocess.base64encode import base64encode from twitter.application.subprocess.connection import requests except ModuleNotFoundError as main: from application.api.superclass.abstract_base_class...
[ "chris.hamberg@programmer.net" ]
chris.hamberg@programmer.net
32d1fb6e94c7243990250f6659144c18b6e367c7
29dba5f4fbaf16fb466571c286e591898e68a8a5
/tripadvisor/middlewares.py
4dbf428759b08b21deefee5e1738ca21ec27e733
[ "MIT" ]
permissive
xxxspy/tripadvisor-spider
73572701c146dde7e7fc6f87f194b25e56daae0a
943144a140d3802ae5ce8637b66545aef8646ab4
refs/heads/master
2020-03-22T22:51:19.433695
2018-07-12T23:40:32
2018-07-12T23:40:32
140,774,306
1
0
null
null
null
null
UTF-8
Python
false
false
1,885
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class TripadvisorSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scra...
[ "xxxspy@126.com" ]
xxxspy@126.com
84b5ecab905bacd1405b589e6991e332ab101fee
a99232b3386991a587dc883dccdae21da9d7a822
/inferpy/util/session.py
e55dfa2a37eee6ef7a61ef8ac9af63fee8dc66ac
[ "Apache-2.0", "BSD-3-Clause", "Minpack" ]
permissive
weecology/InferPy
76fb170d77f2e9165dc89d01c5fb6f52f71afadd
666e4ec62dd0c935117529d414aba21e72da2664
refs/heads/master
2021-01-03T03:12:46.652101
2019-11-06T14:28:33
2019-11-06T14:28:33
239,897,119
0
0
null
2020-02-12T00:54:10
2020-02-12T00:54:09
null
UTF-8
Python
false
false
1,144
py
import tensorflow as tf import warnings """ Module to manage global sessions and graphs executed in sessions """ __session = None def new_session(gpu_memory_fraction=0.0): # Create a new session. By default do not use GPU. Use gpu_memory_fraction > 0 (and <= 1) to use GPU. if gpu_memory_fraction <= 0.0: ...
[ "javier.cozar@uclm.es" ]
javier.cozar@uclm.es
9bd66e83d434e98788d291ecdaf0568eeca12484
a998e7da6d88927c635462c6341919c3691c9d7b
/meiduo_mall/apps/contents/migrations/0001_initial.py
ca8b5ce9a1b3b12d5f04ed7a3b90a59b7331a773
[]
no_license
jojotaro123/meiduo_ubuntu
0769c547864e50ce76a41978d1c1a9d8deca4b9f
a8e2b57203e697709c04a255d8743f25785e7adc
refs/heads/master
2022-11-02T14:30:59.899183
2020-06-14T13:10:45
2020-06-14T13:10:45
267,375,273
0
0
null
null
null
null
UTF-8
Python
false
false
4,506
py
# Generated by Django 2.2.5 on 2020-06-06 18:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ContentCategory', fields=[...
[ "102098422@qq.com" ]
102098422@qq.com
387a27431bd3d1af9f529f413813a0a29f54f3d5
9cd180fc7594eb018c41f0bf0b54548741fd33ba
/sdk/python/pulumi_azure_nextgen/logic/v20150801preview/get_integration_account_certificate.py
8d5432fc9120d562473d196d12733d96b4a0883b
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MisinformedDNA/pulumi-azure-nextgen
c71971359450d03f13a53645171f621e200fe82d
f0022686b655c2b0744a9f47915aadaa183eed3b
refs/heads/master
2022-12-17T22:27:37.916546
2020-09-28T16:03:59
2020-09-28T16:03:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,163
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
bc3c434190c692ff3c0094d20db9185411b09b8e
3caa6e43e3da18858a719c51dc9c63eb11014035
/build/LawnMowerRobot/hrp/am_loopmap/catkin_generated/pkg.installspace.context.pc.py
85b851e7aaef81366a23f89a188a48a8c38bea1b
[]
no_license
rh-chen/catkin_ws
2ab5050340e7e62f818681d1c86b222f2b867ce9
102203a9c5b870862d5c4fcf465f3bf88247a007
refs/heads/master
2020-06-03T10:28:31.749952
2016-06-02T21:43:10
2016-06-02T21:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/agneev/catkin_ws/install/include".split(';') if "/home/agneev/catkin_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "nav_msgs;roscpp;std_msgs;tf;am_driver".replace(';', ' ') PKG_CONFI...
[ "agneev@kth.se" ]
agneev@kth.se
d5d4e823f42aa965e54a9c7635a7d8a904b0db4c
2ef3c1a17278ad696db3fdb49751bc7d9870cfbd
/EM_Algorithm/EM_test_Poisson.py
9b58e1b13002cae6613c7e9bf34b485a1caa1b4c
[ "MIT" ]
permissive
ychanc2104/Python_for_Lab
02f9c4b64d47726d769808406a82989631515790
571398c2422711d8a74f9c95a746537859458557
refs/heads/master
2023-06-29T00:22:44.138328
2021-07-26T16:02:48
2021-07-26T16:02:48
331,976,338
10
2
null
null
null
null
UTF-8
Python
false
false
555
py
from EM_Algorithm.gen_poisson import gen_poisson import numpy as np from EM_Algorithm.EM import EM if __name__ == "__main__": ## produce data data = gen_poisson(tau=[0.5, 4, 15], n_sample=[400]*3) n_sample = len(data) tolerance = 1e-3 ## fit Poisson EM EM_p = EM(data) # n_components = 2...
[ "ychanc2104@gmail.com" ]
ychanc2104@gmail.com
11407c13b973dfd28bf9ac23bff579cd55cbd3ab
d9c71d9dd10d4c835f2278d7eadcb83560adb4d7
/trust/models.py
2e184ed027a147e50fc8faca00c57b0b96734e58
[]
no_license
akb05/Ann
c0a9d7a65b977407ea0629b25c6d178d3e5744d4
77a813e605b726093154a59103962f8536c7bcbb
refs/heads/master
2020-04-30T21:47:39.059624
2019-03-22T08:55:01
2019-03-22T08:55:01
177,102,422
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'trust' players_per_group = 2 num_rounds = 1 efficiency_f...
[ "ak.blankenberg@yahoo.de" ]
ak.blankenberg@yahoo.de
577c9dd804a8656c8b35188d217681bc4516d0ac
c981cc8c8dfe05fc5a57915e9b4d8479a9a6bbf2
/py/lvmspec/bootcalib.py
91003626b0f86de4e277dcc8432285166c3fbcfa
[ "BSD-3-Clause" ]
permissive
sdss/lvmspec
af25dae6ae87ea1355aa8f9075e2e174e4599eb7
befd6991537c4947fdf63ca262937f2bb845148f
refs/heads/master
2021-06-25T02:13:27.038449
2019-10-28T20:35:38
2019-10-28T20:35:38
102,514,477
0
0
null
null
null
null
UTF-8
Python
false
false
65,452
py
""" lvmspec.bootcalib ================== Utility functions to perform a quick calibration of DESI data TODO: 1. Expand to r, i cameras 2. QA plots 3. Test with CR data """ from __future__ import print_function, absolute_import, division import numpy as np import copy import pdb import imp import yaml import glob imp...
[ "havok2063@hotmail.com" ]
havok2063@hotmail.com
11f9ed985065e017d8bbe9904bef8b2ce2195b0a
7bf377c4560709db7fcb246931f92d3e01119cea
/blog/migrations/0023_auto_20160912_1004.py
a76a9b84ccbd27cf320c03143b3f897694a043d5
[]
no_license
anxiaomo/pythonblog
85b1c3b200d4ea0d9a242eb2782e981bce344bc3
1cdc5bb4c049dee58f870e2099e6808d6fb5bc02
refs/heads/master
2020-04-12T03:21:02.114183
2016-09-13T07:02:26
2016-09-13T07:02:26
68,083,611
2
0
null
null
null
null
UTF-8
Python
false
false
882
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2016-09-12 02:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0022_auto_20160909_1101'), ] operations = [ migrations.AddField( ...
[ "756461976@qq.com" ]
756461976@qq.com
3e4d2898d99c35e04867e30637bc0f03b53d6e1c
45f2271e7f358e1d43cdd32a496b9bb73ecb06ff
/shooter2d/math.py
1f72db1b16f2d1800d09f88211ce3d9db1121ee4
[]
no_license
RevengeComing/shooter2dserver
33dccc2622fdb5431a3dc991944adb192b448da1
aa13d987c4396bd803563fb6df567cc5bc698dfe
refs/heads/master
2020-04-26T23:44:53.605833
2019-03-06T19:47:31
2019-03-06T19:47:31
173,912,495
1
0
null
null
null
null
UTF-8
Python
false
false
121
py
def nearly_equal(a, b, sig_fig=4): return ( a == b or int(a*10**sig_fig) == int(b*10**sig_fig) )
[ "s.hamzelooy@cafebazaar.ir" ]
s.hamzelooy@cafebazaar.ir
ee7cdb809a2f2125c3beaaf22e4300c56ae5b406
429d2f9a8d97ef1072a5c82cd7557d2a2adb6639
/데이터 수집/02_사례1/main.py
77fa74af66cfcfe10f8cc56a8eaa3a85fe423428
[]
no_license
byungjinku/Python-Base
c5661b83cc10a897afb70b1a24a61ae94d91a97d
29b33c9bbd3c8d2513e0469402fef380dfbbba37
refs/heads/master
2022-11-19T02:24:21.673071
2020-07-03T02:11:18
2020-07-03T02:11:18
276,785,680
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
# 사이트 주소 : https://pjt3591oo.github.io/ # 페이지 소스보기 해서 나오는 소스에 필요한 데이터가 있는 경우. # pip install requests # pip install bs4 # pip install lxml import requests import bs4 import time # 주소 url = 'https://pjt3591oo.github.io/' # 페이지 번호 page = 1 while True : # 딜레이타임을 준다(초단위) time.sleep(1) ...
[ "noreply@github.com" ]
noreply@github.com
7a77342e7fbaaa08dbeb3a3ddc8bc474164685ce
e2a85f59b43094156ee6daacdf870d324f86d830
/awards/views.py
d48334b992fe42cbbdd7a2645548581745ade490
[ "MIT" ]
permissive
BeatriceWambui/my-awards
10b0b63e7d887c9f9ac445b94b6bfcaf1d189843
50bad0934f8e9dc6e9c8d2721281450146f142fe
refs/heads/master
2021-09-09T20:54:21.189476
2019-10-31T12:42:49
2019-10-31T12:42:49
216,328,253
0
0
MIT
2021-09-08T01:22:27
2019-10-20T08:09:20
Python
UTF-8
Python
false
false
5,798
py
from django.shortcuts import render,redirect from django.http import JsonResponse from .email import send_welcome_email from .models import Profile,NewsLetterRecipients,Review from .forms import UploadProfileForm,NewsLetterForm,ProjectForm,ReviewForm from django.contrib.auth.models import User from django.contrib.auth....
[ "BeatriceWambui" ]
BeatriceWambui
fdb3901dc353b788cf7b3893499b3277fa8bdd56
7f64c6ccc1a7e13d49b51491f9feb6ce7f82a677
/main.py
e7747c6f54ca508045b9d9f5065b8b2729160273
[]
no_license
PulkitKaushik1403/repo-ci
f54b652d478386e74beeec5c26a0fee0a3042d0f
9347f12e3091bc5d0f7f9ed2187956b4f039c04f
refs/heads/master
2023-04-04T02:53:40.550820
2021-04-15T15:12:45
2021-04-15T15:12:45
358,218,723
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
from fastapi import FastAPI app=FastAPI() @app.get('/') def create(): return 'Running server'
[ "pulkit.kaushik@aptusdatalabs.com" ]
pulkit.kaushik@aptusdatalabs.com
d85a2c7124a516f234a3ca631622dda5282fc7b1
828e7eafeeff4ff28d0fc5c327ee5c6153ae03a1
/homes/migrations/0021_auto_20200907_0001.py
2479f76a56c2d99475d51985e5b19c99e7d62120
[]
no_license
cliffaust/cee
faada565f09ce1c73f90a637e8a7fcb23b0bae69
503b80e082eb858794dffea952b4ff085a76a067
refs/heads/master
2022-12-09T07:35:49.869403
2020-09-29T03:06:21
2020-09-29T03:06:21
299,489,715
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# Generated by Django 3.1 on 2020-09-07 00:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homes', '0020_auto_20200906_1806'), ] operations = [ migrations.AlterField( model_name='homecoordinate', name='latitud...
[ "kingsleyclifford2016@gmail.com" ]
kingsleyclifford2016@gmail.com
a80448101f8374c1c17802dfdd3ad542417d37a9
17cbe826892d06dc5aee4e4c2a5747e10933f2d0
/allennlp/scripts/train_fixtures.py
35f92b290cdb557c4bb1ba9ff665094925d8b8a5
[ "Apache-2.0", "MIT" ]
permissive
rahular/joint-coref-srl
3fdd0e37a56e3be894f3da4ceeb030a599ff4388
cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be
refs/heads/main
2023-02-16T21:53:11.721014
2021-01-18T15:31:47
2021-01-18T15:31:47
330,708,579
1
0
null
null
null
null
UTF-8
Python
false
false
2,821
py
#!/usr/bin/env python import glob import logging import os import re import shutil import sys import tempfile sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir)))) from allennlp.commands.test_install import _get_module_root from allennlp.commands.train import train_model_from_file, t...
[ "rahul@di.ku.dk" ]
rahul@di.ku.dk
f70465aaa86a296539fc2f7b187aaa3756b3bfa8
e7e89e20e7ac0aabc7a7904963c19d0a1613611d
/python_hpc/2_digits_of_pi/3_dask_multicore_digits_of_pi.py
bbe09c9668a44c52d876c96b5368c7565e935881
[ "BSD-3-Clause" ]
permissive
sdsc-scicomp/2018-11-02-comet-workshop-ucr
4b53b43d883ec04b17c5e83741e4806069af256e
0189387422135db9e32ff5dfd42c333f4c258962
refs/heads/master
2022-12-02T05:14:07.357525
2018-11-02T21:59:29
2018-11-02T21:59:29
155,813,177
0
2
BSD-3-Clause
2022-11-24T18:06:02
2018-11-02T04:14:22
Jupyter Notebook
UTF-8
Python
false
false
766
py
#!/usr/bin/env python3 import sys import numpy as np import dask.array as da import dask def inside_circle(total_count): x = da.random.uniform(size=total_count, chunks=total_count//12) y = da.random.uniform(size=total_count, chunks=total_count//12) radii_square = x**2 + y**2 count = (radii_square<=1...
[ "zonca@sdsc.edu" ]
zonca@sdsc.edu
461db5a79a9827821c22aacf453313f212125091
df71e22af4e853f8e1e86f38e1b3c1e39ae0b0f9
/app.py
ad7f105fa740e07c505b3d1444551eb4ed58b931
[]
no_license
vijayvmtek/random
72fd63ee52479e4437e24f7dc056bf37053e243b
1cf1e3eb282ab9aba519cdcaa9be37e7e8a9de8a
refs/heads/main
2023-06-03T09:31:34.996579
2021-06-20T14:40:00
2021-06-20T14:40:00
378,666,960
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
import sys def handler(event, context): return 'Hello from AWS Lambda using Python'
[ "ec2-user@ip-172-31-55-79.ec2.internal" ]
ec2-user@ip-172-31-55-79.ec2.internal
1a6d11d18a843ccf23ee54e754132d6597b8251c
93409c7ba5e6e8f3807f09a11c00edf6be830e7c
/advent-of-code/2020/day-08/8_2.py
638b6e2c20e16091b2e89a45b778fa78f2cab5e8
[]
no_license
pascal-sun/solution-programming
bbda4a223a2b67d264a2e0e829bfde08b7d216c9
6356b7531eebed077bc2036dc359950d9a2bc19b
refs/heads/main
2023-02-14T19:45:17.461252
2020-12-25T18:53:05
2020-12-25T18:53:05
322,803,993
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
import sys def accumulatorValue(data): seen = set() pointer = 0 val = 0 while pointer != len(data): if pointer in seen: return False, val seen.add(pointer) operation, argument = data[pointer].split() if operation == 'nop': pointer += 1 eli...
[ "pascal.sun@protonmail.com" ]
pascal.sun@protonmail.com
38ef0f1184875790dfef82c9ee5d3fb8e86bdc73
53bf080b397fb1250fc9be30b5978f7b14276fd8
/app/http/controllers/WelcomeController.py
3fde2bcb917796a4e3efb76d49a6dcee323fcfbc
[]
no_license
afdolriski/masonite-starter
0297aea952ba6ca9bf86de8436bc33157af12292
1e61170e5ac0b40fba2c3022aaab4a5a8e6fe467
refs/heads/master
2021-05-12T18:43:34.160655
2018-01-10T03:15:27
2018-01-10T03:15:27
117,072,009
1
0
null
2018-01-11T08:30:10
2018-01-11T08:30:09
null
UTF-8
Python
false
false
330
py
''' A Module Description ''' from masonite.view import view from config import application class WelcomeController(object): ''' Controller for welcoming the user ''' def __init__(self): pass def show(self, request): ''' Show Welcome Template ''' return view('welcome', {'app': appl...
[ "idmann509@gmail.com" ]
idmann509@gmail.com
6529a6a524bd279c35b16e7feda336afd789d5fd
6c57450832f49472964afaaaebcee8642beef460
/angular-test-no-tears.py
81ef57f2b5ed74ec6dde08572792deba358cbfe3
[]
no_license
alexyorke/angular-test-no-tears
2f25177a971c1f51fe764d15a5e4bfe828b865ca
ca670da725d08ef995e6bba383571aa04ed545df
refs/heads/master
2020-12-29T11:50:24.266339
2020-03-12T04:01:17
2020-03-12T04:01:17
238,598,053
0
0
null
null
null
null
UTF-8
Python
false
false
5,673
py
import sys def main(filename): import json exports = {} selectors = {} modules = {} import re from pathlib import Path from bs4 import BeautifulSoup import sys node_modules_folder = r"/mnt/c/Users/yorke/Documents/GitHub/Orbital/src/orbital-designer/node_modules/" source_folder =...
[ "noreply@github.com" ]
noreply@github.com
bd0733a9250bed595353dddbd423a8922f83ca74
6ca69a64f6df78127585dae783cc35ee71825ac3
/main.py
6b994021fda590d408ef2257b0adab5ad46cff7f
[]
no_license
saketjajoo/Vaahan
1d83024f47dc23b25d9d7f9750991bc494ce6792
c31e98d25f85c28619978b4c0a044c162dbef007
refs/heads/master
2020-10-01T00:54:41.489614
2019-12-11T18:05:15
2019-12-11T18:05:15
227,414,336
2
0
null
null
null
null
UTF-8
Python
false
false
2,077
py
from getplate import get_vno from pehchaan import get_det import re print("1. Enter vehicle number manually to get its details") print("2. Detect vehicle number") print("3. Auto detect vehicle number, and get its details") ch = input("Enter your choice: ") if ch == "1": vno = input("Enter your vehicle r...
[ "noreply@github.com" ]
noreply@github.com
4351506e8bd7fced3a88505f030f536edae583c9
68c5a224b3ba6dee6bb644ab16cca8a888d5d705
/problems/problem-13/numbers.py
93acded8a4a2ee49cc31d57ebe6de5a924c01788
[]
no_license
chrismilson/project-euler
49e2b05decfbfe117e12da6bc92b061d6ce8df16
e0ec1c84ce38392aea335b949217a42e8e7fa157
refs/heads/master
2021-01-22T19:49:11.698512
2020-07-13T03:41:05
2020-07-13T03:41:05
85,242,456
0
0
null
null
null
null
UTF-8
Python
false
false
5,511
py
numbers = [ 37107287533902102798797998220837590246510135740250, 46376937677490009712648124896970078050417018260538, 74324986199524741059474233309513058123726617309629, 91942213363574161572522430563301811072406154908250, 23067588207539346171171980310421047513778063246676, 8926167069662363382013637841838...
[ "chris.w.milson@gmail.com" ]
chris.w.milson@gmail.com
f1132a352879d7be12ef6b2dc807f4a16e0d10c3
71da4ff6ebd69f7e8647ea31e23908d18f496b93
/yolov3/utils/datasets.py
85049fc927fbf21664c2e3df906c57110e95acef
[]
no_license
wu840407/Yolov3_DeepSort_ObjectTrackforVehicle
4f531496104835135f7ba57a4865f01e9df53b89
5ed62067d54e499493f6e4d99d1b9f252afff19b
refs/heads/master
2023-05-08T17:58:49.983510
2021-05-25T14:22:43
2021-05-25T14:22:43
370,612,729
0
0
null
null
null
null
UTF-8
Python
false
false
35,175
py
import glob import math import os import random import shutil import time from pathlib import Path from threading import Thread import cv2 import numpy as np import torch from PIL import Image, ExifTags from torch.utils.data import Dataset from tqdm import tqdm from yolov3.utils.utils import xyxy2xywh, xywh2xyxy hel...
[ "wu840407@gmail.com" ]
wu840407@gmail.com
f4fb002552c1f7a4cc666d97ea69522e2f4d8a79
69b6ab1c366a929f7fc40f08b834d56b3aaaa0d3
/Python/basic/jinja2/run.py
13337e7ca6dc29d190720bab046e1a8062a39aba
[ "MIT" ]
permissive
caa06d9c/Examples
2625c2f677cccc6ec988b951cc388381d6002830
a8c5552606b1e5790061801b320b9b4175b28ec2
refs/heads/master
2023-03-06T00:01:15.867713
2023-02-27T02:18:22
2023-02-27T02:18:22
175,799,242
7
5
MIT
2019-12-17T05:14:14
2019-03-15T10:28:17
Python
UTF-8
Python
false
false
353
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from jinja2 import Template from yaml import load, CLoader if __name__ == '__main__': with open('template.j2') as f: t = Template(f.read()) with open('variables.yml') as f: v = load(f, Loader=CLoader) print(t.render(first=v['first'], ...
[ "mail@demin.co" ]
mail@demin.co
8b577d2818e90ce3fcfd69bf50cb66dc4663bdb2
9433182bcd83d49d01f5e25846e3811f53c6056c
/books/catalog/migrations/0002_auto_20210202_1522.py
c4740f33171a644a036078e24c2ec905bd3d7468
[]
no_license
MihaelaDobrin/Proiect_final
e8923d9e05c99251d853ffda20c7f466455aa5c7
c6e10d785fd7a1c87ada4500ba461daa95dc1c1b
refs/heads/master
2023-05-29T23:02:02.533851
2021-06-05T10:33:09
2021-06-05T10:33:09
337,532,744
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
# Generated by Django 3.1.5 on 2021-02-02 13:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('catalog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Meta', fi...
[ "”mihaela_alexandra_dinca@yahoo.com”" ]
”mihaela_alexandra_dinca@yahoo.com”
545bf90a27b74336c6a28cc8e8fad247049ff121
3486ed76db5407409dd5d9fb107ab08481072ae6
/UAV - Machine Learning with drones - Unity/AutoQuad/Unreal/hello_drone.py
1baaee1a7357260a2d82f332844c62b71357866b
[]
no_license
supermasil/Projects
2fe1897c921e999b0028008c69db31f0be4f5260
f09789891be4628a1812924386c8d55067f7a432
refs/heads/master
2020-03-18T00:29:03.101590
2018-12-07T06:42:57
2018-12-07T06:42:57
122,404,369
0
0
null
null
null
null
UTF-8
Python
false
false
2,856
py
""" For connecting to the AirSim drone environment and testing API functionality """ import os import tempfile import pprint from AirSimClient import * # connect to the AirSim simulator client = MultirotorClient() client.confirmConnection() client.enableApiControl(True) client.armDisarm(True) stat...
[ "khoa.hoang@berkeley.edu" ]
khoa.hoang@berkeley.edu
a9f75dd6168eabd5d782c83f0395fbb037fe7fad
9313cd345d55c41131f6603af11aa02f4de3e03e
/env/bin/chardetect
4ff51521234f82740c5d4423a074f27bccbd31bc
[]
no_license
jimrobo/paccar_edi
d00e4d0cd9309bdbec2e633e725610f5c7a64751
fa5f399611e89ba0f2c5694e496e7af9658323e0
refs/heads/master
2023-08-25T05:06:19.600590
2021-11-02T09:29:48
2021-11-02T09:29:48
423,779,798
0
0
null
null
null
null
UTF-8
Python
false
false
248
#!/home/jon/paccar-edi-in/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jheavyside@trilogyfrieght.com" ]
jheavyside@trilogyfrieght.com
22380675a37d7e792dd23e5dc5818e0ee9defcaa
e22669318bcc7cfd678812bb2c003fe660929c60
/cell_handler.py
6459a0fad232eaceb9dbc3cb29fb60cab9ddf0e8
[ "Apache-2.0" ]
permissive
lerignoux/pokecrawl
ce9fd77e8c4ce538ff909fd45c49b4373e6e7bd8
951b60b3b6d85b23b083095cd563e6fec9019452
refs/heads/master
2020-04-06T06:57:55.811929
2016-07-23T00:46:09
2016-07-23T00:46:09
63,986,490
0
1
null
2016-09-02T21:58:56
2016-07-22T22:13:52
Python
UTF-8
Python
false
false
538
py
import logging from pokemon import Pokemon logger = logging.getLogger(__name__) class CellHandler(object): def __init__(self, cell_dict): self.cell = cell_dict def get_cell_pokemons(self): wilds = self.cell.get('wild_pokemons', []) catchables = self.cell.get('catchable_pokemons', [...
[ "lerignoux@gmail.com" ]
lerignoux@gmail.com
89de38420ce01c0997f792e3c84b3e6f924a4796
73da8460fb8f20574e719eb03ad31d4ff6953333
/mymllib/metrics/_tests/_classification_test.py
ff18887abce1f26956211cdf1a13ff6534a33c29
[]
no_license
OlegPonomaryov/mymllib
5721ef59fe0e66341c830ec2aa922b78706cb0ad
ef34d96a4ca429f339b2cd0e2f4b02710998d6a0
refs/heads/master
2023-04-06T07:07:34.046541
2021-04-12T21:10:20
2021-04-12T21:12:29
301,831,307
0
0
null
null
null
null
UTF-8
Python
false
false
2,486
py
"""Tests for the 'classification' module.""" import pytest import numpy as np from mymllib.metrics.classification import accuracy, balanced_accuracy, precision, recall, f1_score actual_values = ["A", "C", "B", "C"] predicted_values = ["B", "D", "B", "C"] @pytest.mark.parametrize("func", [accuracy, balanced_accuracy...
[ "ponomaryov.oleg@gmail.com" ]
ponomaryov.oleg@gmail.com
0a536d830df5a8bcba769f79011dc0af55524ff5
679b13e12e3bcef82cc2569611d7c1f655425404
/tests/test_server.py
608bd73590ce333b4b67f5c361fe94986427fdc9
[]
no_license
johndoe-dev/blockchain
9ee5f7bca7fddc65c5192ceebd4297e0eeeedf20
49b326d2dda926da3a5f881ccfbe834ff9656678
refs/heads/master
2023-03-17T13:07:55.894212
2021-02-27T10:27:40
2021-02-27T10:27:40
342,808,234
0
0
null
2021-02-27T10:23:47
2021-02-27T08:33:10
Python
UTF-8
Python
false
false
205
py
from tests.base_test import BaseTest class TestServer(BaseTest): def test_context(self): ctx = self.app.shell_context_processors[0]() assert len(ctx) == 1 assert "app" in ctx
[ "jonathan.ullindah@gmail.com" ]
jonathan.ullindah@gmail.com
8f42e2868cdcb91a2702a1aa860f0ebcad0c22c9
711a940ba27909bf2194da895053463923ace29f
/ProcessMC3/submitJobs_QCD74HT1000to1500_Merge.py
55db748984b9f2937ab6fa7f6703ccd355a1f99d
[]
no_license
jengbou/ntuplePrint
c6591dca74bcf2f26ff7c030306c242d979e9940
7644667e28c547211021f4178b34aff46341e18c
refs/heads/master
2021-01-22T05:27:56.768136
2019-05-11T17:33:26
2019-05-11T17:33:26
81,662,903
0
0
null
2017-02-11T15:48:35
2017-02-11T15:48:35
null
UTF-8
Python
false
false
1,949
py
#!/usr/bin/python import os, sys import shlex, subprocess from datetime import datetime, date, time #sys.path.append(os.path.abspath(os.path.curdir)) JobTime = datetime.now() fTag = JobTime.strftime("%Y%m%d_%H%M%S") sTag = "QCD74HT1000to1500" dirname = "jobs/%s_%s"%(sTag,fTag) try: os.makedirs(dirname) except: ...
[ "jengbou@gmail.com" ]
jengbou@gmail.com
6446d40a024d4719b44f45606900b68a96e8aea1
6b0e3138fed33860b8514ddacbde2dab3f034653
/venv/scrapy_shiyanlou.py
30de78a30104b012fc10f32b2a9c11add0409246
[]
no_license
wgwus/py_code_test
4d54c671a56f78cace16517c461ac54339a8b0b5
235a2cff7533cdc2afc7a3a8b563b782637c51b5
refs/heads/master
2021-03-31T22:13:08.993898
2020-03-19T15:18:06
2020-03-19T15:18:06
248,135,350
0
0
null
null
null
null
UTF-8
Python
false
false
2,371
py
import scrapy class ShiyanlouCoursesSpider(scrapy.Spider): """ 使用 scrapy 爬取页面数据需要编写一个爬虫类,该爬虫类要继承 scrapy.Spider 类。在爬虫类中定义要请求的网站和链接、如何从返回的网页提取数据等等。 在 scrapy 项目中可能会有多个爬虫,name 属性用于标识每个爬虫,各个爬虫类的 name 值不能相同 """ name = 'shiyanlou-courses' # 注意此方法的方法名字是固定的,不可更改 def start_requests(self): "...
[ "49502580@qq.com" ]
49502580@qq.com