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
3c63fe02ede7587da3872d2f6648382246af942d
09fafd03fc39cb890b57f143285925a48d114318
/tool_angle/DynamixelSDK/python/tests/protocol2_0/read_write.py
345cc047828cda6bc773f29f448adc7eb29f2018
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
SamKaiYang/robot_control_hiwin_ros
83914e1af44da69631b079ad5eeff4bd49e6abc9
50457391013b4cad90b932ffc5afa078f00da7bb
refs/heads/master
2023-08-17T03:21:57.466251
2021-09-18T06:32:30
2021-09-18T06:32:30
292,339,605
1
2
BSD-3-Clause
2020-09-22T17:04:20
2020-09-02T16:45:12
Python
UTF-8
Python
false
false
5,851
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ################################################################################ # Copyright 2017 ROBOTIS CO., LTD. # # 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 cop...
[ "tt00621212@gmail.com" ]
tt00621212@gmail.com
f720e543aa89c239ab37938bc6cca36d4f8e35d2
7787db9eaf80ac4a366648902ee945112bca127a
/Leetcode300/60. Permutation Sequence.py
3fe3df33732b91259adff0fb0e8803262ded93f4
[]
no_license
LYXalex/Leetcode-PythonSolution
0de7af69373171affe15f2074bacc74955d09a2c
2ae3529366227efb5f2ad81a8b039ad71e8d1ed5
refs/heads/main
2023-06-22T18:49:32.492547
2021-07-14T02:12:05
2021-07-14T02:12:05
325,213,787
1
0
null
null
null
null
UTF-8
Python
false
false
771
py
class Solution: def getPermutation(self, n: int, k: int) -> str: ans, nums = "", [str(i + 1) for i in range(n)] factorial = [0] * (n + 1) factorial[0] = 1 for i in range(1, n): factorial[i] = factorial[i - 1] * i k -= 1 for i in range(1, n + 1): ...
[ "yul801@ucsd.edu" ]
yul801@ucsd.edu
9b5cc1f531bb419eff65159e5e7de7bc03c0bcf9
32819d5a91c8ffc6f9594cbeb3eb66a19de6c89e
/tracklets/python/bag_to_kitti.py
3fa47e3cd9a0c75f0483fb0791a22eb793b71d7d
[]
no_license
td2014/didi-competition
89b4dfa33c3252c214b56d7199a0b4d49e8c0945
a92ca1cb36907bcf5db6c8e454063e45451f5842
refs/heads/master
2021-01-19T11:54:28.623417
2017-04-19T17:24:31
2017-04-19T17:24:31
88,005,585
0
0
null
2017-04-12T03:25:23
2017-04-12T03:25:22
null
UTF-8
Python
false
false
19,193
py
#! /usr/bin/python """ Udacity Self-Driving Car Challenge Bag Processing """ from __future__ import print_function from cv_bridge import CvBridge, CvBridgeError from collections import defaultdict import os import sys import cv2 import math import imghdr import argparse import functools import matplotlib matplotlib.us...
[ "rwightman@gmail.com" ]
rwightman@gmail.com
90956d31df1505110d10941aa299f2e1806f1211
5e4d6f451ac63dd6a6b22077649bd90ea279557e
/kagglechallenge/draw_bb_mask_result.py
381f9ecec27f82df9f9c5406243b8c7bb57ba656
[]
no_license
Cpires97/Ship-seg
ad76937462f0ecf76c3bc1982391c831fc5fd364
09f39b6c1196d072d76275aa60c8522e0efe21ff
refs/heads/main
2023-02-11T09:33:17.534022
2021-01-20T23:48:12
2021-01-20T23:48:12
324,422,266
2
0
null
null
null
null
UTF-8
Python
false
false
749
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 20 20:54:44 2020 @author: Carlos Pires """ import json import cv2 import os from PIL import Image import numpy as np import matplotlib.pyplot as plt import pandas as pd results=os.listdir('./results_train_seg4_focal_weighteddl__batch8_1_densenet121_50epochs/') filen...
[ "c.david.pires@tecnico.ulisboa.pt" ]
c.david.pires@tecnico.ulisboa.pt
cd0e62cb3546e2f5fdeec9751751721c87a062d3
483fdaa8184d0a90cd0ab2d57dff6102fc2af37e
/django_auto_periodic/django_auto_periodic/settings.py
29335994cc98cf233b209539339b921abd6b4aaa
[]
no_license
a8568730/Hello-Celery
89f68028fca73ce5287689ccd18dddd565d60430
4a9e98bbdeed17de5e56bc2aad2c077869c24912
refs/heads/master
2020-09-24T02:17:33.088379
2019-12-11T02:52:18
2019-12-11T02:52:18
225,638,105
0
0
null
2019-12-09T11:02:34
2019-12-03T14:20:18
Python
UTF-8
Python
false
false
3,145
py
""" Django settings for django_auto_periodic project. Generated by 'django-admin startproject' using Django 2.2.8. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
[ "a8568730@hotmail.com" ]
a8568730@hotmail.com
dc81f5525c0ba30ab81f34e1c4efb219c370c548
e7bc5db4fad3d1d14b611a4775e10b4524c467c3
/Snake.py
559d12c83f1445bf250c07a977d6a502d5998c01
[]
no_license
JaredWogan/SnakeGame
1e0682e896a2d250012853a0302b2c164a1646cc
3bd33bcc5a42799d67aa19505143b60af02899c4
refs/heads/main
2023-04-23T16:33:10.138685
2021-05-15T04:20:07
2021-05-15T04:20:07
367,501,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
# Snake Game, Jared Wogan # Version 1.0 # May 14, 2020 import random import curses import os cmd = 'mode 50,20' os.system(cmd) screen = curses.initscr() curses.curs_set(0) screen_h, screen_w = screen.getmaxyx() # print(sh,sw) window = curses.newwin(screen_h, screen_w, 0, 0) window.keypad(1) window.timeout(100) snak...
[ "jared.wogan@gmail.com" ]
jared.wogan@gmail.com
ba466d5a4237575f95a4a64bdee2b013bb2d053f
c873d8a3fb03e5b1d38a728444af193c53fd943e
/safe/common/types.py
2d1e1f3f252af3a285f60ba6f14540667a8dab5c
[]
no_license
robertvunabandi/safe
9c8deb8368010e036e280e3170f2ebc7fded44b3
2f5875ae131a76ab3811f0ea6e3cfc3332ac53f6
refs/heads/master
2021-07-05T14:12:11.907918
2019-08-29T18:22:01
2019-08-29T18:22:01
199,324,540
1
0
null
2020-10-27T22:03:28
2019-07-28T18:43:18
Python
UTF-8
Python
false
false
549
py
import enum class StrEnum(enum.Enum): def __str__(self) -> str: return str(self.value) def __repr__(self) -> str: return str(self.value) @enum.unique class RootCommand(StrEnum): """ The types of commands that one can run with safe. For each command below, one can run sa...
[ "rvunabandi@gmail.com" ]
rvunabandi@gmail.com
918d66fda0b057681dabd242074cb2234a407ed2
584d04cf290c9e4d3998aa92db1e66b169a9cb76
/grog/evaluation/plot.py
08022e2c0e19487bf0830d045887b7f3529004d5
[ "MIT" ]
permissive
EIHW/Speech_Separation_DC
6ae5f6d1c4d07300b5ececc07ae39a40886e572c
30730bf801c3e4fca52012eae0529526d4f547f1
refs/heads/master
2023-01-09T05:16:41.733617
2020-02-29T10:48:31
2020-02-29T10:48:31
237,009,424
0
0
MIT
2023-01-05T08:39:28
2020-01-29T15:00:43
Jupyter Notebook
UTF-8
Python
false
false
2,889
py
import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MaxNLocator N_METRICS = 4 def mean_metrics(eval_result, name='SDR'): return list(map(lambda source_result: np.nanmean(source_result[name]), eval_result)) def mean_all_metrics(eval_result): cases = map(lambda source_result: "%s ...
[ "max@maxammann.org" ]
max@maxammann.org
73115b0870359a7e40732e9c8b7211f0a2ba8d05
2b7bdaa058b442bdf712daca6ef9feb62904bd3a
/ina260-simple.py
b529ae6bc055c8bc0d76aeefe9ffc347810b9c39
[]
no_license
wilcodl/rpi-gpio-scripts
2005beb82223006fd63bdae475aef1089cc58132
b43eee2ccccf45ed658df777486108ac38c1a105
refs/heads/master
2022-04-08T12:55:27.174104
2020-04-02T20:21:28
2020-04-02T20:21:28
241,214,499
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
import time import board import adafruit_ina260 i2c = board.I2C() ina260 = adafruit_ina260.INA260(i2c) while True: print("Current: %.2f mA Voltage: %.2f V Power:%.2f mW" %(ina260.current, ina260.voltage, ina260.power)) time.sleep(1)
[ "wilcodl@gmail.com" ]
wilcodl@gmail.com
34f0670e8aeb7d023253c8831b64d9244700ec3b
fe7b668225c0ddd6c577618f54a1a72da2ab4d8b
/array/66_plus_one.py
605eab59654773284acf81df6a8ce46bda6c47f5
[]
no_license
oksiweb/LeetCodeProblems
540ecbfea94471855ecc468321dbe635a061eff4
2516a6adb95d866feb2bc1bcd85025d11c3d2458
refs/heads/master
2020-03-08T09:28:35.913521
2018-06-02T19:27:54
2018-06-02T19:27:54
128,048,116
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
def plusOne(digits): first_el = digits[0] n = len(digits) if n > 1 or first_el+1 == 10: n_str = int(''.join(map(str, digits))) + 1 return list(map(int, str(n_str))) else: digits[0] += 1 return digits print(plusOne([9,9]))
[ "oksi.web@gmail.com" ]
oksi.web@gmail.com
f62214df217c0aecb2ce119647a853cf0f35d3ce
25cf15f81982348cdee729baa5c6c8ca19ab4506
/Ziza/wsgi.py
c79977b9708e1726230579565b9e29481b153794
[]
no_license
HarunColic/ZizaRepo
ca962f42cbb3a521e3121174d6bf615187dfb67c
79cd051b88a39d678abd8aa329fd7cfdca40cb42
refs/heads/master
2020-03-26T15:17:32.182469
2020-03-03T12:00:46
2020-03-03T12:00:46
145,034,327
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for untitled 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/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "haruncolic@hotmail.com" ]
haruncolic@hotmail.com
9866af7cbe800397c0510aacfc4aaca46ce6abad
cded75114c04a7dde2fb3728b931d0c3aee1398b
/mail/smtp.py
ef5ae9ba0f1d3f52e98f7bc293f505c916460e4d
[]
no_license
dachrisch/expense_helper
3887617a2f0575fb750366d2b1404b23e64da091
b95f21c3267c185475e0957cc5be92187aacd57b
refs/heads/master
2016-08-04T08:16:47.576235
2012-03-27T14:38:06
2012-03-27T14:38:06
3,530,927
1
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on Feb 23, 2012 @author: cda ''' import smtplib import logging from contextlib import contextmanager class SmtpConnector(object): def __init__(self, smtp): self.log = logging.getLogger('SmtpConnector') self.smtp = smtp @contextmanage...
[ "christian.daehn@it-agile.de" ]
christian.daehn@it-agile.de
e7e2c3876b216ae6b6ffbc6d753849b3bf85159f
7eeb87fbe6a7d38b4e73a7397fb3fcaae24dde90
/Baco/settings.py
1c707f8f7412d3c48df5c0d2e391be8ff7434d45
[]
no_license
omarCastillo/baco
1b51b0c88b2bcbfd88a0549e754cf59a47ee7cda
0a9ba109e1c8c6f305371df4e01c1f915998f8ed
refs/heads/master
2021-04-28T03:16:32.948605
2018-02-19T23:43:30
2018-02-19T23:43:30
122,134,832
0
0
null
null
null
null
UTF-8
Python
false
false
4,490
py
""" Django settings for Baco project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os # B...
[ "omar.castillo.rosales@gmail.com" ]
omar.castillo.rosales@gmail.com
cfddaa298ea1f40bff37e2364cebc5674e2bf0ba
55ca810b514e65768b77262d6a2fd864a5b3aaec
/christmasbot/bin/rst2s5.py
d39d83e64bfaa4736b8562f357d6d0c490ed6289
[ "MIT" ]
permissive
Mechdriver/slack-christmas-bot
07dbfaff8f7ff4434c0e6abb3a7b7e74d7743958
e29b6c59622b62a3f96d3a5f1d5620e5f8020061
refs/heads/master
2021-01-12T12:23:06.921505
2017-03-16T20:57:38
2017-03-16T20:57:38
72,477,872
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
#!/Users/coursehero/Repos/slack-christmas-bot/christmasbot/bin/python2.7 # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <cliechti@gmx.net> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides using the S5 ...
[ "ztbehnke62@gmail.com" ]
ztbehnke62@gmail.com
15cd6bfe31456c18e2e8d3eb6d43ce0586b4e8eb
47cac700fa41aace629be955e14ed7ce02b034e9
/extras/matrixtrans.py
0318895dfe1947e765be9eed3910ddb2914cb57a
[]
no_license
labxtreme/newcodes
9ae7ec33f57704c245008783b2777a7763636ce7
8c9658fa8df34a7fb422decdb8b2cd2d07297046
refs/heads/master
2020-03-19T19:54:26.877507
2018-06-12T06:41:00
2018-06-12T06:41:00
136,878,786
1
0
null
null
null
null
UTF-8
Python
false
false
292
py
m,n=map(int,input("Enter m and n of the matrix:").split()) A=[list(map(int,input("Enter the whole row %d :"%(row+1) ).split())) for row in range(m)] B=[[A[col][row] for col in range(m)] for row in range(n)] print("A") for var in A : print(*var) print("B") for var in B : print(*var)
[ "lakshaya.bathla@gmail.com" ]
lakshaya.bathla@gmail.com
7ffaaf57725dbfa83635af9250b7e2068b878741
9db1b16e8250aa68c4f6c1452e8a290350a1c6e4
/adataExcel.py
8a84841d4960adb814b1cceccefe67847c5fbc32
[]
no_license
babymin705/python-excel
f5098a4049c48364c793cbe8d54712b3abac59af
4ec0789ccff91e092831391d8508c08068d0b751
refs/heads/master
2023-08-22T09:57:15.054389
2021-10-12T06:42:27
2021-10-12T06:42:27
410,773,977
0
0
null
null
null
null
UTF-8
Python
false
false
4,165
py
#!/usr/bin/python3 import mysql.connector # from os import walk import os from pathlib import Path import datetime from dateutil.relativedelta import relativedelta import openpyxl cnx = mysql.connector.connect(user='root', password='ADATA@STVH0tel',host='127.0.0.1',database='adata') # Read the files in the folder f =...
[ "linda.wong@selectv.co" ]
linda.wong@selectv.co
b326be0d3157e8e4c6291097ba566e5d4d202d38
0247690e0b33e919c8611f6feef37867052bbf51
/mayan/apps/events/classes.py
7c34b0368df856fcc39496b4c7ed1f8016eb9b45
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
tobennanwokike/mayan-edms
2a499daf9ceb5d9a41c71270135fe652ad304ce1
89c145adde90eef849903907394b1c79e88470fd
refs/heads/master
2020-03-28T00:22:12.704262
2018-08-17T08:52:12
2018-08-17T08:52:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,928
py
from __future__ import unicode_literals import logging from django.apps import apps from django.contrib.auth import get_user_model from django.core.exceptions import PermissionDenied from django.utils.encoding import force_text, python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from...
[ "roberto.rosario.gonzalez@gmail.com" ]
roberto.rosario.gonzalez@gmail.com
1b2c6861f8b770d3e0adc653245cf15c1653ed49
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/d9933aefec50d5a14e37/snippet.py
87ad5fd6c98ff7ea83980693401ab52e949be51f
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
7,254
py
# Author: Kyle Kastner # License: BSD 3-Clause # For a reference on parallel processing in Python see tutorial by David Beazley # http://www.slideshare.net/dabeaz/an-introduction-to-python-concurrency # Loosely based on IBM example # http://www.ibm.com/developerworks/aix/library/au-threadingpython/ # If you want to dow...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
ec3a52a1cc8af36e6101356ceb5018f96a75ae1f
aadaeaf925ca7d2d1dd26a0e80d470cc9f16d278
/update.py
3281406ad2b7a40a0e6b95bede7199f0399ccf48
[]
no_license
IamSadiq/py-mongo
b0f9f146aa0fb18e86371272f006f5cf9c6c9d6c
226e7d74d7dc2581c16aa1ca46a3b15f9affb7c1
refs/heads/master
2020-04-17T05:50:55.354676
2019-01-17T21:48:31
2019-01-17T21:48:31
166,300,074
1
0
null
null
null
null
UTF-8
Python
false
false
551
py
# UPDATE COLLECTION import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["mydatabase"] customers = mydb["customers"] myquery = { "address": "Valley 345" } newvalues = { "$set": { "address": "Canyon 123" } } customers.update_one(myquery, newvalues) #print "customers" after the...
[ "asiddik5@gmail.com" ]
asiddik5@gmail.com
1ba4f9d594773677b2fe504dcb260d142873a309
9fcdbab59e964b53a7e2866a67adb72ee8fb86d0
/Particles.py
c361a0bcf126c7f80cc8ebcde92b6f5a4b4013f5
[ "MIT" ]
permissive
anishakadri/PionDecay
04c2929f5d258dd03d37249cb8253a45645668b6
03e888398badc17d95bca2d39d77ef86838beaba
refs/heads/master
2020-03-19T10:01:23.513345
2018-06-12T01:51:17
2018-06-12T01:51:17
136,336,561
0
0
null
null
null
null
UTF-8
Python
false
false
17,545
py
#HELP: # 1) case of -ve velocity for muons and electrons # 2) compare decay time and exit time for muons # try a check decay pos, raise exception, use try to call loop #3) what to do when lines exceed the width??-- google import properties as pp import fourmomentum as rel import numpy as np import scipy.optimize as s...
[ "noreply@github.com" ]
noreply@github.com
09c067d91c42ab9faf5f187b126606363f8eb59e
ab692ed499950bcc348a66cf096f2714eaf96b9d
/keywords.py
16ea7154713dca8e264f6269b37349f46659e4f6
[]
no_license
mathewtpower/artifact-card-bot
c9d5e4a260c7eba70d04c1e2947d43da3f52fa1d
7c56c8f096e809eeff36b7f13cafa823b39f7be5
refs/heads/master
2023-01-08T07:11:23.539436
2020-10-19T01:38:36
2020-10-19T01:38:36
269,209,802
0
3
null
2020-07-30T17:38:03
2020-06-03T22:43:19
Python
UTF-8
Python
false
false
4,581
py
keywords = { 'Regeneration': "The unit heals this amount during the combat phase. Regeneration is applied before checking for death.", 'After Combat': "An effect that triggers after the Combat Phase.", 'Aura': "An effect which applies to units when they enter a specified area and is removed when they leave....
[ "mathew.t.power@gmail.com" ]
mathew.t.power@gmail.com
351daf0695f3655bb2f5c218f0f16aa10b92f746
159a527d5333f848fa58fed8c39ee6303a507c62
/RPi_Drone/simpleCali.py
1c52e69d2795f1f083679fe9fbd2b707efe1af8c
[]
no_license
GitDubs/Pi_Drone
ca3f15f4e33797dd276f8b39c6ac62186ace8d10
d3bf8817ce12cd6483128b7dd233a7e132b6e2e9
refs/heads/master
2020-04-15T19:56:46.744054
2020-03-24T16:02:14
2020-03-24T16:02:14
164,971,308
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
import pigpio import time import os import atexit def exit_handler(): pi.set_servo_pulsewidth(ESC, 0) ESC = 18 pi = pigpio.pi(); pi.set_servo_pulsewidth(ESC, 0) max_value = 2500 min_value = 1400 pi.set_servo_pulsewidth(ESC, max_value) print "connect battery" input = raw_input() pi.set_servo_pulsewidth(ESC, min_v...
[ "user.email" ]
user.email
45b45006fa8d12f989dc183ab1e0f50b4e2d9667
3032a58254a0d61403cc75476438bf60a119c2ea
/ADB Scripts/GMLAB Scripts/GM9 Pro/Functional/GPSGoogleMap.py
7d7bc345cf7bbd1792137326ec544a1abf74c86b
[]
no_license
anithamini/useful-info
1e05528d61609ca4249920e41c88957ed1476fd7
a393db8d8e727d29d185d75f7920e21770a39e70
refs/heads/master
2020-04-14T15:42:06.627213
2019-01-03T07:02:16
2019-01-03T07:02:16
163,935,084
2
3
null
null
null
null
UTF-8
Python
false
false
3,142
py
import os import re from time import sleep def GPS_ON(): print("Enabling GPS.........") os.system("adb shell settings put secure location_providers_allowed +gps") def GPS_OFF(): print("Disabling GPS.........") os.system("adb shell settings put secure location_providers_allowed -gps") ...
[ "akesiboyina@innominds.com" ]
akesiboyina@innominds.com
92b17db645312bc9f6e200fd79d75a87100ff9fb
6cb41daf3a767a960d64cc631abffd69acc96e33
/python/strings/isIPv4Address.py
ad90d93ea269e2c8e5a6c7551d3bf1ade7175175
[]
no_license
kevinislas2/Iprep
2ce0e5b77c8cb5a1e714bc94afdb4ecc6de9b2c0
9f0be3dfab106e2f29933f746475ed0be8d11a71
refs/heads/master
2023-04-03T23:09:12.085674
2018-12-02T20:55:44
2018-12-02T20:55:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
''' An IP address is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. There are two versions of the Internet protocol, and thus two versions of addresses. One of them is the IPv4 address. IPv4 addresses are repr...
[ "kevin.islas.abud@gmail.com" ]
kevin.islas.abud@gmail.com
b1ff178eefe0307fd51681e85df4fbbba93522bc
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_freshening.py
4611789aff9058da179cb60091496dbac47b7753
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#calss header class _FRESHENING(): def __init__(self,): self.name = "FRESHENING" self.definitions = freshen self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['freshen']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
21b460ada54b6896a22076f3c95bc5e47cdb682a
0fa92ef71d5233652ee7d6bcfbda848e9147e726
/test_one_sentence.py
ff2dca8e8aa0fb86dd5529d857c579476043cab8
[]
no_license
AhmedNageh08/Arabic_Tweets_Classification
b22c31d296e1ea7495a2c9fb9bd1a10b71e3780d
129952d129d04cbbd87f606d2a4b4c07b3e93db8
refs/heads/main
2023-01-28T21:07:22.483398
2020-12-12T15:03:29
2020-12-12T15:03:29
320,846,398
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
#Predict using one tweet text =["هي وصلت لدرجادي 😯 لا الموضوع كدا محتاج وقفه 💔😂😂"] #Import the saved file of the model pkl_filename = "/content/drive/My Drive/SVC_2.pkl" with open(pkl_filename, 'rb') as file: pickle_model = pickle.load(file) result = pickle_model.predict(text) print(result)
[ "noreply@github.com" ]
noreply@github.com
cba78bc85c93e9030484557e09496d98b0f28c3d
d1b9b0c2c434bf6e95b3ae1a29a9ef8353c55ec1
/polls/migrations/0017_mas_working.py
8e70587032977127a95ac774d6dcaeb399c615a8
[]
no_license
felixchuo/difits
c7ead1bfad8c1c58460d875ffb899dc9b66044a5
c64d05751348e87f0705695bfb20f2478ce417f7
refs/heads/master
2021-01-10T23:24:24.003392
2016-10-11T11:27:59
2016-10-11T11:27:59
70,586,913
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('polls', '0016_auto_20160105_1151'), ] operations = [ migrations.CreateModel( name='Mas_Working', fie...
[ "felixchuo@gmail.com" ]
felixchuo@gmail.com
a83bcd9b97839b9506dfe2f82ea1ba573778a0ef
a96834fd85cecd390a7d717825421b3762e9bcb3
/quiz2.py
ffb82c77ab88c069a59dd2901603881a1e55fa04
[]
no_license
denyyi/bible_quiz
e26c1663cff50aa0ffe4035c690a90f5df457dd2
eb50ecb5253e5537de8bab735108eb641a50db4c
refs/heads/master
2022-09-25T14:56:29.458197
2020-06-07T04:05:00
2020-06-07T04:05:00
270,054,980
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
import random class QA: def __init__(self, question, correctAnswer, otherAnswers): self.question = question self.correctAnswer = correctAnswer self.otherAnswers = otherAnswers
[ "noreply@github.com" ]
noreply@github.com
ba8545b2330ee37673a22bad6042f69b2d78cff5
22213458a431ea69d13340c1abc2077b98e95f8e
/utils.py
e90d66b0af2d1ede4ebca451fb061d60c9f0a40b
[]
no_license
galenys/MetaWord2Vec
8ef8bcbc68b89d4bdde7c5bd2a9daf034bae1039
ef5c1ae89c4b495fac4e49b0260957fe4817bef6
refs/heads/master
2023-05-11T03:34:31.758605
2023-04-27T16:40:17
2023-04-27T16:40:17
283,776,312
3
0
null
null
null
null
UTF-8
Python
false
false
844
py
import numpy as np def print_lines_in_file(file_name): num_lines = sum(1 for line in open(file_name)) print(f"Number of lines: {num_lines}") def get_embeddings(): dict = {} file = open("data/embedding.txt", "rt") text = file.read() file.close() for entry in text.split("\n"): ...
[ "shivbhatia10@gmail.com" ]
shivbhatia10@gmail.com
b31731558780703b63f5a3256cb39d8a1303eea3
d9bf42f156a7369c4fb2223b0609ab357263f443
/old/kivy-opencv/main.py
44a48b1e938ce443966620f240c1736e04e93a69
[]
no_license
emersonoliveiradev/kivy-studies
e77b2f02f15a303c6d43a9dd1558df166fe3133f
a1f7fc1753f8c43fde0c5910129a6d1a9aca3940
refs/heads/master
2022-07-02T12:00:05.578266
2020-05-05T23:25:58
2020-05-05T23:25:58
261,371,935
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
from kivy.app import App from kivy.uix.screenmanager import ScreenManager, Screen from kivy.uix.boxlayout import BoxLayout from kivy.clock import Clock from kivy.uix.label import Label from kivy.config import Config Config.set('graphics', 'width', '480') Config.set('graphics', 'height', '640') import cv2 class Manag...
[ "emersonhaw@gmail.com" ]
emersonhaw@gmail.com
acdd29dacd20142f02beaa838fffab2ae12bff7c
5010e5351315e085fc1a519b91a17381d1a12acd
/dashboard/tests/mock_data/generate_mock_data.py
1ce7f28c9821f35c7affc114b7286eca90f57a8c
[]
no_license
BenCh94/gas_dash
cb84f80f4fd3a6a0ba966f2f9bb8248e67d5e507
caab7ac095ac3e091d060e6eab69bb746db084fe
refs/heads/develop
2023-02-17T11:52:21.328885
2022-02-02T11:19:41
2022-02-02T11:19:41
145,233,799
0
2
null
2023-02-08T00:44:51
2018-08-18T16:06:07
JavaScript
UTF-8
Python
false
false
1,252
py
import requests as r import json import pandas as pd # # Generating data for use in testing portfolio update methods. # # Data collected on 13/01/2020 # iex_base = 'https://cloud.iexapis.com/v1' # # Insert production api key below # api_token = '' # # Get 2 years benchmark data # query = f'/stock/voo/chart/2y?token=...
[ "bchadwick94@gmail.com" ]
bchadwick94@gmail.com
60a8649088a68aed511d9a485ab1af7a7f87fd62
d46a5395d112b99c857b323fc6f1d84891354485
/bgmmodel.py
cbd3c84d5ed958c6daae14e5787f1b51e1bc0fc5
[]
no_license
zh616110538/animerecommend
bf669ac8ea42b684c8d634a46032086f29ebd09c
93d7f4a43b0d99a7491d4b072d382ab26f04af94
refs/heads/master
2020-03-28T15:42:48.748299
2018-09-29T14:11:36
2018-09-29T14:11:36
148,618,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
#-*-coding:utf-8-*- import pickle import time def taglist(l): dic = {'AnimeScore':0} redic = {'0':'AnimeScore'} count = 1 for i in l: for item in i: for tag in item['tag']: if int(tag[1]) > 50 and not '20' in tag[0]: if not tag[0] in dic: ...
[ "" ]
7968594fee8934fcf7cce6881d096977fc70e252
ac3c90bfdeff033d3877371ce530ac8c02c65694
/resnet.py
c622d4c68928f5a210737bb734f87e6ed51b89bc
[]
no_license
AahilA/videoGameGenre
ac071c49d3106aee42e36ee046c735c879d61a9e
09edbff69f1ef227b572853d228226e0eccdb3ae
refs/heads/main
2023-02-19T19:57:20.525128
2021-01-18T12:22:06
2021-01-18T12:22:06
328,041,023
0
0
null
null
null
null
UTF-8
Python
false
false
2,509
py
import torch import torch.nn as nn #Peter figure out padding math class block(nn.Module): def __init__(self, in_chan, out_chan, stride=1): super(block,self).__init__() self.conv1 = nn.Conv2d(in_chan, out_chan, kernel_size=3, stride=stride, padding=1, bias=False) self.bn = nn.BatchNorm2d(o...
[ "asa97@cornell.edu" ]
asa97@cornell.edu
cec5a465126042fd03b4663dc6672c08cd539861
d6589ff7cf647af56938a9598f9e2e674c0ae6b5
/ice-20201109/alibabacloud_ice20201109/client.py
88953d6b4eec3b55cb3d1cba4ff70b9ae9734e45
[ "Apache-2.0" ]
permissive
hazho/alibabacloud-python-sdk
55028a0605b1509941269867a043f8408fa8c296
cddd32154bb8c12e50772fec55429a9a97f3efd9
refs/heads/master
2023-07-01T17:51:57.893326
2021-08-02T08:55:22
2021-08-02T08:55:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
85,614
py
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from typing import Dict from Tea.core import TeaCore from alibabacloud_tea_openapi.client import Client as OpenApiClient from alibabacloud_tea_openapi import models as open_api_models from alibabacloud_tea_util.client import Client as UtilCl...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
3f37e6e69fd849313e96f09820fdf01f9735a23e
4384e1836636ffd09e520ba805e0e76abceefcdb
/ptsemseg/loader/__init__.py
b53decc5fc89fe859e2fb6f444717f7e0f100d10
[]
no_license
anonymousTSPANet/TSPANet
afc69403700c43578657f0c93999d44083fe8a05
6199506cf1287e0097e3c7072592cad75877c331
refs/heads/master
2022-04-25T00:54:23.654486
2020-04-19T05:11:34
2020-04-19T05:11:34
256,919,230
0
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
import json from ptsemseg.loader.pascal_voc_loader import pascalVOCLoader from ptsemseg.loader.camvid_loader import camvidLoader from ptsemseg.loader.ade20k_loader import ADE20KLoader from ptsemseg.loader.mit_sceneparsing_benchmark_loader import MITSceneParsingBenchmarkLoader from ptsemseg.loader.cityscapes_loader imp...
[ "yswang96@unist.ac.kr" ]
yswang96@unist.ac.kr
cd125a4096298f3e4f23ef260a4bfc26ca29fdbf
2dcdf1142a4c13240d2b250858977d2875571f3e
/05_TemporalDifference/sarsa.py
c0b594a78583c837e7f2150ed91ac2a13dd45418
[]
no_license
gfluz94/Reinforcement_Learning
934c892288cb176ed1c3d8e2e9e869c90ac68177
4d850d164746dca08bb8961251f6e1e228ddba9f
refs/heads/master
2022-07-28T21:48:47.637860
2020-05-22T16:27:15
2020-05-22T16:27:15
263,734,666
0
0
null
null
null
null
UTF-8
Python
false
false
9,610
py
import numpy as np class GridWorld(): def __init__(self, width:int, height:int, start:tuple): self.width = width self.height = height self.start = start self.i = start[0] self.j = start[1] def set(self, rewards:dict, actions=["up", "down", "right", "left"], wall=None): ...
[ "noreply@github.com" ]
noreply@github.com
2de021e9e85df16452f8d08a2931aff200c9ce8a
e7a3961e94ffce63f02a3d5bb92b5850005c7955
/django_tuts/forms_tuts/models.py
4eca909a170d97954cf1c7b64b0d370e80410ad5
[]
no_license
sbhusal123/django-collections
219c032c97dd7bc2b3c5961f71fb8da5e4826ec1
4efed68d29fd1e383d15b303584fc4eb183aff98
refs/heads/master
2022-11-06T17:32:25.776023
2020-06-20T07:58:54
2020-06-20T07:58:54
273,394,086
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
from _datetime import datetime from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Products(models.Model): """Products for sale""" name = models.CharField(max_length=256, unique=True, null=False, blank=False) price = models.DecimalField(max_digits=8,...
[ "suryabhusal11@gmail.com" ]
suryabhusal11@gmail.com
961bfb823a57ed38a13cb9ffb07cf646290d2769
8fac8d3ad6cafaf481ba8de8a51a4abab8ef07e6
/test/us_extract/client_test.py
6663f7fbddbf8196947bd486bf58c3aac9562524
[ "Apache-2.0" ]
permissive
IFarhankhan/smartystreets-python-sdk
18ae4024853dd0c84cfd357ed501bed3ecf0efb2
c724b6ea5d2a37b3334517aed3377cc5f44ee831
refs/heads/master
2021-06-13T16:54:59.400944
2017-04-17T20:55:28
2017-04-17T20:55:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,004
py
import unittest from smartystreets_python_sdk import URLPrefixSender, Response from smartystreets_python_sdk.us_extract import Client, Lookup from smartystreets_python_sdk.exceptions import SmartyException from smartystreets_python_sdk.us_extract import Result from test.mocks import * class TestClient(unittest.TestC...
[ "neo@smartystreets.com" ]
neo@smartystreets.com
467159dbc7962cddb1433df59cdc1a26132ca3af
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_waxiest.py
ed828779dd11c8bd004322d280f17905dcb1f528
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from xai.brain.wordbase.adjectives._waxy import _WAXY #calss header class _WAXIEST(_WAXY, ): def __init__(self,): _WAXY.__init__(self) self.name = "WAXIEST" self.specie = 'adjectives' self.basic = "waxy" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
2d2d19cf3287e502c55a04eaabe7c6cd9cd996ec
6bdcd513f0e8d500e56f87d44d4a9ba11c93f272
/utilities/wds_from_tfrecords.py
479a8b67785b9e042e299fc432c278eb642b55e3
[ "MIT" ]
permissive
rom1504/DALLE-datasets
4d9416772b73befdb85867781bbab5c6bbff0cec
f0b039feb37abec68a81b9425fb71f94a713d9cf
refs/heads/main
2023-06-17T07:07:12.396964
2021-07-05T11:20:02
2021-07-05T11:20:02
383,932,361
2
1
MIT
2021-07-07T21:52:08
2021-07-07T21:52:07
null
UTF-8
Python
false
false
6,918
py
import tensorflow as tf import webdataset as wds from pathlib import Path import argparse import os import timeit import hashlib from io import BytesIO from PIL import Image parser = argparse.ArgumentParser("""Generate sharded dataset from tfrecord-files.""") parser.add_argument("--maxsize", type=float, default=1e9) p...
[ "robvanvolt@gmail.com" ]
robvanvolt@gmail.com
8b9078061e1379d908d88310ba9a22318465690f
53c1fecdf3d52bc36086bd33cbede5da8f4d4b0c
/delicatewebizen/main/models.py
856cb6e59bcc11815e0976b08d586316dc4d68f6
[]
no_license
pombredanne/example-app
2c5b2560dfc7c7c47e47b2adb57109b24a950211
706e0f3f0e15d28c146512fba49b5240fea35be7
refs/heads/master
2021-01-20T21:49:22.800372
2013-01-13T10:40:22
2013-01-13T10:40:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
from django.db import models from django.http import HttpResponse from django.template.response import SimpleTemplateResponse from favorites.utils import BaseRender from favorites.utils import ModelRenderMixin class Link(models.Model, ModelRenderMixin): title = models.CharField(max_length=255) url = models....
[ "amirouche.boubekki@gmail.com" ]
amirouche.boubekki@gmail.com
6335c6a2e3c6af1cc255b9997be3316ef76b68de
1f3f3154ba64537b39284c01c73003ca50a29359
/与孩子一起学编程/chapter8/codelist 8-6.py
d268922abd407f78d8244d83fc9ef5ef3b5646e9
[]
no_license
Chen-Isaac/pythonLearning
d00ffd473ef2fe0f8aba512c6174bb654115ba84
04e829cf3bd975491676f87bcb0dbacfa55ddd6c
refs/heads/master
2021-09-14T22:16:02.913336
2018-03-01T16:07:32
2018-03-01T16:07:32
114,447,004
1
0
null
null
null
null
UTF-8
Python
false
false
90
py
import time for i in range (10, 0, -1): print i time.sleep(1) print "BLAST OFF!"
[ "cxx7821@gmail.com" ]
cxx7821@gmail.com
f80a4ddfdd85a8b7cd32f06f3995cef5762127e8
5f8276fccfee82481545a15b96c39a67b70cdf08
/accounts/tests.py
83503bb7b7750715f754224ca0ed2e286c386fee
[ "MIT" ]
permissive
alaorneto/pratinhas
7c27d681e5c0f3605c70b40a2b1728a09d45207a
699f9133fe952c767005c0a36d4531def836db8d
refs/heads/main
2022-08-25T11:53:46.020585
2021-10-17T22:14:21
2021-10-17T22:14:21
185,036,231
1
0
MIT
2022-08-11T14:51:09
2019-05-05T13:39:08
Python
UTF-8
Python
false
false
1,287
py
""" Testes do módulo de autenticação. """ from datetime import datetime from django.shortcuts import get_object_or_404 from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.authtoken.models import Token from rest_framework.test import APITestCase, APIClient class Usuari...
[ "alaorneto@gmail.com" ]
alaorneto@gmail.com
3daff0ac255348970fbdef54719b9f87a7e3d0e2
049122a17f5ca2e2778b9ccc334e31f6b73ef71a
/Proj029Pipelines/pipeline_metagenomeassembly.py
9bad0c4d6ea3154de593f11a9237b8a3a92a6f56
[]
no_license
CGATOxford/proj029
55c43412eb0b86330a111e855508ea9dab1bbab1
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
refs/heads/master
2016-09-15T13:55:41.647489
2016-03-09T10:17:26
2016-03-09T10:17:26
32,919,136
3
0
null
null
null
null
UTF-8
Python
false
false
64,283
py
""" ============================= Metagenome assembly pipeline ============================= :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python The metagenome assembly pipeline takes reads from one or more NGS experiments and assembles into contigs / scaffolds. Genes present on contigs are predicted usin...
[ "nicholas.ilott@dpag.ox.ac.uk" ]
nicholas.ilott@dpag.ox.ac.uk
379340e2144871bd7cb7038d2126d6d8d7bee705
f46c8ee2f598c93af0957178e4d580c6eec5c8a6
/c.py
73980dab7fe6811a11588939f6827290428cda21
[]
no_license
soumyarepo/staging
c757b342095f7c2da407cee75cc3595f4c0fa49d
2db66c51cd9bff4b9cbb6b3bf855a28c1b6c1ac6
refs/heads/master
2022-06-19T20:04:05.393692
2020-05-05T17:57:00
2020-05-05T17:57:00
261,508,224
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
print "hello c"
[ "ranjan.soumya8055@gmail.com" ]
ranjan.soumya8055@gmail.com
9147ad76a990a71765f45ee71beb970508e99910
f92bd466895bda0ee47fbf31375ea5c5a922a1e7
/shop/migrations/0002_userid.py
f604898644e9e06e1cef70686e38897da142c6de
[]
no_license
shenhuawade/tbzhuhost
814fbf68c90c16c4f2c75491ef93787f40989d50
f1970f8b37a237407f4969d9e8a0b8ed4aa5e104
refs/heads/master
2020-04-15T19:43:57.785329
2019-09-02T13:37:12
2019-09-02T13:37:12
164,962,066
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
# Generated by Django 2.1.4 on 2018-12-26 08:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0001_initial'), ] operations = [ migrations.CreateModel( name='UserId', fields=[ ('id', mode...
[ "317909531@qq.com" ]
317909531@qq.com
a1629821fe371a2f36d55c88aa41539b627a4a4c
d93ac89636d61b7912f49f4070153d8f274a5fd7
/iot/iot/urls.py
2b8734b6631490c974ea7142a26f5c2a821a0f17
[]
no_license
tyrantqiao/dataPlatform
735464e7e31873a67165e7ddd4aafcc9f8e76fed
cdc4bb2fda60ff5e8838fb23bcfa4a9180ffa5aa
refs/heads/master
2022-12-09T22:30:38.143146
2020-12-06T05:48:25
2020-12-06T05:48:25
163,085,069
0
0
null
2022-12-08T01:40:21
2018-12-25T13:27:04
Python
UTF-8
Python
false
false
2,322
py
"""iot URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vie...
[ "tyrantqiao@icloud.com" ]
tyrantqiao@icloud.com
35333f9be2676a818d19f6e2fb34856cd4c5f170
cf80b490187331a3241bc6409863b8fd28926bf0
/paint/settings.py
44245296b931992f38f56fedc6f07a9b3035827e
[]
no_license
insomniac12/Paint
4e6928848bf937506668ff43828d33e77a2cf48f
f29056752ccfd322a7b02d27836f66e857c82374
refs/heads/master
2021-01-10T10:22:21.389777
2016-01-25T13:37:41
2016-01-25T13:37:41
50,351,192
0
0
null
null
null
null
UTF-8
Python
false
false
2,791
py
""" Django settings for paint project. Generated by 'django-admin startproject' using Django 1.8.6. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths ...
[ "shivi.bajpai1@gmail.com" ]
shivi.bajpai1@gmail.com
f6d02001062b5a4ce081620e30210e6aa06ac151
ceabddf546c74adfec5b70d6444551415b75f6db
/dz_4.py
60d5a1aad04e152e6671724305483629f8c5bf2e
[]
no_license
andrymachnev/python_lessons_one
5767beb359dc6acfbaa1bee3306e4ed92da6177a
2447627448ea0b1118f9ba38fe57a3ac9b37d073
refs/heads/master
2023-08-21T21:07:59.780284
2021-10-26T05:35:04
2021-10-26T05:35:04
417,171,852
0
0
null
2021-10-15T14:05:08
2021-10-14T14:54:01
Python
UTF-8
Python
false
false
3,091
py
# Проверить, установлен ли пакет pillow в глобальном окружении. Если да — зафиксировать версию. # Установить самую свежую версию pillow, если ранее она не была установлена. Сделать подтверждающий скриншот. # Создать и активировать виртуальное окружение. Убедиться, что в нем нет пакета pillow. # Сделать подтверждающий с...
[ "andrey.machnev@lynkage.tu" ]
andrey.machnev@lynkage.tu
b6262d62ecea4989442b3be72000fc2b602b926a
ccbad4acfc90110491e4a4ed80e5c0f2f1cc631b
/models/__init__.py
e62633308a277536bbadf574fc98b18e01726a75
[]
no_license
Softinadev/custom_pos
f6217bb30a57bef876ea95a5b21cb8842f546d7c
77ab324fbdcecf36d69ebee87155fb3f22a20c37
refs/heads/main
2023-01-31T21:33:56.728061
2020-12-20T19:23:39
2020-12-20T19:23:39
323,147,337
0
0
null
null
null
null
UTF-8
Python
false
false
100
py
# -*- coding: utf-8 -*- from . import hr_employee from . import pos_config from . import pos_order
[ "noreply@github.com" ]
noreply@github.com
f42060777917f69c2baf86a67e23ede553107892
08d66ea553e83894557d88fd91633b27ec8fdad0
/populate_database.py
ac0135ba71389659cfe118ebc12a1f31762946d3
[]
no_license
Michael-Zelenoborsky-Long/databases_spring2020
b9f7c924204618233d8f550d3ac27e5c96477f78
c1a06eca8828ebc3986be32fa0d9b8ff72167328
refs/heads/master
2021-04-01T08:07:11.004998
2020-04-03T07:37:52
2020-04-03T07:37:52
248,171,629
0
0
null
null
null
null
UTF-8
Python
false
false
4,349
py
import mysql.connector import vcf import os import datetime import json # connection cnx = mysql.connector.connect(user='long', password='password', host='127.0.0.1', database='pea_variant_calling') cursor = cnx.cursor() # variant caller run constants vcf_f...
[ "noreply@github.com" ]
noreply@github.com
ec725efbd259fed16c95c5d9ccda48f352ec847f
1b14fb21afa97c6d033794dbef2258aea8346d4a
/liuWinshenProject0/clean.py
1018be1e5c7bc26046a5df17512f59185d882a88
[]
no_license
liuwinshen/computer_systems
ece4ca49ea50a4654259c9498b7c16f274c04ca7
3be562cf0b68046ef6f331183f15dac0bc35d565
refs/heads/master
2020-03-30T21:23:22.366127
2018-10-14T03:29:40
2018-10-14T03:29:40
151,626,924
0
0
null
null
null
null
UTF-8
Python
false
false
1,271
py
import sys import re def clean(filename, no_comments=None): '''Takes file as input (format: 'filename.in'), removes whitespace, and writes to new file. Optional functionality to also remove comments''' try: # attempts to open file f = open(filename, 'r') except IOError: print('File...
[ "winshen@uchicago.edu" ]
winshen@uchicago.edu
69b765b6c43f5b3185f837bec89da018492bd0ac
9ff1058a0500be499fd3de9ec0beccd697d5273c
/Shared/Ollinger/pyparserial/parallel/parallelppdev.py
eec2104495335dd90f546039d63dbbeb5c306dc7
[]
no_license
jrussell9000/NeuroScripts
93f53c7d38c1d51fdc0cf39096e0996daee887cf
e41558754bd36385f94934333cb39a6500abfd9f
refs/heads/master
2021-06-09T20:30:59.956137
2021-04-08T18:45:39
2021-04-08T18:45:39
151,635,108
0
0
null
null
null
null
UTF-8
Python
false
false
22,750
py
#!/usr/bin/env python # parallel port access using the ppdev driver import sys import struct import fcntl import os #---- # Generated by h2py 0.1.1 from <linux/ppdev.h>, # then cleaned up a bit by Michael P. Ashton and then a gain by chris ;-) # Changes for Python2.2 support (c) September 2004 Alex.Perry@qm.com # J...
[ "jrussell9000@gmail.com" ]
jrussell9000@gmail.com
fe97a04343d7b6f40ca0fc14e675149c11498d48
5a7c2a3b742b1660b90c6bcf03dca03aff11ccab
/dj_wiki/wsgi.py
b5231f07e35ce397f19ac035ec6a6875a1599e7f
[ "MIT" ]
permissive
atlasfoo/djwiki_p1
16bbfa47579527ae7b61ae466aac9afea5714be1
3d3500d5f4055904aef484cb33d991fdb70e1580
refs/heads/master
2023-03-28T10:21:55.487728
2021-03-29T03:58:38
2021-03-29T03:58:38
298,748,142
0
0
MIT
2021-03-29T03:58:39
2020-09-26T05:58:48
Python
UTF-8
Python
false
false
391
py
""" WSGI config for dj_wiki 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.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "jf_mejiar547@live.com" ]
jf_mejiar547@live.com
6a8b5a661bc5de5d995d5ebc3032fec9c32bb3bd
3d4fcc7cbfafc4aaebea8e08d3a084ed0f0d06a1
/Programme_1/Creation_donnees/MIDI/schumm-3fMidiSimple.py
3b960ac7c7a4d5f017387e01b32ea2cd76707b76
[]
no_license
XgLsuLzRMy/Composition-Musicale-par-Reseau-de-Neurones
0421d540efe2d9dc522346810f6237c5f24fa3bf
518a6485e2ad44e8c7fbae93c94a9dc767454a83
refs/heads/master
2021-09-03T20:43:01.218089
2018-01-11T20:02:00
2018-01-11T20:02:00
106,448,584
3
1
null
null
null
null
UTF-8
Python
false
false
117,270
py
import midi pattern=midi.Pattern(format=1, resolution=480, tracks=\ [midi.Track(\ [ midi.NoteOnEvent(tick=1860, channel=0, data=[70, 48]), midi.NoteOnEvent(tick=60, channel=0, data=[70, 0]), midi.NoteOnEvent(tick=0, channel=0, data=[68, 56]), midi.NoteOnEvent(tick=120, channel=0, data=[68, 0]), midi.NoteO...
[ "jeremy.catelain@insa-rouen.fr" ]
jeremy.catelain@insa-rouen.fr
1b0636fcd3958c905c9dc3f2ad157ad20a18c1c8
029aa4fa6217dbb239037dec8f2e64f5b94795d0
/Python算法指南/集合、列表、字符串/38_两数之和I_两数之和的应用_背.py
9f582ae4669e34cd92b44ea088f6f44037c21e74
[]
no_license
tonyyo/algorithm
5a3f0bd4395a75703f9ee84b01e42a74283a5de9
60dd5281e7ce4dfb603b795aa194a67ff867caf6
refs/heads/master
2022-12-14T16:04:46.723771
2020-09-23T06:59:33
2020-09-23T06:59:33
270,216,530
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
class Solution(object): def twoSum(self, nums, target): hash = {0: 1} size = len(nums) ans = [] for j in range(size): if target - nums[j] in hash: ans.append([hash[target - nums[j]], j]) hash[nums[j]] = j return ans def twoSum2(sel...
[ "1325338208@qq.com" ]
1325338208@qq.com
40fa9cbf1c99786c7eb3eeeabb6952fa105e9624
a091e824e1bedae467a9ebe15d9c19f3a1659dfb
/wifiandpic.py
87f4fcb613d41dc9c4077f82586ff92c144673ec
[]
no_license
xhx509/Getmatp
8ce60872add1d78bc67522f46dd413d4d6b83d24
c1d673292bd698ca635f0782363632d1721a5002
refs/heads/master
2021-04-26T21:55:00.060790
2020-09-09T16:05:49
2020-09-09T16:05:49
124,176,306
0
1
null
2020-03-30T23:50:13
2018-03-07T03:54:53
Python
UTF-8
Python
false
false
24,781
py
# set of functions used in generating plots in the wheelhouse # with program running parallel with "getmatp.py" call "wxpage.py" # where it plots the record and generates output file # where it now includes the "getclim" function to post climatology #updates on import glob import ftplib import shutil from shutil import...
[ "noreply@github.com" ]
noreply@github.com
bef1548305d046b43c0479fbaa2577e13ac971ed
5b432d8ffa09a0d5194ff321ea06f9c83ac26ad8
/eval/labels_stats.py
d04d9b4fdd8286635b275ec6ec7178eb2dc5dcfb
[ "MIT" ]
permissive
CristianViorelPopa/BART-TL-topic-label-generation
b234d448f66d62a412e6285db21e3932a23efdb2
d2cee2438bb855e426548b39de1ed89c6db08840
refs/heads/main
2023-04-11T21:52:50.407503
2021-05-20T19:24:11
2021-05-20T19:24:11
360,913,591
13
6
null
null
null
null
UTF-8
Python
false
false
2,336
py
import sys import numpy as np def preprocess_label(label): return label.split('(')[0].replace('_', ' ').strip() def dcg(scores): result = 0 for idx, score in enumerate(scores): result += (2 ** score - 1) / np.log2(idx + 2) return result def ndcg(scores, n): target_scores = scores[:n] ...
[ "cristianviorel.popa@crowdstrike.com" ]
cristianviorel.popa@crowdstrike.com
656effb7c39ee26e16f6aa357a759a7907827897
5ae383483213c7140dd8a9d886ab532b8ee3c549
/ani01/capitals/urls.py
37c2031802cef3da18479b73a4347689cac1d770
[]
no_license
2001anindita/Techtronics
dedb99050e947c47ae0cd67d82256548634783fe
335db9217948e8786b0e06bcfa2182ce0a88464b
refs/heads/master
2023-06-30T18:42:10.600715
2021-08-02T08:33:51
2021-08-02T08:33:51
391,869,132
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from django.urls import path,include from . import views from rest_framework import routers router= routers.DefaultRouter() router.register('capitals',views.CapitalView) urlpatterns = [ path('',include(router.urls)) ]
[ "aninditasardar3@gmail.com" ]
aninditasardar3@gmail.com
99255793d613669f28b1301533a50b4fb60b1ba0
872f4bd2426e4e0cf23ef739a185d330429e22ff
/flexible_clustering/hnsw_optics_cachefile.py
1b0056a2d103558128d411f99a90fbc8a4ffb282
[ "BSD-3-Clause" ]
permissive
supertulli/flexible-clustering
dd4da8bb784be248176f54d3f885afcd6efb6b32
cd3d85eb5e96ab412f00932429e5aec65d397190
refs/heads/master
2020-09-09T11:51:27.884241
2019-11-13T11:14:29
2019-11-13T11:14:29
221,221,533
0
0
BSD-3-Clause
2019-11-12T13:14:35
2019-11-12T13:14:35
null
UTF-8
Python
false
false
2,270
py
#!/usr/bin/env python3 # Copyright (c) 2017-2018 Symantec Corporation. All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # not...
[ "matteo_dellamico@symantec.com" ]
matteo_dellamico@symantec.com
a0bdc0c9daf60f5836f7c073b077236aa58eb427
bb144cbce615e3c55789957bd974f1897a1e96bf
/deliverygps/testapp/migrations/0002_auto_20201010_1410.py
0e7093f8fd99fb34aae36a0af1d1bd6f5d403902
[]
no_license
AvinashProjects/AvinashproGps
eacb0afd54c3d33d5b7ba368d98f39b20185a517
146845737130089cb3f0443d4cde6fe5b842d8d7
refs/heads/master
2022-12-28T15:59:50.799457
2020-10-10T21:23:17
2020-10-10T21:23:17
302,992,359
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
# Generated by Django 3.0.8 on 2020-10-10 08:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('testapp', '0001_initial'), ] operations = [ migrations.AlterField( model_name='deliveryboylctn', name='l_lat', ...
[ "pparthibann007@gmail.com" ]
pparthibann007@gmail.com
352cc68fef7a6d186120f09912904aa95ac698e1
35d7d68913e3953c2a20658f6813718839fe98bc
/data_helpers.py
bf1b06005f2d936091fbee60b7cefadd2655d141
[]
no_license
nooralahzadeh/Relation_Extraction
5fed4c24d4c118a9302ba10a647423043083b94a
1d6d948fc8e8611f280cd4af561b1acb3cc4a668
refs/heads/master
2021-06-13T12:48:58.666598
2017-02-18T17:58:13
2017-02-18T17:58:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,684
py
import pandas as pd from nltk.tokenize import TweetTokenizer import re import os import tensorflow as tf import numpy as np file_path = "/home/sahil/ML-bucket/data/train_new.csv" def read_data(file=file_path): col_names = ['System-Id', 'Message', 'drug-offset-start', 'drug-offset-end', 'sideEffect-offset-start',...
[ "sahil24wadhwa@gmail.com" ]
sahil24wadhwa@gmail.com
e25d87c60c698b281091df6c1e09696e8052e453
9eef707da67275fcee438bf5ebb9643b5ea200b4
/main_app/models.py
7329118caabfd6598047570034ec73f663f06812
[]
no_license
atevadd/Rcffutminna
640f2a545b9abe4105d0438870e3d01704080c64
a989f2a52997121421844d3b62c8d79d3feff5f1
refs/heads/master
2022-11-17T17:14:57.095951
2020-07-15T14:05:01
2020-07-15T14:05:01
269,304,952
0
1
null
2020-07-14T22:55:39
2020-06-04T08:38:32
CSS
UTF-8
Python
false
false
4,873
py
from main_app import db, login_manager, UserMixin from datetime import datetime @login_manager.user_loader def admin(id): return User.query.get(int(id)) #message model class Message(db.Model): id = db.Column(db.Integer, primary_key=True) minister = db.Column(db.String(50)) title = db.Column(db.String...
[ "nnamenearinze@gmail.com" ]
nnamenearinze@gmail.com
9f7a8508050ab744d943a95045c9c3ce3129c548
981d6e960db2a1dc8c555364093f0bdbb4709b5a
/trainers/sub_trainers/dpm_ms_trainers.py
570a0bfc98e58520d93feceb160c970380685355
[]
no_license
REA1/scratracer
6feb43ad1c04fb9cced5754461c477c4939acb6f
3d072145df2735d6d59412dc7242bf6161ae0968
refs/heads/master
2023-01-31T04:42:14.744019
2020-12-13T07:08:16
2020-12-13T07:08:16
314,434,221
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
from trainers.Trainer import * from trainers.ModelSelectionTrainer import * class DPMMSRandomTrainer(ModelSelectionTrainer): def __init__(self): super().__init__() def populate(self, X, y, train_id_list, pool_id_list): super().populate(X, y, train_id_list, pool_id_list) self.pre_proce...
[ "wwang33@ncsu.edu" ]
wwang33@ncsu.edu
e398266ec2bb991e101560d67092ff805b861f66
af4761b401ecec831ff42344a33cc1e85996eb64
/freq.py
6f1636fff4abfdfd953c32d3ee2924b86d831e62
[ "MIT" ]
permissive
rayjustinhuang/BitesofPy
70aa0bb8fdbffa87810f00210b4cea78211db8cf
e5738f4f685bad4c8fb140cbc057faa441d4b34c
refs/heads/master
2022-08-15T05:02:19.084123
2022-08-09T12:26:42
2022-08-09T12:26:42
219,509,496
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
from collections import Counter def freq_digit(num: int) -> int: return int(Counter(str(num)).most_common(1)[0][0]) pass
[ "rayjustinhuang@gmail.com" ]
rayjustinhuang@gmail.com
5088f6b3f2353635f7d058f8bacc384981913b52
5955ea34fd72c719f3cb78fbb3c7e802a2d9109a
/MATRIX/Trivial/trivia1.py
f67af7e92614c8d5539f7d8a23712859516740da
[]
no_license
AndreySperansky/TUITION
3c90ac45f11c70dce04008adc1e9f9faad840b90
583d3a760d1f622689f6f4f482c905b065d6c732
refs/heads/master
2022-12-21T21:48:21.936988
2020-09-28T23:18:40
2020-09-28T23:18:40
299,452,924
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(matrix[1]) print(matrix[1][1]) print(matrix[2][0]) matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(matrix[1][1])
[ "andrey.speransky@gmail.com" ]
andrey.speransky@gmail.com
2f169cafa3c55f803ef3f1efa2eb0e8d816c6e2a
9868ee8339f73de21e5d22be3c774ef8a8bf2e2b
/experiment/migrations/0008_trial_anon_user.py
3511b2d5d4f6eba5dc955e6155ebb5827c097310
[]
no_license
thartbm/OE_WEBAPP
a33eb15e09bcf5d0a2ebf2bd65ea1cf04ad955b6
a0fba8e7c0fdbb1a29ca8d2c2f51301b2d015243
refs/heads/master
2021-03-19T13:44:48.422289
2018-09-04T03:15:40
2018-09-04T03:15:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('experiment', '0007_auto_20180711_0448'), ] operations = [ migrations.AddField( model_name='trial', n...
[ "muhamad_hmeed@live.ca" ]
muhamad_hmeed@live.ca
9111eee82037e86525397c7db43781874cc7c4ce
f613b1555a58b8a47e922c1bcf4af5310160a48e
/tac_follow/ppo.py
ca5279686ecee356b9780ca90ccdb272ed477f69
[]
no_license
quantumiracle/Store
833620dcce08f56ac0a204b89a18dd957e263cd3
d452a2307fd1edb83fd8879e6147f9a8f1dc3811
refs/heads/master
2022-12-26T14:21:57.202458
2019-08-01T13:43:24
2019-08-01T13:43:24
192,982,880
1
0
null
2022-12-08T05:19:08
2019-06-20T20:22:52
ASP
UTF-8
Python
false
false
14,872
py
""" pure vector observation based learning: position of tactip and target task: tactip following the cylinder to reach the ball target """ import tensorflow as tf from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten import numpy as np import matplotlib.pyplot as plt import gym, threading, queue from gym_u...
[ "zd2418@graphic06.doc.ic.ac.uk" ]
zd2418@graphic06.doc.ic.ac.uk
60d734472901344d763d6e229ca2310ce9e90063
714cbe0205a4af7b8386116854c1eb85b63fb74d
/base.py
c506f9f1f78873528074a0dcd48211ca9c54dd1f
[]
no_license
hologerry/lincoln
8ff7eb0b1ffe6b3792c8908e9db3adbe59e3ce22
e3144d949c7e2e85075a2211c1f49bcf40d5b5b2
refs/heads/master
2021-02-05T19:10:40.708747
2020-03-02T16:24:16
2020-03-02T16:24:16
243,821,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
from numpy import ndarray from utils.np_utils import assert_same_shape class Operation(object): def __init__(self): pass def forward(self, input_: ndarray, inference: bool = False) -> ndarray: self.input_ = input_ self.output = self._output(inference...
[ "hologerry@gmail.com" ]
hologerry@gmail.com
22b302924e1b1ab6e2a83f7157859da0403a32c5
faa981d6822b4b75c339a2841c66889e2cb5c7f1
/ictk_djserver/work_report/models.py
9c71b5b281bcebe94288e2097a3a9c05e1d9893a
[]
no_license
neo1seok/django_server
664bc36cb7dd089a903334c1832d36465a8e8449
0ab8aec921b69065699702e1d24caaae508218c3
refs/heads/master
2020-06-18T16:42:48.627723
2020-01-08T06:43:55
2020-01-08T06:43:55
196,368,877
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
from django.db import models from django.utils import timezone # Create your models here. class Post(models.Model): author = models.ForeignKey('account.User', on_delete=models.CASCADE) title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField( de...
[ "neo1seok@gmail.com" ]
neo1seok@gmail.com
797cb6f5b818febbf53825d1a83a277b58244134
98ecb8754d90ea6c8099cffbf8e71dcb218672c0
/gui/fct_fournie_1.py
67bf8cc2fb94dd0224b1cc934678ee1db515201b
[]
no_license
djokami/Theatre
2e70dfc3784ca8f2bbca1dd04a2d27106daa78b7
3a619c3f976f3664bc40e262509caad295118811
refs/heads/master
2020-05-25T00:19:57.472020
2019-05-19T21:56:49
2019-05-19T21:56:49
187,529,545
0
0
null
null
null
null
UTF-8
Python
false
false
2,262
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'fct_fournie_1.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_fct_fournie_1(object): def setupUi(self, fct_fournie_1): ...
[ "kamissokoselin@gmail.com" ]
kamissokoselin@gmail.com
fbf7595217ffa37fbf7e7069d36ab4b3baf3169b
e75157fa392861377db6869fae459e4eef694a74
/backend_python/main.py
b43ddd2777aa5b0cdeb0b54053610eaef2b096fb
[]
no_license
gpard77/cs496_final
422e6ae244f4d7ad090e4bf9f0a13e7a3374a5fd
20b66296bba13a9c238c8fd289884a764568192b
refs/heads/master
2020-06-14T03:55:09.912094
2016-12-04T06:42:28
2016-12-04T06:42:28
75,519,823
0
0
null
null
null
null
UTF-8
Python
false
false
2,077
py
# import webapp2 # from google.appengine.api import oauth # application = webapp2.WSGIApplication([ # ('/book', 'book.Book'), # ('/shelf', 'shelf.Shelf') # ], debug=True) # # get back details about a specific book - use an id # application.router.add(webapp2.Route(r'/book/<id:[0-9]+><:/?>', 'book.Book')) # # ...
[ "pardg@oregonstate.edu" ]
pardg@oregonstate.edu
e698508e2fe3948862afe6bba9c8f5afb175f8da
02609a37df8092cdfcb51fe42ea9935e0024320b
/zamiaai/skills/psychology/__init__.py
2cc4501305f39168b8553dcf49540cc825e007ad
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
TexaProject/zamia-ai
5a742118060406f1aa271c5ed1b14110e9953544
d9e9c6123fdadca3fae55e87ea2b2b32d82bc210
refs/heads/master
2020-04-14T05:57:51.068798
2018-12-24T00:12:22
2018-12-24T00:12:22
163,673,844
1
1
Apache-2.0
2018-12-31T14:08:09
2018-12-31T14:08:08
null
UTF-8
Python
false
false
826
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2016, 2017, 2018 Guenter Bartsch # # 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...
[ "guenter@zamia.org" ]
guenter@zamia.org
d31cdeea85d18f104969c895d5974aa43676e55a
2100443dd6cbd55587f7ea8d875fc4bbe70b5423
/summertunes/cli/run_mpv.py
edd8b96826d73ed84253ed801765b898f3cfb233
[ "MIT" ]
permissive
irskep/summertunes
af57584cf789e5f216dc24faf6fb51cbe216af1a
d79c8f2e77bb97a48685a0ac23e8e4b7a753eb69
refs/heads/master
2021-05-02T04:44:17.498633
2017-06-25T20:59:05
2017-06-25T20:59:05
76,800,404
19
1
null
2017-01-17T19:47:08
2016-12-18T18:49:51
JavaScript
UTF-8
Python
false
false
1,486
py
#!/usr/bin/env python import json import logging import os import signal import sys from multiprocessing import Process, Queue from subprocess import Popen log = logging.getLogger(__name__) def _run_mpv_wrapper(pid_queue, mpv_args): log.debug(' '.join(mpv_args)) proc = Popen(mpv_args) pid_queue.put(proc....
[ "sjohnson@hipmunk.com" ]
sjohnson@hipmunk.com
da0e8bd9c5e22a441ccf996635f3cc883e7db8ad
ac23a4af430f92868ce1bd0c7571fe78e9ba6ffe
/routs/models.py
44f5e7fd6b73f989909ee5412fcea7ed5e5b1073
[]
no_license
nathaniel-prog/sofproject
52501ba050b3cf5dd10911fd283bee323dce491c
16fedf099f1e5e63883ea6a1a01965b9a3fd0ba5
refs/heads/master
2023-02-07T22:11:11.671001
2020-12-30T09:23:30
2020-12-30T09:23:30
294,345,213
0
0
null
null
null
null
UTF-8
Python
false
false
2,580
py
from django.db import models from django.shortcuts import render from django.contrib.auth.models import User from bemember.models import Post from django.db.models import Q import json from routs.insert_geoloc import extract_lat_lng from django.contrib import messages import datetime d= datetime.date.today() class ...
[ "66939923+nathaniel-prog@users.noreply.github.com" ]
66939923+nathaniel-prog@users.noreply.github.com
6cc63d83e26329cff0d80c500a81303a67f72c10
1f4a7e6377d92658838b65fde4437f26901d5601
/nets/gazebase.py
6c55e92c9bebd6e5118cf15195a2d9c8229e3e5b
[]
no_license
qbqandyxq/My_gaze
7e7ad1dcdf4d69a53d331dff909cbe5980408a7a
bebe9005bffeb564cfae230be08ff2d610b9262b
refs/heads/master
2021-09-11T20:59:15.310599
2018-04-12T09:41:55
2018-04-12T09:41:55
115,717,806
2
0
null
null
null
null
UTF-8
Python
false
false
5,196
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf slim = tf.contrib.slim trunc_normal = lambda stddev: tf.truncated_normal_initializer(0.0, stddev) from collections import namedtuple import math import numpy as np GazeParams = namedtup...
[ "971725806@qq.com" ]
971725806@qq.com
2de31ce63bf56006e3b69bfa7c958f0145752bff
555b9f764d9bca5232360979460bc35c2f5ad424
/google/ads/google_ads/v1/proto/services/conversion_adjustment_upload_service_pb2_grpc.py
6e9635e57ac9663a3ce02788dfd010e22f15e749
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
juanmacugat/google-ads-python
b50256163782bc0223bcd8b29f789d74f4cfad05
0fc8a7dbf31d9e8e2a4364df93bec5f6b7edd50a
refs/heads/master
2021-02-18T17:00:22.067673
2020-03-05T16:13:57
2020-03-05T16:13:57
245,215,877
1
0
Apache-2.0
2020-03-05T16:39:34
2020-03-05T16:39:33
null
UTF-8
Python
false
false
2,255
py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from google.ads.google_ads.v1.proto.services import conversion_adjustment_upload_service_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_services_dot_conversion__adjustment__upload__service__pb2 class ConversionAdjustmentUploadSe...
[ "noreply@github.com" ]
noreply@github.com
e33115a19dd732a6c8ce0df64c67a4d22df9a5b5
12796e7a68295a5777690cf916197f553dcfc690
/plans/manageiq/rhev.py
cce05c9c1157767f73a22cb58d304b2c1cdf57a7
[ "Apache-2.0" ]
permissive
jruariveiro/kcli
294768c25748f8a2281d9d7b3cad6f6d6dd5d9a9
2de467f9c74913b030ca8e2f32c7caad59bf53c1
refs/heads/master
2020-03-26T05:50:58.301210
2018-08-13T12:45:04
2018-08-13T12:45:04
144,577,929
0
0
Apache-2.0
2018-08-13T12:39:19
2018-08-13T12:39:19
null
UTF-8
Python
false
false
655
py
#!/usr/bin/python import json import requests user = "admin" password = "[[ password ]]" rhevuser = "admin@internal" rhevpassword = "[[ rhev_password ]]" rhevhost = "[[ rhev_host ]]" headers = {'content-type': 'application/json', 'Accept': 'application/json'} postdata = { "type": "ManageIQ::Providers::Redhat::Inf...
[ "karimboumedhel@gmail.com" ]
karimboumedhel@gmail.com
8ecbc754fb7b5d7fc3b127f5aba3afc90fec38bd
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/401-600/000430/000430.py
3d1bb3c077f5343fa55b72a6a1472a0b865025c4
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
1,241
py
""" # Definition for a Node. class Node(object): def __init__(self, val, prev, next, child): self.val = val self.prev = prev self.next = next self.child = child """ class Solution(object): def flatten(self, head): """ :type head: Node :rtype: Node ...
[ "noreply@github.com" ]
noreply@github.com
edd405aeb0f0765e654d4fe0abd73b494c5a9491
ebb3f1e7af7008dce995eeecae945eedfd5b278a
/insert_dates.py
e1159d40950cb7779bb34c65efdcbca4041494bf
[ "MIT" ]
permissive
fellypesb/project_PET_2020
b718b151b664cecd2910ff34ae67ef91235dd3db
402e4964b5a23ad6786870f4a0fcb1b9ccc522b1
refs/heads/main
2023-04-30T19:04:25.640447
2021-05-16T14:54:09
2021-05-16T14:54:09
322,129,305
0
0
null
null
null
null
UTF-8
Python
false
false
1,961
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Oct 22 14:59:57 2020 @author: fellypesb """ import pandas as pd df = pd.read_csv('/home/fellypesb/Documents/PET/project_codes/outubro/dataset/cluster_data_hour.csv', parse_dates=['Data']) df2 = df.iloc[:,:-2] day = [] month = [] yea...
[ "fellypecsiqueira@gmail.com" ]
fellypecsiqueira@gmail.com
fc5b935b9f8310e3f6f4113fb0a228bec78d5e73
2bb6f9c0a3658acf2bd6b97dcdeace9213723640
/namespace/models/list_field.py
ee577399fe07b1476580fed945fe7ee0aef6dc04
[]
no_license
hugoseabra/mailchimp-service
4fee930fd11b30f4c7da3654da2cbb231ca34341
0424b90fdc0911b4a6b1d514ba51c88d7d3572b4
refs/heads/develop
2022-07-20T02:52:06.147740
2020-03-17T21:31:37
2020-03-17T21:31:37
242,433,347
0
0
null
2022-07-06T20:30:14
2020-02-23T00:39:43
Python
UTF-8
Python
false
false
2,475
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from core.models import track_data from core.models.mixins import ( DateTimeManagementMixin, DeletableModelMixin, EntityMixin, UUIDPkMixin, ) @track_data('namespace_id', 'label', 'tag') class ListField(UUIDPkMixin, ...
[ "hugoseabra19@gmail.com" ]
hugoseabra19@gmail.com
2e852072b13816e1478dfbbc6347f0ce6148e604
52bbc4b2d23782984b184efcae5b2c0fb67fef76
/flaskDemo/models.py
1061da6316aa6820ae02c58e026a991664fc29b4
[]
no_license
zhecz/Work_Management_System
3f4b871fa5828f65f3a4832fa3d13c8bb0d16984
6eea41da4e8f656ce176af1086d72f1a8940f33a
refs/heads/master
2022-12-08T11:55:58.463241
2019-10-28T16:41:18
2019-10-28T16:41:18
215,641,496
0
0
null
2022-12-08T06:47:09
2019-10-16T20:46:14
Python
UTF-8
Python
false
false
5,391
py
from datetime import datetime from flaskDemo import db, login_manager from flask_login import UserMixin from functools import partial from sqlalchemy import orm from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() @login_manager.user_loader def load_user(user_id): return employee....
[ "youcanfindivy@gmail.com" ]
youcanfindivy@gmail.com
835b817d0ee6455037488d80b4e5cc940fc02e0d
0e110705bf2859b6a987685280ab5c3dfc1fc89d
/jpmoth/jpmoth/spiders/jpmoth_spider.py
a4a902ad07fd5f6836872871b475871b9e3ca13d
[]
no_license
KitauraHiromi/scrapy
ed72ce1bcf7fb9b9f45f3b6660228589b497aae5
d4087ea119e9a37362fe03f451a8cb7ff0ae4a03
refs/heads/master
2021-01-20T17:33:49.851409
2016-08-07T03:07:20
2016-08-07T03:07:20
65,112,704
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
import scrapy from jpmoth.items import jpmothItem from scrapy.selector import HtmlXPathSelector import codecs f = open("jpmoth.txt", "w") def cvt(str_list): for i in range(len(str_list)): str_list[i] = str_list[i].encode("shift-jis") return str_list class jpmothSpider(scrapy.Spider): name = "jpmoth" allowed...
[ "kasumiga_eria394@yahoo.co.jp" ]
kasumiga_eria394@yahoo.co.jp
95b8b5da4d3c36487e38a700d023474a9104bc49
7c94fef9b1dd109efb9f7851871130b3e0f27b65
/.c9/metadata/environment/services/spaceapps/spaceapps/spaceapps/core/utils_ai_collect.py
e00df4801b4cdecb47d1a43b8ef3bc12337f25ad
[]
no_license
turtlesallthewayup/spaceapps_webapp
c2eb14cd1a999bbe8ead32555b4592348881afb8
486ed9058c5d73dd47d7e195591c63b301496b5f
refs/heads/master
2020-08-21T16:11:18.021549
2019-11-04T00:04:41
2019-11-04T00:04:41
216,195,499
0
0
null
null
null
null
UTF-8
Python
false
false
6,887
py
{"filter":false,"title":"utils_ai_collect.py","tooltip":"/services/spaceapps/spaceapps/spaceapps/core/utils_ai_collect.py","undoManager":{"mark":1,"position":1,"stack":[[{"start":{"row":0,"column":0},"end":{"row":60,"column":16},"action":"insert","lines":["import CONST","import numpy as np","import cv2","import os","im...
[ "ubuntu@ip-172-31-46-231.us-west-2.compute.internal" ]
ubuntu@ip-172-31-46-231.us-west-2.compute.internal
2c63726f954f6cb0ed0fa254ffeea056e8545a62
3481023b43028c5ee9520a8be0978e914bdcb548
/manga_py/providers/nightow_net.py
86e53cd25348d31c6966eb6c3205f80499332ff9
[ "MIT" ]
permissive
manga-py/manga-py
18f6818d8efc96c3e69efee7dff3f3d6c773e32a
0db97123acab1f2fb99e808b0ba54db08977e5c8
refs/heads/stable_1.x
2023-08-20T03:04:06.373108
2023-04-16T08:28:15
2023-04-16T08:28:15
98,638,892
444
56
MIT
2023-07-27T13:21:40
2017-07-28T10:27:43
Python
UTF-8
Python
false
false
1,285
py
from urllib.parse import unquote_plus from manga_py.provider import Provider from .helpers.std import Std class NightowNet(Provider, Std): _name_re = r'manga=(.+?)(?:&.+)?$' def get_chapter_index(self) -> str: ch = unquote_plus(self.chapter) idx = self.re.search(r'chapter=(?:.+?)\+(\d+(?:\.\...
[ "sttv-pc@mail.ru" ]
sttv-pc@mail.ru
8a20174c536f7b7a825e2aa4666c5462ebb3d9a5
a6106cedc42dcab94ccc4ee6d681372d2246ce5e
/python/활용자료/예제/02/ex2-24.py
c858e184ca1d9032edc29dc8ef0b5ed1a39a8b11
[]
no_license
leemyoungwoo/pybasic
a5a4b68d6b3ddd6f07ff84dc8df76da02650196f
481075f15613c5d8add9b8c4d523282510d146d2
refs/heads/master
2022-10-08T19:57:26.073431
2020-06-15T06:50:02
2020-06-15T06:50:02
267,502,565
1
0
null
null
null
null
UTF-8
Python
false
false
170
py
name = '황예린' age = 18 eyesight = 1.2 a = '이름 : {}'.format(name) b = '나이 : {}세'.format(age) c = '시력 : {}'.format(eyesight) print(a) print(b) print(c)
[ "mwlee2587@gmail.com" ]
mwlee2587@gmail.com
f8977685a94d80cf3dfd33f28317c3f562df7ba3
1fccf52e0a694ec03aac55e42795487a69ef1bd4
/src/euler_python_package/euler_python/medium/p422.py
3c591094a147780090d3295335ca6c74526aab21
[ "MIT" ]
permissive
wilsonify/euler
3b7e742b520ee3980e54e523a018cd77f7246123
5214b776175e6d76a7c6d8915d0e062d189d9b79
refs/heads/master
2020-05-27T12:15:50.417469
2019-09-14T22:42:35
2019-09-14T22:42:35
188,614,451
0
0
null
null
null
null
UTF-8
Python
false
false
27
py
def problem422(): pass
[ "tom.andrew.wilson@gmail.com" ]
tom.andrew.wilson@gmail.com
914b69a2a74888fec8815e7f2d5180c2fd0fd4d8
15c4f7546ddabe8b2f3daeb3c35ebcf651293cd4
/env/bin/thresholder.py
5544f1cefe45e19923288026cc56d35e21debbc8
[]
no_license
mcscope/Lips
285fa4ae57b389e2fb19b0aa40d222e96e8513fa
90aa39a90e68e8a57f2c8c5b3995539393743fa9
refs/heads/master
2020-12-30T12:56:01.039063
2017-09-13T21:04:21
2017-09-13T21:04:21
91,373,206
0
2
null
2017-09-13T21:04:22
2017-05-15T18:51:19
JavaScript
UTF-8
Python
false
false
2,014
py
#!/Users/Christopher/Code/lipsweb/env/bin/python2.7 # # The Python Imaging Library # $Id$ # # this demo script illustrates how a 1-bit BitmapImage can be used # as a dynamically updated overlay # import sys if sys.version_info[0] > 2: import tkinter else: import Tkinter as tkinter from PIL import Image, Imag...
[ "mcscope@gmail.com" ]
mcscope@gmail.com
4ff59cf7d07865a4a752e0689e440e2a5188be29
260e33f93cb8aa1799b32966326a72d460f132cf
/highaltitudeparabolic/apps/service/videosrv.py
7303a1dbe44b0cfbe299891c1aeb41c53d38897b
[]
no_license
yuangongping/highaltitudeparabolic_demo
c135fdf60e5f1fe03ad13b780dd92e0e7b757e20
6090baa5b9c799d61733f01d1b1ee57c078284d3
refs/heads/master
2021-03-20T10:30:48.436412
2020-03-14T03:31:40
2020-03-14T03:31:40
247,201,149
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
from ..model import db from ..model.video import Video from flask import abort from sqlalchemy import and_ from sqlalchemy import func class VideoSrv(object): @classmethod def getAllVideo(cls, page: int, num: int, camera_name: str, start_date:str, end_date: str): try: ...
[ "1030617785@qq.com" ]
1030617785@qq.com
86f22aa4eff1568a076d319dbefbca33c085762f
f8c26b516e4b07fa5c3c5816afdc03db9c062074
/api/src/model/User.py
7b898d165b8e587851b0b382081d0ee57bbab7ca
[]
no_license
bbortolli/bora-app
c116682982d12cf6b17df28cc8212da318b652e7
4833645d33216fd5f4c0f2bc9fec81045470f16b
refs/heads/master
2023-01-18T18:14:33.656195
2020-11-23T22:50:27
2020-11-23T22:50:27
312,370,116
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
from mongoengine import * import datetime from src.model.sets import STATES, COUNTRIES, GENDERS class User(Document): email = EmailField(required=True, unique=True) first_name = StringField(max_length=100, required=True) last_name = StringField(max_length=100, required=True) password = StringField(max_length=5...
[ "brunobortolli@outlook.com" ]
brunobortolli@outlook.com
f75a08f30a2388d8f504e336bfa014b281c6b703
7f7bcd5986d410b1b52371a16cc8ddbd5618388a
/TradexaApp/Products/urls.py
72d14b0379f8c97cf246ed9e153fb6a71d5d54c3
[]
no_license
sanjaynandy89/KavachAssignment2
c8229a354a724f9af5274a1c2bde588a29ed9e06
98cc351aebf761418f95250bd0a3fc4a549464cb
refs/heads/master
2023-01-05T21:24:23.194167
2020-10-20T20:24:28
2020-10-20T20:24:28
305,824,353
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
from django.urls import path from.import views urlpatterns = [ path('Product/', views.Product,name='Product'), path("Product/user/Logout", views.Logout,name='Product/user/Logout'), ]
[ "sanjaynandy89@gmail.com" ]
sanjaynandy89@gmail.com
73646403792e9179d36f218cdd166e48d3e30b8f
a0cb819ec9218a9ad8bdead700250c1078c1f5ab
/migrations/versions/7f5ddb45e9a4_.py
7d9d6b3a7abb3987831a04b43f0d505d4e5a1e71
[]
no_license
airmnb/airmnb-app
0ae89267d7c553f089f1bbd81af486cdf8d65513
d0e051efe7d046168113a0aa501122526bb308da
refs/heads/master
2020-03-08T17:54:05.749987
2018-08-11T10:13:38
2018-08-11T10:13:38
128,280,972
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
"""empty message Revision ID: 7f5ddb45e9a4 Revises: 0e5a1b60304a Create Date: 2018-06-15 00:06:12.979884 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '7f5ddb45e9a4' down_revision = '0e5a1b60304a' branch_labels = None depends_on = None def upgrade(): # ...
[ "mr.shaojun@gmail.com" ]
mr.shaojun@gmail.com
592e159a1529338cb3dc8a06795ad65f63d356e6
a50dfc4b806b7d46944462be91353a2fa212f170
/Maintenance/GetUnusedRedirects.py
9bfa255eea0ddac584b2eda5a956324a72f6ff83
[]
no_license
The-Foilist/HeadCanon
05adab98ca5d60a7ca9ae469dc188f75fed0e977
8e426743bc6c56b02d89faf3e0e94be4eb7c9de2
refs/heads/main
2023-05-31T08:13:56.874377
2021-06-20T20:23:42
2021-06-20T20:23:42
345,531,995
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
# Get a list of the names of all articles listed on the wiki's Special:UnusedRedirects page import requests import lxml import bs4 base_url = "http://192.168.1.20:1138" # Base URL of the wiki out_file_path = "" # Where to put the output file offset = 0 # Start from ...
[ "noreply@github.com" ]
noreply@github.com
c0b1c30bf26bb233b30563baccc2d61e29651d9f
789289f1b2a05d70be9eb67af36fdb5633abe855
/Profiles/Profile_api/admin.py
531553c7d4f2853426e438a881834f4aed6a5847
[]
no_license
Emmanuel1993-2607/Profile_API-Django
1a49d9086de3276ae46b89f325f3550059a5bbed
dc538de823f305026df7e67dec2ed4d135f9fd85
refs/heads/master
2023-04-11T16:24:04.102058
2021-05-17T10:30:14
2021-05-17T10:30:14
368,534,769
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
from django.contrib import admin from Profiles.Profile_api import models admin.site.register(models.userProfile)
[ "emmanuelorozco1993@gmail.com" ]
emmanuelorozco1993@gmail.com
e59a6463fe020653e052c089c27ff4eaa1a2054f
8978b34587fab7db3a35f626e9855fa06b796993
/EulerPython/18. Maximum path sum I.py
a9eb20d5ca3fdb0293f27f06a150c7a98378c1b1
[]
no_license
lukekweston/EulerQuestions
1a0701034f33c9268c49fa3345560b4e11a949d4
e496a5275627864faf663258b8d243d33007a24c
refs/heads/main
2023-02-19T14:04:02.522319
2021-01-18T23:08:46
2021-01-18T23:08:46
304,795,377
0
0
null
null
null
null
UTF-8
Python
false
false
2,797
py
inputTriangle = """75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 63 67 99 65 04 28 06 16 70 92 41 41 26 56 83 40 80 70 33 41 48 72 33 47 32 37 16 94 29 53 71 44 65 25 43 91 52 97 51 14 70 11 33 28 77 73 17 78 39 68 17 57 91 71 52 38 17 14 91 43 58 50 27 29 48 63 66 04 68 89 53 67 30 73 1...
[ "luke@weston.net.nz" ]
luke@weston.net.nz
eae92e47c1d4a062e8b1bbd1f5491ed7c0450eb6
64ef180b1725d831891ef075557ddcc540c6e42a
/init.py
f947e2f7251a20b7e823621b1950cb622574ebbc
[ "MIT" ]
permissive
nasingfaund/tkinter-gui-application-examples
125acc088133020adae0bfc9c752a8e75c780c73
7073d163713829b2ff10a331c7f88f845d89b1bc
refs/heads/master
2023-07-15T06:41:35.861732
2021-08-28T14:36:28
2021-08-28T14:36:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,703
py
#!/usr/bin/env python3 # -*- coding:utf-8-*- import tkinter.messagebox from tkinter import Button, Label, Tk from lib.functions import set_window_center from lib.sqlite_helper import DBHelper from main import App class InitWindow(Tk): """初始化窗口""" def __init__(self): Tk.__init__(self) self.t...
[ "doudoudzj@sina.com" ]
doudoudzj@sina.com
c3fdb042b0b268cd9bc6c223f5973f5b41afa0b2
a0ea73e7869f9e3a01377310fe684244375a529f
/WTDscript_9_5_2014/classes/classes.py
fb3fa10d2af5a37bde1b91995e38202888aa9f57
[]
no_license
vnvnp/WTD
ed9730e51fef2fc12aba60cc1a22abd211546f3a
d238f8b7523706e81486edff3bdc6e9b2f1ccfc8
refs/heads/master
2020-05-20T05:58:28.120790
2014-09-07T04:06:40
2014-09-07T04:06:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,095
py
""" Class module which contains all ambiguous classes imports: Class Element: specifically this class is intended to stroe the raw organized pull from the excel sheets and is the object for each row in the excel spreadsheet. Class Dprep: this class handles all data preparation with specific functions """ class P...
[ "evan.prado@gatech.edu" ]
evan.prado@gatech.edu
7adfe3b1ad0c43bbbce9b77cbeffd6b20f756191
cc4b21b9672f17b4303953baabea2a053ee6fd42
/tests/test_auth.py
839b19ff03896b402a36e63fd04fc5f011ae930f
[]
no_license
simiyu1/Hello-books-v2
78aebcf0872e4bdbc930790f710df73c22e39ff2
9eef531efd10867fca4e19a704eb1c795e7684af
refs/heads/master
2020-03-21T06:34:50.938105
2018-09-07T10:37:11
2018-09-07T10:37:11
138,229,482
0
0
null
2018-09-07T10:37:12
2018-06-21T22:50:32
Python
UTF-8
Python
false
false
4,719
py
import json import unittest from tests.helper_tests import InitTests class UserTests(unittest.TestCase): def setUp(self): InitTests.testSetUp(self) def tearDown(self): InitTests.testTearDown(self) def test_can_create_user(self): self.user = {"email": "juma@ymail.com", "username"...
[ "nabendesimiyu@gmail.com" ]
nabendesimiyu@gmail.com
c3b56d6e2f22bd6e142a34891ddff6eb035cb135
29860a04902d53ace9b84b959b59f12b0a09b298
/split_data.py
7a070a155f795db5661ab611377827951aa56b74
[]
no_license
lidaboo/qtim_ROP
a3e0f688dde87e0e02b61aa07e0ac51aad48e382
26975c474d3d6c0b4a82ccefd531622140f24e1d
refs/heads/master
2021-01-25T04:37:24.838178
2017-06-05T21:02:13
2017-06-05T21:02:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,145
py
from os.path import basename, join import numpy as np from shutil import copy from common import get_subdirs, find_images, make_sub_dir def split_data(in_dir, out_dir, n=5): # Count images in subdirs and verify equal amounts sub_dirs = get_subdirs(in_dir) image_lists = {basename(sub_dir): find_images(su...
[ "jbrown97@mgh.harvard.edu" ]
jbrown97@mgh.harvard.edu
9e3792043fd56915f96a427288025faa54a6a339
8b7e9d06fca9d0999eabe7f6906db0e6f1f81d4c
/tourney/tournament/management/commands/players.py
f7ab85f516eaad2f0ee9ada587ed17b09dacad9e
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
jonejone/tourney
9efa442e9c27660a7a4544b008e066592011b194
1372c635c873b6dc6c085a2bfdb02f6528ef25c3
refs/heads/master
2021-01-17T11:37:13.876732
2015-06-17T13:51:47
2015-06-17T13:51:47
7,472,571
0
0
null
2013-04-19T10:17:36
2013-01-06T20:49:36
Python
UTF-8
Python
false
false
1,945
py
from django.core.management.base import BaseCommand, CommandError from optparse import make_option from tourney.tournament.models import Player, Tournament class Command(BaseCommand): args = '' help = 'Lists all players with their options' option_list = BaseCommand.option_list + ( make_option('-...
[ "jone@idev.no" ]
jone@idev.no