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
7f1e95dd5b64e5a2682de80d0869298b7d501662
34233a495b1d095984f7cbdfb10702daaac75483
/4-5_wave_analyze.py
f11af2619766d32950c0981de89c43aa1b952f3a
[]
no_license
ZuluSierraHotel/correction-ebook
52b09b8d3527ca8597a3480d29683809197b6d86
08fe0b72ab0f2f4ab49ada44d4b0b40c0552646c
refs/heads/master
2020-05-26T06:21:47.684510
2019-05-24T01:46:01
2019-05-24T01:46:01
188,134,494
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
#-*- coding: utf-8 -*- #利用小波分析进行特征分析 #参数初始化 inputfile= '../data/leleccum.mat' #提取自Matlab的信号文件 from scipy.io import loadmat #mat是MATLAB专用格式,需要用loadmat读取它 mat = loadmat(inputfile) signal = mat['leleccum'][0] import pywt #导入PyWavelets coeffs = pywt.wavedec(signal, 'bior3.7', level = 5) #返回结果为level+1个数字,第一个数组为逼近系数数组,后面的...
[ "learner_kindle@163.com" ]
learner_kindle@163.com
7725472e66c0946eb2a38b1cd4d048d5d1d76a14
8590cd4e45a055faa2f5c7e2de8d726c4591e585
/dontfret/cart/forms.py
bd9f0479c748c6e8d92a8de29cee01779281e22b
[]
no_license
BenCOGC/DontFret
8f4a2e9099c3b2e91fddcafb3e4261b3c7cd7fe6
a3724c4f16f97ce931ae27b5edfed41e8bcdfaea
refs/heads/master
2022-09-15T02:10:36.933196
2020-05-25T11:08:25
2020-05-25T11:08:25
266,751,749
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
""" Title: cart:forms Author: Ben Frame Date: 09/04/2020 """ # Imports from django import forms from order.models import Order from django.core.validators import RegexValidator # Form for creation of User (and also as a template for editing user details) # Form for getting card details for a purchase class CardPaym...
[ "30154302@cityofglacol.ac.uk" ]
30154302@cityofglacol.ac.uk
0a02cfb6413dbcd6b1100af6c17d4c6cfe17d441
4e5141121d8b4015db233cbc71946ec3cfbe5fe6
/samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-mpls-ldp-cfg/nc-create-xr-mpls-ldp-cfg-10-ydk.py
f47ee0307ac50c7ebc241508e283965e38ccc6e3
[ "Apache-2.0" ]
permissive
itbj/ydk-py-samples
898c6c9bad9d6f8072892300d42633d82ec38368
c5834091da0ebedbb11af7bbf780f268aad7040b
refs/heads/master
2022-11-20T17:44:58.844428
2020-07-25T06:18:02
2020-07-25T06:18:02
282,382,442
1
0
null
2020-07-25T06:04:51
2020-07-25T06:04:50
null
UTF-8
Python
false
false
2,702
py
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # 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 applicab...
[ "saalvare@cisco.com" ]
saalvare@cisco.com
f5aabf9374ec65309773370be3bd51e62c7c7c2f
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/l3ext/fabricextroutingpdef.py
84fe07b6043470b85fee2d3ae47f5391333a6ec8
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
6,038
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
5b9bb498f91537b40a96ded19b45ecbbc1ae5142
44699ef0c7016802e1b60458b78b7cce7d1bcb26
/applications/lrc/apps.py
fa9f2129bd5fcac8e5aa5ac119499909a8913aea
[]
no_license
bhdrkcr/django-login-register-crud
99e989bf042577f842308e06ae5d0eeb13477da0
3946a6b14835f393ab0fcc77ca815a337a0cfb1a
refs/heads/main
2023-08-13T20:06:11.947015
2021-10-18T13:05:46
2021-10-18T13:05:46
417,811,571
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
from django.apps import AppConfig class LrcConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'lrc'
[ "bahadir2kacar@gmail.com" ]
bahadir2kacar@gmail.com
cebd8d83e32d5a6f2a3cff708a8e4da0c017e126
06e15934a144fb14f47e85de7cd0097d16f0b542
/admin/user/views/admin.py
d012fa63a87fc0fc950545673abbf69881cb6318
[]
no_license
sclzzhanghaijun/django-cms
b79649129c1810259da6525121e0a597a61ac37b
ccb5363703d47f7bb721fdd12d8b8f7f84c8a220
refs/heads/master
2021-06-24T03:48:52.485657
2020-05-06T07:59:51
2020-05-06T07:59:51
144,838,184
3
1
null
2021-06-10T20:44:25
2018-08-15T10:14:07
Python
UTF-8
Python
false
false
7,732
py
# encoding=utf-8 from django.http import JsonResponse from django.shortcuts import render from django.db.models import Count from django.template.defaultfilters import date from admin.user.models import AdminUser from admin.utils.response import * from common.model.PAdminGroups import PAdminGroups from common.model.PAd...
[ "7192185@qq.com" ]
7192185@qq.com
bda7024b5797dc2379f63fc15bb68ec054bc7343
fb20331d30b1ea399d5b2144cdacd0954f625eb1
/udemy_courses/The_Ultimate_Flask_Course/19.Flask-Security/app.py
50fcd7d0c8deb6dc1cf8884bfb6c4b1ed6be197a
[]
no_license
foxcodenine/tutorials
df2303568bcca9f3619c7625481b4681ebf895e2
42e53a2fbbadd915f14a4f962a9c4c38b7a23e39
refs/heads/master
2023-08-30T11:35:11.339853
2023-08-28T14:05:05
2023-08-28T14:05:05
206,948,465
0
0
null
2023-03-15T10:05:49
2019-09-07T09:52:12
PHP
UTF-8
Python
false
false
7,705
py
# https://pythonhosted.org/Flask-Security/quickstart.html # ______________________________________________________________________ from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_security import Security, SQLAlchemyUserDatastore, UserMixin, \ RoleMixin, login_required, login_req...
[ "foxcode9@gmail.com" ]
foxcode9@gmail.com
6f57674b84d834b2a35358c52c7a457d5431dd13
0bd5a4b07572c46e2a4a59f977c5d80f8bc884b8
/spectrl/main/monitor.py
dc869d043a0731bf76d5f01bb525dde9cc5ce64d
[]
no_license
cwatson1998/spectrl_tool_perspectrl
ab5536d191f612891ea30edba31a4a4833d2b84a
1ec9cead048bbf0932a64c95ad129585e6dd7b2c
refs/heads/master
2023-03-20T05:55:17.802313
2020-11-23T18:27:21
2020-11-23T18:27:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,280
py
import numpy as np import math # Model for resources class Resource_Model: # state_dim : int # action_dim : int # res_dim : int # res_init : np.array(res_dim) # res_delta : np.array(state_dim), np.array(res_dim), np.array(action_dim) -> np.array(res_dim) def __init__(self, state_dim, action_d...
[ "kishor@seas.upenn.edu" ]
kishor@seas.upenn.edu
a8546ea2c42ef57ff411bc805a8f02cf11015ab4
2e874bf8ac9544cb07bbb8b558d0a556b8668d1a
/chatbotone/chatbotapp/arduino.py
dfd505fd2a905f0f5e30b9b249e2745b0d10f74c
[]
no_license
gatewaymanish/IoT-chatbot
69d89d49234576d06a193c469b32f93a341456e1
2707e5bfa81557e1a37a4fb23d73cce476e6c171
refs/heads/master
2020-06-10T00:51:40.723652
2016-12-11T05:32:09
2016-12-11T05:32:09
76,108,897
0
0
null
null
null
null
UTF-8
Python
false
false
13,137
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2011 Alejandro Gonzalez Barrera <alejandrok5@gmail.com> # More info: http://alejandrok5.wordpress.com/ # # This program 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 Softwa...
[ "noreply@github.com" ]
gatewaymanish.noreply@github.com
b6660d915273e2f398c49fd544f4f23936194228
a701b754dc5cd6abc761107d4013e97d13b5a2f0
/Pizza_Ordering_Api/orders.py
97ccaba4b53b36d82acfbe16556a3c48fe443d09
[]
no_license
yholub/Pizza_Ordering_Microservices
669206be73190fa6e15fa26110942b58b4d97bc5
36f0dbea63f72c429b9437d531a2ab449a2b4052
refs/heads/master
2021-08-19T01:47:01.607283
2017-11-24T11:40:12
2017-11-24T11:40:12
111,858,905
0
0
null
null
null
null
UTF-8
Python
false
false
6,870
py
"""API regarding orders""" from flask import Flask, Blueprint, render_template, json, request, current_app, jsonify from models import * import sqlalchemy orders = Blueprint('orders', __name__) @orders.route('/api/Order/GetCurrent', methods=['GET']) def getCurrent(): db = current_app.config["db"] id = db.sess...
[ "jgolub5162@gmail.com" ]
jgolub5162@gmail.com
24f08d53228b38ac05b1f442f5e1f566c82f38b2
aab7639fdca115185675c3bceb13fb3cb1d58e62
/Array/34. Search for a Range(medium).py
66165b9b27e49f2db9b340f0e48bf42d815ce714
[]
no_license
xilixjd/leetcode
0cfc9c32e790e88084e484c369d450fb4619c52c
71a02a2c6bc12e86119502c9c4a4b2047b9f3966
refs/heads/master
2021-01-19T15:46:26.554583
2018-06-02T05:22:31
2018-06-02T05:22:31
88,227,638
1
0
null
null
null
null
UTF-8
Python
false
false
3,832
py
# -*- coding: utf-8 -*- ''' Given an array of integers sorted in ascending order, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found in the array, return [-1, -1]. For example, Given [5, 7, 7, 8, 8, 10] and t...
[ "349729220@qq.com" ]
349729220@qq.com
7e10172995f49d8340f470771651bf9fa726ea4b
34599596e145555fde0d4264a1d222f951f49051
/pcat2py/class/211e063a-5cc5-11e4-af55-00155d01fe08.py
37dfc9a87c38f38cb98ec59c040d9e5436b4491f
[ "MIT" ]
permissive
phnomcobra/PCAT2PY
dc2fcbee142ce442e53da08476bfe4e68619346d
937c3b365cdc5ac69b78f59070be0a21bdb53db0
refs/heads/master
2021-01-11T02:23:30.669168
2018-02-13T17:04:03
2018-02-13T17:04:03
70,970,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
#!/usr/bin/python ################################################################################ # 211e063a-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
[ "phnomcobra@gmail.com" ]
phnomcobra@gmail.com
c8bfea854904c45f654a86b7234e035082db8596
cd593ad87b214afd37560aa3779454f58696a60c
/i3_hooked_on_a_feeling/.config/qutebrowser/config.py
82993ac8a41699dea08d185675ff6d961d6b4bc6
[ "MIT" ]
permissive
timbury/dotfiles_ikigai
e4fa62e1911233720f1a80fd425f9bda8b08df54
2a25883281e21025d7b6219a1512a7f7bf7703e3
refs/heads/master
2020-06-01T11:43:18.738611
2019-01-20T05:09:29
2019-01-20T05:09:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,291
py
# Autogenerated config.py # Documentation: # qute://help/configuring.html # qute://help/settings.html # Uncomment this to still load settings configured via autoconfig.yml # config.load_autoconfig() # set custom theme c.content.user_stylesheets = str(config.configdir) + '/inspected_css/drac.css' config.bind(';p...
[ "yedhin1998@gmail.com" ]
yedhin1998@gmail.com
c89bb72d906d579e0bd1a3b813b42be1ad4f5fa1
8d39c25241e89593e7bb8da8a568033b20a59fe1
/project/_tool/checkIsRepeat.py
e97bc4bb71152951e3ed53ccb88d2ad6fb1c7023
[]
no_license
Jason20015/Py3Crawler
62a59c8b487728daf772237fbd95bbc00c707f6d
f04348691c1809bbbc5a4cf4f084c998e8b49803
refs/heads/master
2020-04-05T07:18:08.342880
2018-11-07T12:03:07
2018-11-07T12:03:07
156,670,337
0
1
null
null
null
null
UTF-8
Python
false
false
754
py
# -*- coding:UTF-8 -*- # 获取指定存档文件中是否存在重复的主键 import os from common import file, output # 存档路径 SAVE_FILE_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "save.data")) # 存档中唯一标示(如,账号id)的字段下标 NAME_COLUMN = 0 # 检测存档文件中是否有相同的主键 def check_is_repeat(): history = [] for line in file.read_file(SAVE_FIL...
[ "hikaru870806@hotmail.com" ]
hikaru870806@hotmail.com
1ee56236b83309a4459eb96cde3b8089b8ca6ea2
4c0506db687b74cd8e019629e4504c139ea423a1
/a.py
cc441a03016b152f5e6cb8aa7e6eb6d07a4d0867
[]
no_license
Lsgraalq/total-update
80f1585de7985716197e4ebb9f8b4affbcd2d4fd
2cddbd60655c435a25786caa24fec3aaba151d3e
refs/heads/main
2023-07-28T07:47:16.475630
2021-09-11T14:11:38
2021-09-11T14:11:38
405,384,665
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
import math import sys sys.stdin = open('input.txt', 'r') sys.stdout = open('output.txt', 'w') (a, b, c) = [int(s) for s in input().split()] (h, l,) = [int(s) for s in input().split()] z = (a * b + a* c + b*c)*2-a*b z = z - 0.15*z x = h*0.001 p = l*0.001 c = x *p c = c - 0.1 * c u = z/c print(math.ceil(u))
[ "ilya.merinec@gmail.com" ]
ilya.merinec@gmail.com
d5339fe24f182a3d821121c4d9aab37da1217fb2
5a62a111b30899e3260c4fe634e16049eb90cf78
/flickr-album-download.py
966efe870f1caaff6fc7aa34d8019203da3eafd0
[]
no_license
silveira/flickr-utils
6782d74067b08eb400ae5421949ab7d63ae864f9
eff02abac012778ce94a119206efe6705c5418d2
refs/heads/master
2020-03-14T08:40:08.689199
2018-04-29T21:17:37
2018-04-29T21:17:37
131,529,998
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
#!/usr/bin/env python import flickrapi import math api_key = u'' api_secret = u'' user = u'' photo_set = u'' PAGE_SIZE = 500 def generate_download_list(): photos = flickr.photosets.getPhotos(photoset_id=photo_set, user_id=user) total = photos[u'photoset'][u'total'] pages_necessary = int(math.ceil(float(total)...
[ "silveiraneto@gmail.com" ]
silveiraneto@gmail.com
d4f39bf650b55dedde222b5251a26bce84f9166d
3b4435a6611a72227e444ed4b9029c36f514b0b5
/leetcode/Add_Two_Numbers/test.py
e8f0ff2aa5b05fb9e08901175aa500f9d2172284
[]
no_license
osy497/algorithm-test
f189fef146068af9a0125630890ec55c10626985
65e70235ca97dbc488a2623ff1b01eb8c8fb685c
refs/heads/master
2023-03-07T10:57:55.342994
2021-02-23T07:00:51
2021-02-23T07:00:51
310,162,394
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
#!/bin/python3 # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode: temp_l1 = l1 temp_l2 = l2 l3 = ListNode() ...
[ "root@pl-8-builder-13.tk" ]
root@pl-8-builder-13.tk
7b3d2d7f91f67b11124933b5ffacb748256d4bf8
e1aca7817e7a6818498bbe6e3ab89de440574917
/tasks/task08/shapes.py
9a18a1c41f3badb2b7ce164b189263c07d3469f2
[]
no_license
YMikita/exadel-python-course-2021
36289cfa58ea811755b9f8b2d857e51f3046ae47
98204c94e286bae660988f2f4a8568e488dc7a3d
refs/heads/main
2023-08-31T15:03:59.669834
2021-10-12T11:02:12
2021-10-12T11:02:12
402,911,236
0
0
null
2021-10-09T21:39:38
2021-09-03T22:26:28
Python
UTF-8
Python
false
false
877
py
from tasks.task08.shape2d.square import * from tasks.task08.shape2d.shape_collection import * from tasks.task08.shape2d.circle import * point = Point(50, 70) point2 = Point(60, 60) rectangle = Rectangle(point, 10, 20) print(f"Rectangle: {rectangle}, Area: {rectangle.area()}, Point[{point2}] contains: {rectangle.__cont...
[ "myepishkin@exadel.com" ]
myepishkin@exadel.com
43bdc0a3895c523a91a98518066d51d71fed380a
9745d3fcf7c759235a58c8d8ddab6d41b9497779
/Experience&Practice/SpiderProject/ScrapyProjects/PDDSpiders/PDDSpider/scrapy_redis/scheduler.py
c9dd29be25226ec923e6d7aa970c916c1b3dfe89
[]
no_license
runningabcd/Spider-Life
eb12f60cc4bbde1d64dc233efcb89334e8c81c94
149dca0fff92cdeea5df0584ae4b81ea15599fac
refs/heads/master
2020-04-08T14:29:40.596767
2019-11-12T16:41:06
2019-11-12T16:41:06
159,439,169
6
0
null
null
null
null
UTF-8
Python
false
false
3,680
py
import sys import os from os.path import dirname abs_path = dirname(dirname(os.path.abspath(__file__))) abs_parent_path = dirname(abs_path) sys.path.append(abs_path) sys.path.append(abs_parent_path) from scrapy.utils.misc import load_object from PDDSpider.scrapy_redis import connection from PDDSpider.scrapy_redis.du...
[ "821907280@qq.com" ]
821907280@qq.com
d7a5d2aa19ba4d95592d177e726474c4ddd58548
1a4aedbfa972382ea52852eb8f10ec96766ffdfd
/tests/unittests/test_nested_loops_join.py
d02fa287724bebaab6c306f37a669818b243a57c
[]
no_license
Bradfield/braddb
e8265d00edb0889563f7d72e6458505bbf9ddbbd
f38fec6c152d00f6695c56cec981edd5644abd79
refs/heads/master
2021-07-11T07:01:54.930935
2017-10-15T22:54:05
2017-10-15T22:54:05
106,343,661
5
3
null
null
null
null
UTF-8
Python
false
false
3,144
py
import unittest from executor.executor import tree, execute from executor.memscan import MemScan from executor.nested_loops_join import NestedLoopsJoin class TestNestedLoopsJoin(unittest.TestCase): """ Test our most basic join: nested loops with optional theta function. """ R_RECORDS = ( (0, ...
[ "ozan.onay@gmail.com" ]
ozan.onay@gmail.com
8a3d92cd176d4a3ddf0015fde1ca972969c8ee9f
f73cef3ff58a47529c78a6bc1ade798df24087bd
/highway_env/vehicle/graphics.py
b32365494710c97b1c3802aa393766e9c0609f30
[ "MIT" ]
permissive
songanz/highway-env
35d825c13f36295c5e8ede6e849422a4d4f7e445
ac21d1da25e224dbdbf8ba39509f4013bd029f52
refs/heads/master
2022-08-27T03:48:18.943017
2019-07-11T21:42:27
2019-07-11T21:42:27
193,512,750
1
1
null
null
null
null
UTF-8
Python
false
false
4,748
py
from __future__ import division, print_function import numpy as np import pygame from highway_env.vehicle.dynamics import Vehicle, Obstacle from highway_env.vehicle.control import ControlledVehicle, MDPVehicle from highway_env.vehicle.behavior import IDMVehicle, LinearVehicle class VehicleGraphics(object): RED =...
[ "songanz@umich.edu" ]
songanz@umich.edu
0b9c9ce631c9d21aaf68621a80548d0d5d3b74a4
9d7c9441afefba1c0c78a550c928c9d7f7568292
/python-udp/udpThriftserver.py
1166cb88c5d44fc1c21002cbc892304babdcbb8c
[]
no_license
popweb/quickdemo
2a4f5c26dbc415303d2ef1118bf1e3e1d6d27aa0
477028cba3b6504a87bd2280e8ae3a4c9efd7797
refs/heads/master
2021-07-17T00:17:30.427854
2017-10-24T10:01:24
2017-10-24T10:01:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,885
py
#!/usr/bin/env python # UDP Echo Server - udpserver.py # code by www.cppblog.com/jerryma import socket, traceback, sys, struct import struct from ctypes import * from thrift.protocol import TCompactProtocol from thrift.transport import TTransport from attackchecker.ttypes import TAttackInfo host = '' textport = sy...
[ "jiaqifeng@gmail.com" ]
jiaqifeng@gmail.com
1153b6099e95fe5d652d4b243980f2b0347097ab
f7c22882401fd410c38d78de9b9994b3563cad1b
/main.py
0b5ef6706f09837e24e7256994d3d8d8fc95db2b
[]
no_license
Ahmed-Aun/Desktop-Download-Manager-pytube
fddf62d1d6d1cfa06a35876b6cd5c4616e82ce7b
57fba3f73a35f6d727066bf41e615a3a79988857
refs/heads/main
2023-06-03T18:44:31.372437
2021-06-16T17:18:47
2021-06-16T17:18:47
377,573,018
0
0
null
null
null
null
UTF-8
Python
false
false
84,514
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\main.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
[ "Ahmedhassaninaun@gmail.com" ]
Ahmedhassaninaun@gmail.com
41dfdff35f1bc808e0a824c83762f84a235ac6d7
baaa3a4d6cc9f9e465726ba11647ca9a3e431a7e
/IN1000/Obligatorisk innlevering 7/spillebrett.py
10630ac1b306e3f310bd4b01509f267bdd42c866
[]
no_license
MehCheniti/Python
671d430868e1b8eeafabd7ecb1cf6684ab5c6858
1e1dc38dc874e03cb248664ff48f3cb2d497c6e5
refs/heads/master
2022-05-28T03:05:31.336202
2022-03-11T19:55:46
2022-03-11T19:55:46
206,413,523
0
0
null
null
null
null
UTF-8
Python
false
false
3,974
py
from random import randint from celle import Celle class Spillebrett: """Dette er en klasse som beskriver et todimensjonalt brett som inneholder celler. Den skal også oppdatere celler som skal endre status.""" def __init__(self, rader, kolonner): self._rader = rader self._kolonner = kolon...
[ "mehdiwx91@hotmail.com" ]
mehdiwx91@hotmail.com
785fdd86b44a7160a436e651f6b5f7d38e8a7e52
4f5f40a874a9ae17d25cb2fe8cac5fba327b5265
/tests/conf_zephyr_run_qemu.py
e683bc210b8ce4e89d3e1b4495bb74d9dbf06c3b
[ "Apache-2.0" ]
permissive
dickeylim/tcf
4f580b507d381542f22c0899e4922add13f76926
4ecda0e1983fed2cb932242395a5be4754349534
refs/heads/master
2020-06-25T16:30:34.613115
2019-08-27T18:39:25
2019-08-27T18:39:25
199,366,410
0
0
Apache-2.0
2019-07-29T02:48:55
2019-07-29T02:48:54
null
UTF-8
Python
false
false
434
py
#! /usr/bin/python2 # # Copyright (c) 2017 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # ttbl.config.target_add(tt_qemu_zephyr("qemu-01", [ "x86" ]), target_type = "qemu-x86") ttbl.config.target_add(tt_qemu_zephyr("qemu-02", [ "x86" ]), target_type = "qemu-x8...
[ "inaky.perez-gonzalez@intel.com" ]
inaky.perez-gonzalez@intel.com
3513cfbf809ce88471e833d75ea30155f8ab6609
1d7256a89de883ddd45a7731d309aae404491035
/information_boards/old_codes/c_individual_analysis/c2_summary/__c2_s3_driver_productivity_economic_profit.py
7e13814a869c481bc3257381a541f694cb18d25c
[]
no_license
M20190649/taxi_projects
a559329366fe2357b826909543a54b12b6d98301
b910e2308d4725e88fb00714e489b1291cfeb215
refs/heads/master
2021-06-17T15:14:55.849298
2017-06-01T10:17:23
2017-06-01T10:17:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,929
py
import __init__ # @UnresolvedImport # @UnusedImport # from __init__ import SEC3600, CENT from c_individual_analysis.__init__ import ftd_gen_prod_db_for_ap, ftd_ap_prod_eco_prof_db from c_individual_analysis.__init__ import ftd_gen_prod_db_for_ns, ftd_ns_prod_eco_prof_db from __init__ import dfs from __init__ import Y0...
[ "jerryhan88@gmail.com" ]
jerryhan88@gmail.com
5bd7459e82b82c92a904f9a7bc161ed705b59c9c
c98195975cfacacfe81fa31e37883a9a54a294e8
/asn_server/Demos/system/resourceIntensive/cov1svd.py
304fd7a46a9e93b7f6d537e6aa183798ed992b09
[ "Apache-2.0" ]
permissive
konradhorbach/MARVELO
d51111a248a1701fac6f9afaecd24c66532f9b1c
aa81d855cc42ec24459c5033831744686c70d315
refs/heads/master
2022-12-12T12:07:14.636765
2020-09-11T14:00:07
2020-09-11T14:00:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
#!/usr/bin/env python import os,sys import argparse from scipy import linalg as LA import numpy as np from scipy.io import wavfile #%---------------- Start Additional Resource intesive method import threading, time, sys runTime = 5 fileName = "cov1SVD: " def r_intensive_func (fileName,itime): start = time.time() ...
[ "hafifi@mail.uni-paderborn.de" ]
hafifi@mail.uni-paderborn.de
c3ae8bfd6efcec69271ffddd04081c8eff824933
8f270db082a7f46ecfe9d68a37ebe8d06e89efb9
/fastaSubset.py
c44fb4d280cb2eed91fb99c10840d899664e3012
[ "Unlicense" ]
permissive
jharman25/phylo_tools
7c1bf7c4b6fb7353db5797e98b302ac8adbd9372
470873a6decd8c9ca6f66308eeb53f7f6627115b
refs/heads/master
2020-07-04T08:42:02.724540
2015-09-15T18:04:38
2015-09-15T18:04:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,644
py
#!/usr/bin/env python __description__ = \ """ Take a subset of the entries in a fasta file where something in the header matches "pattern". -e forces an exact match to everything after >. """ __usage__ = "fastaSubset.py fasta_file pattern OR file_with_patterns [-e]" __author__ = "Michael J. Harms" __date__ = "110604" ...
[ "harmsm@gmail.com" ]
harmsm@gmail.com
1abdf9eec3b0ed484e7efc007c9248e115240d3f
69afcab7add5756f00018fa5ff8af2e67665fa6b
/main_menu.py
825059c61f6334e4b04f550fd1abf083f0d4ccfe
[]
no_license
jmcgalliard/Clong
b2333c9bbb80f2fa912a094d205a258c9a308a69
55ac11d1d8ac8827d654a5c5f9aa3f88271a47bb
refs/heads/master
2021-06-20T19:41:26.431392
2017-04-17T22:12:49
2017-04-17T22:12:49
86,214,217
0
0
null
null
null
null
UTF-8
Python
false
false
2,885
py
import pygame import screen import colors import game_fonts import play_game def main_menu(): # MODES # 1 - Main Menu # 2 - Single Player chosen_text = 1 mode = 1 ## GAME LOOP ## done = False while not done: for event in pygame.event.get(): if event.type == pyg...
[ "j83001@gmail.com" ]
j83001@gmail.com
c9ca527ad941bf382ae6356b9477118e827b1c7c
803c669ed1c9b3f2f9cb227c3e36b38b9b14064c
/미정리/bj_2178_미로탐색_숏코딩.py
f7a99dd8a9e2af996f3d5c6422be222d578b80f9
[]
no_license
steddybag/Algorithm-and-SP
5052fdaad17f53e43c0bcbbf948ad4a466ebaf04
e828346d8a59187866e6740823a058be5783cc2a
refs/heads/master
2023-04-11T06:29:06.315421
2021-04-23T09:41:08
2021-04-23T09:41:08
357,401,035
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
import sys sys.stdin = open('input.txt','r') n, m = map(int,input().split()) queue = [] dx = [0,-1,1,0] dy = [1,0,0,-1] s = [list(input()) for _ in range(n)] queue = [[0,0]] #어렵게 생각하지 말고 직관적으로 생각할 것 s[0][0] = 1 while queue: a, b = queue[0][0],queue[0][1] queue.pop(0) for i in range(4): x = a+dx[i] ...
[ "dongju695@gmail.com" ]
dongju695@gmail.com
eb99f204e73b205ce9d460b46f43410ac639d478
9afc92049dd679d57743016fcaa9df001394298c
/code/codility/prefix_sum_prefix_sum_passing_cars__.py
6890f5c39d0c1d78d6e5df147cb88cb8437f2493
[ "Apache-2.0" ]
permissive
dinkar1708/coding_interview
b72cf322586a2862637925333ec9098db8f18d88
374d7e3d20350e363ed03a90198a067ef277af30
refs/heads/master
2021-08-22T11:44:14.611053
2021-08-04T14:25:11
2021-08-04T14:25:11
225,569,377
1
2
Apache-2.0
2021-07-20T15:57:55
2019-12-03T08:33:34
Python
UTF-8
Python
false
false
1,056
py
def solution(A): """ Dinakar https://app.codility.com/demo/results/training6SEGRM-7Q2/ Use suffix some - from right side each 1 must be passing zero cars if found.. [0, 1, 0, 1, 1] [3, 3, 2-->must pass previous cars right side of it, 2, 1] ---- """ print(A) len_ar = len(A) suffix...
[ "dinkar1708@gmail.com" ]
dinkar1708@gmail.com
b444d6609c3eda0faab93df1c871ac76fcbe3bd5
a3cc82b930a669ea8bc7210ce973a3c00b682213
/lib/MapFastq.py
ac672e62f47e3bc3abf715f81db5e867bf75affd
[ "MIT" ]
permissive
tweirick/RNAEditor
289896989d6dfee547541a8fd80905233ec3b92f
16facf3e8743d2837eb97586af86c986cb792011
refs/heads/master
2021-01-21T13:21:50.465755
2017-05-19T20:11:53
2017-05-19T20:11:53
70,837,169
0
0
null
2016-10-13T18:42:29
2016-10-13T18:42:29
null
UTF-8
Python
false
false
17,686
py
#!/usr/bin/python import argparse import os import multiprocessing from Helper import Helper class MapFastq(object): """ Maps a fastQ file to the given genome/ """ def __init__(self, rna_edit_obj): """ Constructor """ self.rnaEdit = rna_edit_obj # Set fastq files and check if the ...
[ "tyler.weirick@gmail.com" ]
tyler.weirick@gmail.com
4ed13099ffbfcecf7846955a084a2123528d4ecf
384b5ed9b6581f6e75a4c84d1b183357ec85d563
/staff/api.py
a986875938b835300c9b78a7e971a4202b6ecc75
[]
no_license
diemnt/eBook
d8d3a6f1d6be2b6192667c509e530bac873c4576
59781afa38420f9595e04c6460d1cfc23449c21b
refs/heads/master
2020-04-09T07:50:20.634561
2018-12-03T10:21:22
2018-12-03T10:21:22
151,664,583
0
0
null
null
null
null
UTF-8
Python
false
false
2,535
py
from django.utils.translation import ugettext_lazy as _ from rest_framework import viewsets from rest_framework.permissions import AllowAny from rest_framework.decorators import api_view, permission_classes from rest_framework.response import Response from staff.models import Staff, Role from staff.serializers import S...
[ "diemnguyen@vooc.vn" ]
diemnguyen@vooc.vn
be03ce1c5168d01cd98377cf216a316388b4c1ef
d7cb6fd966b4dda57e3a984dc926cc3669a98915
/_support_func.py
b6e806b4c2eed387039c5b78ed3f580078d5ca2b
[]
no_license
raviy8408/AnyClassification
037bec829d13c76418b568d986ff9e4a31249aa7
af9c4e3890a66d3c641dd211265d0de24deb7217
refs/heads/master
2021-07-05T08:22:42.232084
2019-12-12T09:30:14
2019-12-12T09:30:14
130,036,974
0
0
null
null
null
null
UTF-8
Python
false
false
14,852
py
import numpy as np import pandas as pd from _plot_func import * from _helper_func import * def print_categories(df, cols): ''' :param df: Pandas DataFrame :param cols: Categorical columns :return: prints all the categories of the categorical columns given ''' print("\n##########--levels of ca...
[ "raviy8408@gmail.com" ]
raviy8408@gmail.com
2ca5a7517e53c5f8814d79f08ebdb91d5ae890d2
63ab04fa56f0aa115a927dfe4991bbb0536a958c
/src/main/java/old/y2018/m9/d11_palindrome/Sol.py
2c8b2292d0ed00ab007ad1b27b78e6c4bdf790c4
[]
no_license
myks790/algorithm
a5c7db409c19bea82da5cdc5b2b9b00b13ec247e
90f452076e887bcb6c478e0cbd1c24c430862cff
refs/heads/master
2020-03-26T07:09:55.210663
2018-12-04T13:49:58
2018-12-04T13:49:58
144,639,101
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
def palindrome_rec(s): if len(s) == 1 or len(s) ==0: return True elif s[0] == s[-1]: return palindrome(s[1:-1]) else: return False def palindrome(s): le = len(s) for i in range(le//2): if s[i] != s[le - i -1]: return False return True def solution(...
[ "myks790@gmail.com" ]
myks790@gmail.com
d85462c72cd8b425b994ac02bbe76a3742a0e263
304033f60097c489cbc60aab639be45ccdbef1a5
/algorithms/boj/mAth/10164.py
e379482c4ff56e7e8e0b74799b1a945f6657103c
[]
no_license
pgw928/TIL
3d0c47c07bd1f5c73826daf8579a2b0e3f93cb95
765906f1e6eecad4ad8ec9bf704041433d7eb304
refs/heads/master
2023-06-29T05:46:30.039815
2021-08-10T17:38:11
2021-08-10T17:38:11
288,923,095
3
0
null
null
null
null
UTF-8
Python
false
false
329
py
import sys n, m, a = map(int, sys.stdin.readline().split()) q, r = divmod(a, m) if r==0: r+=m q-=1 def sol(x, y): res = 1 for i in range(y+1,x+y+1): res*=i for i in range(1,x+1): res//=i return res if a==0 or a==n*m: print(sol(m-1,n-1)) else: print(sol(q,r-1)*sol(n-1-...
[ "pku928@naver.com" ]
pku928@naver.com
6edfc7a5172849ade4858f08dfd4e5271cafa696
097828ccedc279e542a10f174e4fb200a48516e0
/siteroot/TextSongs/migrations/0008_auto_20210327_0138.py
32c27328e162b24583a72735996785eaca37f3bd
[]
no_license
askomyagin/Django-Project
1ef01a6a981ece905b075d919e16d4fd675ce80b
7e9f6514ab35a3f2d9e6913352953f33fdd8e2ee
refs/heads/main
2023-04-03T07:02:50.498960
2021-03-28T15:03:36
2021-03-28T15:03:36
352,357,331
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# Generated by Django 3.1.7 on 2021-03-26 22:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('TextSongs', '0007_ordertext'), ] operations = [ migrations.AlterField( model_name='ordertext', name='info', ...
[ "sashawqw@mail.ru" ]
sashawqw@mail.ru
5d3eea3177799ac19d999743783ecdf15001e3bd
41637d65d88f6f00cd8ece80e90650341e22b86e
/pysprint/core/bases/dataset.py
18ef8791f97bb73c5374c3418c7f6211d8ac58d3
[ "MIT" ]
permissive
razzaqjavaria/PySprint
c9e1f7bcfbf5c35e7273fc87ad9b91fd8858249f
f90811970c66e8fadea1220c4c19bf95cdf33c9e
refs/heads/master
2023-09-04T20:55:39.904168
2021-11-11T11:29:01
2021-11-11T11:29:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
53,301
py
""" This file implements the Dataset class with all the functionality that an interferogram should have in general. """ import base64 from collections.abc import Iterable from contextlib import suppress, contextmanager from io import BytesIO import json import logging from math import factorial import numbers import re...
[ "leeh123peter@gmail.com" ]
leeh123peter@gmail.com
513c7831beef1af21d4ecefc4ab419f8069a9ef7
af5673178ad4cd5dd153ad0cece0e9f8a171bdd9
/inventory/models.py
b7894aa7db25e934ab44b5f7c3efbea888c9ea4b
[]
no_license
saadatqadri/unlyst
d0bd21e6ae7173acc4392c666561dc7ebd6caa6a
7fc31a8e33ecb625f093acbb7c445adc0e63e0d7
refs/heads/master
2016-08-03T11:58:46.145149
2014-09-20T13:51:38
2014-09-20T13:51:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,263
py
from django.db import models import random import string from django.core.urlresolvers import reverse # Create your models here. def random_key(size): return ''.join([random.choice(string.letters + string.digits) for i in range(size)]) class Property(models.Model): HOME_TYPE_CHOICES = ( ('H', 'House'), ('C',...
[ "saadat@vermillionapps.com" ]
saadat@vermillionapps.com
bfd5921d432ef852a048251f64ed461d57cc67a5
ea1d6d4ba29268c17523eaa7fb64cad18cbb5e1c
/scrapy_realestate/pipelines.py
7791c9e3a29fce209e80bd201f185d4460104b12
[]
no_license
zhongw117/scrapy_realestate
c6e671545bfa13dec382a2dd7edd4e75023a8cbf
a3e1d90e965e18461db3b62fb17c5e676c922c18
refs/heads/master
2020-05-17T05:21:48.548298
2019-04-30T02:06:12
2019-04-30T02:06:12
183,530,190
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class ScrapyRealestatePipeline(object): def process_item(self, item, spider): return item
[ "zhongw117@gmail.com" ]
zhongw117@gmail.com
2fdd5d3993d5c05d754dc6d7e2ab5523a6b68629
9ee8de4544d9de8b9690bf425245103d0b77fc5b
/trimesh/path/io/svg_io.py
25dfb85679aea6f0a8c9840591d4bcb980973722
[ "MIT" ]
permissive
Artur-Sampaio/trimesh
80a926495b1f71eedc99fb82130575841c4c9ae7
3743ae2d932d9f7eab9ad69e2626e1646589bb2c
refs/heads/master
2020-03-23T13:17:14.545609
2018-07-20T16:15:54
2018-07-20T16:15:54
141,610,010
0
0
MIT
2018-07-19T17:16:51
2018-07-19T17:16:51
null
UTF-8
Python
false
false
7,865
py
import numpy as np from string import Template from collections import deque from xml.dom.minidom import parseString as parse_xml from .. import entities as entities_mod from ..arc import arc_center from ...resources import get_resource from ...constants import log from ...constants import res_path as res from ... ...
[ "mik3dh@gmail.com" ]
mik3dh@gmail.com
7f2a3f492125f3bb40383273ce56da4b026d57ab
b7cdc913afdf58f3b1762dbb9708f7cfb38a8887
/cve_2_MSF_exploit_Mapping/mapper_cve_exploit.py
437b0b433b567fa2ca07a836cb3710bca29f687b
[]
no_license
Gh0st0ne/Xerror
8173b5e3085921cbb4e5020e7a451d69839a4450
4b208c4e518ec432af6eeeeefc127b343c2c33b9
refs/heads/master
2022-11-30T13:24:49.992893
2020-08-12T06:38:31
2020-08-12T06:38:31
287,769,040
1
0
null
2020-08-15T15:04:28
2020-08-15T15:04:28
null
UTF-8
Python
false
false
3,444
py
from opvs_csv_parser import openvas_csv_parse_detail from msf_cve_extracter import msf_csv_extract class mapper_opn2msf_cve(): def __init__(self,openvas_csv_file, msf_module_file): self.openvas_csv_file = openvas_csv_file self.msf_module_file = msf_module_file self.opvas_csv = openvas_csv_parse_detail(self....
[ "noreply@github.com" ]
Gh0st0ne.noreply@github.com
8fe758f58ef3eefdccf1cc0bf68844bb55754957
7ef433b1407e0ab127df87b2b8c7d99f2c5fadf3
/CVapp1/wsgi.py
bbc35d2251f8aaf90db57282c03a6291e5f72291
[]
no_license
BriamB/CVapp_Master
44f15b013714491942fd02a7aed3e144eca75c2d
060fc62ec63a94bca26857fe889e8752d028e5e1
refs/heads/master
2023-07-31T07:24:48.433435
2020-05-02T01:33:45
2020-05-02T01:33:45
260,590,767
0
0
null
2021-09-22T18:57:21
2020-05-02T01:15:39
JavaScript
UTF-8
Python
false
false
389
py
""" WSGI config for CVapp1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "briam.bermudez11@gmail.com" ]
briam.bermudez11@gmail.com
3f1e83ad6d11ac3c3949bd84f6a2c941c6635438
7cb626363bbce2f66c09e509e562ff3d371c10c6
/multimodel_inference/py3_v1/sc1ilsm.py
bb652a6518be79b22dfb762c1cdb162f2fa53497
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
z0on/AFS-analysis-with-moments
76bfd6b0361ab7e9173144dbd21b6fa2c7bf1795
eea4735b3b6fbe31c4e396da3d798387884a1500
refs/heads/master
2023-07-31T20:49:20.865161
2023-07-19T06:57:32
2023-07-19T06:57:32
96,915,117
4
5
null
2020-09-02T17:39:08
2017-07-11T16:38:03
Python
UTF-8
Python
false
false
3,521
py
#!/usr/bin/env python3 # simple "primary contact" # split, same size but two migration epochs in each pop, no migration in first epoch, symmetric in second epoch # genomic islands # n(para): 8 import matplotlib matplotlib.use('PDF') import moments import pylab import random import matplotlib.pyplot as plt import num...
[ "matz@utexas.edu" ]
matz@utexas.edu
673a0671fd745f80672d9b21df0990c2a0e2fed8
c266d942da6da24812abf8a8dbe0292e63b16fa8
/reinforcement_learning/0x03-policy_gradients/policy_gradient.py
44c52ec4a85c94bbd7dfd6012d83dc2692f49d5e
[]
no_license
Viiic98/holbertonschool-machine_learning
447be16c096bb6f3c8983c9479cc5fada7bf0945
fe8fe88a43b7a86f0c4b05540751847e7c1c418b
refs/heads/master
2023-03-28T16:03:15.429720
2021-03-31T01:11:36
2021-03-31T01:11:36
279,635,527
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
#!/usr/bin/env python3 """ Policy gradient """ import numpy as np def policy(matrix, weight): """ computes to policy with a weight of a matrix """ z = matrix.dot(weight) exp = np.exp(z) return exp / exp.sum() def policy_gradient(state, weight): """ computes the Monte-Carlo policy gradient based ...
[ "xathovic@gmail.com" ]
xathovic@gmail.com
40e6d94b00771143f58120413635d8f3c1d68756
7b494d12cadb2dbdc18adbecbf8fae222afdb39c
/aoc_cqkh42/year_2016/day_12.py
9242632e2de07ca0728f21c4257a765bba47a6c5
[ "MIT" ]
permissive
cqkh42/advent-of-code
3849b3cea4699e336f5672b0b4e297c59ac9f339
0204afb638c5fef8478201fd5b061708497b7cee
refs/heads/main
2023-08-08T20:40:58.623375
2023-07-23T20:58:49
2023-07-23T20:58:49
315,266,572
1
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
from aoc_cqkh42.helpers.base_solution import BaseSolution class Solution(BaseSolution): def part_a(self): registers = {'a': 0, 'b': 0, 'c': 0, 'd': 0} instructions = self.input_.split('\n') return run_program(instructions, registers) def part_b(self): registers = {'a': 0, 'b':...
[ "jackcooper93@gmail.com" ]
jackcooper93@gmail.com
1d18d979e8f6e6fc1a36dcea21ce5d57e62cc090
a14904922d563f25148ab1ce66cc26c0782684cc
/pub_n_sub/script/py_msg_sub.py
4d1d46c84870eac1a802c3c6464edc5fa06d2ad5
[ "MIT" ]
permissive
VirtuosoRobotics/ROS_Basic
0fb16066b8f60dd73da5bee3de3b6e6ef3dfe2c6
467d54c23a965ea7059cba7c2df790c94753a58a
refs/heads/master
2023-02-28T22:43:41.301648
2021-02-04T15:30:23
2021-02-04T15:30:23
189,814,317
1
0
null
null
null
null
UTF-8
Python
false
false
314
py
#!/usr/bin/env python import rospy from std_msgs.msg import String from pub_n_sub.msg import Num def callback(data): print data def listener(): rospy.init_node('listener', anonymous=True) rospy.Subscriber("custom_msg", Num, callback) rospy.spin() if __name__ == '__main__': listener()
[ "eric@virtuosorobotics.com" ]
eric@virtuosorobotics.com
146d3e0d5dd3fb693d043ac9690c393cb0324502
c4058023aee1730cf038a318823e24718760c1e7
/2020/day23.py
ce45e8268f58976fd9e74177a340f370f61138fb
[]
no_license
LiamSarwas/Advent-of-Code
383adcf8dd240678f20ecb4f67a015d61351380a
4016ed18fab338554297a721b54eb0fe248bd951
refs/heads/master
2022-12-14T11:30:34.095498
2022-12-13T06:00:08
2022-12-13T06:00:08
225,778,461
1
0
null
null
null
null
UTF-8
Python
false
false
3,268
py
import time import itertools import math from pathlib import Path FILE_DIR = Path(__file__).parent class Node(): def __init__(self, cup, next_node): self.cup = cup self.next_node = next_node def __repr__(self): return f"{self.cup} --> {self.next_node.cup}" def construct_linked_list(...
[ "lsarwas@domaintools.com" ]
lsarwas@domaintools.com
a5a6dca21d1c53e003df13f012704d0743930e8d
8f383ae81935c3746dfb721aab638d530d07ec78
/API_Testing/TestSuite/testSuite-2.py
eb0e646db570b767bd2b9fdeb60f20624f0a43ce
[]
no_license
adnanhanif793/Assignment
f5f490bc8bb4dca448aaa66aa87591f6cbf76fd2
449422dd7356aceb0e71fc0fb8efaa842062283b
refs/heads/master
2022-10-20T19:37:33.405945
2020-01-07T06:53:56
2020-01-07T06:53:56
211,309,078
0
1
null
null
null
null
UTF-8
Python
false
false
2,113
py
# importing Modules import requests import jsonpath import json def test_allapi(): # get rest API End point url = 'https://reqres.in/api/users?page=1' print(url) # Execute the rest GET API v_response = requests.get(url) # response code of the request v_responsecode = v_response.status_code...
[ "adnanhanif793@gmail.com" ]
adnanhanif793@gmail.com
8ed28eff95225efc2d6bc1bbf5c5995ad0914066
40075340d4f8f26da3c15791837b9d411cde2af6
/Labs/Lab05/game_driver.py
c8d8614a3458711835a16a3af4738473f9d6cc58
[]
no_license
dlee533/comp1510-programming-methods
54117912afc5bd8080b36b5726ef185f9668f65e
3114aa37d350f92ea447e894e4320ab633ddce1d
refs/heads/master
2023-04-10T11:05:55.033152
2021-04-23T07:27:35
2021-04-23T07:27:35
360,799,467
0
0
null
null
null
null
UTF-8
Python
false
false
2,473
py
from Lab05 import lab05 def main(): print("Generate consonant/Generate vowel function works the following way...") print("Consonant : ", lab05.generate_consonant()) print("Vowel : ", lab05.generate_vowel()) print("The returned consonant and vowel then concatenates to form a single syllable. Like so.."...
[ "donglmin@icloud.com" ]
donglmin@icloud.com
afe0d8b3e752556b5fe6162288013657579331b9
e9708de48c5ce8033599aead69ec7663f458f0ba
/scripts/nano_postproc.py
71ec9daddf66e640476f63fc141bbcb4842a8ef0
[]
no_license
gpetruc/nanoAOD-tools
13c858964a8cc2cb5b606876874d2c570b464187
c924b0aecb4c4a05389f6eab665c9e3e7dd5fb03
refs/heads/master
2022-04-07T16:19:21.453086
2017-09-19T09:50:30
2017-09-19T09:50:30
104,087,382
0
1
null
2019-10-04T10:04:25
2017-09-19T14:42:01
Python
UTF-8
Python
false
false
5,611
py
#!/usr/bin/env python import os, sys import ROOT ROOT.PyConfig.IgnoreCommandLineOptions = True from importlib import import_module from PhysicsTools.NanoAODTools.postprocessing.framework.branchselection import BranchSelection from PhysicsTools.NanoAODTools.postprocessing.framework.datamodel import InputTree from Phys...
[ "gpetruc@gmail.com" ]
gpetruc@gmail.com
35bf41215bae8d8193062788656d61eb4d607feb
adca1abc8cee93cfd48570408df41ec4100fedfd
/Simulations/mdp.py
2f4a8c8711d8d8f7492831274349674b9195c3a9
[]
no_license
bchasnov/mdp
8e92d6e0ffb345d7736d25b13241d713df62e68c
9a4e6090bb1192d4af3586601a7c6968b2407b59
refs/heads/master
2020-03-22T16:33:03.321723
2018-07-09T19:46:03
2018-07-09T19:46:03
140,333,952
0
0
null
2018-07-09T19:40:46
2018-07-09T19:40:46
null
UTF-8
Python
false
false
11,496
py
# -*- coding: utf-8 -*- """ Created on Fri Jun 01 12:09:47 2018 @author: sarah These are helpers for mdpRouting game class """ import numpy as np import cvxpy as cvx import matplotlib.pyplot as plt import networkx as nx class parameters: def __init__(self): self.tau = 27. # $/hr self.vel = 8. # ...
[ "crab.apples00@gmail.com" ]
crab.apples00@gmail.com
00752fa113e81d092925d5138c1115e88aced07f
b2ff835c817e691929b57f2cdb822c391583db68
/Embedding_Combination_Layer_2/helper.py
078678f1f3b17e6db669bc77875e7d5b99483eb8
[]
no_license
deepsahni11/Q-A_Toolkit
f5679b4d716f61e0782b35fc14c552366cea0d78
4c505a7cf3330c1806a6ae441eb28f6d6560db03
refs/heads/master
2020-05-31T15:25:13.730212
2019-09-11T12:39:01
2019-09-11T12:39:01
190,356,295
0
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
import torch import torch.optim as optim import torch.nn as nn import torch.nn.functional as F import numpy as np import logging from numpy import genfromtxt from torch.autograd import Variable from torch.nn import Embedding from torch import zeros, from_numpy, Tensor, LongTensor, FloatTensor from argparse import Argu...
[ "na16b110@smail.iitm.ac.in" ]
na16b110@smail.iitm.ac.in
0a3abdcfbe81d55fe58fd80e5e3056be35adcef7
f88e1b93b5c8c2c325413f52865f475d9fa84cd3
/control03.py
11d60f7a8b8f484724a57f74969d1c96e4bf1838
[]
no_license
ossuaryy/0921
1585125039ce17bf02231a022bb80cc4d4cbe96a
de90f605bf429fa0a47677e08fbc84ad7a74ccc8
refs/heads/master
2020-07-29T17:41:59.517337
2019-09-21T03:29:15
2019-09-21T03:29:15
209,906,046
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
add = 0 for i in range(1, 101): add = add+i print(add)
[ "noreply@github.com" ]
ossuaryy.noreply@github.com
8bac7a3a1b7c2f9c3c167f6c4c8b6d9254e0f60b
9cfaffd2e3fe06467d0e4f7e671e459b04d123ea
/users/migrations/0001_initial.py
9f6d61dada646cd94a521be53162bed1053fb9f2
[]
no_license
montenegrop/djangotravelportal
80b72b9e3da517885b6d596fad34049545a598a5
8a15fc387d20b12d16c171c2d8928a9b9d4ba5e1
refs/heads/main
2023-01-29T22:12:58.633181
2020-12-05T15:44:39
2020-12-05T15:44:39
318,826,064
0
0
null
null
null
null
UTF-8
Python
false
false
5,767
py
# Generated by Django 3.1 on 2020-10-03 18:13 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('operators', '0001_initial'), ('place...
[ "juan.crescente@gmail.com" ]
juan.crescente@gmail.com
ef5d0a45b288009e45a4b7b3c48badd373ae2427
1bf71bcaef3f8e3bb2303e4a145e93636078cb4d
/files/statistic.py
dcec4f5a9525f22399ef00fa0c190011b8ce61e4
[]
no_license
siep-icst/data-set
a688ee81578228f154dc9af35f24d783b8f715de
c1b03524d5613f09675a797a923d3c3bb9850a60
refs/heads/master
2020-05-17T09:47:23.025558
2020-03-21T02:43:16
2020-03-21T02:43:16
183,642,089
2
1
null
null
null
null
UTF-8
Python
false
false
751
py
data_name="nasa" info_path=data_name+"_info.igraph" info_file=open(info_path,'r') graph_num=0 tot_v_num=0 tot_e_num=0 max_vlabel=0 while True: raw_info_line=info_file.readline() tmp_info_list=raw_info_line.strip().split() tmp_line_len=len(tmp_info_list) if(tmp_line_len<1): break graph_num+=...
[ "weixinluwx@foxmail.com" ]
weixinluwx@foxmail.com
17790a7c5eafb900cbde4e6244b9fbf262461b87
381ad6a46d599fbb5d3eb5ec3f9813180a027062
/newsletters/mail.py
abcdb296d0bacdade2383ed83930832519b93a50
[]
no_license
manueljrr/pickmail
3684ab7fd42dc611bec498a2eb26374d414ae300
4840a5501bfc6116b5a0d6e5d29b209b75b12177
refs/heads/master
2020-07-23T21:06:05.703422
2016-08-29T11:29:29
2016-08-29T11:29:29
66,843,840
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
#!/usr/bin/env python # coding: utf-8 # Django imports from django.core.mail import EmailMessage, EmailMultiAlternatives from django.conf import settings def send_text_email(subject, body, email_to, bcc=[]): """ Send text emails :param title: :param body: :param email_from: :param email_to: ...
[ "manueljrr@gmail.com" ]
manueljrr@gmail.com
88389b2522bd61c5952426227f80e0d9af634bd8
90ed257f4e193b0b19e5bcb9d4a384b0cf6e6d3f
/MUSEUMS/spiders/museum49.py
f893c080142b0dc50fb9d76b34986191ac5dc781
[]
no_license
BUCT-CS1701-SE-Design/webDataCollectionSystem
adc8ca97dda48c508909e73c02bb6622b93534b8
f653b973b265d52e2ba4711b689c2de637a2cf8b
refs/heads/master
2022-08-22T14:16:54.857847
2020-05-17T07:33:38
2020-05-17T07:33:38
256,792,222
1
1
null
2020-05-17T01:27:22
2020-04-18T15:49:35
Python
UTF-8
Python
false
false
1,900
py
# -*- coding: utf-8 -*- import scrapy from MUSEUMS.items import MuseumsItem #包含这个item类,必须设置 #from scrapy.crawler import CrawlerProcess class Museum49Spider(scrapy.Spider): name = 'museum49' allowed_domains = ['czmuseum.com'] start_urls = ['http://www.czmuseum.com/default.php?mod=article&do=detail&tid=1']...
[ "503036729@qq.com" ]
503036729@qq.com
277c3e1d0a43d4dda02a6801f9e7621cca0c6837
015d68e2c54ec765904af41565f49062c0e2315b
/venv/Lib/site-packages/werkzeug/debug/tbtools.py
887574d5016a57839bca801c899118118d0be3f0
[]
no_license
CapstoneProj5/LMNFlask
000f72d5bf8ab2d126b9c2a936f5368f6fd04b41
89103b27e60f3464835123295cc5de346e32803a
refs/heads/master
2022-12-11T07:36:11.132984
2018-04-16T22:46:14
2018-04-16T22:46:14
127,963,006
0
4
null
2022-12-08T00:58:52
2018-04-03T20:10:28
Python
UTF-8
Python
false
false
18,459
py
# -*- coding: utf-8 -*- """ werkzeug.debug.tbtools ~~~~~~~~~~~~~~~~~~~~~~ This module provides various traceback related utility functions. :copyright: (c) 2014 by the Werkzeug Team, see AUTHORS for more details. :license: BSD. """ import re import os import sys import json import inspect import ...
[ "yc5424tl@go.minneapolis.edu" ]
yc5424tl@go.minneapolis.edu
f5e459ebbfef6862e4992d3499bdaf13c543b19f
f6568cd38c80cf34fda709372e1e9df013d8d893
/api.py
94fd7142c941d957a45e385ff7e864ff593728ab
[]
no_license
Ibaii99/UDBank_Backend
311d62795115e4142a023698e7030d5370d99f1e
6657326fe3282f5bb3ed32200ba7e2eb9489e1a1
refs/heads/master
2023-01-27T21:28:25.570498
2020-12-15T16:04:05
2020-12-15T16:04:05
308,669,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,059
py
from flask import Flask, Blueprint, abort, request, Response, jsonify from flask_cors import CORS, cross_origin import json from routing import api_markets, api_users import config import logging from logic.authorization import Authorization app = Flask(__name__) app.register_blueprint(api_markets.markets_blueprint,...
[ "ibai.guillen@opendeusto.es" ]
ibai.guillen@opendeusto.es
3042bee8e5fdb405c62cccbf457d4aed30ba0329
c094f9ca9c17dd118bdb9c9bc09655dfc0ffe54a
/decorators.py
abe3be3c6b58edc36129729d73e5ce4165301856
[]
no_license
Jfengames/POIplatform
457314bd9aa4f92d7fe25706cf7e3154d9500f1d
46a15ad0445654b1ffa0b00abefaf3c54466a876
refs/heads/master
2020-08-08T12:34:17.245359
2019-10-09T06:02:22
2019-10-09T06:02:22
213,832,730
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
# -*- coding: utf-8 -*- from functools import wraps from flask import session,redirect,url_for def login_required(func): @wraps(func) def wrapper(*args,**kwargs): if session.get('user_id'): return func(*args,**kwargs) else: return redirect(url_for('user.login')) ...
[ "liujing1@cmdi.chinamobile.com" ]
liujing1@cmdi.chinamobile.com
edfbecf34931307c37d1dccefce4368309ee17b9
cef1814ad7fdbb5542a0ccd0acfc9b1d3655f131
/itchat/wechat_face/weixin.py
2cf0844ee0e1f600029ca19fce5034fcdc2f7b49
[]
no_license
qsx6003/shiyan
8c914eca4c141672cfc6369718c0fb2fe4021f01
4dc6a320bfa10c184d522ece80d282731f58700f
refs/heads/master
2020-04-06T23:05:27.852622
2019-01-02T07:18:41
2019-01-02T07:18:41
157,857,699
0
0
null
null
null
null
UTF-8
Python
false
false
4,809
py
#!/usr/bin/python # coding: utf-8 import itchat import os import pandas as pd import matplotlib.pyplot as plot from wordcloud import WordCloud from pyecharts import Bar, Page import jieba import sys import itchat # 获取所有的群聊列表 def getRoomList(): roomslist = itchat.get_chatrooms() return roomslist #获取指定群聊的信息 def ...
[ "qsx6003@qq.com" ]
qsx6003@qq.com
515ebe8f255758359ff6ad105115b0ad5912e78f
326aa922ce75b52ac68fdf9d5940e38837739b22
/linkypedia/wikipedia.py
30f2bb7fc6d085da380650784d9de13d38a9d130
[]
no_license
Web5design/linkypedia
9f7b0546b3086c4dae63a1ae4e98e1f6b93138cd
76d5ecdaa00579f3fb773c3cbf2d4f91c5513b9e
refs/heads/master
2020-12-24T11:05:56.104945
2010-11-24T07:17:22
2010-11-24T07:17:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,096
py
""" module for interacting with wikipedia """ import re import sys import json import time import urllib import getpass import logging import urllib2 import irclib import BeautifulSoup from web import tasks RETRIES_BETWEEN_API_ERRORS = 5 IRC_MESSAGE_PATTERN = re.compile('\[\[(.+?)\]\] (.+)? (http:.+?)? (?:\* (.+?) ...
[ "ehs@pobox.com" ]
ehs@pobox.com
78177d2aa2f17f925725fc1bbed8eafa87fce33c
e7a62e4a4506a235872af71ef63d634971bb747c
/ggrpc/utils.py
85c6659978a5c24cec3ee5431f84bb990d9f9688
[]
no_license
livingbio/ggrpc
2803a0e4d54645a8f14540e9121dbdc4b65dee06
b7ba6fa7d46a283172e5fe880dbd8f7f09eec4a1
refs/heads/master
2021-05-08T06:08:27.287799
2017-10-16T05:32:16
2017-10-16T05:32:16
106,585,703
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
import inspect import jinja2 import json import cPickle def is_defined_method(cls): return inspect.getmembers( cls, predicate=lambda m: inspect.ismethod(m) and m.__func__ in m.im_class.__dict__.values() ) def list_public_method(cls): for method_name, _ in is_defined_method(cls): ...
[ "davidchen@gliacloud.com" ]
davidchen@gliacloud.com
ffa5371a5a7cb754fdda979fa92af330672a774f
129428b4c6e4d18dffff830236d15b5507854465
/Exp1/main_exp2.py
2b3dbaa8b14d18e22a1266afd712d85579bd0291
[]
no_license
volpx/lab-2
97dae67fabe8f3bb5fb2be82b66a23419ae7cad8
c4a97a5338d62831eea45ed5c644198257a859e7
refs/heads/master
2020-04-30T23:29:30.171362
2019-04-15T14:42:57
2019-04-15T14:42:57
177,145,335
0
0
null
null
null
null
UTF-8
Python
false
false
5,632
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 11 09:57:32 2018 @author: volpe """ import pandas as pd import numpy as np import matplotlib.pyplot as plt from uncertainties import ufloat #array of colors to use for plots colors=["g","r","b","c"] #import my class and functions from functions im...
[ "filippovolpe98@gmail.com" ]
filippovolpe98@gmail.com
65dab5a6ab864efe241f5df07edfcd1772b1a062
9cbe07eefab8d4a289cd1454a2fad733dfaa3b65
/jobScript.py
417dd046f6c769584138d514a0e6b9870b6f38c9
[]
no_license
cosmic-byte/jenkins-seedstar
17df54fcf7c85f2c17fc71238bd7fac9c26d33cb
63b1952b9737b6d2c5624e58e680244b27c3c8a3
refs/heads/master
2020-03-17T09:50:05.950571
2018-05-15T11:05:10
2018-05-15T11:05:10
133,490,200
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
from config import DbOperations from initialScript import Initiate import time class Job: def __init__(self): self.db = DbOperations() self.init = Initiate() self.server = self.init.server def start_jobs(self): for job in self.server.get_jobs(): self.db.save(data={...
[ "gregobinna@gmail.com" ]
gregobinna@gmail.com
b75ee3f36e05409921bc8b395d47017f390f3ae1
2b21a7423f31163f0571161501477e6262a22b55
/jackdaw/nest/ws/protocol/graph/edge.py
ca9a65f1ed7b12a8cba3c7d72d998d66467c4426
[]
no_license
hartl3y94/jackdaw
e2ae9e98cb97a7f1b3c0545042b0985220316720
3876298e1568fe8d811e86668e428a5fd937cd5a
refs/heads/master
2023-04-03T06:36:04.850552
2021-03-30T20:26:43
2021-03-30T20:26:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import json from jackdaw.utils.encoder import UniversalEncoder from jackdaw.nest.ws.protocol.cmdtypes import NestOpCmd class NestOpEdgeRes: def __init__(self): self.cmd = NestOpCmd.EDGERES self.token = None self.adid = None self.graphid = None self.src = None #oid! self.dst = None #oid! self.weight =...
[ "info@skelsec.com" ]
info@skelsec.com
dfad1b42391031f515e48a57c8eed77457ce3aed
38855188ec752e7e012cd5d3f8aec8ec0a1645a0
/betse/lib/pil/pils.py
3bc3c6c15c881c401d4f4893149f93587884e8d2
[]
no_license
R-Stefano/betse-ml
660a35ff587e649a7758e6af0766f5c1c7694544
dd03ff5e3df3ef48d887a6566a6286fcd168880b
refs/heads/master
2023-05-01T01:42:14.452140
2021-05-10T09:58:14
2021-05-10T09:58:14
343,448,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,641
py
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright 2014-2019 by Alexis Pietak & Cecil Curry. # See "LICENSE" for further details. ''' High-level support facilities for Pillow, the Python Image Library (PIL)-compatible fork implementing most image I/O perf...
[ "stefano.bane@gmail.com" ]
stefano.bane@gmail.com
6ebcfe4e029f3799a42a8fc2b2fef9f9e24ac99b
01d6b89601647068f782d098b09c2992cb99af9f
/key_michael.py
9cddc646db4b216c62f7ee3cd395b39d1127d1f6
[]
no_license
Michy01/AppDevAIIP
e767846fd2cb63d6335e7a8f4e808d2ce69f7200
42801f74d6dee30399568834c60b398b9b6303ae
refs/heads/master
2023-01-24T07:48:01.049655
2020-11-09T17:36:26
2020-11-09T17:36:26
292,605,052
0
0
null
null
null
null
UTF-8
Python
false
false
3,326
py
-----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-CBC,E63EB47102188DEA1C1A6B2355411D62 kp6eSUDZ1YfpnjKcoecEb6KhwKzfyU62/4Wio/800qS53qiUZQVE0ADLC6noz6W/ s0h8LTGrMMpEFdjb4klH5N7KhhY6Kp7JgPxLv6gN/UPBnTzKqcpMXgIvORHwIHwp 0VxbZgVHGym6vQIFWSiPRmAuw0xBSKlMSrHqxYZjOKTjLk9/vDfjiCek066fj//C 64m5+dgLQZ8eBb...
[ "33031915+Michy01@users.noreply.github.com" ]
33031915+Michy01@users.noreply.github.com
078d5829bda895eb10fd67609d507f566beefbd0
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/kbtju9wk5pjGYMmHF_15.py
d15d3b948a148c0a450ba5d8c461728c858ee823
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,523
py
""" Write a class called `Name` and create the following _attributes_ given a **first name** and **last name** (as `fname` and `lname`): * An attribute called `fullname` which returns the first and last names. * A attribute called `initials` which returns the first letters of the first and last name. Put a `.` ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0774bbf2001ec249aa5d11df4e020b147123755c
c5a7003de780b3b92f4dff39d5b9d8364bdd28a8
/HW3/code/LucasKanadeAffine.py
5a0b7285df231a49ca0f3a76e4d881aaea2d6c31
[ "ICU" ]
permissive
rainmiku/16720-19Spring-Homework
961bb00e1ba46de7acc9884ec61c32389d5a6f4a
9ebc8e178bd2cca85ada52f0cb8ea5f22b47d57e
refs/heads/master
2020-06-18T15:29:02.340995
2019-04-22T03:57:41
2019-04-22T03:57:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
import numpy as np from scipy.interpolate import RectBivariateSpline def LucasKanadeAffine(It, It1): # Input: # It: template image # It1: Current image # Output: # M: the Affine warp matrix [2x3 numpy array] # put your implementation here M = np.array([[1.0, 0.0, 0.0], [0.0, 1.0, 0.0...
[ "liuzihua0911@gmail.com" ]
liuzihua0911@gmail.com
9c97825770db34605f07c3b83f40d56fe2a7db44
c43a9ac4356c6f1e457728f7e370ddee0ad3de73
/experiment_3alphas.py
51b4209aab9644744de38e8b547291b7e7ac507a
[]
no_license
desajm/nuclear-duck
a96846ce30c31a9146ba33a492bd8310254e327b
2d7d33037852e907f7411dd4008316355ac30592
refs/heads/master
2021-01-19T00:44:51.864922
2016-12-06T07:54:08
2016-12-06T07:54:08
73,262,823
1
0
null
null
null
null
UTF-8
Python
false
false
1,540
py
DEPENDENCY_MODULE = 'duck_mc_3alphas' E_12_START = 0. E_12_STOP = 30.0 E_12_STEP = 0.1 BROJ_PONAVLJANJA = 1000000 def duck_mc_experiment(E_12, broj_ponavljanja, postav_index): """ postavke detektora na BoBo eksperimentu """ POSTAV = { 'postav_1': {'distance': [0.35875,0.35675,0.35775,0.35975], '...
[ "sthagon@gmail.com" ]
sthagon@gmail.com
b2b25cf7aaeac3807cceceae1ae7569dc7dfce2e
c5e67f1c80d7fe10945c124ee3647f0eb66422f5
/rise_finding.py
bf79870bf488c38f108ec35f9d7b46b800d97f68
[]
no_license
eugeneegbe/algorithm-problems
116c0cd1f6491b7640a49bcf065cd20d2dd82ed0
43f07440e034d0d069c071cbdca1b3173417c6d5
refs/heads/master
2021-01-06T12:23:47.124373
2020-02-18T14:24:57
2020-02-18T14:24:57
241,324,538
0
0
null
2020-02-18T14:24:59
2020-02-18T09:45:02
null
UTF-8
Python
false
false
540
py
def solution(A): ''' Finds the positions where there is a rise in an array of numbers sort of the form /\___/\___/\ solved using divide and conquer ''' middle = int(len(A)/2) peaks = [] if A[middle] <= A[ middle - 1 ]: for i in range(middle): if A[ i + 1 ] >= A[ i ]: peaks.append( i +...
[ "agboreugene@gmail.com" ]
agboreugene@gmail.com
0e216ee3952cad44c0c3814f5b9cec6975428adf
b5e93a09ee136b2b035c9958557e3e4091d8d9fd
/test/test_metrics.py
8cf8eb4656f35a7a5c246a3247a9541a2df15d34
[ "MIT" ]
permissive
ccglyyn/pytorch-hrvvi-ext
2ee0cd27461c344783150535fbadea5fbe29f25b
a020da3543982464ff3888ff84b311e98a130d6d
refs/heads/master
2022-04-20T13:35:07.561985
2020-04-21T10:36:36
2020-04-21T10:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,971
py
# import numpy as np # # from horch.detection import BBox # from horch.detection.eval import mean_average_precision # from toolz.curried import groupby # # # def test_mAP(): # detections = [ # (1, 0, [5, 67, 31, 48], .88), # (1, 0, [119, 111, 40, 67], .70), # (1, 0, [124, 9, 49, 67], .80), #...
[ "sbl1996@126.com" ]
sbl1996@126.com
2285d25919615c9dde0d3fdbdc4fd8d041aceca0
ec8385a6c121fc23e7f8d6c8e25abda0871df7af
/antispoofing.bkp/mcnns/datasets/livdetiris17_nd.py
a4d26bf41e18447863f06b0d7f9375d82c3a640b
[]
no_license
allansp84/metafusion-multiview-learning
b9baf8802b851bb88a1055752098446a2735195f
e9261a31526fa58f9bec3f37a9cf967a127b40c7
refs/heads/master
2022-10-29T23:15:53.263990
2020-02-27T00:54:53
2020-02-27T00:54:53
243,396,177
1
0
null
null
null
null
UTF-8
Python
false
false
7,563
py
# -*- coding: utf-8 -*- import time import itertools from glob import glob from antispoofing.mcnns.datasets.dataset import Dataset from antispoofing.mcnns.utils import * class LivDetIris17_ND(Dataset): """ Interface for the LivDet Iris 2017 dataset whose evaluation protocol is already defined by the orginizers. ...
[ "allan.pinto@dmz.org.br" ]
allan.pinto@dmz.org.br
cbed7ed09e3a19aa08a50c98d867fe71202162b8
b00d26d47e90e0f7558e44d40d3fca075d65fb6f
/ignore_tests/java.py
0c83bf926a468c34f1ea5323f3578900cfb8c4ed
[]
no_license
Dhanavarsha/FlakyTestDetector
cbcce3ebc444e256c6570135b22fa84684c24dcc
d8e71c04c61308126f00cedddf379412ea8f3325
refs/heads/master
2020-12-02T02:43:28.379997
2019-12-30T06:50:05
2019-12-30T06:50:05
230,861,779
0
0
null
null
null
null
UTF-8
Python
false
false
2,035
py
import subprocess import sys import os import pretty_print def ignore_test(fully_qualified_test_name, working_dir): (package_name, class_name, test_name) = fully_qualified_test_name.rsplit('.', 2) files = _find_files(class_name, working_dir) inside_package_lambda = _create_inside_package_function(package_n...
[ "dhan.varsha03@gmail.com" ]
dhan.varsha03@gmail.com
2815d21b998558f72516eb1b79224075af1ab4f3
95e0ccbb333fc08f250b67fef5e531bdd418033b
/shop/urls.py
3930bcf1a9092175b63b1f5a1a13f0b874275c18
[]
no_license
ArtemYaremenko/ecommerce-project
05974c005fa8ef1c193e514966efb951e570ffd9
540fc20f2f8c7f6fd2423cca671384775b43ba78
refs/heads/main
2023-02-01T19:16:29.531867
2020-12-16T17:41:51
2020-12-16T17:41:51
312,169,831
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
from django.urls import path from . import views urlpatterns = [ path('', views.home, name='home'), path('category/<slug:category_slug>', views.home, name='products_by_category'), path('category/<slug:category_slug>/<slug:product_slug>', views.product, name='product_detail'), path('cart/', views.cart_d...
[ "Artem.Yaremenko.1992@gmail.com" ]
Artem.Yaremenko.1992@gmail.com
51e0ece99dfa331468ea3a90496479c28e5b8739
db54268ca3772d9b9563aa124814d65e80879e59
/closerEnclosingFunction.py
6380a0b6dd074b814e3c621d8136a39085642340
[]
no_license
manjit1217/LearnPython
93241879953f655d96944b1466cdc429a0836c0c
3f5dbd89d07f882f3aaeae02ee3e240956419a19
refs/heads/master
2020-09-04T23:27:30.265802
2020-07-19T18:04:05
2020-07-19T18:04:05
219,922,879
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
def print_check(msg): print('inside pri') def inside_print(): print(msg) return inside_print print_check('milan')
[ "manjit.1217@gmail.com" ]
manjit.1217@gmail.com
16cafd21c3f3ac353c3eec679a4cd317c0ae4086
e2e52d0726feb0229128aeee4831098bd28524fd
/vm_template.py
9663a841ec802fde7e160b7f79f232e8efd3a7c2
[]
no_license
david-joy-ds/gcp-deployment-manager
84c9a8dae0eb576785652de7e53bea9acdb24718
9a6b6e08c16d5902b1e8abe44f64007afdb99b59
refs/heads/master
2021-05-27T01:24:13.070136
2020-04-08T20:59:06
2020-04-08T20:59:06
254,197,432
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
COMPUTE_URL_BASE = 'https://www.googleapis.com/compute/v1/' def GenerateConfig(context): """Creates the first virtual machine.""" resources = [{ 'name': 'the-first-vm', 'type': 'compute.v1.instance', 'properties': { 'zone': 'us-central1-f', 'machineType': ''.join([COMPUTE_URL...
[ "=" ]
=
513a146350672cbaaa7c1989c82b436aae162897
18e08b4a377bb2ac7bafaef08dba9579ea0faa2d
/virtual/bin/django-admin
a2f5ba157f3b31ec3a5d2b0dd73745627ec67fe1
[]
no_license
mwaa123/SIEZE
6e01dc41b7cd1b8cec0bd0be7a6e839e502d915e
bf773bff53ca504a3f5dea582e9e64db23b1eb9a
refs/heads/master
2023-07-26T14:51:39.293726
2020-06-13T06:32:56
2020-06-13T06:32:56
267,003,001
0
0
null
2021-09-08T02:09:46
2020-05-26T09:40:24
Python
UTF-8
Python
false
false
289
#!/home/ruth/MY-PORTFOLIO/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "ruthwanjiramugo@gmail.com" ]
ruthwanjiramugo@gmail.com
444e465edd64f764c5552229c70c68ce001ef510
5c33efa07e22093fc9364afaa558bf7b7ba0a130
/PyWagg/repl/repl.py
928097a6aa4fd79aed81d0188394e3b6ba736b56
[ "MIT" ]
permissive
HarryMills/Wagg
72933d5819e7015b5f3c0a87c02bd866521a2db8
45c69807122f3c44255b94d1955c19eac1309d68
refs/heads/master
2022-11-06T04:43:35.154495
2020-06-22T21:05:35
2020-06-22T21:05:35
262,829,869
1
0
null
2020-06-05T16:06:41
2020-05-10T16:34:26
Go
UTF-8
Python
false
false
278
py
from PyWagg import lexer from PyWagg import tokens prompt = ">> " def start(): while True: line = input(prompt) l = lexer.new(line) tok = l.next_token() while tok.Type != tokens.EOF: print(tok) tok = l.next_token()
[ "harry.e.mills@gmail.com" ]
harry.e.mills@gmail.com
a676310121eab17504f78d907be582d910340bb7
7ce536b3ad2194cfe17f79060165901472e494a8
/Loops.py
10ab070ff888d6308a0ce0ec585fa96481b6065b
[]
no_license
Andyiscool/python-programs-school
f3afa4c3e0b1218ae7cd932f019194aad744f0f3
bba58798505b3f1b9c418413c6878cfcc3c6cb1d
refs/heads/master
2020-07-31T23:00:00.928334
2017-07-10T21:07:39
2017-07-10T21:07:39
73,588,515
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
print(list(range(10, 20))) for x in range(0, 5): print('hello %s' % x) animals = ["cats", "dogs", "birds"] for animal in animals: print('animals %s' % animal)
[ "andy.xiao@live.com" ]
andy.xiao@live.com
09baa61abb1f1710c9c5e170db65235edc2f3e43
2bdf51a73253ce0b86ae9886531ab5ed069f28cb
/solutions/1470. Shuffle the Array.py
c8c08658390b618c5ae319d46f2004815f271203
[]
no_license
ShrashtiSinghal/Python-Practice
b544ae1bbcd58a25a444740090745d91f424a6c6
249ba97af8ea6b71a1cb27029ae68bad1dfd44cd
refs/heads/master
2022-10-20T14:24:27.426982
2020-07-07T08:28:35
2020-07-07T08:28:35
276,944,931
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
class Solution: def shuffle(self, nums: List[int], n: int) -> List[int]: length= len(nums)//2 newList=[] for i in range(length): newList.append(nums[i]) newList.append(nums[length+i]) return newList
[ "40803338+ShrashtiSinghal@users.noreply.github.com" ]
40803338+ShrashtiSinghal@users.noreply.github.com
92e81439a7311dca5f00b69c4a20466eb0be0189
d3814a5e40b27d9cbf6cfefda960b6acfff69a35
/.local/lib/python3.8/site-packages/astroid/__pkginfo__.py
a04b42bae9f75cf5b293a89c3b39314bb9582fd1
[]
no_license
The-Coder-Kishor/Sheldon-Cooper
31311161d5a7d7d11df6498233ee3c0ada240f19
1c80ba26ae79d538e5a04b4a26a9ecc8da0fd0f7
refs/heads/main
2023-06-27T21:27:14.493198
2021-08-07T06:58:33
2021-08-07T06:58:33
393,595,359
1
0
null
null
null
null
UTF-8
Python
false
false
1,532
py
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2015-2017 Ceridwen <ceridwenv@gmail.com> # Copyright (c) 2015 Florian Bruhin <me@the-compiler.org> # Copyright (c) 2015 Radosław Ga...
[ "talakishor47@gmail.com" ]
talakishor47@gmail.com
a421f062e0a01b4b7f3d20330a8309f8de453f8c
ba5b12e28e02ec4dfa5a512935a88dbdbad41699
/app/main/application/commands/beerupdate.py
59485d412120b03d02ff578b29df08b44598fa60
[]
no_license
tiagovbarreto/ddd_python_beer_api
eb345d2c7014a91bb383491631874788f7a994d7
669b8bf0177f0320ddc025397e06a259ac1f9405
refs/heads/main
2023-03-05T14:17:16.650590
2021-02-20T19:02:45
2021-02-20T19:02:45
334,296,724
0
1
null
2021-02-08T00:22:42
2021-01-30T00:42:49
Python
UTF-8
Python
false
false
122
py
from app.maindoapp.mainentities.beer import Beer class UpdateBeerCommand(): def execute(self) -> Beer: pass
[ "tiagovalentim@gmail.com" ]
tiagovalentim@gmail.com
51b56e337abd190a5d072bb056905ae2bb4487f9
529a5686f69e38527809f86c055ccd70095065cd
/train_pag.py
d140290c5e2c9308c849e3d6cdb1a03f2201bc11
[ "MIT" ]
permissive
AvashnaGovender/Tacotron
925ad68050bde7a5b3b0f6686295ff6ea0cb241d
b4d710ffb0f9e7ef0096d1993b8a24cae4f0d557
refs/heads/master
2023-01-14T01:23:04.539018
2020-11-27T08:55:53
2020-11-27T08:55:53
277,764,431
1
1
null
null
null
null
UTF-8
Python
false
false
10,531
py
import torch from torch import optim import torch.nn.functional as F from utils import hparams as hp from utils.display import * from utils.dataset_att_guide import get_tts_datasets from utils.text.symbols import symbols from utils.paths import Paths from models.tacotron import Tacotron import argparse from utils impor...
[ "38498073+AvashnaGovender@users.noreply.github.com" ]
38498073+AvashnaGovender@users.noreply.github.com
2b638ba945f09515730f26045b6e4c717a5b518a
cdb8e785dd441006dc6a2bcd2a2aa10ae3c2ef63
/bin/parsetab.py
5845559c6b3045218891019c67dd41eb3ae304df
[ "MIT" ]
permissive
log4leo/Shell4Win
8380d3713238e0b5e55bab390143ceed905078bc
eea5e7cb8c44fefaaff972df979d9210f67daf9b
refs/heads/master
2020-06-04T15:46:13.290470
2014-05-23T06:28:07
2014-05-23T06:28:07
17,128,178
17
6
null
2014-05-23T06:28:08
2014-02-24T07:09:42
Python
UTF-8
Python
false
false
1,708
py
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = '\xce\x17\x7fg\x06\xa5\x06` M\xee\xb0\\7\x98\xa0' _lr_action_items = {'LREDIRECT':([1,3,7,10,11,12,13,],[5,-7,-8,-5,5,-6,5,]),'PIPE':([1,3,7,10,12,],[6,-7,-8,-5,-6,]),'COLON':([1,3,7,10,12,...
[ "yy_happy1990@163.com" ]
yy_happy1990@163.com
f27b4bff13c989ea627db6f48729b4d7446ed86f
c2f9b8127306f2a9e26184d52bcb519318af6022
/Lib/Api/yly_print.py
58ce5fb380f0b279d5450f9e2321406c32e07d53
[]
no_license
Qzm6826/yly-python-sdk
5f1ed5f0a792842554a23ac91cc9383de3d13749
b97d44211eb04188146423f2e2d9803f0c24843c
refs/heads/master
2023-06-26T03:17:36.095266
2023-06-13T09:49:30
2023-06-13T09:49:30
167,102,743
11
1
null
null
null
null
UTF-8
Python
false
false
887
py
#!/usr/bin/python # -*- coding: utf-8 -*- class YlyPrint: __client = None def __init__(self, client): self.__client = client def index(self, machine_code, content, origin_id, idempotence= 0): """ 打印接口 :param machine_code: 机器码 :param content: 打印内容 :param or...
[ "1139038165@qq.com" ]
1139038165@qq.com
32c4a398d4cc157611fb6827fce531ecbb82f431
0e283c8d8c7d48321b7d1b649fc13e33ca8b39d2
/OnlineCode.py
a23a336963062c23380fdfad3d185ffd16f04e38
[]
no_license
GeraldShin/PythonSandbox
79f4d5237859f4ab62469d2d6f232ce1c0f63f22
ed7820ee7403ce02989545334c225c420eb00ea3
refs/heads/master
2020-09-29T04:56:45.133657
2020-06-02T23:10:19
2020-06-02T23:10:19
226,957,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
#This will be snippets of useful code you find online that you can copy+paste when needed. #Emoji Package #I don't know when this will ever be helpful, but there is an Emoji package in Python. $ pip install emoji from emoji import emojize print(emojize(":thumbs_up:")) #thumbs up emoji, check notes for more. #List ...
[ "noreply@github.com" ]
GeraldShin.noreply@github.com
8c626ff74d7a26364b16619851113b3b94c81cc4
eb261f7957c86dcc35a0418010ca56a275758da4
/about_control_statements.py
bb1a3f4b6ff6980b1587bcac156937851842b9b7
[]
no_license
chetstar/koans2
28ed5bd4e667bb8ce6d9a1a931f821ed387a923e
c958e1c49a33231ddbea01b5aa4db6790649fb0c
refs/heads/master
2016-09-06T07:52:36.305803
2014-06-02T04:35:05
2014-06-02T04:35:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,008
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutControlStatements(Koan): def test_if_then_else_statements(self): if True: result = 'true value' else: result = 'false value' self.assertEqual('true value', result) def test_if_...
[ "cmeinzer@acbhcs.org" ]
cmeinzer@acbhcs.org
7d99fead546a41f71ac5616dbc0b8582950b674a
01c07bcb957c430cd728204e2f5a00c30dc26a22
/opensfm/test/test_commands.py
00623fd1ab9d2039982908ac285672fd13274dda
[ "BSD-2-Clause" ]
permissive
chetanskumar1991/OpenSfM
203542d715766215b0c52432da4f6115555a0da5
e42aec5166c80359064b7203a35bae48d904bc91
refs/heads/master
2021-09-13T03:18:07.077804
2017-08-25T10:09:13
2017-08-25T10:09:13
288,192,113
0
0
BSD-2-Clause
2020-08-17T13:47:25
2020-08-17T13:47:25
null
UTF-8
Python
false
false
816
py
import argparse from opensfm import commands import data_generation def run_command(command, args): parser = argparse.ArgumentParser() command.add_arguments(parser) parsed_args = parser.parse_args(args) command.run(parsed_args) def test_run_all(tmpdir): data = data_generation.create_berlin_test...
[ "pau.gargallo@gmail.com" ]
pau.gargallo@gmail.com
b8c21d921858fe9e9356faed6939ebdb48f5d034
1faf5f8200c1be47db86bc1f3203eaf6066ec3dc
/comment/migrations/0001_initial.py
115be9fc85c327782839d4fd5b04f3c878903411
[]
no_license
aaaqqewrt/Blog
1ce7735b2f25239fb0ab310e72c5fdb0247a6211
ac3952be109e472127840bdc2e001f17a789c2d2
refs/heads/master
2023-01-01T11:37:35.591479
2020-10-20T11:33:17
2020-10-20T11:33:17
305,686,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
# Generated by Django 3.1.2 on 2020-10-13 10:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cont...
[ "1727760897@qq.com" ]
1727760897@qq.com
a4fa03ebd028ab7225390f29af91f34bb05f4902
cb4e05f6c64e40656e4bd31640dcd6370d2e42e6
/extension/tunabot_utils.py
fae6453585d85b3528d7ec204384d30f0019a821
[ "MIT" ]
permissive
InfiniteTeam/TunaBot-v2
004e43729f965cddbf2e3199bc1b63f3ea3186f2
30a85078af72778c699532573f5b5584d3d1201b
refs/heads/master
2020-12-30T02:48:38.684031
2020-02-10T07:58:14
2020-02-10T07:58:14
238,836,953
0
1
MIT
2020-02-08T08:37:41
2020-02-07T03:37:19
Python
UTF-8
Python
false
false
362
py
def aliases(prefix, aliases): names = aliases for x in names: names[names.index(x)] = prefix+names[names.index(x)] return tuple(names) def arguments(message): args = message.split(" ")[1:] return args def color(): color = {'main':0x5b50fa, 'yellow':0xffbb00, 'red':0xf04747, 'green':0x4...
[ "54466872+ArpaAP@users.noreply.github.com" ]
54466872+ArpaAP@users.noreply.github.com
03371bf145264fff2ce4490158383c3527c9e850
dd00dbf635745ab2c95563be5651443dd03db0ea
/tqsdk/algorithm/time_table_generater.py
c08f450ec12bfdd830d0b07eb1ff65d13c73a48b
[ "Apache-2.0", "Python-2.0" ]
permissive
ker945/tqsdk-python
1fbd9be780763cafaaa52bc18433537bace417eb
4548361688aa3104933f1f5f3494fbd5c09a6848
refs/heads/master
2023-01-10T21:40:37.662440
2022-10-20T07:47:38
2022-10-21T05:14:19
251,191,269
0
0
Apache-2.0
2020-03-30T03:26:18
2020-03-30T03:26:18
null
UTF-8
Python
false
false
15,935
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'mayanqiong' from datetime import datetime, time, timedelta from typing import Optional, Union import numpy as np import pandas as pd from pandas import DataFrame from tqsdk.api import TqApi from tqsdk import utils from tqsdk.datetime import _get_trading_ti...
[ "mayanqiong@shinnytech.com" ]
mayanqiong@shinnytech.com
1d0d49e5469fa5f735320874f158f57d8ee8372b
ee70802fce6213696cc0bc5366d394d8251a2753
/Curso2 - Formacao Cientista de Dados/09_-_Graficos_e_Dashboards/03_-_Dispersao.py
e93fa5edbe0e1ed5aa8352e9d06e86b8a7152fdf
[]
no_license
CarlosAVSFilho/Data-Science
692459190d07607f4a07a2c9d2f18af6085f986e
b37f0c0b9f1428656ec71ee4b963726bdd63df0d
refs/heads/master
2020-05-27T12:13:33.922422
2019-05-26T01:35:06
2019-05-26T01:35:06
188,612,821
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns base = pd.read_csv('trees.csv') plt.scatter(base.Girth, base.Volume, color = 'blue', facecolors = 'none', marker = '^') plt.xlabel('Volume') plt.ylabel('Circunferência') plt.title('Árvores') plt.plot(base.Girth, base.Volume) sns.regplot(base....
[ "carlos.avsfilho@gmail.com" ]
carlos.avsfilho@gmail.com
63a315a236f95825efa37747325ff1fb8e57836c
04a714f9771db7a4c0560d2b038b778d2d3223f4
/websites/websites/celery.py
44d73456d363b41336412a04050918df19a46e80
[]
no_license
wieczorek1990/websites
598eb58ac98d8e272fdcc277ccb1d1a332348321
82a298c703e1a66b8217b39d7cc574f9584f2bcd
refs/heads/master
2023-01-22T11:33:40.910797
2020-11-26T10:56:54
2020-11-26T10:56:54
316,169,474
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'websites.settings') app = Celery('websites') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() @app.task(bind=True) def debug_task(self): print('Request: {0!r}'.format(self.request))
[ "lukasz.wieczorek@ironin.pl" ]
lukasz.wieczorek@ironin.pl
160854b008214baadb4ac1249bdc13279f58b7cd
8ac75ee9dcb850c966a05a72bdfaf34fcf35965d
/Hacker-rank/array.py
b1ba89eb0f5395d0f0b8ca10d6e15f5dddfe022b
[]
no_license
mathankrish/Python-Programs
3f7257ffa3a7084239dcc16eaf8bb7e534323102
2f76e850c92d3126b26007805df03bffd603fcdf
refs/heads/master
2020-05-01T04:27:00.943545
2019-10-07T18:57:41
2019-10-07T18:57:41
177,274,558
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
array_size = int(input()) x = [int(input()) for i in range(array_size)] print(x[::-1])
[ "noreply@github.com" ]
mathankrish.noreply@github.com
94edb417384c9151204750623869b51a462777a2
8bde5794b10d24b7d9126f9461f8099d0675eb78
/gat/train.py
db8d7ce2df9eaf3350bb15406e095a7ef79b59c9
[]
no_license
aksnzhy/dgl-benchmark
9938d24ce695f2f32faea45bc85a25f04348c177
1d746d690c8aa11bf793744d1c9cea6e762a6847
refs/heads/master
2021-05-17T12:33:18.566606
2020-11-09T07:06:33
2020-11-09T07:06:33
250,708,185
0
0
null
2020-03-28T03:43:37
2020-03-28T03:43:36
null
UTF-8
Python
false
false
5,150
py
""" Graph Attention Networks in DGL using SPMV optimization. Multiple heads are also batched together for faster training. Compared with the original paper, this code does not implement early stopping. References ---------- Paper: https://arxiv.org/abs/1710.10903 Author's code: https://github.com/PetarV-/GAT Pytorch im...
[ "noreply@github.com" ]
aksnzhy.noreply@github.com
bc5a716acbc8aed645333f308c035eaf2615f7a1
f889a1de574dc55425677bcbea6410bf360cddd6
/labels/views.py
1dad9e6693aa60e4798eb610ecb07b2f081ac19e
[]
no_license
Hagbuck/MyBlackSmith
816b3b711db021ee702a19b3240bb30c48271bc6
671088bee46d2fa705bfd9b37f059610bcdd2252
refs/heads/main
2023-01-24T12:23:18.255371
2020-12-02T16:46:19
2020-12-02T16:46:19
313,397,620
0
0
null
null
null
null
UTF-8
Python
false
false
2,284
py
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from django.urls import reverse, reverse_lazy from rest_framework import viewsets from .serializers import LabelSe...
[ "anthony.vuillemin@outlook.fr" ]
anthony.vuillemin@outlook.fr
77b7efea836ff42189f54a65ef3b5fa7ab59212b
184ceaea8f1c2c398ceb75fe367709d9d0aea1a3
/main.py
956bee276935d265b9419f03f3e3074c4f70b0d9
[]
no_license
guojt1017/pythonProject4
fe32426fb199cfcf128be086c9d5251772453f92
ca4d8fc24f3521b22a1ac0dd8ebf7f9f8e9ba004
refs/heads/master
2022-11-28T16:41:26.806064
2020-08-12T10:48:37
2020-08-12T10:48:37
286,988,222
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
# This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. if __name__ == '__main__': import numpy as np a=[1,2,3,4] b=np.array(a) print(b)
[ "guojt1997@sina.com" ]
guojt1997@sina.com