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
d8b556c744a5f3c7a16f4531c97f2d448deeae84
05c3f49bf4c204c77bee6c67d33501d7a1544a0b
/hw2/hw2.py.bak
818705cad97fcd5240258ae3481720e46d3fc10c
[]
no_license
krieghan/cs_homework
8b0fd4f7abe07b945ec179fefb8accfbaf950c78
35a96ba06dd5895c029bd066e3d1f4a62876340d
refs/heads/master
2021-01-08T03:27:59.829154
2020-02-20T14:07:56
2020-02-20T14:07:56
241,898,952
0
0
null
null
null
null
UTF-8
Python
false
false
3,695
bak
#!/usr/bin/env python # -*- coding: ISO-8859-1 -*- # generated by wxGlade 0.4.1 on Mon Apr 03 13:01:10 2006 import wx from turtle import GLPane class MyFrame(wx.Frame): def __init__(self, *args, **kwds): # begin wxGlade: MyFrame.__init__ kwds["style"] = wx.DEFAULT_FRAME_STYLE wx...
[ "noreply@github.com" ]
noreply@github.com
60cbed3e8914742866345a1fab9116a02d3a65ab
57c1f699f03f1bf015e99712b8445f0a4f57db9a
/Models/4/modelParams4.py
97cec0fd58111ca5c61e2ea4d2ab04122ffef38a
[]
no_license
DaphneHB/sBCBG
693cb610c7bc8a33d3148edc25afa9f6236c523b
ca08181121c4ba27b6f1df82bc92756f158e4058
refs/heads/master
2021-01-17T21:07:03.008080
2017-07-31T08:44:20
2017-07-31T08:44:20
84,159,012
1
1
null
2017-03-07T05:34:43
2017-03-07T05:34:43
null
UTF-8
Python
false
false
1,623
py
#!/apps/free/python/2.7.10/bin/python # defines the value of the parameters that will be used by testFullbG.py # should be generated by sangoScript.py params = {'LG14modelID':4, 'nbCh': 2, 'nbcpu': 6, 'nbMSN': 2644., 'nbFSI': 53., 'nbSTN': 8., ...
[ "daphne.hbek@gmail.com" ]
daphne.hbek@gmail.com
be9b4d3e9c5944913c7318af6a50c9b2159cfa7c
fb4bf309b4d2db0597647c4dadda996b101f53f6
/Artificial Intelligence/r04exercise/logic.py
61c42f6a349b812f2151415b192e1ca7c266cac7
[ "Apache-2.0" ]
permissive
JayWu7/Machine-Learning-Courses-Study-Record
3eea44552287b1e48d50bb2a75a29aaf0bd68cfe
7586c3429514bc21c7cfe42f85ca8c0fcf8f072b
refs/heads/master
2020-07-24T18:08:41.445694
2020-05-27T03:55:46
2020-05-27T03:55:46
208,004,954
1
1
null
null
null
null
UTF-8
Python
false
false
4,576
py
#!/usr/bin/python3 import itertools # Representation of propositional formulas in Python. # # The basic connectives are NOT, AND and OR. # IMPL and EQVI are reduced to these through the obvious reductions. # We have a separate class for formulas with different outermost # connectives, as well as for atomic formulas ...
[ "jaywu16@163.com" ]
jaywu16@163.com
b7e90fcda58d0566c7be66b95c4c017ebea9525f
d31c99522f70cf9888c6411be8c1fbe0f7441efe
/leapyear Testing/leapYear.py
02091de04405b188075a56b602034891bb68266a
[]
no_license
bhaveesh09/CS362-Homework-7
0e96d5390fd31b6abb9da3c7846c34b698d8fc19
b8979328ef53245ec423b222ac0965f6492e220a
refs/heads/main
2023-05-06T02:22:40.765563
2021-05-31T20:34:22
2021-05-31T20:34:22
372,339,566
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
def leapYear(x): if (x<0): #Now check if user input is a positive number print("Enter a postive number, program has quit") return False elif (x % 4== 0) and (x % 100 != 0): #conditions for leap year updated print(x, "is a leap year") return Tr...
[ "beemires@flip3.engr.oregonstate.edu" ]
beemires@flip3.engr.oregonstate.edu
9189ff6a8da588f5c8d74e069de80277af625faf
14c5bc2d802d5373efda230dd49c3f25fd8fbad0
/roboto_gui/pySSRL_bServer/bServer/bl_interaction.py
d8a93a91b0f0f003d771a313f7a5888db16ca4ce
[ "MIT" ]
permissive
rwalroth/roboto_gui
58c4e6712fc1cbb1a546191432443733d3de8190
210ab4fc4fbcddd1863f251cb7206fc7173a93d2
refs/heads/main
2023-04-04T15:26:46.019258
2021-04-14T18:55:50
2021-04-14T18:55:50
317,326,993
0
0
null
2021-03-22T19:51:47
2020-11-30T19:38:37
Python
UTF-8
Python
false
false
20,271
py
import socket import time import types import sys import yaml import copy import logging from logging import info, warning, critical, debug import asyncio import re from bServer.bl_communication import * from bServer.bl_command import * from bServer.BL_Error import * from bServer.PulpitObject import * from bServer.BL_...
[ "rwalroth89@gmail.com" ]
rwalroth89@gmail.com
16ea0ace51907afcbb377c98ac45a4b447646221
8af68426584e78d1913ed2342498d6bdf02a8923
/manage.py
3fd3eee148f2566cfe0e2d852573618afff5ded4
[]
no_license
RabbaniM/duafi_old
8edaccc78b38818ebf3df9397363f59b557ef185
791844efdbe80cea0d106edc660310d390531871
refs/heads/master
2020-12-28T19:46:24.236639
2015-07-13T02:09:59
2015-07-13T02:09:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "duafi.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "Ayon.rab@gmail.com" ]
Ayon.rab@gmail.com
20744b85032062eeca0b6a483efed89f604b68a1
45887243a656490eafb6607dd7fb75111cc802ac
/app/models/models.py
9be81aab85aa6d928b2627b4e15e79bbe6880989
[]
no_license
liuxiaowei/dnf_server
f0d21f8ecf94b085c9bb7122c38c043e872164b2
f3b4c96fc54b9ffda940d1ccc292a938299d99a3
refs/heads/master
2020-04-30T15:20:48.296542
2019-04-09T08:52:38
2019-04-09T08:52:38
176,918,003
0
0
null
2019-04-09T08:52:39
2019-03-21T10:00:40
Python
UTF-8
Python
false
false
485
py
import json import string import random from datetime import datetime import hashlib from .base import Base, db class TUser(Base): __tablename__ = 't_user' mac = db.Column(db.String(255)) note = db.Column(db.String(255)) last_login = db.Column(db.DateTime) status = db.Column(db.SmallInteger) ...
[ "330502632@qq.com" ]
330502632@qq.com
a9029ca71800fd3d14b935d41f8dd774c74c1973
f3381f1b1f995b87eaf240428e902531e68ba95c
/algoprog/A2_3.py
408f7926360f45b75075246455faa0329623b210
[]
no_license
MorZxd/py
6565716d156511c6fb515ad50232edbce935dfea
b5291b2dbd4db59cdcf2f05344e145b32f1e74e2
refs/heads/master
2023-02-07T17:36:41.823961
2020-12-26T10:05:31
2020-12-26T10:05:31
321,710,657
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
f = int(input()) if (f>0): print("1") elif (f<0): print("-1") else: print("0")
[ "algo05@mail.ru" ]
algo05@mail.ru
0b747c2a7cc8c26a6f70888af30f80f3d9044a71
699c5894668e07bbb4ddae632730f0d218f72558
/Yeji-Lee/baekjoon/b_100/1297.py
24bcc07f02942fb4ba2f944171f1e631c24cbec9
[]
no_license
Sumsan38/learning-algorithm
0914ddbbd8786381dda807562e4529773b4aa987
59a1d7b53d4348a0320b0cbf48ee75b5086b3a29
refs/heads/master
2023-07-15T08:16:29.896218
2021-08-14T11:47:01
2021-08-14T11:47:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
# TV 크기 c, a, b, = map(int, input().split()) r = c / ((a ** 2 + b ** 2) ** 0.5) print(int(a * r), int(b * r))
[ "noreply@github.com" ]
noreply@github.com
0a7c0934e651558320e4ccc999fab5b29f046a66
3e54f3ad08a8d3e4f17b77394491e3f625672fbe
/hybrid_AC_DC_networks/optimal_power_flows/optimal_power_flow_hybrid_AC_DC_networks.py
56a26c844b511870eb9ff1ffdc9e590e8acb8383
[ "MIT" ]
permissive
shubhampachori12110095/EnergyManagementSourceCodes
ccb6f38c155e955624330a0f20b9ed2f4941b08a
1ea824941fe87528622ec7aa8148024752a3947c
refs/heads/master
2023-08-01T23:57:45.271895
2021-09-26T04:55:05
2021-09-26T04:55:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,158
py
""" Optimal power flow models for hybrid AC/DC microgrids @author: Tianyang Zhao @email: zhaoty@ntu.edu.sg Something should be noted for the hypothesis. 1) The energy losses on the bi-directional converters is modelled simply as used in [1]Concerted action on computer modeling and simulation [2]Energy management and o...
[ "matrixeigs@gmail.com" ]
matrixeigs@gmail.com
1b78135398abeca244e835d6de11727d963c8134
49ee49ee34fa518b0df934081f5ea44a0faa3451
/study-crow-framework/crow/examples/example_test.py
d252df0b805e995dadd5e2d37ab2bed1e000c5f6
[ "BSD-3-Clause", "MIT", "ISC" ]
permissive
kingsamchen/Eureka
a9458fcc7d955910bf2cefad3a1561cec3559702
e38774cab5cf757ed858547780a8582951f117b4
refs/heads/master
2023-09-01T11:32:35.575951
2023-08-27T15:21:42
2023-08-27T15:22:31
42,903,588
28
16
MIT
2023-09-09T07:33:29
2015-09-22T01:27:05
C++
UTF-8
Python
false
false
1,401
py
import urllib assert "Hello World!" == urllib.urlopen('http://localhost:18080').read() assert "About Crow example." == urllib.urlopen('http://localhost:18080/about').read() assert 404 == urllib.urlopen('http://localhost:18080/list').getcode() assert "3 bottles of beer!" == urllib.urlopen('http://localhost:18080/hello...
[ "kingsamchen@gmail.com" ]
kingsamchen@gmail.com
8fb3f79b350977c88931c3266b2db486922dcec9
ffad717edc7ab2c25d5397d46e3fcd3975ec845f
/Python/pyesri/ANSWERS/countwords.py
3cb94d4482bdf35763fd40b40028fc5136cad2d1
[]
no_license
shaunakv1/esri-developer-conference-2015-training
2f74caea97aa6333aa38fb29183e12a802bd8f90
68b0a19aac0f9755202ef4354ad629ebd8fde6ba
refs/heads/master
2021-01-01T20:35:48.543254
2015-03-09T22:13:14
2015-03-09T22:13:14
31,855,365
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
#!/usr/bin/python import sys if len(sys.argv) < 3: print "Syntax: countwords.py PATTERN FILE ..." sys.exit() pattern = sys.argv[1] for fname in sys.argv[2:]: count = 0 with open(fname) as f: for line in f: if pattern in line: count += 1 print ...
[ "shaunakv1@gmail.com" ]
shaunakv1@gmail.com
2c14b342ece31335f536bac793332b879a2c8b94
7f54637e347e5773dfbfded7b46b58b50544cfe5
/8-1/chainxy/settings.py
0f222740778cd9f63c7bbb6304924cd66e17b44f
[]
no_license
simba999/all-scrapy
5cc26fd92b1d03366b74d4fff58c4a0641c85609
d48aeb3c00fa2474153fbc8d131cf58402976e1d
refs/heads/master
2021-01-25T14:24:04.715550
2018-03-03T13:43:13
2018-03-03T13:43:13
123,695,640
1
0
null
null
null
null
UTF-8
Python
false
false
3,587
py
# -*- coding: utf-8 -*- # Scrapy settings for chainxy project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/e...
[ "oliverking8985@yahoo.com" ]
oliverking8985@yahoo.com
509ca1afcbfe5bbdeb744ed4f48259dbb9978d9f
775d3690f09f34347e2a7918b060f9dd9f83c10d
/research/vrgripper/vrgripper_env_models.py
36c7825380aeab82828057bd703230deea3186e6
[ "Apache-2.0" ]
permissive
HK2-D/tensor2robot
aa0ccc9a997ba72447a48d0dc3acf71d2f4af827
58d71467eecf02d3a1646d26cc9011f81753f560
refs/heads/master
2023-02-04T03:18:22.863436
2020-12-24T01:20:50
2020-12-24T01:21:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,221
py
# coding=utf-8 # Copyright 2020 The Tensor2Robot Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
0ea9bc7a81b5477b94cd0a274d0e8e74a3e7a894
97b2688fb68523f8350c951972c472425e5671d5
/test/test_invoice_line_tax_m.py
a9cc1195e7b0af6850828d47dd0fa4c3a0a50aff
[]
no_license
calebdlarson/aria-sdk-object-query
ab45e5a36d629f98cd58957eef72e53a28b3706b
b44abc9e6e3b86c109e65fdc4edf22d7c51edc2c
refs/heads/master
2020-06-26T19:33:36.880213
2019-07-30T22:04:10
2019-07-30T22:04:10
199,733,517
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
# coding: utf-8 """ Object Query API Object Query API for Aria billing # noqa: E501 OpenAPI spec version: 23 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.vendor\ariasyste...
[ "caleb_larson@trimble.com" ]
caleb_larson@trimble.com
d4f824fdedc2fe9a5500cdeaba29ec74be9b9839
aa96ac0dda227bbbfc647c710524915dfae0240f
/tests/basic/vargs.py
31ca3e5fa2b9b2a9cc757e9658a8a34120b995b0
[ "BSD-3-Clause", "Python-2.0", "MIT" ]
permissive
certik/test3
c963e806e0ccba7a751543303df7137332a34e8a
5ed67b37bbff59981c3a9e55bb3d8bdc8924a1aa
refs/heads/master
2016-09-06T11:38:01.939907
2010-04-29T17:31:50
2010-04-29T17:31:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
def myfunc(a,b,*c): print a print b for i in c: print i myfunc(1,2) myfunc('a','b','c','d') myfunc(3,4,5,6,'hello')
[ "peter@cornerstonenw.com" ]
peter@cornerstonenw.com
3ef0aa3cd77321b32b02be7e5729cddcb6ed997a
425aa72cb1ca1edf15a6234647dd546e0d29a71b
/turtle_pkg/scripts/grid_path_planning.py
3b725eca7f70f7512c62e4ee74c8723b5a202f34
[]
no_license
TechnoYantra/robot-teleoperation
bbc652deaf1ed15fe54b91fef27d542c124705ef
c633169ac57ab1db36b0763fb7498c1722c93881
refs/heads/master
2023-04-06T03:41:21.440297
2020-04-24T06:51:28
2020-04-24T06:51:28
301,329,974
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
#! /home/hunter/development/anaconda3/bin/python import rospy from grid_based_sweep_path_planner import planning from sensor_msgs.msg import NavSatFix from move_base_msgs.msg import MoveBaseActionResult from std_srvs.srv import Empty class GridPathPlannig: def __init__(self): rospy.init_node('grid_path_...
[ "sachinkum123567@gmail.com" ]
sachinkum123567@gmail.com
33ce5299478cdbc5d4c69e68261c0090083414ce
7f46fda936a5f4358e8b229668d7f4d94bc7fa33
/backend/env/bin/django-admin
9d20155efcf8be1a359c9b0f866b8abe7d34fd03
[]
no_license
souksavanhlkl/djreact-ant-test
22de7c2aaa202e002baa41020fd15a46269439dc
66f90a19770b39a5c3cb79a14b5c6fe12e49ca55
refs/heads/master
2020-06-18T07:26:30.601504
2019-07-12T17:51:57
2019-07-12T17:51:57
196,211,377
0
0
null
null
null
null
UTF-8
Python
false
false
309
#!/Users/ton/Downloads/Test/djreact/backend/env/bin/python3.7 # -*- 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())
[ "vila153@outlook.com" ]
vila153@outlook.com
58e695680127bb42f2f78903fc84e26e9f79b012
7822e658e88f3f948732e6e3e588ca4b2eb5662a
/guias/2012-2/octubre-17/torneos.py
3cc64246b4e91ed046f843aea8d045bff0ea5db2
[]
no_license
carlos2020Lp/progra-utfsm
632b910e96c17b9f9bb3d28329e70de8aff64570
a0231d62837c54d4eb8bbf00bb1b84484efc1af2
refs/heads/master
2021-05-28T06:00:35.711630
2015-02-05T02:19:18
2015-02-05T02:19:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,803
py
def contar_partidos(partidos): return len(partidos) def obtener_equipos(partidos): equipos = set() for local, visita in partidos: equipos.add(local) equipos.add(visita) equipos = list(equipos) equipos.sort() return equipos def obtener_fechas(partidos): fechas = set() fo...
[ "rbonvall@gmail.com" ]
rbonvall@gmail.com
9813d2f1469dc08e215edac52165f3615023264d
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/AlibabaOpendspAdgroupsAddRequest.py
ecc347df1177f0300f8f99e6b18777f4d00cdb29
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
''' Created by auto_sdk on 2015-01-20 12:44:32 ''' from top.api.base import RestApi class AlibabaOpendspAdgroupsAddRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) def getapiname(self): return 'alibaba.opendsp.adgroups.add'
[ "yangwenjin@T4F-MBP-17.local" ]
yangwenjin@T4F-MBP-17.local
cbd5604e182ecd8be6874afcae31daabbc07241b
decfc623e13ee43829b4150db8687847ca6b2fd0
/MazeAgents.py
92953ad28e28fd1baa2002743778d755a4fa30a5
[]
no_license
callaunchpad/MeTaL
da07d0bab5f70102d06d0c0f5407fe90cacc2fd1
a8f83d7db566fb205f47e2201956e35abae11c55
refs/heads/master
2020-03-28T18:03:19.364027
2018-12-06T19:10:59
2018-12-06T19:10:59
148,848,555
5
0
null
null
null
null
UTF-8
Python
false
false
3,725
py
import dijkstra import numpy as np class MazeAgent(): import collections def __init__(self, goal, walls, size): self.size = size self.goal = goal self.loc = np.array([0,0]) self.graph = self.make_graph(walls) self.ACTIONS = [0, 1, 2, 3, 4] def get_action_distr(self...
[ "hank.obrien900@icloud.com" ]
hank.obrien900@icloud.com
bc6e7bce01224906af14992bd0824e147133d29d
cdfbe1e28af6c9b3653b450360d3e22b6d509aa7
/3_1_joern_vahland.py
915b17fe4d3b4038ab9a632bb30704cd0a3af8af
[]
no_license
Ahemmetter/comp-physics
e58e731db72e5b3cc41f2d66b503e5c734830f96
f9a570a2c536c658e8150ee06454d2ea3ff4da6c
refs/heads/master
2020-03-12T11:08:57.377346
2018-04-22T17:41:57
2018-04-22T17:41:57
130,589,970
0
0
null
null
null
null
UTF-8
Python
false
false
5,732
py
#! /usr/bin/env python from __future__ import division import numpy as np from matplotlib import pyplot as plt def fkt(x): """Auszuwertende Funktion""" return np.sin(2*x) def int_middle(function, x0, x1, n=1000): """ Integration der uebergebenen Funktion 'function' von x0 bis x1 auf n Teileinter...
[ "andreas.hemmetter@gmail.com" ]
andreas.hemmetter@gmail.com
9ccf673fc7f75b6ef56bdf197618ec1911503eb7
ed14247e130e538612bf8108a5ae5d95fc1d4eb5
/algorithm/DE_FBG.py
ae830ac181dc6f841844ddc010d8a2cbbe7841b5
[]
no_license
chiuhans111/threeFBGpredict
b46f3df711ec0d5e37c19501d406c7331ca1ded9
109eb28393f66f8d596f686fbfa62ff29f12b930
refs/heads/main
2023-02-24T10:53:25.379452
2020-12-23T11:32:48
2020-12-23T11:32:48
323,494,418
0
0
null
2020-12-22T02:00:30
2020-12-22T02:00:30
null
UTF-8
Python
false
false
959
py
from algorithm.DE import DE import numpy as np from algorithm.FBG import simulate def optimize(data, center, width, height, d, iterations=20, F=.5, CR=0.1, NP=50): x = np.array([center, width, height]) down_lim = x - d[:, np.newaxis] up_lim = x + d[:, np.newaxis] de = DE(F, CR, NP) X = de.init(d...
[ "chiuhans111@gmail.com" ]
chiuhans111@gmail.com
e45404a58ceedb3cdcaa8689db61661f2f574385
6060a897acb9b47b52ce03b2400ada9474521a1a
/vecSubtract.py
0eb504c04d7fce55f665e0f41fb805f2e014f06b
[]
no_license
madisonstewart2018/quiz-3
64c6761dd64ed213927720b2312419d4efe1a1de
da0473848f9a496859cd79e08bb73747df3438e1
refs/heads/master
2020-03-21T13:34:52.435332
2018-06-25T15:36:24
2018-06-25T15:36:24
138,613,649
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
# vecSubtract subtracts the second vector from the first. def vecSubtract(vector01, vector02): ''' This function takes two vectors as its arguments and subtracts the second vector from the first vector giving a new vector from the two. ''' if len(vector01) != len(vector02): #if the length of the two vectors...
[ "noreply@github.com" ]
noreply@github.com
93ae19d8347402fc48316e47a19dfa72c32bdf88
11d6c4caca42d885587b36ab754809dd14d2a4c1
/apps/messaging/tests/test_urls.py
001a2a3c8dc84bed586bfef75fdb8b7e3ef54283
[]
no_license
illia-v/FortyTwoTestTask
b32b73832f40bf51ad74e6c1a8e91d1c425dfc22
c2dc855e0463e428d1d3876d8748ea90e42e0038
refs/heads/master
2021-01-10T23:52:47.517041
2016-11-13T23:27:43
2016-11-13T23:27:43
69,566,080
0
0
null
2016-09-29T12:37:56
2016-09-29T12:37:55
null
UTF-8
Python
false
false
4,392
py
from django.test import TestCase from django.core.urlresolvers import resolve, reverse class TestMessagingURLs(TestCase): def test_messages_index_view_url(self): """ Ensures that a URL pattern name `messaging` is valid and the pattern is resolved to `MessagingIndexView` """ ...
[ "illia.volochii@gmail.com" ]
illia.volochii@gmail.com
0981118c599df667436e798337a89c2f6dae448d
fd6f795e14a1f8d64860aa0dbac91cb4282d4675
/src/create_all_train_heading_matrices.py
1a390969f3441df2b9d75d6bd67f9cdce66d9155
[ "Apache-2.0" ]
permissive
mesax1/Eafit-UdeA-Amazon-Last-Mile-Routing-Challenge
495e0eb46e4921c3696501f8bc31b20c017e99d7
51c4f1cf14529eee558395c4cf90c4685f786fbe
refs/heads/main
2023-07-05T02:09:50.231281
2021-08-18T18:57:39
2021-08-18T18:57:39
397,702,616
2
0
null
null
null
null
UTF-8
Python
false
false
6,111
py
# -*- coding: utf-8 -*- """ Created on Mon Jun 14 14:04:34 2021 @author: mesar """ import numpy as np import pandas as pd from lib import utils from progressbar import progressbar as pbar from pathlib import Path import itertools from time import time import csv if __name__ == "__main__": Path("../data/mode...
[ "mesax1@gmail.com" ]
mesax1@gmail.com
72d63ebd6c645be46a359af210e35f898b44baa4
7fc1de164e179c51f3c114aa31cc81edc89b3f91
/dopamine/discrete_domains/train.py
672479f1e553583f1efecb2c0704d272aef2b5ba
[ "MIT" ]
permissive
SherlockShellingford/NotWorkingIQN
9b8609691ee43eaf65c81069e33a92ada386491a
99af0bdd25b67203f93e060d23f42fafce588ff7
refs/heads/master
2023-03-20T07:52:06.656742
2021-03-09T12:16:45
2021-03-09T12:16:45
339,854,241
0
0
null
null
null
null
UTF-8
Python
false
false
1,830
py
# coding=utf-8 # Copyright 2018 The Dopamine Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "48645970+SherlockShellingford@users.noreply.github.com" ]
48645970+SherlockShellingford@users.noreply.github.com
10b46b68c63bd7cd2f94b81bd419e6d1e2b27176
605e05d30e9df15307c7414ec7d4137bea5b2b53
/docs/core/models/professor.py
349786ff2cc2462926df15bdc4573bdb863b67f2
[]
no_license
tr0v40/Malakias
f4c4542373b038e833ce5d45848852d94ce05f3d
46d85758c515d858430b0174646ab3f8a37dc65b
refs/heads/master
2020-03-15T18:59:27.931071
2018-05-06T18:22:46
2018-05-06T18:22:46
132,297,500
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
class Professor: def __init__(self, login, nome, email, celular, apelido): self.__login = login self.__nome = nome self.__email = email self.__celular = celular self.__apelido = apelido self.__disciplinas = [] def addDisciplina(self, disciplina): if disc...
[ "noreply@github.com" ]
noreply@github.com
990dae602fb84ac655bda5f1afc15ff366bfbd32
dfee0c908ad021f229d6d802408790a10272132c
/tests/python/relay/test_dataflow_pattern.py
d99e55b7c33ff3dc3db2e470777793a514c8712c
[ "Apache-2.0", "Zlib", "MIT", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
cchung100m/tvm
788453bce13a659d991c599d7ee2979089538967
6258fae6d1e9ab77b8065d4ffb81a5033665e0cc
refs/heads/master
2023-07-09T20:36:14.055440
2021-01-02T00:07:41
2021-01-02T00:07:41
198,459,825
0
2
Apache-2.0
2019-07-23T15:37:37
2019-07-23T15:37:37
null
UTF-8
Python
false
false
47,618
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
323a9f902674ad4556e5501d6aa72e33fa93729c
6e33b919b56ac94c61ba2df328b544a09a6ce2ad
/simple_mine_f.py
c4983ce2e68a7e974c6c2d7f95c5886ec5653fe8
[ "MIT" ]
permissive
ReyesDeJong/MINE
5cc51838fdc5a111c2dd07bb2354cd3d9def9b68
50f02110f8c2f4b5a11e1e37c31a4a9c271aa19c
refs/heads/master
2020-03-27T04:08:06.797991
2018-10-20T22:59:16
2018-10-20T22:59:16
145,914,435
0
0
null
null
null
null
UTF-8
Python
false
false
5,803
py
from __future__ import division from __future__ import print_function import tensorflow as tf import numpy as np import time import datetime from grad_corrected_mine import GradMINE class MINEf(GradMINE): def __init__(self, params, name="mine_f"): tf.reset_default_graph() self.name = name ...
[ "reyes.dejong@gmail.com" ]
reyes.dejong@gmail.com
838a4c8d30bc51f929d302ad820dcf88dccc9bdc
5fde25a6683cf1fc71cf351c70145b67de5c2890
/python/common.py
7ea09674fb82eca895c8a28631199a636b487949
[]
no_license
lymslive/expcode
e1a37a8aa7e2bf610088b2aa2665567ec97cb38e
43f06f1da3d71d6e8bed9f03b3e126c2ba2c0151
refs/heads/master
2021-06-21T04:23:58.633222
2019-07-30T10:04:01
2019-07-30T10:04:01
66,209,383
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
#! /bin/env python3 VERSION = '3.7' def hello(str): print('Hello ' + str) if __name__ == '__main__': hello('python')
[ "403708621@qq.com" ]
403708621@qq.com
705628d355732a3aba43be82e8cdeb9a979abf95
1282705c88423f06d9d8dfd946759149866a3ef5
/recommender.py
b545bc3c40cc0a12834fe6debf2e456b2c8364e8
[]
no_license
zlq54321/recommend_system
03f4b6bce5a47b4ada1f2ed42d884366e6bd2138
5f18fb162da4f250ecfc61c48001ba4c253ebfaa
refs/heads/master
2020-11-26T22:16:07.169278
2019-12-20T08:04:47
2019-12-20T08:04:47
229,215,834
1
1
null
null
null
null
UTF-8
Python
false
false
1,751
py
import pickle import tensorflow as tf import numpy as np load_dir = './save/model' title_count, title_set, genres2int, features, targets_values, ratings, users, \ movies, data, movies_orig, users_orig = pickle.load(open('preprocess.p', mode='rb')) title_col = movies['Title'] len_col = np.array([len(x) for x in title_...
[ "zlq54321@126.com" ]
zlq54321@126.com
2f1c6182fa0804fc0d4d1db18e26043816332d5e
55c7a20dfd2b6aa03bdfc53890519d44a7e7d399
/tweet/models.py
03533b17c9292305ae7042a6535bc9f361057598
[]
no_license
shijuqb/cmtest
4ff78e1fb031fb45168d0109aee4e57426fab46f
bb1b15cb807476ca15013e58d947c6b44ba9bb23
refs/heads/master
2021-01-25T05:22:48.038160
2013-04-02T06:05:20
2013-04-02T06:05:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class TwitterProfile(models.Model): USER_TYPE = ( ('1', 'editor'), ('2', 'author') ) """holds additional fields of a user""" user = models.OneToOneField(User, unique=True, related_name='...
[ "shiju@shiju-desktop" ]
shiju@shiju-desktop
18d41e510e6cab64ca3b008c8058c0880ca3ff05
da64994d73d250d19a30381de7462c5729372f81
/apps/trainingClass/models/tuitionmodel.py
68d65fed22d12da00ba68e01232acb2bcfb7699f
[]
no_license
Mid0Riii/psybackend
2f872c1dd21e97ba0a46efa10f2b3246ac8bb2b5
2cd477f01111a816b17725a00ffa77a156dec7b0
refs/heads/master
2023-03-26T07:55:17.580161
2021-03-14T01:45:19
2021-03-14T01:45:19
305,083,821
0
1
null
2021-03-14T01:45:20
2020-10-18T11:15:48
Python
UTF-8
Python
false
false
3,142
py
from django.db import models from .classmodel import TrainClass from .trainingclassmodel import TrainBasic from django.utils.html import format_html class TrainTuition(models.Model): class Meta: verbose_name = '训练班交费信息' verbose_name_plural = verbose_name relate_class = models.ForeignKey(Train...
[ "a@.com" ]
a@.com
53a945c90a5f13d985d4f692365b5b5705914dcd
94b727c9dd370738d3c7c6a45bef183e44330fb9
/dojo.py
ad0b114bb6cf9a2171c5190e3fe10e99f169304c
[]
no_license
kevinidias/Testes_Python
315c84106ce7649f74c2049167044a5eca4e57fe
6654d3827cb64706fd4a200423093334d58ecfef
refs/heads/master
2023-08-26T04:10:01.315708
2021-10-27T17:02:56
2021-10-27T17:02:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
""" Como saber se um número é feliz ou triste? 1- Dado um número inteiro positivo 2- Substitua o número pela soma dos quadrados dos seus dígitos. 3- Se o resultado for 1, o número é feliz 4- Caso contrário, repita o processo indefinidamente. """ def happy(number): next_ = sum(int(char) ** 2 for char in str(number...
[ "kevin.dias.20160@gmail.com" ]
kevin.dias.20160@gmail.com
958bffbcef5c0c35574ec6229d4eb3360c9cde5e
9d9fcf401bb47ccaaa6c3fd3fe7a8be255762855
/libs/numpy/sort/argsort.py
2725c26fb628d43f78413d5fa7ac417f25fcd07d
[]
no_license
hanhiver/PythonBasic
f05ef9fe713f69610860c63e5223317decee09ad
8e012855cce61fb53437758021416e5f6deb02ea
refs/heads/master
2022-10-11T22:57:47.931313
2020-12-30T12:32:44
2020-12-30T12:32:44
148,477,052
0
3
null
2022-10-01T05:35:03
2018-09-12T12:29:33
Python
UTF-8
Python
false
false
187
py
import numpy as np a = np.random.randint(0, 10, (4, 5)) print(a, '\n') index = np.argsort(a, axis=0) print(index, '\n') index_3 = index[..., 3] print(index_3, '\n') print(a[index_3])
[ "handongfr@163.com" ]
handongfr@163.com
43346fa0feeefd499bf34c8866c7fe30287cc8d3
d5fa9cd39f283642047f2657343e3db79b7726e8
/cya_server/models.py
187f71442df2ba244c3c5026a3443c958c718c6b
[]
no_license
doanac/cya
6004d7d90bcf790e1357ab36da7f43140e1fa2eb
a623060dbf29b024592a68d023e135a546a81c0f
refs/heads/master
2021-01-21T04:55:23.529810
2016-06-30T03:39:29
2016-06-30T03:39:29
41,894,462
1
0
null
null
null
null
UTF-8
Python
false
false
6,733
py
import datetime import os import random import time import string from cya_server.settings import ( MODELS_DIR, CONTAINER_TYPES, CLIENT_SCRIPT) from cya_server.simplemodels import ( Field, Model, ModelManager, ModelError, SecretField) def client_version(): return str(os.stat(CLIENT_SCRIPT).st_mtime) cl...
[ "doanac@beadoan.com" ]
doanac@beadoan.com
385dc29e8a96a82daa9709d0c22d2c368662202c
be0d83dde6b499b60f36c14c961a125581f36a57
/preprocess_files/mv_img.py
592114d7036909b48ede59be9b6dcca5df06b54f
[]
no_license
zhengziqiang/gan_learning
4acaf18f452fed0e2eeb0ddb45d861e9d10af835
d9ffb1c18e592715b62df684e23a362f8d07ac41
refs/heads/master
2021-01-01T13:35:28.696378
2017-10-29T13:42:51
2017-10-29T13:42:51
97,583,619
7
1
null
null
null
null
UTF-8
Python
false
false
745
py
import os import glob # d={} # for files in glob.glob('/home/zzq/research/windows_file/IIIT-CFW1.0/tmp/*.jpg'): # filepath, filename = os.path.split(files) # # print filename # l=filename.split('.') # # print l[0] # my_namee=filter(str.isalpha, l[0]) # print my_namee # if d.has_key(my_namee)...
[ "1174986943@qq.com" ]
1174986943@qq.com
c94f97bced0e065103a9eee317568b7acb7efafa
8294a144dc40e2da77cdbdb623301dc53b2697bb
/book_control/views.py
a0253bfe82d3487b8de25759c64e7d3697091bef
[]
no_license
md-asif-shahriar/slim
dd3cea3df33738c6fc146992fdc7b7ce5eaeed41
52401ea02de3de184164843ded36628335bca4c3
refs/heads/main
2023-07-23T23:07:45.536996
2021-04-12T14:55:36
2021-04-12T14:55:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
from django.shortcuts import render, redirect from .forms import * def post_book_view(request): user = PublisherProfileModel.objects.get(user=request.user) task = "Post New" form = PostBookForm() if request.method == 'POST': form = PostBookForm(request.POST, request.FILES) if form.is_v...
[ "78955762+asif-bhai-xoss@users.noreply.github.com" ]
78955762+asif-bhai-xoss@users.noreply.github.com
1be57f985a05ec18b7b9bbaa2505fdf735efee35
f55ed49e77f2983f9118a5228a0f6d777c4eac97
/apps/hbase/src/hbase/conf.py
e72da5dbabc2a8effb22142b59233d8ca77a8cf8
[ "Apache-2.0" ]
permissive
mravi/hue
feb8543e1490fdbfdaff069c021ae168f72b28c6
1190bc41c560edf239c5dfc9689d25f3b4b3ab95
refs/heads/master
2020-12-25T21:55:41.294305
2013-11-07T11:49:05
2013-11-08T01:36:42
14,227,040
1
1
null
null
null
null
UTF-8
Python
false
false
1,253
py
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
[ "kevin.wang@cloudera.com" ]
kevin.wang@cloudera.com
138535dfe2fb66e2a63cac24f3a9230738a73b8e
6aef2d7d320e8ec35f304955b35295f6cde8b1c2
/r00tphish.py
c4b9779ecd88ac455c7b929ced519c94f73d8eeb
[]
no_license
r00tapple/wizardbible
3ba074eb56a313df07b29033ddf6ffb466f63fd7
ba8073567ec03caa12c63b5fa0e0c1aaa7baf7d9
refs/heads/master
2021-01-10T04:48:03.836427
2015-12-13T18:27:10
2015-12-13T18:27:10
46,774,367
1
0
null
null
null
null
UTF-8
Python
false
false
3,785
py
from lxml import html import subprocess import os,sys,time,re,shutil,urllib2 ###setting### html_parser = html.HTMLParser(encoding="utf-8") ############# def setdirectory(): if check_os() == "posix": return os.path.join(os.path.expanduser('~'), '/clone') if check_os() == "windows": return "src/...
[ "packr@packr.org" ]
packr@packr.org
afe0ccc8e45fcfa053086a87b4a310df15eceab1
73ce13a41156bb4a3c076a1a3a29fa746d716a4b
/python-/pdfScrapper.py
a5513894876a5c0f7b142a47d3290bb5f8200b3e
[]
no_license
Wsaleh123/Python
b31da424dcf3e0a9d0978371e83f3aa7e17a0ff1
308014bfd632f61c7bb4cd1faae974c637db0179
refs/heads/master
2021-08-16T13:02:49.042530
2017-11-19T22:40:14
2017-11-19T22:40:14
111,337,836
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
import pdfquery file = open(name["ast_sci_data_tables_sample.pdf"], mode[w+]) print(file)
[ "wesamsaleh30@icloud.com" ]
wesamsaleh30@icloud.com
916eae5a842222453fbd7561d41098dcb8e049fa
80ebd1937d184206221ef34489f77a5f4f54d6d4
/venv/bin/pyhtmlizer
aaf0384c060c59066b63ee13038d5e7a41872a3f
[]
no_license
cv121189mav/chat
e259ec7b24f23db76f32d96e135d5fd30608e0ca
11832deeda4a31b12b045b6e53c55853043b2e6e
refs/heads/master
2020-06-03T21:43:58.777537
2019-06-13T10:36:13
2019-06-13T10:36:13
191,741,778
0
0
null
null
null
null
UTF-8
Python
false
false
423
#!/home/sanya/PycharmProjects/chat/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.1','console_scripts','pyhtmlizer' __requires__ = 'Twisted==19.2.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[...
[ "c121189mavvv@gmail.com" ]
c121189mavvv@gmail.com
6fdb87404571a689574fb5666416aa230b4b70f2
7c718926b1f4091190e5faefb34c34bacdc312a6
/modules.py
64f3f1ea9a56da0081a68e7a3f5e690bec8d7973
[]
no_license
mindis/Recsys
617d8d9196e6aa82d3a1194d2d2f14baa0cd7966
3eed212cfefc76417689e506825a4332524375e2
refs/heads/master
2020-04-07T00:08:29.945753
2018-06-11T11:29:11
2018-06-11T11:29:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,091
py
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable #embedding class Embed(nn.Module): def __init__(self, input_dim, embedding_dim, item = False): super(Embed, self).__init__() self.embedding_table = nn.Embedding(input_dim, embedding_dim) ...
[ "bjorva@telenor001.idi.ntnu.no" ]
bjorva@telenor001.idi.ntnu.no
2ed62811591195923fcfee6e88f11490c620d28a
9c70ae1761d9d28f619e96f335a0807de5fad1b7
/Modules and Packages/MyMainPackages/some_main_script.py
139031511681c6ff4a0145195f21b10d7b11c471
[]
no_license
hareeshkavumkulath/CPB
eb35cf86c8d6bfa85388d82a742c4b09074bf8b2
6f606b4e09f09fbb8c3f9a521cc7f6f52f30e301
refs/heads/master
2020-09-25T13:59:24.372643
2019-12-31T07:30:45
2019-12-31T07:30:45
226,018,264
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
def report_main(): print("Hey I am in some main script and main package")
[ "hareeshkavumkulath@gmail.com" ]
hareeshkavumkulath@gmail.com
138bed068a1b35a2872be88c51cc61ea599cc5fc
c431e47c7231e9ba8c3f2709da5fae653595bfcd
/prodigy/player.py
93e76c2220c3e366b93395a93a4a277e5d0381bb
[ "MIT" ]
permissive
TheFinality/Prodigy
732a298d04e7bb00bd8aa7dd9a2ed1774465e4f9
59148734b9925d460a2d7139d4fe53e4dbf4c5bb
refs/heads/master
2023-07-03T03:00:00.676336
2021-08-02T11:25:40
2021-08-02T11:25:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
import json import requests from prodigy.get_userID import get_userID def player(token: str, userID: int = None, log: bool = False) -> dict: if userID: return requests.get(f"https://api.prodigygame.com/game-api/v2/characters/{userID}?fields=inventory%2Cdata%2CisMember%2Ctutorial%2Cpets%2Cencounters%2Cquest...
[ "hostedpostedsite@gmail.com" ]
hostedpostedsite@gmail.com
44d2f48c0e7d31ec05ea19b6bc744d08a1727187
e82361444469e95dbe19d5b1660ff1d74839bf22
/webapp/models.py
fed80bee131c2854beafa0b83639f0dd677ffd4c
[]
no_license
salimbencosme/movierentalapp-api
86271bac1ce9ecad7b8c912c4496db11b18b4d37
ea222a8bd9b4caa568866456a3575c8981641988
refs/heads/master
2021-08-30T12:01:40.912900
2017-12-17T20:59:43
2017-12-17T20:59:43
114,559,449
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
from django.db import models from datetime import datetime class Movie(models.Model): movieid=models.AutoField(primary_key=True) name=models.CharField(max_length=30) year=models.IntegerField() director=models.CharField(max_length=30) imgurl=models.TextField() rentalprice = models.DecimalField(d...
[ "salimbencosme@gmail.com" ]
salimbencosme@gmail.com
23b98df514699d790cd687bab8dee1a7e4fd757d
2a1802605a47bdcc9eeffda35082f8a73268df11
/rest-api/app.py
85edd4b3a3e52bb98c6fb2b2ce38893a90465f96
[]
no_license
RemusSino/reddit-consumer
1e05929860cd3f118d38a35c03b49000d42769f2
535a98f1a593e8fb462be9d8c86fac061efc2ebb
refs/heads/master
2020-05-27T07:49:22.337057
2019-06-02T08:21:03
2019-06-02T08:23:44
188,535,987
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
import json from bson import json_util from flask import Flask, request from mongo import read_from_mongo app = Flask(__name__) @app.route('/items', methods=['GET']) def get_items(): subreddit = request.args.get('subreddit') from_timestamp = request.args.get('from') to_timestamp = request.args.get('to')...
[ "remus@rsino.eu" ]
remus@rsino.eu
6967008ed0deda0ace65515c54b28d2858ba4210
7f594817970f5c9c774e7d2e7640068f5c00787d
/src/logistic_regression_eda.py
de850bab89e033243d05a7ab9b3f92363b8761a0
[]
no_license
kellypeng/churn_prediction
3aa4b83cf8ed4d74a2c957b0f310fc5200d802c8
827bf6634b491e872e4a5d01b291cca4bdb60e61
refs/heads/master
2021-01-23T09:10:50.433224
2017-09-09T23:29:57
2017-09-09T23:29:57
102,563,838
0
0
null
null
null
null
UTF-8
Python
false
false
5,718
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import datetime from main import load_data, data_processing from sklearn.linear_model import LogisticRegression from sklearn.metrics import f1_score, make_scorer, recall_score, confusion_matrix, precision_score from sklearn.model_selection import cr...
[ "kellypeng17@gmail.com" ]
kellypeng17@gmail.com
cf634701ce51fc3cb9c14499ec878f065f7baad4
427cb811a465677542172b59f5e5f102e3cafb1a
/python/classes/subClass.py
2244d735db508c992121644c9b9e179b8a63ef61
[]
no_license
IzaakWN/CodeSnippets
1ecc8cc97f18f77a2fbe980f322242c04dacfb89
07ad94d9126ea72c1a8ee5b7b2af176c064c8854
refs/heads/master
2023-07-26T21:57:10.660979
2023-07-20T20:35:59
2023-07-20T20:35:59
116,404,943
18
4
null
null
null
null
UTF-8
Python
false
false
1,236
py
# http://www.jesshamrick.com/2011/05/18/an-introduction-to-classes-and-inheritance-in-python/ # https://stackoverflow.com/questions/2843165/python-how-to-inherite-and-override # http://blog.thedigitalcatonline.com/blog/2014/05/19/method-overriding-in-python/ # https://docs.python.org/2.7/library/functions.html#super ...
[ "iwn_@hotmail.com" ]
iwn_@hotmail.com
2c11e8ac451f26810d32dc499dcaf475406a5e30
a5161d122e9ac7f733f5af1ca320ef19cf87154a
/extractors/host_feature.py
c7127ec92eea1d9f91da3a383ffa3d6690c1ff05
[]
no_license
zihnan/spider
f8c315e35e92ba7c7e0ff4d1e7b353ac98dea5ab
0823387171ec34a2945328f898f9a40535fe6c4f
refs/heads/master
2021-01-11T09:50:00.840323
2017-07-21T08:36:32
2017-07-21T08:36:32
78,271,428
1
1
null
2017-06-23T10:42:33
2017-01-07T09:57:36
Python
UTF-8
Python
false
false
711
py
import re from lxml import html from extractor import Extractor class HostExtract(Extractor): def __init__(self, host_str, **kwargs): self.ipv4_address_list = [] self.ipv6_address_list = [] for row in host_str.split('\n'): if row: cols = row.split(' ') ...
[ "zihnan@ntu.edu.tw" ]
zihnan@ntu.edu.tw
a8664286f8358d03bcf8e11702b53d8ee5865ef0
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/matplotlib/2018/8/axes3d.py
efbaedfef284ed36e1b8f3d87fbaaf0aa8ba1c71
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
103,008
py
""" axes3d.py, original mplot3d version by John Porter Created: 23 Sep 2005 Parts fixed by Reinier Heeres <reinier@heeres.eu> Minor additions by Ben Axelrod <baxelrod@coroware.com> Significant updates and revisions by Ben Root <ben.v.root@gmail.com> Module containing Axes3D, an object which can plot 3D objects on a 2...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
3b431dde97db8ea84f5bdc268f350d1f65c5b6bf
870a749904a488193b8bc52d3dc86335ebab812d
/example4.py
f6f06cc69bce0a50d2a7038c5b4341e475ac8c50
[]
no_license
Majd96/DebuggingPython
e8dcf23bc0fea9acc758a2fd85babb79c17f3185
da965b63f0c2e63e08353b3c4a188d7e1b5bb363
refs/heads/master
2020-03-23T14:54:57.219202
2018-07-20T12:12:30
2018-07-20T12:12:30
141,707,926
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
#print the first letters until reaching the half word = "Jerusamlem" pos=0 while(pos<len(word)/2): print(word[pos])
[ "noreply@github.com" ]
noreply@github.com
f69c16a19a338a4c13d918bc24780962c2d0cd5e
1c7e774fbf663771e404b086a61aa14468091e40
/myprofile/asgi.py
86c9ced93554a16e75fb33dbc5fb94858288c5fe
[]
no_license
aliasgartaksali/myprofile
3d37340bd460989750d6ced52c35fb245f48a44f
dc2a9704316f2e3fb7d6de3f0d52f4ae4651a3e7
refs/heads/main
2023-01-07T18:53:06.123253
2020-10-19T11:53:41
2020-10-19T11:53:41
305,365,005
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for myprofile project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefaul...
[ "noreply@github.com" ]
noreply@github.com
55226d6399a5558f11abc91e3f66bf5e0d190179
5c6a2b2ba00b28803f1172393d44ac65cd762a0d
/blog/urls.py
0ffc4b886fac8171d260afd8db284d43329e9f9e
[]
no_license
PankajBasera/My-first-blog
ac8b141a1bafd3febbcf34fde9c4a6c1a72623ba
8b8afb055c0581250f5610c77630c548d3173d94
refs/heads/master
2023-09-02T20:43:36.797082
2021-10-28T15:16:46
2021-10-28T15:16:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
from django.urls import path from django.urls.resolvers import URLPattern from . import views urlpatterns = [ path('', views.post_list, name='post_list'), ]
[ "psbasera2016@gmail.com" ]
psbasera2016@gmail.com
1025f53cec2feecc8996ae422282e42729e32047
52400f92d663d920cfaceeb48ab05c54b5065302
/npsemrel/npsemrel/ml/features/syntax/__init__.py
2c11642198c3dab3127537e58e50870f69e7457d
[]
no_license
Barkar19/wsd-nlp
22cd2f4414b217f8660e2b36b5eb07e86b4fa72f
01b4412246c877eb30c82cefa3f2ec0b05612f9c
refs/heads/master
2021-09-05T06:26:40.261572
2018-01-24T18:17:18
2018-01-24T18:17:18
111,022,523
0
0
null
null
null
null
UTF-8
Python
false
false
32
py
# import feature_i # import pos
[ "209851@student.pwr.wroc.pl" ]
209851@student.pwr.wroc.pl
b5f7b40cdab61e773d1bec1c144966fc8c019ad5
b9878c92b857f73ff0452fc51c822cfc9fa4dc1c
/watson_machine_learning_client/libs/repo/swagger_client/models/connection_object_target_experiments.py
f8548c105d870dc07cfbde41d0896b443cf3f175
[]
no_license
DavidCastilloAlvarado/WMLC_mod
35f5d84990c59b623bfdd27369fe7461c500e0a5
f2673b9c77bd93c0e017831ee4994f6d9789d9a1
refs/heads/master
2022-12-08T02:54:31.000267
2020-09-02T15:49:21
2020-09-02T15:49:21
292,322,284
0
0
null
null
null
null
UTF-8
Python
false
false
4,806
py
# coding: utf-8 """ No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in comp...
[ "dcastilloa@uni.pe" ]
dcastilloa@uni.pe
b67e95b7e22f46ae001f3e019af40c357b893231
c3cf5e0dc112b9118eee75264d069c0267a8d810
/utils/no_segment_processer_add_validation.py
6ca87b9268e86daa93d65dd879a7cfc5af3d5c22
[]
no_license
chengtbf/ImageCaption
e8f724f594ef7122940a6dcb3f40c4def67092b1
76c2284d3f05a6c34c16744ac2e1ddc6d0cf83d5
refs/heads/master
2021-04-12T11:27:41.926871
2018-07-02T08:35:30
2018-07-02T08:35:30
126,583,051
0
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
def copy_value(list): ret = [] for e in list: ret.append(e) return ret in_file = 'D:/train.txt' in2_file = 'D:/valid.txt' out_dic_file = 'D:/valid_dictionary.txt' out_vec_file = 'D:/valid_train_vector.txt' out_vec2_file = 'D:/valid_valid_vector.txt' sentences = [] valid_sentences = [] content = ...
[ "619828575@qq.com" ]
619828575@qq.com
16632e1cfd929360e81b6b66540741a40107d618
113d9082d153adbccd637da76318b984f249baf5
/setup.py
b2cce85ef433c74f9b005df1a6e7c62d9261ca91
[ "BSD-3-Clause" ]
permissive
jorcast18462/django-applepodcast
bebb6f85d4c3ed98c96e6628443ece613898ca32
50732acfbe1ca258e5afb44c117a6ac5fa0c1219
refs/heads/master
2023-03-21T13:05:08.576831
2018-10-06T22:19:12
2018-10-06T22:19:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,675
py
from __future__ import unicode_literals import os from setuptools import find_packages, setup setup( name='django-applepodcast', version='0.3.7', description='A Django podcast app optimized for Apple Podcasts', long_description=open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rs...
[ "richardcornish@gmail.com" ]
richardcornish@gmail.com
369004a9e9a87da680156595de04557b95c67f10
5e966da612d69f8428d1d2216d75e0e63c3f6b02
/predict_test.py
ffff667db80f97fd3f91e1d594804806ddf02d7c
[]
no_license
ieiriyuki/titanic-survival
8f061afcf9d16308970cabc3fa3e605573cb8b6b
fd33b976cbf0184b1e2e3f9ebbe5545e6d5d218d
refs/heads/master
2020-03-21T01:46:45.159306
2018-06-22T07:10:22
2018-06-22T07:10:22
137,961,998
0
0
null
null
null
null
UTF-8
Python
false
false
1,108
py
#!/usr/bin/python from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from time import time import pandas as pd train0 = pd.read_csv("./data/train.csv", sep=",", header=0) test0 = pd.read_csv("./data/test.csv", sep=",", header=0) train1 = train0[['Survived','Pclas...
[ "yuki.ieiri@brainpad.co.jp" ]
yuki.ieiri@brainpad.co.jp
68740806ca9fdcb8c924b5a4b88a4c98f0efd8d7
3b831eedb7afede666088b6e018c829219938a93
/Grouping_Values.py
d73419177b17ac18330e2f7223561e75e54c044e
[]
no_license
joydas65/GeeksforGeeks
f03ed1aaea88d894f4d8ac0d70f574c4cd78a64b
e58c42cb3c9fe3a87e6683d8e3fda442dc83b45b
refs/heads/master
2023-01-12T02:19:54.967779
2023-01-10T17:28:41
2023-01-10T17:28:41
161,937,667
9
2
null
null
null
null
UTF-8
Python
false
false
432
py
class Solution: def isPossible(self, N, arr, K): # code here d = dict() for i in arr: if i in d: d[i] += 1 else: d[i] = 1 for i in d: ...
[ "noreply@github.com" ]
noreply@github.com
695df45d3c45d2a3dddc563aa799797402a2e546
91ac436e321e37edc4c35a92ad8c190da31a2dca
/pickle/pickle_recursive.py
986e15fbd7d3038c2931c9c281b0ad65b759b444
[]
no_license
jagan/ze-learnpythehardway
64d1fce42c7bce851377d1a0b96f42c295805335
2304ff09904a14ee5fe87e204f2c3732ac934d50
refs/heads/master
2021-01-13T01:36:35.254041
2013-10-25T16:24:11
2013-10-25T16:24:11
13,439,561
0
1
null
null
null
null
UTF-8
Python
false
false
761
py
import cPickle as pik def dump_an_obj(obj, file): with open(file, "wb") as f: pik.dump(obj, f, 2) # Pickle protocol version 2 def read_the_obj(file): with open(file, "rb") as f: obj = pik.load(f) return obj if __name__ == "__main__": l = [1, 2, 3] l.append(l) print l ...
[ "kjaganathan@zeomega.com" ]
kjaganathan@zeomega.com
09c1b393b0f9f6175dd19bafbe061ba24c38973d
2119abe2e865dabaac5f8df5bd5688df5c817ba8
/g13gui/g13/displaydevice_tests.py
afa1eba93a4340255898e6240ca604d6e52d7cbc
[ "MIT" ]
permissive
ddnut/g13gui
a4daba079367ff24f910a6614671b2cf8c7a9867
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
refs/heads/master
2023-06-17T23:40:09.841290
2021-07-13T19:05:16
2021-07-13T19:05:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
import unittest import time from dbus.mainloop.glib import DBusGMainLoop from g13gui.model.prefs import Preferences from g13gui.bitwidgets.display import Display from g13gui.bitwidgets.screen import Screen from g13gui.bitwidgets.label import Label from g13gui.bitwidgets.rectangle import Rectangle from g13gui.g13.disp...
[ "june@theonelab.com" ]
june@theonelab.com
68da6883582383a3328f9aa8107fe126c7fa7346
554bac52953d73db04c686ebbef3eb9c1600c650
/novice/01-01/latihan/latihan5.py
614bbc7f90eacc63fd4649a1458badde6a56c640
[]
no_license
pradana1/praxis-academy
aad37c1326e638d666415c4e515262bd21a52e48
fbfef9659fa192b873aac551b8770ae6c774d717
refs/heads/master
2021-01-06T16:13:29.183400
2020-04-04T13:15:05
2020-04-04T13:15:05
241,390,845
0
1
null
2020-07-21T14:45:05
2020-02-18T15:04:04
Python
UTF-8
Python
false
false
114
py
list(range(3, 6)) def concat(*args, sep="/"): return sep.join(args) concat("earth", "mars", "venus", sep=".")
[ "noreply@github.com" ]
noreply@github.com
a2169a0f6f86b2f788d0140f3c55b55953c3e356
39446bc5f68d38f972d29de009178c9a910b6302
/TextAnalysis/util/miscellaneous.py
8811d16339072e888edffb4b9560cb381c3ec4c7
[]
no_license
pyceileen/master_thesis
a94030f1b4a96e869f814d4bfe909dbf7699dfcf
2aa6b4059b2750410d1d12e583106dc43e5d423b
refs/heads/master
2022-12-29T19:21:33.698948
2020-10-01T12:39:00
2020-10-01T12:39:00
250,233,930
0
0
null
null
null
null
UTF-8
Python
false
false
3,344
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 11:22:57 2020 @author: Pei-yuChen """ import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from sklearn.utils.class_weight import compute_class_weight, compute_sample_weight from sklearn.metrics import classification_report, conf...
[ "43118791+pyceileen@users.noreply.github.com" ]
43118791+pyceileen@users.noreply.github.com
23d6a04e73cb64a8b99b1049956a491e698cfc84
86dc81e21f5b9e784dd087666d4d980c34781536
/udp_bro_send.py
596343dd578225cf7d1f4e55544f7bb7e2be5825
[]
no_license
sheltie03/udp_python
37b4e1f3377979c26e247a020efb958b3dfc28e5
cb0551fc4026a3baff968e81b758ea4d7d7e5fd6
refs/heads/master
2021-07-09T15:37:46.684924
2017-10-02T08:06:25
2017-10-02T08:06:25
105,496,943
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
# -*- coding: utf-8 -*- import socket import time def main(): host = '' port = 4000 # local_addr = '192.168.10.255' local_addr = '255.255.255.255' sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) sock.bind((host, port)) ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
74462d92064ecb85d151749d3d98de50ec838a75
f2e9eabc8ea32c4381525f8dfb7865aaa98af460
/TreeMaker/python/makeTreeFromPAT_cff.py
c7962a496e8076e09c87bbf7342ebdf7c2010217
[]
no_license
kheine/RA2Classic
a75977dc3ae1ce5a51bc5471111c69c00137bfdb
0f48e482da6859dad96002ad68fb78b9a56fac57
refs/heads/master
2020-04-13T18:49:31.530643
2013-08-02T13:28:46
2013-08-02T13:28:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,407
py
# $Id: makeTreeFromPAT_cff.py,v 1.18 2013/02/13 12:44:04 mschrode Exp $ # import FWCore.ParameterSet.Config as cms def makeTreeFromPAT(process, outFileName, NJetsMin=2, HTMin=350., MHTMin=0., globalTag="none", ...
[ "" ]
3f845c49314e2570d97f59eb93593ac5247fdd9f
3d8ece9b0291d38064abbcde1da7078b07cc0323
/elevator/positioner.py
ea75186e5c49a7d04c29636037e5ad1fbc71abf0
[]
no_license
EMS-TU-Ilmenau/Elevator
b92ff5c078d5d644b3e556d95ced868ecda611c5
38d2cd1c9d6c5b708ea680efedd552de9894a19f
refs/heads/master
2020-07-17T18:11:17.599973
2020-07-02T16:32:52
2020-07-02T16:32:52
206,069,682
0
0
null
null
null
null
UTF-8
Python
false
false
5,642
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import nested_scopes, generators, with_statement, unicode_literals, absolute_import, division, print_function # for compatibility import serial # for RS232/UART/COM port import time # for sleeping import math # for calculations import logging # for w...
[ "niklas.beuster@tu-ilmenau.de" ]
niklas.beuster@tu-ilmenau.de
c261a3aa2393582101930b0d509c572623981a2b
29eacf3b29753d65d8ec0ab4a60ea1f7ddecbd68
/lightly/openapi_generated/swagger_client/models/docker_run_scheduled_priority.py
8f59946a24631b8670f78eced6e272cd1b4e2588
[ "MIT" ]
permissive
lightly-ai/lightly
5b655fe283b7cc2ddf1d7f5bd098603fc1cce627
5650ee8d4057139acf8aa10c884d5d5cdc2ccb17
refs/heads/master
2023-08-17T11:08:00.135920
2023-08-16T12:43:02
2023-08-16T12:43:02
303,705,119
2,473
229
MIT
2023-09-14T14:47:16
2020-10-13T13:02:56
Python
UTF-8
Python
false
false
1,014
py
# coding: utf-8 """ Lightly API Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: ...
[ "noreply@github.com" ]
noreply@github.com
752c131107a11c4cca9973aa5a08f2fc22b37083
25a565679443dc00be245c00cd68dde43601df50
/workrobot/libs/region/class_regionmatcher.py
4dff7eae558942da43aac12cab870177c1aa13fc
[]
no_license
plutoese/workrobot
2d4e929a05be5aea1d6679769ac8c30aa42a1595
097571be9d61a120dd676464941cb9d0618963f6
refs/heads/master
2020-04-12T06:45:18.737553
2017-04-18T17:40:24
2017-04-18T17:40:24
63,757,855
2
1
null
null
null
null
UTF-8
Python
false
false
11,751
py
# coding=UTF-8 """ ========================================= 区域匹配类 ========================================= :Author: glen :Date: 2016.10.26 :Tags: region :abstract: 对区域进行匹配 **类** ================== RegionMatcher 区域匹配类 **使用方法** ================== **示范代码** ================== """ import re from libs.imexport.c...
[ "glen.zhang7@gmail.com" ]
glen.zhang7@gmail.com
f97850dc6668b6a0383ae0dade7bb9e5b0360eb3
2f46f893621f184ad7a37dea03001fa7c8704c0b
/team/urls.py
09142cd3d5718b65dd0291fad99f4654d8938a17
[]
no_license
DarkMagician0611/IITZL
b55c909cc94675af63e7ad5be0d5e959bc5cb437
b7e7ab304706ab00d9e9c747262387d6defe9865
refs/heads/master
2021-09-11T13:57:53.662298
2018-04-08T08:34:32
2018-04-08T08:34:32
125,329,743
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
from django.urls import path from . import views app_name = 'team' urlpatterns = [ path('', views.selectMatch, name='selectMatch'), path('index/', views.index, name='index'), path('teamAddIndex/', views.teamAddIndex, name='teamAddIndex'), path('playerAdd/', views.playerAdd, name='playerAdd'), path('addPlayerLate...
[ "shubham.bspdesign@gmail.com" ]
shubham.bspdesign@gmail.com
ccbe60417f748533bab61dc6d6cde0b17cca9c8b
a03131bb68abb94eafacdc56e803551e93aa2b94
/test/test_offline/test_defaults.py
382a6f8f0cc9486998a0249ed69ab4370083f2ea
[ "Apache-2.0" ]
permissive
gistart/prometheus-push-client
b1a50d7173e57817ca0011dbca213125e34577f7
fcaddb31e81d5c04d86c01d219f73b7d2e1736ed
refs/heads/master
2023-04-24T02:11:32.984284
2021-05-17T07:17:27
2021-05-17T07:17:27
363,989,153
14
3
Apache-2.0
2021-05-16T19:14:55
2021-05-03T16:16:29
Python
UTF-8
Python
false
false
1,107
py
import pytest import prometheus_push_client as ppc from testutils import make_metric_fixture, collect_metrics NS = "test_offline" SUB = "defaults" _cnt1 = ppc.Counter( name="c1", namespace=NS, subsystem=SUB, labelnames=["host", "l1", "l2"], default_labelvalues={ "host": "localhost", ...
[ "gistart@yandex.ru" ]
gistart@yandex.ru
ba99a49368036925459bfa5fcb8f14164b87077e
06d21b5ce670b719e1c68f890e48c61d55dd9c84
/exercises/three/bmicalculator.py
4a1b243c7cb4c990529571b944f705aebc692924
[]
no_license
kukuu/python
1613444d2c773a9d82e3f0df079cfbffea20fb65
5c6b8b9d7c3a187c90531bdd28347bbbec584ebe
refs/heads/master
2021-01-20T04:01:53.890753
2019-09-04T14:35:29
2019-09-04T14:35:29
33,211,288
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
def bmi_calculate(): weight, height = input("Enter weight and height seperated by a comma:") bmi_calculate = [(weight * 720) / (height * height)] for bmi_calculate in range (19,25): where = 'healthy' if bmi_calculate < 19: where = 'below' elif bmi_calculate > 25: ...
[ "aadusarkodie1@gmail.com" ]
aadusarkodie1@gmail.com
a0f8f7b8b1b8309bccf987e46c698b39e152970c
9c56151ff0c981f4d24aaaefd8896893225be8c2
/fotochest/apps/administrator/__init__.py
01dce1499601edfe311a5b67dd72fabd730a6561
[ "MIT" ]
permissive
ginking/fotochest
9da4c34abb7df758e29f5f3284c93e3cd6933bcc
0f9e6e72c7b587dec91cd5a0c3b081e28d056c62
refs/heads/master
2021-01-18T02:45:14.377309
2015-04-16T02:58:47
2015-04-16T02:58:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
default_app_config = 'fotochest.apps.administrator.apps.AdminConfig'
[ "dstegelman@gmail.com" ]
dstegelman@gmail.com
bfe6eb6e9734dbfe24074e1964400cdb06a23cc3
fce1b262820539e8574e5476692096f599ca2b27
/luffycity_s8/luffy/views/article.py
fecd0d8cf009734ca9798d3523d3afb6d261806e
[]
no_license
iyouyue/green_hand
9386082a0589ee6e1805aafe189ee38e823c8202
7b80e8cc0622e4d8e9d07dde37c72ac7d6e3261c
refs/heads/master
2020-03-26T14:39:02.224727
2018-08-16T14:27:57
2018-08-16T14:27:57
144,997,556
0
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
from rest_framework.views import APIView from rest_framework.viewsets import GenericViewSet from rest_framework.response import Response from rest_framework.renderers import JSONRenderer, BrowsableAPIRenderer from django.core.exceptions import ObjectDoesNotExist from luffy import models from luffy.response.base...
[ "iyouyue@qq.com" ]
iyouyue@qq.com
773663c4df0ccd2fbf185f8bbedf2977848846c9
3c8b1a4d9e7d53fd643e02dabae50298a8122763
/tests/__init__.py
6ae0126758f6be63f55461a5786077a39670ba77
[ "MIT" ]
permissive
greyli/fanxiangce
f0866ed5dfd32a2cd795db92dec9e8785833d480
c6eb8410867c7a743d1ede920b0858158fec961c
refs/heads/master
2021-09-18T10:35:02.317823
2018-07-13T02:32:25
2018-07-13T02:32:25
67,604,143
79
40
null
null
null
null
UTF-8
Python
false
false
21
py
# -*-coding: utf-8-*-
[ "withlihui@gmail.com" ]
withlihui@gmail.com
556cfb872153af8a3f4f6cac55f0cb4b264c5155
995f655b116cd61e0d7e2e139d414c83764af142
/estudos/python/ObjectSensing/OpenCV/webcam_example_1/webcam_basic_1.py
7815f65f99022a3f84f5cd02673d8938f380132e
[]
no_license
LPAE/lpae.github.io
a7513ab383b232e997e6d19d865be207dc7e417c
05cffe4bb25da037d1af5ae110a5d0e2fe1af9b2
refs/heads/master
2022-11-22T23:07:00.128668
2022-11-11T12:09:05
2022-11-11T12:09:05
171,523,476
2
7
null
2019-06-12T23:19:54
2019-02-19T18:03:16
Jupyter Notebook
UTF-8
Python
false
false
518
py
import cv2 # capture = cv2.VideoCapture(0) capture = cv2.VideoCapture(1) while 1: ret, frame = capture.read() cv2.imshow("Video", frame) # ------------------------------------------------------------------------------------------------------------------ # Esc -> EXIT while k = cv2.waitKey(30) & 0...
[ "ls.manoel@gmail.com" ]
ls.manoel@gmail.com
777644e2f2338f3db883ddb2a888fb753aed70c2
ecfcd725b4df54b7bab9b5e05a4618d6615a1277
/currency_1.0.py
a074c4ea8fe51533837eea2efbbc9c721319640b
[]
no_license
lyb0596/RMB
7695f4d39cd2c2002123e791409a5ef324490959
1b14d125dc04bb91a8627cb9ad8d2dcff8442226
refs/heads/master
2020-04-05T11:18:20.668810
2018-11-09T08:37:31
2018-11-09T08:37:31
156,831,615
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
rmb_str_value = input('input: ') lenth = len(rmb_str_value) print(lenth) #value = rmb_str_value[lenth-3:lenth] value = rmb_str_value[-3:] print(value) # transe = 6.77 # rmb_value = eval(rmb_str_value) # usa = rmb_value/transe # print(rmb_value,' && ',usa)
[ "yibin_liu@163.com" ]
yibin_liu@163.com
f0fadc6c349ecd2154f74fb36092ac1ba6e56a02
66f867e6939dd641498d8ce3e9c9ec375ac65305
/python week3/spelletje.py
36faadbd84d5e6dcd1cb5580ebd3e5459470a79e
[]
no_license
Mischadehaan/PythonAchievements
dc45a211344a6d6c2af4f04fe2b9616f120b7839
08436115ae4618211aa656c433ddf2fbf2af0cf4
refs/heads/master
2023-01-10T16:00:59.700131
2020-10-30T12:15:44
2020-10-30T12:15:44
294,099,119
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
# Doel: # Hoger / Lager spelletje moet als volgt werken. # De speler wordt een random getal getoont van 1 tot en met 10 # De speler moet daarna raden of het volgende getal hoger of lager wordt # Aan het einde moet de speler weten of hij / zij gewonnen heeft. # Stappenplan: # 1. Een willekeurig nummer van 1 t/m 10 make...
[ "mischa048@gmail.com" ]
mischa048@gmail.com
2613f41ca4dc3a52d8a9eba8b22d5db1b4f73c1e
04d9ee05feb6dddf19b9f7653f4dd9e9ce3ee95c
/rbtools/commands/install.py
03724c98f41a1da2e2262344e0806a96951d6e81
[ "MIT" ]
permissive
pbwkoswara/rbtools
2fa44ade1c60b4f076198bb8206a5d624dd40cd2
8ea5ff8843d2a3d44056ad4358d75c81a066cf28
refs/heads/master
2021-07-17T22:22:20.906220
2017-10-20T22:11:03
2017-10-25T17:05:21
108,022,324
0
0
null
2017-10-23T18:26:30
2017-10-23T18:26:30
null
UTF-8
Python
false
false
7,398
py
from __future__ import division, print_function, unicode_literals import hashlib import logging import os import shutil import tempfile import zipfile import tqdm from six.moves.urllib.error import HTTPError, URLError from six.moves.urllib.request import urlopen from rbtools.commands import Command, CommandError fro...
[ "trowbrds@gmail.com" ]
trowbrds@gmail.com
a9340662bebfa1cdd1adef79408712eb2e5883fd
7188e4eca6bb6ba03453e5c1d9e3134e9ef1b588
/apps/clndr/apps.py
29d6fb8f53be320b7e1c8a59f9267f426baf18ea
[]
no_license
mitshel/ghc_yapokaju
c85eb2c3cbfd9802f6fac16a6d6192ae85ad2511
d70b53235223dc935792aac3838678cb1b4d2b2e
refs/heads/master
2020-05-15T21:50:15.646729
2019-04-21T08:48:31
2019-04-21T08:48:31
182,509,831
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from django.apps import AppConfig class ClndrConfig(AppConfig): name = 'apps.clndr' verbose_name = 'The calendar' def ready(self): from . import signals
[ "mitshel@mail.ru" ]
mitshel@mail.ru
40482d11844a15da5e63667740be2f0721b99c48
3f1873d63ccb215ec88105661f1cd44927e222b3
/dl4mir/chords/data.py
5144796b4d0b592a6db6d5ba99adf69daadbd0ec
[]
no_license
bmcfee/dl4mir
50dd467687991163a819fc7560b9d9f9c4c6e568
c9438a221d1e853c25e1867673c1c3efca2e1756
refs/heads/master
2023-07-11T10:35:54.041154
2016-01-20T03:57:58
2016-01-20T03:57:58
69,293,002
1
0
null
2016-09-26T21:09:15
2016-09-26T21:09:14
null
UTF-8
Python
false
false
25,686
py
import itertools import numpy as np import biggie import pescador import mir_eval from dl4mir.chords import labels as L import dl4mir.chords.pipefxs as FX from dl4mir.common import util import dl4mir.chords.lexicon as lex def intervals_to_durations(intervals): return np.abs(np.diff(np.asarray(intervals), axis=1)...
[ "ejhumphrey@nyu.edu" ]
ejhumphrey@nyu.edu
51577add3faa8b6ac3b28fcbd7f7c2b1f86e5db7
ed7917283ed68d706a232f78cd29eb53e25f47d5
/src/datafinder/persistence/adapters/ldap_/principal_search/__init__.py
66259ef380c242dc9192870a975711c23f473e62
[]
no_license
DLR-SC/DataFinder
b08ae7fe360d8f7424c6b629ab3bc7fb5c370384
958fda4f3064f9f6b2034da396a20ac9d9abd52f
refs/heads/master
2021-01-18T23:25:38.683720
2017-01-27T13:09:43
2017-01-30T11:37:14
52,777,594
9
7
null
2017-01-30T11:37:16
2016-02-29T08:58:04
Python
UTF-8
Python
false
false
1,805
py
# $Filename$ # $Authors$ # # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # All rights reserved. # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are #met: # ...
[ "" ]
aa73b5feecaf9671d0248fac60f0816e78ff5f24
77462a326307065eda78f309e3c1a5e28114bc48
/bth7-4.py
fddcd2228937ba9a56407bff03e341a5e4e95e3d
[]
no_license
PhamHongQuyet/bai-TH7
e0b7f2ea7ca92430662c2d29a366d805fc75727f
ca233e02c7b6d4f88f0d68b3b06cb3a5e29fec9d
refs/heads/master
2020-05-24T20:17:05.355919
2019-05-19T08:32:22
2019-05-19T08:32:22
187,452,203
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
def file_read_from_head(fname, nlines): from itertools import islice with open(fname) as f: for line in islice(f, nlines): print(line) file_read_from_head('test.txt',2)
[ "noreply@github.com" ]
noreply@github.com
01d8a592e57f2900c2948ab287bc01ca07685ce4
6bf11db369218e0d7b2213b3781cef9e4bf67b6d
/YourSpace/post/migrations/0004_auto_20160727_0247.py
25989b6954004dff6bb8011ab84784f132964dfc
[]
no_license
georgesitoniv/Your-Space
4ebed257c43e36379540d7404f0d9737e0a7c1fa
c6db36cde99e36ea99fee0ae97ab73118700d4e0
refs/heads/master
2022-12-03T05:54:47.485939
2020-05-20T13:14:45
2020-05-20T13:14:45
64,178,791
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('post', '0003_auto_20160725_0857'), ] operations = [ migrations.AlterField( model_name='post', name='...
[ "g.siton@klab.com" ]
g.siton@klab.com
098128b5007241360b8b280b534fcda40d51d2dd
313e7752b94935d265e215a2f6095a7b9697f587
/reforcer.py
84634e1f5adcbd4b6eebafc6a8a07057eac4c388
[]
no_license
HeroOnline/autoReinforce
b1cbb9f7df79734dc32698b874f514425811e913
cd569b66b67a2f1fbe5800b877fa06ab5abaff20
refs/heads/master
2021-05-17T18:48:21.406220
2019-09-25T09:42:28
2019-09-25T09:42:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
import os import sys import signer import tools sid = "" skey = "" downloadDir = "./legu" bash = "java -Dfile.encoding=utf-8 -jar ms-shield.jar -sid {sid} -skey {skey} -uploadPath {uploadPath} -downloadPath {downloadPath}" def reforce(): print("============开始加固============") tar = tools.findFile("apk") if...
[ "ophelia20181122@dingtalk.com" ]
ophelia20181122@dingtalk.com
9de2abc269bc9cdcf02113bb509871159393a39e
fc8063db27ae5806c7bf2d2ebc10c3d3380e33a0
/2019_issue_counts_combined/combine_state_counts.py
44b665c7425cf4f9663e7595eadea350644243d3
[]
no_license
cjehr/chronam_api
270c794b643a201a22c0200a104868558e993afc
4afbf49493ceea503353b083d653e2060b5d3734
refs/heads/master
2020-05-17T10:55:17.031310
2019-05-08T15:45:10
2019-05-08T15:45:10
183,670,812
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
import glob import shutil # Opens .csv files in a directory and appends them to a single file. # combined_state_count.csv is the combined file name. count = 0 with open('combined_state_count.csv', 'wb') as outfile: for filename in glob.glob('*.csv'): if filename == 'combined_state_count.csv': ...
[ "noreply@github.com" ]
noreply@github.com
7efaf3614bfa50e9f908d810d6bfbf19d5941535
315fae59067002bc5d48f1f9998283d68026f406
/Pregunta7.py
64253ce89dbd88b0aab7a0afed87e604f354620b
[]
no_license
krozmok/InfotechSystemsTest
3eae738c6b8fa893bf8316d2c61563f84074aa5b
de0235e9696158bc4581821dd070cee7b8d91509
refs/heads/main
2023-02-20T18:09:29.013527
2021-01-28T17:21:22
2021-01-28T17:21:22
333,793,335
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
''' Desarrollar una funcion que me devuelva el n-esimo fibonacci Recordar que la serie fibonacci inicia en uno, es decir que fibonacci(1) = 1, ademas que el fibonacci(3) = fibonacci(2) + fibonacci(1) Nota: Implementarlo de modo iterativo. ''' def fibonacci(n): if n == 1 or n == 2: return 1 e...
[ "p0lcatha2@gmail.com" ]
p0lcatha2@gmail.com
0399d3b723e13b3d7a6e31812104913ca82907df
3217bdfe91c65a6897b2cffedd6cf7a5ce154ce6
/bin/pip3
413059cf4d4139fb647f908d41dd4e5179163dd4
[]
no_license
merrillkoshy/dt
eaf6f5bda45169c90c634bdc59b5db9cfae206fa
04852a7abc426470fa00770627260096af4a7a73
refs/heads/master
2022-12-09T03:33:27.668964
2018-09-08T17:46:00
2018-09-08T17:46:00
145,230,821
0
1
null
2022-12-07T20:03:42
2018-08-18T15:24:16
Python
UTF-8
Python
false
false
227
#!/Users/Bdb/dt/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "merrillkoshy@gmail.com" ]
merrillkoshy@gmail.com
f2429859aaddc700ac346e102f30f493ad8da85f
cfb5782653073bdc15ee7df6e198fc2f73f83b4d
/sourcing/SEC-10K/SECAzure.py
ebfe18f7e1dcd5b4a7fae0bb032c3ed22869c6c5
[]
no_license
ravithejaburugu/ravitest
bde0bfd11709becc20935bd5b8bd97108e55fed4
ff0c13a76c875c32c7b380fe7a69e58aae8ddb9e
refs/heads/master
2021-08-14T20:19:43.406682
2017-11-16T18:04:16
2017-11-16T18:04:16
110,831,847
0
0
null
null
null
null
UTF-8
Python
false
false
6,012
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 31 12:56:40 2017 @author: ANSHUL """ import requests import io import re from bs4 import BeautifulSoup from urllib2 import urlopen from azure.storage.blob import BlockBlobService, ContainerPermissions from datetime import datetime, timedelta from os import ...
[ "avenkash@gmail.com" ]
avenkash@gmail.com
c462f2a96c5c7c43976b510cb1bc5edc5d2ab16d
bd0af18980fe7817f7abde7dd23fddaf10548c72
/sgvehiclepark/wsgi.py
176e0bc1b010290176471f2c555714d573afed6a
[]
no_license
suneelmurthy/sgvehiclepark
4f5ef5419db9219e5cbf1545ea60a7bbe8356849
1ee4c9aeef3fef85f520c060a919bd41a8caa64c
refs/heads/master
2020-04-14T18:48:44.687883
2015-12-14T09:35:53
2015-12-14T09:35:53
40,391,562
0
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
""" WSGI config for myproject project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`...
[ "deepstein2003@gmail.com" ]
deepstein2003@gmail.com
98a1ce18006a597696a1f8dc8530add0fd6103ab
72a0f1c73a6267d35b793dd8aab1aa65997278d2
/Posterior-Computation/compute-posteriors-factored-model.py
13eaac08f152792f2a4d5fcaa26d109df3df1024
[ "BSD-3-Clause" ]
permissive
CrowdDynamicsLab/CMAP
e3c74b48983c9e302b7f357a649e4701e44fee30
1db002cfcd5e9805dc93d27582381f1388f8fe9f
refs/heads/master
2020-04-06T13:12:31.399393
2018-11-22T23:35:41
2018-11-22T23:35:41
157,488,963
3
0
null
null
null
null
UTF-8
Python
false
false
13,447
py
import codecs import os import math import numpy as np import scipy.special import operator import datetime import argparse def load_phi_w(phi_w_path): PHI_W = [] file = codecs.open(phi_w_path, 'r', 'utf-8') for row in file: s = row.strip().split(' ') curr_li = [] for elem in s: prob = float(elem) ...
[ "ashishshrma22@gmail.com" ]
ashishshrma22@gmail.com
129be795f76f25fb388feb32df14d708ab666aea
d1b1c14d90ba2bf8752f3019e178d6042cc12c95
/intersog/chat/models.py
45bd41070236d9da4e60738f49c062771d7ba07b
[]
no_license
NatalyMac/intersog
923584cf9bc2cd803791744ab309098cf8706a0a
bc700dd812e10aa67adccaca9c363b8caf1f9573
refs/heads/master
2021-01-20T20:38:53.365299
2016-06-28T07:54:02
2016-06-28T07:54:02
60,775,698
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
# coding: utf-8 from __future__ import unicode_literals from django.db import models from django.conf import settings from swampdragon.models import SelfPublishModel from .serializer import ChatSerializer class Chat(SelfPublishModel, models.Model): class Meta(object): verbose_name = u"Чат" verbos...
[ "kulychyk.nataliia@travers-group.com" ]
kulychyk.nataliia@travers-group.com
9117f9f2cce95c3f9c960a40127f7cde6384a932
d21864a26233d32913c44fd87d6f6e67ca9aabd8
/prosodic/lib/Phoneme.py
876171217cb508068e7a472fe4fc487bf116ba6c
[ "MIT" ]
permissive
quadrismegistus/litlab-poetry
7721a8849667f2130bb6fa6b9f18a7f6beb9912e
28fff4c73344ed95d19d7e9a14e5a20697599605
refs/heads/master
2021-01-23T20:14:05.537155
2018-11-19T08:56:55
2018-11-19T08:56:55
27,054,260
16
1
null
null
null
null
UTF-8
Python
false
false
3,454
py
from ipa import ipa,ipakey,ipa2cmu,formantd from entity import entity class Phoneme(entity): def __init__(self,phons,ipalookup=True): self.feats = {} self.children = [] # should remain empty unless dipthong self.featpaths={} self.phon=None if type(phons)==type([]): for phon in phons: if type(phon)...
[ "ryan.heuser@gmail.com" ]
ryan.heuser@gmail.com
f532d35eec7418c8dbe4d20673d602c6a8a643a4
30b10e92cf7db28910f44602dbb75135c0655ec9
/CelebA/src/construct_celeba_dataset.py
043b07d050d856c8e48f8d2604ae601bce77b98b
[]
no_license
zjsong/CDNet
c267824ddb48a851764d702b9dc19d8c2dd4f324
914770230b9629db1d0aac97686c42b26956ee1c
refs/heads/master
2022-11-11T06:42:22.132804
2020-06-30T01:55:05
2020-06-30T01:55:05
266,239,399
1
1
null
null
null
null
UTF-8
Python
false
false
1,564
py
""" Construct the CelebA dataset class. """ import os import pandas as pd import numpy as np import matplotlib.pyplot as plt import torch from torch.utils.data import Dataset class CelebADataset(Dataset): def __init__(self, csv_file, imgs_dir, transform=None): """ Args: ...
[ "noreply@github.com" ]
noreply@github.com
e82d4bec70a3688bdd17fec5b4f3ac82eccb3528
d37493c5d109c1396881bbaf01fa4341789c2503
/src/symbol_table/partial_symbol_table.py
31c4fb7dce1a598d6da6ffe0bfe841741d3f3bff
[]
no_license
xkozar/VYP-compiler
338baed8e45e21846a734e225fe867d8182251a0
76b113ad066ddbef4ae9beea488321c14eb94ffa
refs/heads/master
2023-06-11T01:45:15.535879
2021-07-11T11:50:59
2021-07-11T11:50:59
302,682,862
0
1
null
null
null
null
UTF-8
Python
false
false
1,985
py
''' project: VYPlanguage compiler authros: Tomáš Kožár, xkozar02 ''' from compiler import SemanticGeneralError from symbol_table.class_partial_symbol_table import ClassPartialSymbolTable class PartialSymbolTable: def __init__(self, parentClosure): self.symbols = {} self.__parentClosure =...
[ "xkozar02@vutbr.cz" ]
xkozar02@vutbr.cz
7112580637970329d57785ff0bc48507d4d081ea
08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2
/kubernetes/client/apis/storage_v1_api.py
89b1839daafcce6aca004b352e8dd5927d723d95
[ "Apache-2.0" ]
permissive
ex3cv/client-python
5c6ee93dff2424828d064b5a2cdbed3f80b74868
2c0bed9c4f653472289324914a8f0ad4cbb3a1cb
refs/heads/master
2021-07-12T13:37:26.049372
2017-10-16T20:19:01
2017-10-16T20:19:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
52,194
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os im...
[ "mehdy@google.com" ]
mehdy@google.com
66ba06ef2ef8a06a93dcc455b15df488909eda2c
8e71389d52ea845d37e99c5fa412ede317fc6b84
/simulation/PacketServer.py
f8e194acb7e49e410a2d2b5611d4535a80bcb417
[]
no_license
JackHarnett/core_ospf
098d993a367a1815fa52fd93e7e6d71433b2251c
54a31b36646820ebe7b5a7c0c5dc66688613ea3b
refs/heads/master
2023-03-29T20:46:45.456909
2021-04-06T10:36:05
2021-04-06T10:36:05
351,663,531
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
import random import socket server_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_socket.bind(('', 12000)) while True: rand = random.randint(0, 10) (client_socket, address) = server_socket.accept() data = client_socket.recvfrom(1024)
[ "jackery4444@gmail.com" ]
jackery4444@gmail.com
2bd1992e4ff2693c9c485b27dd08954a36955f40
b01e55da3542cd3ec298ef4d5d3da4b01d002881
/common/__init__.py
667af8f340636855a7bfcec1f901a333abcfcfe6
[]
no_license
kongjingchun/gift
85a3a3ac3dc6a4e50bb81d7e86c582a5f0bda5f5
36c380d74d88fc4e6e5d14fb1bceb941446e139f
refs/heads/master
2023-04-09T20:57:09.474169
2021-04-19T11:06:42
2021-04-19T11:06:42
355,089,670
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
# coding:utf-8 # @Create time: 2021/3/29 4:39 下午 # @Author: KongJingchun # @remark:
[ "jing20130808@vip.qq.com" ]
jing20130808@vip.qq.com
0d84e04b93554f7da8d2ad5ffe00b4e1b02e5b4b
ec8af7eac3f600224c44026d6112a0fbc7f7ed14
/boa/wikidocs/05/wikidocs-05-2.2.py
e25aec6e8486919f717742e935b25f8ef26978f6
[]
no_license
YangBoaa/first-repository
eb2befdd6e17125106983e4a3284c8c343ae8efc
631a1afddc891a688805577f429fa10179900a19
refs/heads/master
2022-12-07T08:55:32.302685
2020-08-28T01:47:57
2020-08-28T01:47:57
279,538,060
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
# if __name__ == "__main__": 의 의미 def add(a, b): return a + b def sub(a, b): return a - b if __name__ == "__main__": print(add(1, 4)) print(sub(5, 2))
[ "boaa1004@nate.com" ]
boaa1004@nate.com