blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
44d75b8a7809f73f43c9dcd4a257dbe35e97baef
c29c1e8c689834879b5a9df6f78b667a22076f1a
/MFMA/MSE/MSE_backend.py
3b8097dc0955aee471461398f106df7b4f67cd88
[]
no_license
darkrush/MFMA
5ac1e685fe4c689d92aa59eaec485b89a06267cb
25183d36364c27a7e3c7dbe94f68ac3dd1069cc1
refs/heads/master
2020-06-18T12:35:08.521540
2019-07-14T06:30:49
2019-07-14T06:30:49
196,305,299
0
1
null
null
null
null
UTF-8
Python
false
false
3,831
py
from . import core from multiprocessing import Process, Queue, Manager import threading import time class MSE_backend(object): def __init__(self,scenario): self.agent_groups = scenario['agent_groups'] self.cfg = {'dt':scenario['common']['dt'],} self.use_gui = scenario['common']['use_gui'] ...
[ "kidfatenight@gmail.com" ]
kidfatenight@gmail.com
75a8817080fb9e0fa35ca3a4ee320288ede53acc
4c48ae521936086922dfaa320f647ae9d286baa5
/parser.py
ac94bfee3fc8748e3c3d6538fd0dbd7df7a89976
[]
no_license
mpaulon/udp_discussion
f77185a55b56ffc6b8ac85206a0daaa94008612d
573f98beb5c9cfb758d3dc64d922a002956aa9e5
refs/heads/master
2021-08-26T08:10:55.480229
2017-11-22T10:40:07
2017-11-22T10:40:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,687
py
import struct from ipaddress import IPv6Address from datetime import datetime import tkinter as tk def get_tlvs(body, ls_tlvs, client): """ Retourne la liste des tlvs composant le message """ # Tout le body a été parsé if body == []: return 0 # Si le tlv est un Pad1 elif body[0]...
[ "paulon@crans.org" ]
paulon@crans.org
4457fd40dfb85b6dc603f03a909b8f1cb3a54d03
92d033abfec9fcbca389dd769cc3b4b54f7e0a59
/src/SpiderPi/HiwonderSDK/Sonar.py
9f177815e71226a503e164341d872b3f7727a56e
[ "MIT" ]
permissive
peteh/spiderpi
c3475fce43de4ae3fb2267e04ad0cf0fc76f94a2
19c4e254979a756acb641b67e944568c7c79520c
refs/heads/main
2023-06-27T02:24:23.223675
2021-08-06T03:34:01
2021-08-06T03:34:01
376,849,215
0
0
null
null
null
null
UTF-8
Python
false
false
3,507
py
#!/usr/bin/env python3 import os import sys import time import smbus from smbus2 import SMBus, i2c_msg # Hiwonder iic ultansonic using example# if sys.version_info.major == 2: print('Please run this program with python3!') sys.exit(0) class Sonar: __units = {"mm":0, "cm":1} __dist_reg = 0 __RGB_...
[ "github@kthxbye.us" ]
github@kthxbye.us
205efb274edcb8929e297ffc3733401eeae233cf
0d24176768f1426408163db84d77e3ca745fcaed
/app_target_data.py
dca33810f55555a09b5c34b36bac37cb61a2a563
[]
no_license
maclobdell/platform_scorecard_server
e99a42a5c45868205619e3683f8802a6e60c2ab1
b319929d0fc9a2eac1dcf03c6117bb9db3450ed0
refs/heads/master
2020-03-15T01:15:41.500389
2018-05-25T16:55:45
2018-05-25T16:55:45
131,889,453
0
0
null
null
null
null
UTF-8
Python
false
false
5,188
py
#!flask/bin/python from __future__ import print_function from flask import Flask, jsonify, abort, request, make_response, url_for, render_template, redirect #from flask.ext.httpauth import HTTPBasicAuth import sys app = Flask(__name__, static_url_path = "") #auth = HTTPBasicAuth() #@auth.get_password #def get_pass...
[ "maclain.lobdell@arm.com" ]
maclain.lobdell@arm.com
518f36e7dd50671fb932404dbd0926bb72f75438
fdc24295d1cb39da093a254efa7a7cb07644a27f
/teacher/inferface/interface_proj/testcases/weather.py
54da3020f3d145f2effb9a48e8203158726eea4e
[]
no_license
lijiale0625/lijiale-zuoye1
0bba345ac6f511a4cf9bdf054484924cf984e14e
e000ff4f0d8434aa500f558ebda45ac953fccdd6
refs/heads/master
2020-12-02T07:57:07.890291
2017-11-11T08:53:15
2017-11-11T08:53:15
96,751,378
0
0
null
null
null
null
UTF-8
Python
false
false
8,123
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time import unittest import requests import json import logging from lib.utils import * #from config import * class WeatherTest(unittest.TestCase): u"""根据城市名获取天气预报""" base_url = r'http://v.juhe.cn/weather/index' def setUp(self): pass def tearDown...
[ "1052551319@qq.com" ]
1052551319@qq.com
b07ebe4341d3f201e7ded401c8ae97e2d1385731
cbe264842df4eae3569b28ed4aae9489014ed23c
/python/coding_dojang/judge_regular_expression.py
5418ef520574bac18ef5149097b2d76c3df53c2e
[ "MIT" ]
permissive
zeroam/TIL
31e176c2f4c3e1ef72b1155353690cc2f7160f96
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
refs/heads/master
2021-07-23T01:43:34.135033
2021-07-10T06:47:17
2021-07-10T06:47:17
167,952,375
1
0
null
null
null
null
UTF-8
Python
false
false
617
py
import re p = re.compile('^(http(s)?://)?[\w\-]+\.[\w\-]+[\w\-_.?=/&#:]+$') urls = [ 'https://www.example.com', 'http://www.example.com', 'www.example.com', 'example.com', 'http://blog.example.com', 'http://www.example.com/product', 'http://www.example.com/products?id=1&page=2', 'http:...
[ "imdff0803@gmail.com" ]
imdff0803@gmail.com
7454cf6efe86e121133d4f676780dde446ac0859
06fe8a3bb7971066a204be73731a9af3e67edbb9
/soccer/gameplay/tests/test_constants.py
1493f44ca313729a8e14841601d4ca525ae01788
[ "Apache-2.0" ]
permissive
sgadgil6/robocup-software
130099715dafd80155bf07966f186f036280455a
2b647345f0cdcc50021558b5cccf109239d3e954
refs/heads/master
2020-12-26T04:38:28.196256
2015-09-29T23:33:58
2015-09-29T23:33:58
43,398,854
1
0
null
2015-09-29T22:49:27
2015-09-29T22:49:27
null
UTF-8
Python
false
false
477
py
import unittest import constants import robocup class TestConstants(unittest.TestCase): def test_our_goal_zone(self): # right in the center of the goal zone in_zone = robocup.Point(0, constants.Field.PenaltyDist / 2.0) out_zone = robocup.Point(0, constants.Field.Length / 2.0) sel...
[ "justbuchanan@gmail.com" ]
justbuchanan@gmail.com
3c021cf4f14b5f3be35dfef76e10378b37fcbff5
ef8cc76ac4f80b91b729be21a883f25790e66b93
/students/kevin_cavanaugh/Lesson01/assignment/inventory_management/market_prices.py
94ce4875a304bd19efd927c21251540b55f8aac8
[]
no_license
KevCav91/Python220A_2019
21d3a0c996427881755bd501c04760f7ef60750b
fdf934b27ac90086f562577f9c49933d7ccefb4d
refs/heads/master
2020-05-04T19:32:35.070883
2019-06-11T04:57:40
2019-06-11T04:57:40
179,398,443
0
0
null
2019-04-04T01:27:17
2019-04-04T01:27:17
null
UTF-8
Python
false
false
168
py
""" Raise an exception to force the user to Mock its output """ def get_latest_prices(): """ get the latest price for an inventory item """ return 24
[ "kevincavanau@gmail.com" ]
kevincavanau@gmail.com
a34037b1c1fe078a27df35d1ff82fdebec3be9d0
cf472aada5c668b4b87a86dbdafd944b41dff102
/st1/lambda.py
cd4a3e074d9a4c5b6bf676926666d39d6c3b6797
[]
no_license
ywt2016/python
fe94c0717d4546934737be2ba4b86ed497e929dd
0da124fa5da04536b5ee860988359f35425084cb
refs/heads/master
2020-12-20T00:40:23.430388
2016-10-27T07:16:34
2016-10-27T07:16:34
64,358,335
0
0
null
null
null
null
UTF-8
Python
false
false
124
py
#!/usr/bin/python def make_repeater(n): return lambda s: s*n twice = make_repeater(2) print twice('word') print twice(5)
[ "yangwentao@tianxinweb.com" ]
yangwentao@tianxinweb.com
21ba112baf36402810baa753c284b894a47fcbc4
b39dc1024655e9db5433dbfe326a5dd47d75c3c1
/extapps/xadmin/plugins/ueditor.py
06005028af63c1020a6efb3dfb7e436e41c8d10e
[]
no_license
cjxxu/A_Fiction_web
381ab9e52714156879ee44978b450d1156346b61
f9f0fc40bc27f5307de8c61bcc75fca82c75d8ed
refs/heads/master
2021-06-22T13:16:30.989697
2020-12-10T09:05:35
2020-12-10T09:05:35
144,845,320
1
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
#!/usr/bin/env python # encoding: utf-8 import xadmin from xadmin.views import BaseAdminPlugin, CreateAdminView, ModelFormAdminView, UpdateAdminView from DjangoUeditor.models import UEditorField from DjangoUeditor.widgets import UEditorWidget from django.conf import settings class XadminUEditorWidget(UEditorWidget):...
[ "747603365@qq.com" ]
747603365@qq.com
40c4213f556c610b7fb9ec03447179aecc9d300c
0c85b64687456cda797ed91a86cd8ec9225e7f5d
/tip_cal.py
57219399935f114ff398b2a10f6060f70c9e3464
[]
no_license
Adarsh8198/getting-started-with-python-programming
0e34a2e36633af1f3e659595ea0716777c8d1527
a3bcb5f6d6f8ed8f59475ec804c447944091567c
refs/heads/main
2023-07-20T04:36:24.303421
2021-08-31T11:25:04
2021-08-31T11:25:04
323,071,138
0
0
null
null
null
null
UTF-8
Python
false
false
3,075
py
from tkinter import Tk, Button, Label, IntVar,StringVar,Entry,Radiobutton class TipCalculator(): def __init__(self): window = Tk() window.title("Tip Cal App") window.config(background="sky blue") window.geometry("375x250") window.resizable(width=False, height=F...
[ "noreply@github.com" ]
Adarsh8198.noreply@github.com
b9f9e1e91b89e92ddefe5b36a65bf4c688a97812
578eaf1e0f13fead93044c9aa46005298568ac0a
/Task.py
fff70a18d3ea4e50369833456e626e431ba49ab1
[]
no_license
burkozel/Task9
ad7fe8c74bbeb7522e35d3a53cd797686c3994a2
bb551644d33cdf04773e1dc76951271875fd5610
refs/heads/main
2023-01-02T19:30:14.352272
2020-10-27T19:52:09
2020-10-27T19:52:09
306,976,814
0
0
null
null
null
null
UTF-8
Python
false
false
1,453
py
import json, xml.etree.ElementTree as ET def get_words_xml(): parser = ET.XMLParser(encoding="utf-8") tree = ET.parse("newsafr.xml", parser) root = tree.getroot() items = root.findall("channel/item") b = [] a = [] for x in items: b.extend(x.find("description").text.split(" ")) f...
[ "i.raspitin@yandex.ru" ]
i.raspitin@yandex.ru
2caae5f00b788e0f8bb0d2dcb65a49a0c99739a9
1eaf0d12c9739c1c8be295800cc0cb0a0d9db8e2
/eval/simulation.py
171288c84661f4c35f46d532d71f1986050fce86
[]
no_license
juhuntenburg/nonlinear_coreg
5b3b95ba14a038c950e409bb9c0199828eb57422
c4faa41c5c1401eaf6955557750f3d9834dfa271
refs/heads/master
2021-01-10T09:25:09.714712
2016-01-28T07:34:46
2016-01-28T07:34:46
50,565,020
1
0
null
null
null
null
UTF-8
Python
false
false
9,002
py
# see readme file for how to get the simulated data #import libraries from nipype.pipeline.engine import Node, Workflow from nipype.interfaces import Function from nipype.utils.filemanip import filename_to_list import nipype.interfaces.utility as util import nipype.interfaces.fsl as fsl import nipype.interfaces.ants as...
[ "ju.huntenburg@gmail.com" ]
ju.huntenburg@gmail.com
e7982834dd489c2a5adb36b9cf06bc776b2f8548
c9379bc004a89a74e03ab59227c1a97d5ebc819e
/SEPT18B/Chef_and_Adventures.py
533c93dd7c599c73632ffde6e0557e8fa641a250
[]
no_license
Darkshadowrule/Competitive_Programming_Solutions
9ab966522311b72a79eab97c0b3dd8d85b0fde9d
ed9982b806c67e3ed383cb2069575c711fb53339
refs/heads/master
2020-03-31T02:49:55.679362
2019-08-20T14:44:26
2019-08-20T14:44:26
151,841,177
0
0
null
2018-10-07T13:50:46
2018-10-06T13:11:36
C++
UTF-8
Python
false
false
276
py
# cook your dish here for i in range(int(input())): n,m,x,y=map(int,input().split()) n=n-1 m=m-1 if(n//x==n/x and m//y==m/y): print("Chefirnemo") elif((n-1)//x==(n-1)/x and (m-1)//y==(m-1)/y and(n-1)>=0 and (m-1)>=0): print("Chefirnemo") else: print("Pofik")
[ "prajjwaldxi3@gmail.com" ]
prajjwaldxi3@gmail.com
6599fda660a020fbc1972dae24d4e1cb898e6c27
466660115eafd99b72f81339d86c5bcbf4c7efb0
/codes/15/spectrum_50HzRepeat.py
b04979b971b4acfdd85218fcd1fe02f82e9fb818
[]
no_license
CoryVegan/scipybook2
c2bb68c169c632ab389600034beb33ac921b0ba1
a8fd295c2f2d7ee18f351e5622ca7eeb4649ee50
refs/heads/master
2020-03-23T14:50:28.056482
2017-08-25T06:00:00
2018-06-02T14:18:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
# -*- coding: utf-8 -*- import numpy as np import pylab as pl t = np.arange(0, 1.0, 1.0/8000) x = np.sin(2*np.pi*50*t)[:512] pl.figure(figsize=(8,3)) pl.plot(np.hstack([x,x,x])) pl.xlabel("取样点") pl.subplots_adjust(bottom=0.15) pl.show()
[ "qytang326@gmail.com" ]
qytang326@gmail.com
80eecbbad4731c8487ee68a5f07ddf6b6984017d
415936fd518a0285ed47a0c0702f351179c69620
/common/views.py
777c0aa61428ff8498ab749ff32e4e33c449a019
[]
no_license
huhaiqng/djproject
1730a89218683fd97dc1007df9ce19ecd7e0829e
9c41dacf507fb4be28e889a63700bccc3af37def
refs/heads/master
2020-07-31T23:02:04.480372
2019-12-31T07:12:13
2019-12-31T07:12:13
210,779,417
0
1
null
2020-07-19T23:29:59
2019-09-25T07:11:41
Python
UTF-8
Python
false
false
18,953
py
from django.shortcuts import render,redirect,HttpResponseRedirect,reverse from django.views.decorators.csrf import csrf_exempt from dwebsocket.decorators import accept_websocket import paramiko from deployjar.models import * from django.core.paginator import Paginator from .models import * import socket from django.htt...
[ "hu158168" ]
hu158168
4b2aec7026e8d5b97ce07f443f08c72bc421e584
35a040eae2df4fe0e0f7048b7be7084da7934c8f
/03-10.py
843ed22d1198ef0a581f3c2c6ce601b4ce19b160
[]
no_license
hungapp/big_o
cf52203462e9d271cecb901af29f00e7b44574d6
2af0576b309a643d348d6df52951a20cbab746ef
refs/heads/master
2022-02-27T22:43:50.004087
2019-10-14T17:50:22
2019-10-14T17:50:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
# 10935 uva throwing cards import queue while True: n = int(input()) if n == 0: break deck = queue.Queue() for i in range (1, n + 1): deck.put(i) discarded = [] # size >= 2: # discarded.add(deck.get()) # deck.add(deck.get()) while deck.qsize() >= 2: discarded.append(deck.get()) ...
[ "hunnguyen@tripadvisor.com" ]
hunnguyen@tripadvisor.com
3853cfc54e250b5bcef0bcad7cadaef4cfaad522
744f3452ffadb99e932391c7aac3d60f6ddcb259
/Dashboard/LogParser/NeutuLogParser.py
8a41853b9d8d72167d54f6e8d9c8d3db6ecd2e48
[ "MIT" ]
permissive
janelia-flyem/DVIDScripts
16bfa1090461aaa72d422dcd86cb198768518996
4738c3d8af6ab7edabce0d248fddc29327d081a9
refs/heads/master
2020-04-06T13:55:09.501525
2016-11-01T20:00:10
2016-11-01T20:00:10
47,574,541
0
0
null
2016-06-07T17:25:51
2015-12-07T19:34:27
JavaScript
UTF-8
Python
false
false
6,634
py
import os import re import sys from datetime import datetime, timedelta import json import argparse from pprint import pprint import neutu_log_module as nt def calctimings(log): single_log = {} for end_type, chunk in nt.loadchunks(log): start, stop, duration = nt.parsefortime(chunk) chunk_time = nt.getworking...
[ "weaverc10@janelia.hhmi.org" ]
weaverc10@janelia.hhmi.org
96a2cacdcd037bcf6449b66ff12d4873ec8b85e0
a885bf84322df537c4648974d03a7a7a2108a062
/Code_for_Classification/ABR_CNN/model/mel_22_33_cnn_v0.0.2.py
935c7088cbb3597435d1071c66a2d3135fd18a73
[ "MIT" ]
permissive
puyaraimondii/biometric-classification-of-frequency-following-responses
2120e510fd76d07ef94b27fc599889aa3ba8e932
f5b5dca516592be451a3133acb8fa178519bc991
refs/heads/main
2023-04-05T20:50:30.548543
2021-04-20T15:39:15
2021-04-20T15:39:15
353,116,578
1
0
null
null
null
null
UTF-8
Python
false
false
5,694
py
# 1. set up train validation test split import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.layers import Bat...
[ "brucesun0122@gmail.com" ]
brucesun0122@gmail.com
d183ed3228a22b349e37f909003e3df337f583d1
a3d4cd934ea67157ff33f07a6b0dad73add76739
/models/models.py
460b82f69895c157c9219fc0c6c01efee232a2dd
[]
no_license
saramoyano/Incidencias
9a0cd4cc996f562ad822dcf950c1028573ec0dbc
6b8df95e36c0a6bae0207d93f839d71e00bee155
refs/heads/master
2022-11-11T13:23:01.477575
2020-07-01T15:00:22
2020-07-01T15:00:22
276,407,331
0
0
null
null
null
null
UTF-8
Python
false
false
4,707
py
# -*- coding: utf-8 -*- from odoo import models, fields, api class Incidencia(models.Model): _name = 'examen_ut3.incidencia' name = fields.Char(compute="_calcular_nombre") description = fields.Text(required=True) fecha_inicio = fields.Date(required=True, default=fields.Date.today) fecha_fin = fi...
[ "7975891@alu365.murciaeduca.es" ]
7975891@alu365.murciaeduca.es
3e2d2ca36519027c1ba92fbbfab8c38a0064069c
08ce4f3e350704a3ce35e1d4cf97f10ea6e634e1
/Pythonweb/8Flask/venv/bin/wheel
4e9cc3ad4b20df706709209e6f52107b2a5e80e9
[]
no_license
tqvv/first-linux
22c193582e1553d548714b429a02bb2f7176b01e
4a285738387d79fc9295a2f606393bf76a7a9a84
refs/heads/master
2021-07-10T18:40:57.592338
2017-10-12T16:34:10
2017-10-12T16:34:10
106,262,288
0
0
null
null
null
null
UTF-8
Python
false
false
259
#!/home/tqvv/PycharmProjects/Pythonweb/8Flask/venv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "tqvv@foxmail.com" ]
tqvv@foxmail.com
939d450330b0fb24f8dd86ede70d63af06cba57e
3851b7b888873d57f2e4718931cd492a31bc6c2c
/hohmannmoon.py
36eacbdd4f217c287fab1f7bc73ce5dda9729135
[]
no_license
kadivadavidak/hohmannmoon
4943c3d88ef8f00bea382f8e73ebe20bf0b136be
7be71a5f1446003b9ee714735409131ee22e998c
refs/heads/master
2020-04-11T05:59:55.751719
2018-12-13T01:31:48
2018-12-13T01:31:48
161,567,014
0
0
null
null
null
null
UTF-8
Python
false
false
7,858
py
GlowScript 2.7 VPython # Hohmann Moon Transfer Orbit # David Kirschman # 2018-12-12 # Transfer orbit from earth to moon #Set Scene scene.background = color.white scene.userspin = False scene.fov = 0.01 scene.width = 600 scene.height = 600 # Setup variables for the system t = 0 xInit = x initRate = 2000 # Moon varia...
[ "noreply@github.com" ]
kadivadavidak.noreply@github.com
336f4d4411eeba5c0c893551a99f095742759f77
f0da7148bc760f9849d459e7a22bc8cb9d2b1abb
/covid codes/covid_diag_date.py
c863fc3bad0475cfd3fece1dd38bb2c75dcdb74e
[]
no_license
surajplk3/covid19
d4fa090956f21948e01883e7b9f3d953de588476
aa15fd82f650a51354ea27ab55f0fc5e6370b971
refs/heads/master
2022-04-14T16:20:11.714642
2020-04-11T04:19:41
2020-04-11T04:19:41
254,706,316
1
0
null
null
null
null
UTF-8
Python
false
false
691
py
# -*- coding: utf-8 -*- """ Created on Fri Apr 10 18:36:00 2020 @author: utpal """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns df = pd.read_csv('IndividualDetails.csv', parse_dates=['diagnosed_date'], dayfirst = True) newdf = df['diagnosed_date'] newdf = pd.DataFrame...
[ "suraj.plk3@gmail.com" ]
suraj.plk3@gmail.com
cb59a8916dc8473cadb40e803cec48e07088e241
9fbbccf6368d190fcc6c2a51bbc3cb82aec7bf44
/day_seven/protocol.py
f1ea727c064f496a598c81e67e09224095ecccf3
[]
no_license
alkemann/advent2016-python
351fe507411cdafa1f194440f580ed79deac5150
d0338c085c27447c938c9d7917f7f8e843ddddca
refs/heads/master
2021-05-04T10:47:14.569873
2017-11-30T09:40:14
2017-11-30T09:40:14
50,387,666
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
import re def has_ssl(ip): length = len(ip) in_brackets = False i = 0 while i < length - 2: c = ip[i] if c == '[': in_brackets = True elif c == ']': in_brackets = False else: o = ip[i + 1] if not in_brackets and c is ip[i+...
[ "alek.morland@gmail.com" ]
alek.morland@gmail.com
bd877cacf7bca0b2ec599f3b58d0811bbde3dfea
0862f957fc35401b6b7ade3a3d361d7df90c8ae9
/src/jsonscript/interpreter.py
9c7942a8421f4610f6dbaa7b7845f98c1d47046f
[ "MIT" ]
permissive
m3g4p0p/jsonscript
546aed8c17faf8b58ca22db32286697ee0890907
9f55c46bd75c5f55a6fa8235abeffa8e5d8ee31b
refs/heads/main
2022-12-18T11:26:58.382018
2020-08-15T11:30:52
2020-08-15T11:30:52
301,088,179
0
0
null
null
null
null
UTF-8
Python
false
false
3,677
py
from functools import partial, reduce from itertools import chain from .module import ( get_exports, update_exports, resolve_module, init_module ) from .prefix import ( resolve_prefix, is_assignment, is_directive, is_binding, ) from .std import std from .util import ( assign, ge...
[ "bassistsagainstracists@gmx.net" ]
bassistsagainstracists@gmx.net
9361603f524a0d1e30f0a17a54c5c6ff4b05b2a6
a5ad207961fddfb0bab8c7471b6f91b69865e0fc
/app/agis/models/enormal/menu.py
09ca2c47c0709f53c80e61db7cfffc14356895c6
[ "LicenseRef-scancode-public-domain" ]
permissive
yotech/agis
b2465fc340e366fbe0267c4000bb0ae728386399
4abbecd175337d4942ac133847ce8fc870670571
refs/heads/master
2020-12-15T09:10:58.076323
2016-05-10T14:36:54
2016-05-10T14:36:54
32,155,630
0
2
null
2016-05-10T14:36:54
2015-03-13T12:52:01
Python
UTF-8
Python
false
false
687
py
# -*- coding: utf-8 -*- from gluon import * from agiscore.gui.mic import Accion if not request.ajax and request.controller != 'appadmin': # import si se necesita from agiscore.gui.escuela import escuela_menu from agiscore.gui.unidad_organica import unidad_menu from agiscore.gui.enormal import enormal_m...
[ "ybenitezf@gmail.com" ]
ybenitezf@gmail.com
43889f7adf66d737f736433ada368b6276a9ccac
ce06d306de5f10d20eccd4cd0edde33638d6f3a1
/myblog/myblog_views.py
4692c7dbd5ee118a457cc2607e00e91d590c81f1
[]
no_license
sauravjha221/my-first-blog
3a6dce2b702e76a8f2623528516566c63cf3f519
667d7661613607a0c42c7d725c7fe9ed908f20ea
refs/heads/master
2021-01-11T15:03:49.276970
2017-11-14T19:25:20
2017-11-14T19:25:20
80,291,412
0
0
null
2017-11-14T19:25:21
2017-01-28T15:19:11
Python
UTF-8
Python
false
false
224
py
from django.shortcuts import render from django.http import HttpResponse from django.template import loader def index(request): template = loader.get_template('homepage.html') return HttpResponse(template.render(request))
[ "sauravjha221@gmail.com" ]
sauravjha221@gmail.com
c52f3e1bfc686f4b2741b8f938e0509c68500366
35b099848dbd310ae3b5c892c640785e8f33ec13
/online_system/manage.py
838e518e57bdb3b808ed00a8eb9b145dd0b7dbf1
[]
no_license
shubhamupadhyay99/Online_system
66579eba4916b05078011552a88dddb610180794
a2c2794d2d5b867bc24b6eb15f8eeb8743ebab5c
refs/heads/master
2020-11-25T16:35:04.203704
2019-12-18T04:32:47
2019-12-18T04:32:47
225,323,135
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'online_system.settings.base') try: from django.core.management import execute_from_command_line except ImportError as exc:...
[ "noreply@github.com" ]
shubhamupadhyay99.noreply@github.com
778cba9d73eea69ab1460f031f62cff3f506dd80
e01747dd6e85d2f292f722303de8a6d0857d7baa
/music/reproductor/rep.py
e76e7d9d50d9600f44ef2b7c04011ffb1738aad6
[]
no_license
Chaguin/PruebasPython
72ce5ee8c98162e3f73637ce84187087a3887858
01d739a270c11d0d904895cbdf71e72ee8089848
refs/heads/master
2020-09-01T07:47:37.044875
2019-11-01T04:23:01
2019-11-01T04:23:01
218,912,394
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# -*- coding: utf-8 -*- import sys import reload import pygame.mixer import pygame.cdrom pygame.mixer.init(44100, -16, 2, 4096) reload() sys.setdefaultencoding() pygame.mixer.music.load('E:\Documentos\PRUEBAS PYTHON\music\reproductor') pygame.mixer.music.play() pygame.mixer.music.set_volume(0.5)
[ "noreply@github.com" ]
Chaguin.noreply@github.com
63f4970d203971e6b87ce1413f3580da08d7436c
5f9bdfc588331ef610ba01d7ef90c4f8a96fdc63
/plot.py
3d8ca3134805bf8f081d2405810a8936d42eb86c
[]
no_license
imrehg/fuel
1c3c73c79f0aaf500a6024bd4fc32980987201c7
41c2afa3506172eab31ac1618e6ea3706277fef1
refs/heads/master
2016-09-10T09:58:26.424418
2011-05-05T06:10:21
2011-05-05T06:10:21
1,702,343
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
import numpy as np import pylab as pl from matplotlib.transforms import offset_copy filename = "data.csv" types = {'names' : ['code', 'name', 'gdp', 'ppp', 'oilout', 'oilin', 'price'], 'formats' : ['S30', 'S30', 'f4', 'f4', 'f4', 'f4', 'f4'] } data = np.loadtxt(filename, delimiter=",", dtype=types) ...
[ "imrehg@gmail.com" ]
imrehg@gmail.com
8668384044ca509a73507605c8a99010b106646c
066ed780ba6423ff0e943a30524c7e5d205d4f67
/saleor/dashboard/menu/utils.py
5c272298465f2fcab53199f331049b8f5cea6b6c
[ "BSD-3-Clause" ]
permissive
iamishraqhc/saleor
24289fe4ecccee3af5bdcae936b010254a1e1080
4e1a0a81812c5914c38c7382506479f8d8522b55
refs/heads/master
2023-02-22T13:38:52.120807
2020-05-31T09:29:09
2020-05-31T09:29:09
165,777,840
1
1
BSD-3-Clause
2023-02-07T21:59:03
2019-01-15T03:19:44
Python
UTF-8
Python
false
false
3,151
py
import json from django.db.models import Q from ...menu.models import Menu, MenuItem from ...page.models import Page from ...product.models import Category, Collection def update_menu_item_linked_object(menu_item, linked_object): """Assign new linked object to a menu item. Clear other links.""" menu_item.ca...
[ "ishraqhaider.chowdhury@graaho.com" ]
ishraqhaider.chowdhury@graaho.com
6cc53beb34a4c17d3e26c052d61fb4527ce2d5d2
4302d3ceaa44e62dc8f752a604b60f6bfbea8242
/mmcv/runner/hooks/logger/wandb.py
2de257781d6475a002043361b9435fb92b96014a
[ "Apache-2.0" ]
permissive
dingmyu/mmdetection
096f7d8c3a2ef2779d1fe3d87049e4306381dda0
705dc91ca43ea62f4f69355a81271d5bd81268ca
refs/heads/master
2020-11-25T05:50:20.079304
2020-02-21T03:06:57
2020-02-21T03:06:57
228,527,081
0
0
Apache-2.0
2019-12-17T03:42:23
2019-12-17T03:42:22
null
UTF-8
Python
false
false
1,361
py
# Copyright (c) Open-MMLab. All rights reserved. import numbers from ...dist_utils import master_only from .base import LoggerHook class WandbLoggerHook(LoggerHook): def __init__(self, log_dir=None, interval=10, ignore_last=True, reset_flag=Tru...
[ "d130143597@163.com" ]
d130143597@163.com
98915198b2d3d87da7b8d1d3f4d86a9605663a1b
5202f34c1f7016ca40d8aa454ebc1f01ba1fe79e
/server/client.py
c422045997321cd877b60f13e08641fa958d934a
[]
no_license
kkevinchou/sam
91173fb4a9131ef6747e929338324c6fc9d8e21e
0e0cc192234094f4524fd64f59986f4ac25ab34e
refs/heads/master
2020-06-04T17:46:41.882392
2014-01-26T22:59:16
2014-01-26T22:59:16
16,225,133
1
0
null
null
null
null
UTF-8
Python
false
false
474
py
import socket import sys HOST, PORT = 'localhost', 8887 data = '{"action": "player_connect"}' # SOCK_DGRAM is the socket type to use for UDP sockets sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # As you can see, there is no connect() call; UDP has no connections. # Instead, data is directly sent to the re...
[ "kchou@tinyco.com" ]
kchou@tinyco.com
f9c167a3a2c771ee929c0917fcd59a3570853e4f
2074d6e741e7e79ec8368377a7a6d1dcabb94d67
/src/python/S04_printing.py
02256b5d56a180c6df1f90810b92a9f4b94e6e11
[]
no_license
alex-pakalniskis/Intro-Python-I
177fde638b7e1bdd91f0fb7fcea226bfd271dd44
df55e757ebc555e1460c1a5dbd0ed0299812f930
refs/heads/master
2022-09-20T19:31:24.483927
2020-06-04T03:07:53
2020-06-04T03:07:53
268,584,651
0
0
null
2020-06-01T17:14:20
2020-06-01T17:14:19
null
UTF-8
Python
false
false
601
py
""" Python provides a number of ways to perform printing. Research how to print using the printf operator, the `format` string method, and by using f-strings. """ x = 10 y = 2.24552 z = "I like turtles!" # Using the printf operator (%), print the following feeding in the values of x, # y, and z: # x is 10, y is 2.25...
[ "alexpakalniskis3@gmail.com" ]
alexpakalniskis3@gmail.com
60ef15920e2df990a1a7215da4cc819aa82ebc58
e8e088b8dd38ec3509c3ff7bfb7c83e800414f5e
/conductor/conductor/tests/unit/api/controller/v1/test_v1_root.py
512c0c200fe2df7b4923dd24b3df674d6ff3617a
[ "Apache-2.0" ]
permissive
onap/optf-has
ef5a86bb22c15dad3d54f9652ad8903a06bcb655
9c828b70d48d6c7d6668eda4d61239cfb2b28570
refs/heads/master
2023-07-20T23:09:22.393581
2023-07-03T12:36:45
2023-07-03T12:36:45
115,063,283
5
4
NOASSERTION
2021-06-29T19:10:06
2017-12-22T01:33:24
Python
UTF-8
Python
false
false
1,110
py
# # ------------------------------------------------------------------------- # Copyright (c) 2018 Intel Corporation Intellectual Property # # 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...
[ "dileep.ranganathan@intel.com" ]
dileep.ranganathan@intel.com
ef3f4ca1f02f57a1d00a845f054e57b10411e8c5
25b914aecd6b0cb49294fdc4f2efcfdf5803cc36
/homeassistant/components/trafikverket_weatherstation/config_flow.py
103af1c7eb4157ad3f6eb2f593bd8fa981f47a36
[ "Apache-2.0" ]
permissive
jason0x43/home-assistant
9114decaa8f7c2f1582f84e79dc06736b402b008
8bf6aba1cf44ee841de063755c935ea78040f399
refs/heads/dev
2023-03-04T01:14:10.257593
2022-01-01T12:11:56
2022-01-01T12:11:56
230,622,861
1
1
Apache-2.0
2023-02-22T06:15:07
2019-12-28T14:45:43
Python
UTF-8
Python
false
false
2,802
py
"""Adds config flow for Trafikverket Weather integration.""" from __future__ import annotations from pytrafikverket.trafikverket_weather import TrafikverketWeather import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_API_KEY from homeassistant.helpers.aiohttp_client i...
[ "noreply@github.com" ]
jason0x43.noreply@github.com
b464fca1bb2e46c78e2e37b913633e930aa13bb9
1b3fc35ada474601a76de3c2908524336d6ca420
/day10/my/Meizitu/Meizitu/start.py
9b9063bac0c96d2345c8dab199a5ff64631d28ad
[]
no_license
dqsdatalabs/Internet-worm
db3677e65d11542887adcde7719b7652757a3e32
62f38f58b4fa7643c482077f5ae18fff6fd81915
refs/heads/master
2022-01-16T14:29:52.184528
2018-12-25T08:46:08
2018-12-25T08:46:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from scrapy import cmdline # cmdline.execute('scrapy crawl meinvtu'.split()) cmdline.execute('scrapy crawl meinvtu2'.split()) # cmdline.execute('scrapy crawl meinvtu3'.split())
[ "aaa1058169464@126.com" ]
aaa1058169464@126.com
36a36f5f168822ac47b387e889cbc36fadb4707e
1df5b64f7e30f3ef4a1f0f61f8c99d6a235d330c
/ptb_parser.py
6ed30f650c445e5f16bc0dea8374b1ec5c40e802
[]
no_license
wjack/QMemNet
7ba305398751595df2baae4348e8f46b9a2586db
d90869aae5d5734e0e067293a5653eb8a28270eb
refs/heads/master
2021-01-09T21:58:47.468218
2015-11-20T22:01:35
2015-11-20T22:01:35
45,767,676
4
2
null
null
null
null
UTF-8
Python
false
false
2,488
py
# pylint: disable=unused-import,g-bad-import-order """Utilities for parsing PTB text files.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import os import sys import time import numpy as np import tensorflow as tf import nltk from skle...
[ "wjack@mit.edu" ]
wjack@mit.edu
ee871cd72bc5b1dc655bf57c87757136f718cbd0
a20b1081a58059383a158b730dd35f62673a9e22
/Learning from Data/4_biasvariance/biasvariance.py
2a22982ddd62da99a0bab4f5e21ea27797036945
[]
no_license
kdpenner/poocs
3d104ec56805ccaa604ebfa30faf3737ba86759d
113b5c4c23a36bc448de8b0f80b46a551155a95e
refs/heads/master
2021-01-01T20:00:20.340783
2015-05-21T14:55:30
2015-05-21T14:55:30
27,941,794
0
0
null
null
null
null
UTF-8
Python
false
false
1,971
py
#!/usr/bin/python -tt import numpy import matplotlib.pyplot as plot def linreg(): N_points = 2 x = numpy.random.uniform(low = -1, high = 1, size = (N_points, 1)) y = numpy.sin(numpy.pi*x) x_dagger = numpy.dot(numpy.linalg.inv(numpy.dot(x.T, x)), x.T) # print numpy.sum(x*y)/numpy.sum(x*x) w = nu...
[ "kdpenner@users.noreply.github.com" ]
kdpenner@users.noreply.github.com
3a1d59865dfce3ac2e286e1bc46c66d7a83d631e
c9ab4257b894a2d992233efdbdd468b82ee84876
/button.py
63c5f2fc1fd2d6ff9e82ef07baa2683cb28f7f9b
[]
no_license
GochaUgulava/alien_invasion
fe237c7dae6577a74353f6ca524cfadaa408199f
11bef98de6fe47b00ad654853cd8c5b7c5deddd7
refs/heads/master
2021-04-08T09:42:33.435234
2020-03-20T13:47:26
2020-03-20T13:47:26
248,763,461
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
import pygame.font class Button: """ class for play button """ def __init__(self, game_set, screen, msg): self.screen = screen self.screen_rect = screen.get_rect() self.width, self.height = 300, 100 self.button_color = (0, 255, 0) self.text_color = (255, 255, 255) ...
[ "gochaugulava@gmail.com" ]
gochaugulava@gmail.com
ba16d3f1f5e3298952b25368f81618f8c2d92a94
ec480987526842d5215a23473ea74a57e5a44c3b
/lenstronomy/Data/pixel_grid.py
87af1967be853d5ed2526ec184e0fa849d9c12b3
[ "MIT" ]
permissive
SSingh087/lensotronomy-1.7.0
1e29255823cb7719cd8c39b45caccca6400e0c15
3e454352230e0a1365e13c90df3a5bb1c0067645
refs/heads/main
2023-07-16T19:36:12.590405
2021-08-14T03:45:08
2021-08-14T03:45:08
375,677,493
1
0
null
null
null
null
UTF-8
Python
false
false
2,175
py
import numpy as np from lenstronomy.Data.coord_transforms import Coordinates, Coordinates1D __all__ = ['PixelGrid'] class PixelGrid(Coordinates): """ class that manages a specified pixel grid (rectangular at the moment) and its coordinates """ def __init__(self, nx, ny, transform_pix2angle, ra_at_xy...
[ "shashwat98singh@gmail.com" ]
shashwat98singh@gmail.com
fdbc1f43a71346831be0842082d897421cd4a1c8
369ef21cc6a766154776ab49005723fcc1ae2bb3
/inflearn/dataset_load.py
1ab0fc99ee754836c789d60c71be77a0048c7db8
[]
no_license
xxoellie/all_of_tensorflow
28403d5adcc49a58b13704682bfb0e63bc6d7712
638617f55d5ad7cac7139e8d60ee18ff6cf64b27
refs/heads/master
2023-08-29T22:19:03.280076
2021-10-26T00:58:59
2021-10-26T00:58:59
419,736,514
0
0
null
null
null
null
UTF-8
Python
false
false
1,527
py
import numpy as np import tensorflow as tf import sys from tensorflow.python.eager import context train_x = np.arange(1000).astype(np.float32).reshape(-1,1) train_y = 3*train_x + 1 train_ds = tf.data.Dataset.from_tensor_slices((train_x, train_y)) train_ds = train_ds.shuffle(100).batch(32) # for x, y in train_ds : #...
[ "elliesohyeon1202@gmail.com" ]
elliesohyeon1202@gmail.com
c7c6ddccb752e6215bef5c942cbca995497d4b16
ece57b240e2644502b438cf3628ed779e711ae2c
/utils/meshcat_viewer_wrapper/visualizer.py
34b73fc207f92474622b7784bb8da01a8ecbb6c8
[ "BSD-3-Clause" ]
permissive
fengzileee/supaero2021
3873a6bdda2dfcda5144210391848ea4038cda2c
1f2b32ac2b2974bc3e751dd114716847c8650242
refs/heads/main
2023-07-11T12:41:20.886265
2021-07-13T16:44:52
2021-07-13T16:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,117
py
import numpy as np import meshcat import pinocchio as pin from pinocchio.visualize import MeshcatVisualizer as PMV from . import colors def materialFromColor(color): if isinstance(color,meshcat.geometry.MeshPhongMaterial): return color elif isinstance(color,str): material=colors.colormap[color] elif isins...
[ "nmansard@laas.fr" ]
nmansard@laas.fr
a69bb7598337b910f322bcf2f158a3c6f8a5fe70
f910033c2ddb9544a249b4740112892824ec4d44
/accounts/serializers.py
b78924419df6e43d9725fd07983d810ce3268997
[]
no_license
arviesan24/social_media
b110282597888a18b7321f1e4ba4ba4ce614ea6f
faee901943371ed85f8ecde456b342efdb07e865
refs/heads/master
2022-04-30T07:08:50.600972
2019-05-18T14:51:59
2019-05-18T14:51:59
189,255,156
0
0
null
2022-04-22T21:19:44
2019-05-29T15:45:57
HTML
UTF-8
Python
false
false
2,337
py
"""Serializers for Accounts app.""" from rest_framework import serializers from . import models class UserSerializer(serializers.HyperlinkedModelSerializer): """Serializer for User model.""" class Meta: model = models.User fields = ( 'url', 'username', 'email', 'active', ...
[ "ctechnology24@gmail.com" ]
ctechnology24@gmail.com
4f02f47d567cc9ed98d4c954889ee0a2271d002c
6c1ca203fef93643ea0e4d5ef11d19f54d041504
/test/test_health_status.py
574f71d9f4634952a8a60f4d6446741894fc6cdd
[ "MIT" ]
permissive
marmikreal/airflow-python-sdk
0ad03d7213101dc4d4a4dbbf654d8c1c4f78e395
70b5d08955a9e218fa6163b0612856e09eedce63
refs/heads/master
2023-03-26T19:53:21.083972
2021-04-02T16:31:18
2021-04-02T16:31:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,332
py
""" Airflow API (Stable) # Overview To facilitate management, the Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This mea...
[ "zach.z.liu@gmail.com" ]
zach.z.liu@gmail.com
ec0caebdf95faefbd3e6e1aafb4ecea66eb45168
0f85889da823218f2bbed3b524ee43389432aacb
/populate_scenario_close_open.py
2a3a0ebb1d5896ce88cbd012fd03447afcf46a29
[]
no_license
tonyflo/cordurn_backend
2ac848f95cd176c9c7917a462941e778a5884810
ca5d7d3743569e8021c56e0afdaf82fb303ed3c1
refs/heads/master
2020-08-30T06:19:12.004197
2016-06-14T01:05:12
2016-06-14T01:05:12
218,288,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,102
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 7 19:46:02 2016 @author: tony """ import MySQLdb def populate_scenario_close_open(): try: conn=MySQLdb.connect(host="mysql.cordurn.com", user="vptfitm", passwd="K0naBrewingC0", db="cordurn") conn.autocommit('on') print('Connected to MySQL db...
[ "tflorida17@gmail.com" ]
tflorida17@gmail.com
4dc887d06be135e85b8c750d90b707effa4d6aee
08c4592629f79b1890dd0a23cc01656ed1094c30
/school/urls.py
cf92a5c5a6515ef51ee98050e137b9a0b03c5cfe
[]
no_license
Dean-shiyi/django_school
5ffbf6b5e189a3e3cac7404d8fe0178364e81f6d
59419a165d4d962d87d3f12d37e80df98679e643
refs/heads/master
2020-05-20T03:59:31.495713
2019-05-10T10:01:43
2019-05-10T10:01:43
185,372,280
0
0
null
null
null
null
UTF-8
Python
false
false
1,791
py
"""school URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-bas...
[ "admin@shiyi.local" ]
admin@shiyi.local
954003c011927ceac919c0a3558e60f527ea4cad
8158465c55d9279e50a17e1e111f613fff0eab4f
/Grumblr/grumblr/migrations/0007_auto_20151004_2338.py
5e411fc420105788f7802d1612d379cf01133168
[]
no_license
charliewang92/project
223a6374f2fbe8206f4ef51bf0d91151bbb514ce
b1a41e2d28204d7489670e79720ae610cf209115
refs/heads/master
2021-01-17T14:30:53.699996
2016-07-16T18:34:13
2016-07-16T18:34:13
43,920,183
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('grumblr', '0006_grumblruser'), ] operations = [ migrations.AlterField( model_na...
[ "charliewang92@gmail.com" ]
charliewang92@gmail.com
11f96be98b5c5a354373930a6d5cc0d583e6f56f
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/jg4.py
512215a3807d0213823f517008cc4bdcbfc83ab2
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
895f55c73c05abed86e355cd53adbf875d22d6f5
c46ef0ccf030cee783a75d549e3c9bc0810579ff
/tutorial-contents/405_DQN_Reinforcement_learning.py
20fa80cdeeb85f8daeac040cef09380718a56006
[ "MIT" ]
permissive
cocodee/PyTorch-Tutorial
37827b3daa5de1dee6ca174161d948a1933d4453
a7b14b80913485735a3ee87da6998a511a1f1950
refs/heads/master
2021-07-19T16:01:13.106848
2017-10-26T22:06:10
2017-10-26T22:06:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,348
py
""" View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/ My Youtube Channel: https://www.youtube.com/user/MorvanZhou More about Reinforcement learning: https://morvanzhou.github.io/tutorials/machine-learning/reinforcement-learning/ Dependencies: torch: 0.2 gym: 0.8.1 numpy """ import torch import...
[ "mz@email.com" ]
mz@email.com
25ea536a18938b55f803948192960e98a1cb31a7
546661af492ac021a797fdbae98cf0d73a85dcb6
/pset1/ps1_partition.py
3c1a1c58ac6e6e659b1dc8d651565e65dcf1e7f7
[]
no_license
FateXRebirth/MITx-6.00.2x-
1e21a0759b4ad350575f6501c1f5f4f81dd9492d
8f704f0c7938ce62cd55fc45b149eb0ebd671805
refs/heads/master
2021-01-19T23:52:30.633846
2017-05-01T06:16:06
2017-05-01T06:16:06
89,043,043
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
#From codereview.stackexchange.com def partitions(set_): if not set_: yield [] return for i in range(2**len(set_)//2): parts = [set(), set()] for item in set_: parts[i&1].add(item) i >>= 1 for b in partitions(parts[1]): ...
[ "FateXRebirth@gmail.com" ]
FateXRebirth@gmail.com
d17dd4f3b9f61b3e1801ba67e7634cf81fb2742e
648162a451d10d0e4d9234f37d9e41ecf953df71
/app/core/migrations/0005_recipe_image.py
680a668fe8e2b19fdac93b288e8084db0e10a8b6
[ "MIT" ]
permissive
coreycoole/recipe-app-api
2fbe46b36d7ecb65ccb314c6216e590062b73708
e0803898b9e6dfedb3e52c607ca2c915ce21e78a
refs/heads/main
2023-06-06T07:23:36.156706
2021-06-29T00:32:15
2021-06-29T00:32:15
369,918,440
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
# Generated by Django 2.1.15 on 2021-06-28 04:06 import core.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_recipe'), ] operations = [ migrations.AddField( model_name='recipe', name='image', ...
[ "coreycoole@MacBook-Pro.local" ]
coreycoole@MacBook-Pro.local
615d6cfeafcfe95a0b3e8aefee6f571baf69f697
dc9d2f036ef72f254db5d0ba9e4cc8dcd95aa4aa
/WebCrawler by Bucky.py
f19ac7e98901e43ff512090c967cf9b3627184c6
[]
no_license
YhHoo/Python-Tutorials
d43171a21fb8d51271c66bea6f2566ff3effc832
9774dd5b3f0b9d0126d4a2bcbac347348e914b71
refs/heads/master
2021-09-03T21:23:22.099224
2018-01-12T03:33:23
2018-01-12T03:33:23
110,725,041
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
''' THIS IS BUCKY WEB CRAWLER EXAMPLES ''' ''' HERE PART 1: Fetch all the href link in <a> tag of the page ''' import requests from bs4 import BeautifulSoup def trade_spider(): url = 'http://www.ckmusic.com.my' # parent URL, rmb don't end with '/' source_code = requests.get(url) # connect to the web pa...
[ "hooyuheng@gmail.com" ]
hooyuheng@gmail.com
3d2649b1dc0da59e87d9650fdc443d6ac3042872
521efcd158f4c69a686ed1c63dd8e4b0b68cc011
/tests/test_utils/timetables.py
838ecb5323451c89d32a0c27b6e248c5acbe51f3
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
coutureai/RaWorkflowOrchestrator
33fd8e253bfea2f9a82bb122ca79e8cf9dffb003
cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f
refs/heads/main
2022-10-01T06:24:18.560652
2021-12-29T04:52:56
2021-12-29T04:52:56
184,547,783
5
12
Apache-2.0
2022-11-04T00:02:55
2019-05-02T08:38:38
Python
UTF-8
Python
false
false
1,746
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" ]
coutureai.noreply@github.com
94d63c75f91bc15b6f609c544b588c547cae2aae
820c0faf29ce639023e0b5b3220ab42d93a8495b
/Products/ZenModel/migrate/setMariaDbTimeouts.py
0ad92c58b870c01cd39ebad618411678879eaefc
[]
no_license
zenoss/zenoss-prodbin
7c736ec6c8e09a334a3f759b0e53c10ffc9c6a2a
1ea508c3d2b51742bc3b448c445cd0a3dba9e798
refs/heads/develop
2023-09-01T04:12:14.836439
2023-08-30T13:29:55
2023-08-30T13:29:55
10,389,144
27
29
null
2023-09-04T07:32:01
2013-05-30T18:36:05
Python
UTF-8
Python
false
false
1,497
py
############################################################################## # # Copyright (C) Zenoss, Inc. 2016, all rights reserved. # # This content is made available according to terms specified in # License.zenoss under the directory where your Zenoss product is installed. # ##################################...
[ "carl@vinebranches.com" ]
carl@vinebranches.com
d80b6b89a25564d8fa8790e453a5c7c476769ade
aab6e559ce87c8ddf2f5b0b25f92d42a13bdf702
/Module9/examples/netconf/ctrl_capabilities.py
6e0ea4374b2fe0e6af78fb9ae627cc6ba5fcca49
[]
no_license
s-garbuzov/PyNE
5bd86f3a7571fc75a99d7682c7377e155320ed94
2b8132e491ac69f59b79d22c6a8cb4263e16d889
refs/heads/master
2021-01-10T03:54:38.483557
2015-12-04T20:48:49
2015-12-04T20:48:49
44,407,912
0
0
null
null
null
null
UTF-8
Python
false
false
2,281
py
#!/usr/bin/env python """ Sample script that retrieves and shows NETCONF capabilities of the Controller """ # Python standard library modules import httplib as http # this package local modules from Module9.controllers.odl.controller import ODLController from Module9.controllers.odl.netconf_topology import NETCONFNo...
[ "gsf@elbrys.com" ]
gsf@elbrys.com
185e9bf209083a58cc3e05c24aa5c47f2572cd9b
c00e5d2b8bf2cc5fea026ffaabd26a127cdc41f1
/linkgraph/linkgraph_app/forms.py
8a0b77d1a8c9a97fa3b21c1a22ba0019676b6704
[]
no_license
Drznedaj/linkgraph
7deb9dd835dffcd6304df5ae542c9a7e2237acae
6c68e7e3a49b5254bb1c7b3449a578382d615225
refs/heads/main
2023-04-30T10:06:40.067178
2021-05-24T13:29:22
2021-05-24T13:29:22
369,167,828
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.forms import ModelForm from .models import Writer, Article class CustomUserCreationForm(UserCreationForm): class Meta: model = Writer fields = ('username', 'email', 'is_editor') class CustomUserChangeForm(UserCha...
[ "cvajblumen@gmail.com" ]
cvajblumen@gmail.com
16ff808606231b89b1720413ba6a98d65a1ea375
1ea77105dc42b6f7103ba93d00f981c546a10c63
/saas/scripts/init_price_policy.py
6280f4f1ca10e4c66263c544b66556a4ab0e8dc9
[]
no_license
cat-fans/web_back
23845ac5b73cf5ad99dcfd53c1b38d068dc8c9c9
1c405be433159223bf8e2f35aaf40d934b99ae9b
refs/heads/master
2023-03-02T21:57:15.888633
2021-02-04T22:07:59
2021-02-04T22:07:59
331,644,076
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
import os import sys import django base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(base_dir) os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'SaaS.settings') django.setup() from django.db import models from web import models def run(): exists = models.PricePolicy.objects....
[ "qaq_cat_fans@163.com" ]
qaq_cat_fans@163.com
32cfdd87226d303193c8392e399fa29e2acb19e7
00d7e9321d418a2d9a607fb9376b862119f2bd4e
/sandbox/demo_turtle_undo.py
931cafb0e9c9c9f5496dcd7d5da4abb55455705a
[ "MIT" ]
permissive
baluneboy/pims
92b9b1f64ed658867186e44b92526867696e1923
5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13
refs/heads/master
2021-11-16T01:55:39.223910
2021-08-13T15:19:48
2021-08-13T15:19:48
33,029,780
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
#!/usr/bin/env python from turtle import * for i in range(10): forward(100) left(90) forward(10) left(90) forward(100) right(90) forward(10) right(90) for i in range(30): undo()
[ "none" ]
none
65896134956b1a0d21f51e18c4c4728ec570d555
fed4cad9553b9ea4be9f52eb79477209570db23a
/python_scripts/pexpect_reboot.py
ca5d05b60023816eba10acfa02bbeecfca678d30
[]
no_license
zincsoda/devbin
00142ddf0d2f1fecfa37bb77baa6801d12bc9997
315002ebd096abbd3a3a6fbc2181aac467716899
refs/heads/master
2021-01-19T14:52:43.901479
2013-10-30T14:28:35
2013-10-30T14:28:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
#!/usr/bin/env python ''' Uses pexpect to logon to pdu and reboot certain machines ''' import sys import pexpect if len(sys.argv) < 3: print "usage: ./apc_reboot.py <apc_ip> <id1> [<id2>]" exit(1) apc_ip = sys.argv[1] machine1 = sys.argv[2] machine2 = "" if len(sys.argv) == 4: machine2 = sys.argv[3] c...
[ "steve.walsh@sap.com" ]
steve.walsh@sap.com
49b6112e1be3b45b26bf7f72760c35c921b79efb
751db61d03d819435338d270e75ae610c9fb1268
/manet-dtn/wscript
db45d20effcd94c81128bb89e24198e092ae2f28
[]
no_license
SuaveRichard/MINET2019_Research
a544bc6d82b17cd6c447314cefe32a37deb97571
20aac4469654d178092ead0a5c769a40fae4dd55
refs/heads/master
2020-09-22T01:50:02.266293
2020-01-11T10:20:12
2020-01-11T10:20:12
225,007,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- # def options(opt): # pass # def configure(conf): # conf.check_nonfatal(header_name='stdint.h', define_name='HAVE_STDINT_H') def build(bld): module = bld.create_ns3_module('manet-dtn', ['internet']) module.source = [ ...
[ "bp16014@shibaura-it.ac.jp" ]
bp16014@shibaura-it.ac.jp
6c480eedf63fb3b23986bdead3354dd3b065ad59
6afed1b1548c0f8f6442423908136e602e2cc890
/runexe/dist/main/src/fightResult.py
ef15906a2a74430b6ac2b4404a66507182c943a9
[]
no_license
dont-stay-up-late/software-engineering
12663869ae1cf4c20b238db71a4ea357e1ec4d4e
6b57c473e7cd9f08d9c7e4e8cf01a2e5d406f9ba
refs/heads/master
2020-07-31T13:22:24.198814
2020-01-03T10:31:48
2020-01-03T10:31:48
210,616,030
2
2
null
2019-11-08T12:48:59
2019-09-24T13:55:56
Python
UTF-8
Python
false
false
6,080
py
import pygame,sys,time from pygame.locals import * from src.path import path from src.models import * from src.map import * from src.bgm import * from src.equipments import * def endFight(screen, clock, modeID, flag_mapinfo, isWin, attackers, defenders, mapload, defendersID, attackersID, attackerPicOld, attackerDetect...
[ "m18101220382@163.com" ]
m18101220382@163.com
d8878e4c240a1df81923f2be1ccf471003596f27
711ed5ed4c69e2b9b6248f44fd8aa3a1b353577c
/IS 201/Examples/z_module5_exception_file_op.py
62ace4e434b60b8010efa4daf291e94ed81aacb4
[]
no_license
Ret-David/Python
e2a2f5bedba76f1e1106f24b2a2aeb4282e8fa15
fa2994c59b0ea238efe277c011017afea601ebc0
refs/heads/main
2023-07-27T15:12:46.552957
2021-09-09T23:30:40
2021-09-09T23:30:40
398,095,142
0
0
null
null
null
null
UTF-8
Python
false
false
4,499
py
# # - Exception Handling # while True: try: x = int(input("Please enter a number: ")) break except ValueError: print("Oops! That was no valid number. Try again...") while True: try: inChar = input("Please enter \"X\" or \"O\": ").upper() if(inChar == 'X' or inCha...
[ "david.a.martinez15@outlook.com" ]
david.a.martinez15@outlook.com
f2276f7e65fd1cded1b291ed6e217a163050705d
baafc9731096b0d51885c4e793dfe14aa779a6a4
/experiment_domainadapt_meanteacher.py
4619ba038a8fd6e2f607fafcfc578e087db0bb01
[ "MIT" ]
permissive
AliaksandrSiarohin/self-ensemble-visual-domain-adapt
ee095a059e588cd84eda1eff733122c736ff6670
0d8d036bb8fe65ae2dc8e713d383742c93521cc9
refs/heads/master
2020-04-06T15:42:06.353628
2018-11-14T18:00:01
2018-11-14T18:00:01
157,589,370
0
1
MIT
2018-11-14T17:58:33
2018-11-14T17:58:33
null
UTF-8
Python
false
false
24,376
py
""" Incorporates mean teacher, from: Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results Antti Tarvainen, Harri Valpola https://arxiv.org/abs/1703.01780 """ import click @click.command() @click.option('--exp', type=click.Choice(['svhn_mnist', 'mnis...
[ "brittix1023@gmail.com" ]
brittix1023@gmail.com
0563ccfcace9c68878dcee8c2ae4a64f1e154969
493ee321c961421eaf1edc38a2de93556b14cc78
/py_scripts/sample_nets_discrete_weights.py
a8adc8e54817405bc3cf38f8eb056085061552af
[]
no_license
guillefix/simpbias-tools
4127b7cb939b301074f30ed480b249e418d2eb2d
76ab7d1fc45b08ff33f61a39ac49d7df72b5f609
refs/heads/master
2020-05-18T12:53:51.388198
2019-05-01T14:46:14
2019-05-01T14:46:14
184,422,339
0
1
null
null
null
null
UTF-8
Python
false
false
6,634
py
import tensorflow as tf import numpy as np # from sklearn.metrics import confusion_matrix # import time # from datetime import timedelta import math from collections import Counter np.set_printoptions(threshold=np.nan) from KC_LZ import calc_KC import pickle import sys #(idx, N) = [int(ar) for ar in sys.argv[1:]] idx...
[ "guillefix@gmail.com" ]
guillefix@gmail.com
c119b58fd79cafa69e4acd27fbdbee3334e333d4
766d1840e7cf244e294896c79ad01160fdac48c4
/plotting_routines/misc/halo_selector.py
050098e9414a08d58e36ceaa6c8d4af87ab2bc53
[]
no_license
mooratov/Sasha-Muratov-codes
290c045bd4b90fedcfffee3b9123fcc1ca34a111
6cade012c25bfdfac7c55e58c61227f6f2aea566
refs/heads/master
2021-01-10T06:05:51.231079
2016-11-16T03:28:53
2016-11-16T03:28:53
48,888,665
0
0
null
null
null
null
UTF-8
Python
false
false
8,241
py
import sys import os import math from datetime import date import numpy as np import matplotlib.pyplot as plt import Sasha_functions as SF from tasz import tfora today = date.today() print today z_int_tolerance = 0.5 fhires_tolerance = 0.94 npart_tolerance = 5e4 doplots = 'y' if (len(sys.argv)<2): print 'syntax bl...
[ "mooratov@gmail.com" ]
mooratov@gmail.com
f246c19999b8be870b9e29f6507c314d5fea8821
5ffc3111779894e3ff161c21933f585acac36721
/2020F_hw6_submissions/shangstacy/StacyShangCh7P2.py
f668df6e9959d44525ae8e081e5c344848bf84ad
[]
no_license
Eric-Wonbin-Sang/CS110Manager
ac9b8efa5179fdc240e60736d685b2e850447b39
31b594b91c8ccd740a7915fb982cc7e7bc280346
refs/heads/main
2023-02-09T13:44:27.628976
2021-01-04T08:25:29
2021-01-04T08:25:29
321,807,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
# StacyShangCh7P2.py # CS 110 A HW 6 # Stacy Shang # I pledge my honor that I have abided by the Stevens Honor System -Stacy # This program accepts a date and checks whether or not the date is valid def main(): print("This program checks the validity of an inputted date.") date = input("Enter the date in the...
[ "eric.wonbin.sang@gmail.com" ]
eric.wonbin.sang@gmail.com
b06d0d074997ea00aafd40074701a98e48338e51
a11e5af74bb270d59f2c3a871495df1742204678
/evaluation.py
60518cca0385e9d7de175e5ee90e7ca57a78f944
[]
no_license
ns-rokuyon/kaggle-bengali-classification
7f38d3f438e40535ffa8ff2ff15f7ed6a40711cf
7a28190c99254767702448c68666cd73da493775
refs/heads/master
2022-04-09T04:31:22.520786
2020-03-17T06:15:30
2020-03-17T06:15:30
236,469,518
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
import numpy as np import sklearn.metrics def hierarchical_macro_averaged_recall(pred_g, true_g, pred_v, true_v, pred_c, true_c): score_g = sklearn.metrics.recall_score( true_g, pred_g, average='macro' ) score_v = sklear...
[ "ness3psi@gmail.com" ]
ness3psi@gmail.com
30a4f20cc66cd435aa5f1c61e2618945db9d0dca
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03775/s238849097.py
e1fbd653ac8d41a71208142afafc985c89f140a4
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
import math N = int(input()) ans = len(str(N)) for i in range(1, int(math.sqrt(N))+1): if N % i == 0: j = N // i k = max(len(str(i)), len(str(j))) ans = min(ans, k) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
42499fc2f051b56c4c4ec3113f61c2d0327f6fe2
e9fa26be4d9e7a725d3f889b6aa9cf5029f47c2d
/lib/sqlalchemy/sql/selectable.py
590c4d32dd9059e0da44d631c08a57ab22ee146c
[ "BSD-3-Clause" ]
permissive
ahriman-ru/azure-test
2e0ee70a8b453534cf82e44860f04dddd3ab8095
3c377163192139d046b4ec20ce5b44a0492aecd8
refs/heads/master
2021-07-17T03:53:14.025065
2017-10-20T12:04:11
2017-10-20T12:04:11
100,267,395
0
0
null
2017-08-14T12:54:01
2017-08-14T12:54:01
null
UTF-8
Python
false
false
131,244
py
# sql/selectable.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The :class:`.FromClause` class of SQL expression elements, representing ...
[ "root@MININT-HAS5VVP.europe.corp.microsoft.com" ]
root@MININT-HAS5VVP.europe.corp.microsoft.com
bfce3c180df9785f4b1ddb3651cdcc6f0e4a4fbb
d9b48307710d35a4656fc0fd6cb3e3ed2e895e2d
/codeTop/link-list/22链表中倒数第K个节点.py
37c6d77e7f5d0d3237ee6ca96c2104d721b6fb70
[]
no_license
odinfor/leetcode
a9137fb533c607509167b45a92fbdd076bbf82c4
d265eb981a7586d46d0ced3accc2ea186dc7691c
refs/heads/master
2023-05-25T23:02:17.457122
2023-05-16T08:57:02
2023-05-16T08:57:02
243,485,598
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/7/5 11:46 上午 # @Site : # @File : 22链表中倒数第K个节点.py # @desc : class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def getKthFromEnd(self, head: ListNode, k: int) -> ListNode: # 简单直观...
[ "yangjun@dinktalk.com" ]
yangjun@dinktalk.com
f56fead72b282e8b8135708cb3b9e5e8e1b808cf
557d51cd6c7459f3492f6e5e6a44e10b9026b805
/osipkd/views/akuntansi/ak_jurnal_item.py
c48df4ce5028c9d20d58ec888dc49af8df0ab6d5
[]
no_license
aagusti/zosipkd
e6a3bd8ca71b240dc3141c89dba252291c2c9ea7
fbb4fcc74d772a9f1692a4e8b45cb63ce77e85f2
refs/heads/master
2021-01-17T10:23:14.182025
2016-05-04T07:34:05
2016-05-04T07:34:05
28,517,748
0
0
null
null
null
null
UTF-8
Python
false
false
8,936
py
import os import uuid from osipkd.tools import row2dict, xls_reader from datetime import datetime from sqlalchemy import not_, func from sqlalchemy.orm import aliased from pyramid.view import (view_config,) from pyramid.httpexceptions import ( HTTPFound, ) import colander from deform import (Form, widget, ValidationFai...
[ "aa.gustiana@gmail.com" ]
aa.gustiana@gmail.com
fb90e8e5f424588febde9c9abbebf7d35a95076a
e497f3060a98581e0975db566b0b60e01da978e7
/src/naamataulu/api/migrations/0002_auto_20181024_1418.py
2a39e4fad2f97f8e9ee92c0ef3e1be4f5664c500
[ "MIT" ]
permissive
Honksu/naamataulu-backend
e512d8b3c0f49d36a55e9a0a8753f2c33b96748f
79300788f062ffac06be208814689683b55abb35
refs/heads/master
2020-04-25T17:55:43.855482
2019-02-03T21:34:27
2019-02-03T21:34:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# Generated by Django 2.1.2 on 2018-10-24 14:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='face_features', fi...
[ "kallonen.antti@gmail.com" ]
kallonen.antti@gmail.com
5ddc3470a08baf2e88626a2156e4d15e32f943ae
19710aeaa5c270818eb513586bd0941bfb4149bb
/utils.py
4f12b3f2ab0eb1bdd97ec43b8d97571381e357c6
[]
no_license
DadouneDa/RaceCar
34fb3cc8a51a30b29fd2e849627d9d100624222f
d1ade03c9d9155224b91e067e979c2ed51f52626
refs/heads/master
2023-09-01T14:54:07.562325
2021-10-18T11:37:36
2021-10-18T11:37:36
418,472,932
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import pygame def scale_image(img, factor): size = round(img.get_width() * factor), round(img.get_height() * factor) return pygame.transform.scale(img, size) def blit_rotate_center(win, image, top_left, angle): rotate_image = pygame.transform.rotate(image, angle) new_rect = rotate_image.get_rect(cen...
[ "David.Dadoune@audiocodes.com" ]
David.Dadoune@audiocodes.com
2a4361eed27401266db65745f6e2de63910dc4b1
201abab0f90f965f7814cc78a6d6be17d2784265
/python/pandemic_simulator/data/h5_data_loader.py
cc7c2fdd98e8bbf02390b0b6495866bb8b058aa6
[ "Apache-2.0" ]
permissive
maxsvetlik/PandemicSimulator
deb1377400b1caaaa7935221ff7b28bab09ca096
6c902522bf697f6e69c4031ec01a058e382c34a6
refs/heads/main
2023-02-26T10:47:20.729667
2021-01-29T22:36:56
2021-01-29T22:36:56
320,059,841
0
0
Apache-2.0
2020-12-09T19:33:53
2020-12-09T19:33:52
null
UTF-8
Python
false
false
3,726
py
# Confidential, Copyright 2020, Sony Corporation of America, All rights reserved. import dataclasses from collections import OrderedDict from pathlib import Path from typing import Sequence, Set, Tuple, Any import h5py as h5 import numpy as np from pandemic_simulator.environment import PandemicObservation from .inte...
[ "kompella@cogitai.com" ]
kompella@cogitai.com
5155c2c3afea4fbd1ae4e454aeced5e8b1febe74
48998d6274b360a756f1e879cb3d021de289518c
/lava.py
5dfa88a3276974e2007fae639f1e919d1097b165
[]
no_license
markuskaa/lavalamp-client
3c6bee0695712ddda7e67665a56e1a734fb63507
5b7b2ea3109321bcdd0381ed06c5c89ef3d16d1c
refs/heads/master
2020-05-18T07:35:12.070356
2014-12-04T09:04:56
2014-12-04T09:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,367
py
import urllib2 import concurrent.futures import logging import ConfigParser import wx logging.basicConfig() #URL = 'http://svr-dev-20:8080/?cmd=isGlowing' LAMP_ON = '1' LAMP_OFF = '0' LAMP_UNDEFINED = '?' UNDEFINED_STATE = [LAMP_UNDEFINED, 'Getting invalid response(s) from server'] OK_ICON = 'data\\ok.png' FAIL_ICON...
[ "marek.krempa@erni.sk" ]
marek.krempa@erni.sk
208cb47479c2c4a5bef8b3ece331d195ca00839b
70cdf0741a22c678401a306229003bf036ffe5a6
/ocbind/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isis_neighbor_attribute/neighbors/neighbor/instances/instance/__init__.py
f819af22ccad6a5cc866476ee6a03e4789bfe20d
[]
no_license
zsblevins/nanog81-hackathon
5001e034339d6b0c6452ae2474f06916bcd715cf
1b64fd207dd69837f947094fbd6d6c1cea3a1070
refs/heads/main
2023-03-03T09:39:28.460000
2021-02-15T13:41:38
2021-02-15T13:41:38
336,698,856
2
0
null
null
null
null
UTF-8
Python
false
false
55,942
py
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
[ "zblevins@netflix.com" ]
zblevins@netflix.com
9ae115ec2c5a6e0aaeb26458374bb41fa73dcc88
cec272329a3522b4afe98510a7b043af77a6c3b6
/source/channel_ids.py
104e27d0887c55c38afe9694fd3d5bd325dc9702
[]
no_license
MNoya/Robotino
22bce1aba35de481b028afcb40ad5b7a10681c05
66eb5a474713be41f9a65dea241fa7bcdb231f1d
refs/heads/master
2020-04-28T06:33:07.701950
2019-03-15T17:01:13
2019-03-15T17:01:13
175,062,954
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
FRASES_EPICAS = 'C089B2RAT' BOT_TEST = 'GGVBDGLPP'
[ "martinnoya@gmail.com" ]
martinnoya@gmail.com
1143e59461beae0fee58432e015065cfd7fe3fb2
50f00c6555556593a45b94c6923169191db7a853
/lab6/tournament.py
fd316c89448d89da3fff534c6fa9cb9130f68ea5
[]
no_license
DeagaDH/CS50_Homework
9e239ceaa186de027019a7b5b93ec377d95414ac
91e42ba0c1f8aeca692acf508fb49f53c588abb6
refs/heads/main
2023-03-16T11:45:54.603364
2021-03-02T17:29:27
2021-03-02T17:29:27
342,089,864
0
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
# Simulate a sports tournament import csv import sys import random # Number of simluations to run N = 1000 def main(): # Ensure correct usage if len(sys.argv) != 2: sys.exit("Usage: python tournament.py FILENAME") # Initialize teams as an empty list teams = [] # Read teams from file g...
[ "dhdeaga@gmail.com" ]
dhdeaga@gmail.com
f9ab128fb82107ad73c13d8bff645ad4cfd837d4
2f63688febd21dc3ae6b19abfa79ad313c820154
/AlgoExpert/coding_interview_questions/Dynamic_Programming/Max_Subset_Sum_No_Adjacent.py
35e8fc100f69daaeac1de7c8a7e1b7ba9ce4c161
[]
no_license
novayo/LeetCode
cadd03587ee4ed6e35f60294070165afc1539ac8
54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7
refs/heads/master
2023-08-14T00:35:15.528520
2023-07-30T05:56:05
2023-07-30T05:56:05
200,248,146
8
1
null
2022-11-19T04:37:54
2019-08-02T14:24:19
Python
UTF-8
Python
false
false
387
py
''' main idea: dp time comp: O(n) space comp: O(1) - where n is the length of the input array ''' def maxSubsetSumNoAdjacent(array): # Write your code here. if not array: return 0 if len(array) <= 2: return max(array) a = array[0] b = array[1] c = a + array[2] for i in range(3, len(array)): d = a...
[ "eric_shih@trendmicro.com" ]
eric_shih@trendmicro.com
5012edbc0bc687552fcf3a1bbaf558b0a4f335ae
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=47/params.py
cfa7029e7fd66ff63cb0e7d697a6e4c827251ce2
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
{'cpus': 4, 'duration': 30, 'final_util': '3.532381', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.5', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'GSN-EDF', 'trial': 47, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
2f3751c4f91d23b270504d3274d7d3e235779172
7535c04ce6b5c980db31b7561cb60e3daff184a6
/personal/settings.py
616a66c6d67f78282612c5e1f9dc4c3c214aa6d1
[]
no_license
tehis/personal-website
32e9f5715410009c16cbf62f22e2edf6ef4fc793
af1700504084784eca8ddfab1406764e97570237
refs/heads/master
2022-12-19T02:08:01.604427
2019-06-23T02:40:31
2019-06-23T02:40:31
191,114,826
0
0
null
2022-07-06T20:09:49
2019-06-10T07:00:42
Python
UTF-8
Python
false
false
3,354
py
""" Django settings for personal project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ from builtin...
[ "ali.khoshtinattt@gmail.com" ]
ali.khoshtinattt@gmail.com
2257eb1cd70d0cfccc996cfe65d9ed17c6593ca4
8a55bdec478d2fb48508deac13ca3aeeda46fa06
/contrib/devtools/symbol-check.py
4bcbde4f62eeb0412e726b862b311d0049b94f42
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
hideoussquid/aureus-core-gui
83b0525e1afa349e0834e1a3baed5534043cd689
ce075f2f0f9c99a344a1b0629cfd891526daac7b
refs/heads/master
2021-01-19T00:04:39.888184
2017-04-04T08:15:18
2017-04-04T08:15:18
87,142,504
0
0
null
null
null
null
UTF-8
Python
false
false
6,191
py
#!/usr/bin/env python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that the (Linux) executables produced by gitian only contain allowed gcc, glibc and libstdc++...
[ "thesquid@mac.com" ]
thesquid@mac.com
84694bc46f6a3fdcf329eda57ccb7f50aaa76f3c
8f9ea3f14bdf2187de759939b2bbc87fe68ccfc0
/tensorflow/python/estimator/model_fn.py
3edf9fe940b19c7a0b1a7c21a9674189faba5acb
[ "Apache-2.0" ]
permissive
davidstanke/bazel-mvn-demo
4ea43f0ba293a28b916a27eab5f0812e9b753c2c
cff14dddce15ea7152988da576673bd15bab6c6e
refs/heads/master
2022-10-20T07:52:29.651851
2018-11-22T13:17:51
2018-11-22T13:17:51
157,782,756
2
0
Apache-2.0
2022-10-04T23:47:05
2018-11-15T22:54:09
C++
UTF-8
Python
false
false
15,435
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # 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 applica...
[ "davidstanke@gmail.com" ]
davidstanke@gmail.com
146c641d33adeb6defa68ddc3f71c766beb13d5a
fa571a842f04bcbc77ff203a5ed6f6ee776eed6d
/codes/tuple10.py
8744bc79540b217dd7df2fc0a2637049f35feee4
[]
no_license
krishna-rawat-hp/PythonProgramming
b25c0916475724e6d2de4b7d59cf40b5b5e8330b
d24df17ca6aff9271c44ef8c73b80c00cd065ded
refs/heads/master
2023-03-11T19:24:34.529059
2021-02-27T14:09:22
2021-02-27T14:09:22
282,611,873
0
0
null
2020-07-26T10:38:54
2020-07-26T08:52:49
null
UTF-8
Python
false
false
441
py
# Python tuple Built-in function tup1 = (1,2,3,4,5) # Example-1 length of tuple print("Length of tuple: ",len(tup1)) # Example-2 min value in tuple print("Minimum value in tuple: ",min(tup1)) # Example-3 Max value in tuple print("Maximum value in tuple: ",max(tup1)) # Example-4 tuple() method in python tuples str ...
[ "rawatkrishnakant8319@gmail.com" ]
rawatkrishnakant8319@gmail.com
bde67ddb3e38f3f93f676b6a7935b603396b8515
4be3122f5acfb05058ef9a4651fea3e421bbfe6f
/chess/treegentest.py
30794c6ec164cbfe713c9b8d71acdde86703a2c5
[]
no_license
BossFightGames/christophermarinos.github.io
af092a1809002835109dc4914212fd691621393e
d5f8cb48dfcf5dd2175f6d6e9b92860ff6121e2e
refs/heads/master
2021-01-22T09:26:26.886059
2017-10-07T11:50:51
2017-10-07T11:50:51
81,955,665
0
0
null
2017-02-14T14:50:08
2017-02-14T14:50:08
null
UTF-8
Python
false
false
328
py
#driverprog.py legalmoves.py printboard.py readchessfileFEN.py recursemoves.py treegentest.py #legalfork.py poopFEN.py print_pretty.py readFENfunc.py scoreFEN.py import readFENfunc import legalmoves import recursemoves testpos = readFENfunc.readFEN('rooktest.FEN') recursemoves.recursemoves(5,testp...
[ "noreply@github.com" ]
BossFightGames.noreply@github.com
36900d5037cea41134da343d9661f09b3d6383ed
146229f47d5d50db80e214547efd4cfd170cb23b
/src/words_tweeted.py
807f77c71e71d1a660b78de03a9eaa32787fb65b
[]
no_license
karenxi/tweet_analyzer
be0b6d4985522ef7ba26263f3d8f48ac66ead861
2e3b4be22cbd35b6b565bfd3abd2ec8d6b5b10d4
refs/heads/master
2021-01-01T05:48:45.063970
2015-07-10T19:31:11
2015-07-10T19:31:11
38,861,940
0
0
null
null
null
null
UTF-8
Python
false
false
1,317
py
from operator import itemgetter import sys class StreamWordsCounter: out_file = None # using dict to keep each word and its counts words_count ={} def __init__(self, output_filename): self.out_file = open(output_filename, 'w') def read_tweets(self, filename): f = open(filename, '...
[ "yingxitamu@gmail.com" ]
yingxitamu@gmail.com
20acca3bfc69b22f14aaa71a2ac8f06c519510a5
66ab73cc79e80f6c42669f2d8c3c9a342da49058
/selection_sort.py
3103de6e217909ea22eb898f1475980c82947455
[]
no_license
brleinad/algorithms-practice
3c3ef8b6a6111620a56c147992950f5f7290fe7f
a74204e94f6b3883bd593613806cc244e644eed6
refs/heads/master
2022-04-24T19:56:28.491571
2020-04-29T13:01:06
2020-04-29T13:01:06
250,367,726
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
import random def selection_sort(a): for i in range(len(a)): mina = a[i] swap = False for j in range(i+1, len(a)): if mina > a[j]: mina = a[j] k = j swap = True if swap: a[k] = a[i] a[i] = mina r...
[ "daniel.rodas.bautista@gmail.com" ]
daniel.rodas.bautista@gmail.com
70715af74016fb193e1dc17cc87fb1632d93526a
cedf3c65061222b3099852f27dde39ff0dfe492b
/blog/migrations/0006_auto_20200101_2255.py
41d4c082f868854719fb951f9bc736479520f459
[]
no_license
smrkhan123/myblog
1fd87b2c528cb2edccaf3f60c66a8c298774447a
8d0c33fcc74c582f21a32150d3460cce62ad6dd2
refs/heads/master
2020-12-08T21:50:32.352065
2020-01-10T18:23:56
2020-01-10T18:23:56
233,105,398
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
# Generated by Django 2.2.4 on 2020-01-01 17:25 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0005_comment'), ] operations = [ migrations.RenameField( model_name='comment', old_name='comment', new_n...
[ "sk862147@gmail.com" ]
sk862147@gmail.com
b53e913f62067c78e64e90cef8a3b642a6f57d41
1c9af33b1b8b6bdee0c192ff9c30d2d39d211e08
/CIFAR10/Session4/dl_vision/utils/lr_finder.py
8135301d7a31a8e81c9419581a1dcd5438ab93bb
[ "MIT" ]
permissive
TrellixVulnTeam/Pytorch_Vision_A3VP
2c048eaa0aa09839cb478c716edccca99552eaf5
54367b83e9780fe14c6f8b93157091ffdf7266eb
refs/heads/main
2023-04-07T16:06:49.575644
2021-04-16T16:42:18
2021-04-16T16:42:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
24,340
py
import copy import matplotlib.pyplot as plt import numpy as np import os import torch from tqdm.notebook import tqdm from torch.optim.lr_scheduler import _LRScheduler from torch.utils.data import DataLoader class StateCacher(object): def __init__(self, in_memory, cache_dir=None): self.in_memor...
[ "gmshashank@gmail.com" ]
gmshashank@gmail.com
6098d1665fc44c5b9392cbb7fc9e9de0a2f639aa
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/python/keras/engine/base_layer_utils.py
9ff1ab45c3de06a9b41edbb8de2197633c8c4ac7
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:a687562a5029ffbfb9a948ea45a12f73bca931230a551f19634b253752a45fe1 size 21452
[ "github@cuba12345" ]
github@cuba12345
f9bc5ad8586c2bea44572eba30d6fa69696fb018
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/talent/v4/talent-v4-py/google/cloud/talent_v4/services/completion/async_client.py
4a61a595b6f482e3f9a5c84d598f49b9f47efb5e
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,683
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
817c752e00db2148a4dd5635779329f98737565d
52a3beeb07ad326115084a47a9e698efbaec054b
/horizon/.venv/lib/python2.7/site-packages/openstackclient/identity/v3/policy.py
74a783b06a575e12b7a843a14ab6debc95d39f85
[ "Apache-2.0" ]
permissive
bopopescu/sample_scripts
3dade0710ecdc8f9251dc60164747830f8de6877
f9edce63c0a4d636f672702153662bd77bfd400d
refs/heads/master
2022-11-17T19:19:34.210886
2018-06-11T04:14:27
2018-06-11T04:14:27
282,088,840
0
0
null
2020-07-24T00:57:31
2020-07-24T00:57:31
null
UTF-8
Python
false
false
5,046
py
# Copyright 2012-2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
[ "Suhaib.Chishti@exponential.com" ]
Suhaib.Chishti@exponential.com
5d8b036d1bb1d63079d0c9d9a2cfff38fe2b25f0
21ac4a005da4c199f7285ef2518ab58e6f05a1d3
/python-practice/prod.py
8a943f35daabe3f4a5a87e0aa1fd38b754d3f045
[]
no_license
abstivc/ab
716f30c317e8413410689225272c6fc4db6b8a57
d7e7799164d23352b0768bc4404442933c82ffcb
refs/heads/master
2022-12-10T18:56:50.215303
2020-03-01T16:08:25
2020-03-01T16:08:25
160,114,489
0
0
null
2022-12-10T05:34:35
2018-12-03T01:19:33
JavaScript
UTF-8
Python
false
false
228
py
## 求积 from functools import reduce def prod(L): return reduce(lambda x,y: x*y, L) print('3 * 5 * 7 * 9 =', prod([3, 5, 7, 9])) if prod([3, 5, 7, 9]) == 945: print('测试成功!') else: print('测试失败!')
[ "13162403691@163.com" ]
13162403691@163.com
a1470df5a8e0b49cf11e7e5d92df310b1adc83f5
5fc72b72b1f2d01212fb59ba9ce8f83ffee9f9de
/ecomauth/settings.py
8c83cf08a536588cc30cbf40a01a82c7023cea8d
[]
no_license
surianmau/ecomvauth
19994045c13402f70c01f993dca27f1c0b17623f
eea060e595b2cb4bd59e8dd186161220072bbf0f
refs/heads/master
2023-01-04T20:37:44.736880
2020-11-04T06:53:13
2020-11-04T06:53:13
309,695,209
0
0
null
null
null
null
UTF-8
Python
false
false
3,484
py
""" Django settings for ecomauth project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathli...
[ "kishorekumaar28@gmail.com" ]
kishorekumaar28@gmail.com
2c7103e5eb6fd62b3aefb14762964e870f356d27
54ffba1123bbff84c28de7b20338038dae7a07de
/tests/test_cmd_csv.py
431b8091b119b8714be16232fafd073e709cfef8
[ "MIT" ]
permissive
Satook/paycalc
1a2aeb95035503f525ea9f8d4b037fe82047d88e
2769c7cd84049565dd7c7d427cd60e627d777d9d
refs/heads/master
2020-06-16T04:45:28.425883
2019-07-07T15:20:13
2019-07-07T15:20:13
195,482,897
1
0
null
null
null
null
UTF-8
Python
false
false
1,989
py
import sys from io import StringIO from nose.tools import eq_, raises import paycalc.tax as pt import paycalc.cmd.csv as pcsv class TestCSVCmd: ''' Uses the same test data to test both do_paycalc and process_csv Just helps pinpoint any issues ''' def setUp(self): TEST_CSV = """ David,Ru...
[ "me@satook.com" ]
me@satook.com
684089860f757cb4f5ad3e6268ec6e9d3da8022d
e5bfa554a2067a54507a5eb3cda5e14020ba1695
/CommonPython.py
70b56eed388342b87231755905dc20efb6086ee0
[]
no_license
wfeng66/BeautifulSnippets
cf92a67fd26a05625adb569a8a173806b4369d01
88c4aa7910f1bdb6dd149e7a7e932932471ae5ed
refs/heads/master
2022-12-11T00:07:55.395149
2020-09-17T11:09:10
2020-09-17T11:09:10
296,300,645
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
# concise input methods pos = [int(i) for i in input().strip().split()] dim = [int(i) for i in input().strip().split()] board = [[j for j in input().strip()] for i in range(dim[0])]
[ "noreply@github.com" ]
wfeng66.noreply@github.com
762a52726011f2e93e7f5758c055c3e77dd2d88c
6b05605f80a0a87295491dc3ffb293d7b07d34d8
/charity_app/migrations/0002_institution.py
0510c9890c447594f0eb3bf091d46067884f2bc2
[]
no_license
Wojtek775/oddam_w_dobre_rece
d5f9fe00ae885ae80bb6ab7d4604b5fc87f930e7
a27f2c39b65ca1a804419d52c4f23c558478cde6
refs/heads/main
2023-06-07T08:02:28.261902
2021-07-01T13:09:21
2021-07-01T13:09:21
377,143,823
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
# Generated by Django 3.2.4 on 2021-06-19 13:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('charity_app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Institution', fields=[ ...
[ "wojciech.kazibet@gmail.com" ]
wojciech.kazibet@gmail.com
2f1b8379c5905acde785ca4c1d763570cae45ca1
049972e12c0c9177831b2d4eaf9e070439b074fa
/pyrf/gui/wsa4000blocking.py
dafa479d68079aaf084faab57fe962fc04912e3a
[]
no_license
nikhilrf/pyrf
19b4a1f6e3e98aa739e954f8d760419d889b3153
bfc4d597af8a01703fe59d9cfa30c28e0bdce026
refs/heads/master
2021-01-16T23:01:32.808909
2013-01-29T01:56:09
2013-01-29T01:56:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,404
py
import sys from PySide import QtGui, QtCore from pyrf.gui.gui import MainWindow, MainPanel from pyrf.numpy_util import compute_fft from pyrf.devices.thinkrf import WSA4000 from pyrf.util import read_data_and_reflevel REFRESH_CHARTS = 0.05 class BlockingMainWindow(MainWindow): """ Override the MainWindow metho...
[ "ian@excess.org" ]
ian@excess.org
59e02a15a093d4b68a7b4c78186457fb6cb974be
aa1d9d60de89f92351cf37d9e1f4df04cd9b0449
/gcp/dag_runner/dag_runner/datetime_param.py
dfbac5471ac37381978fc03d5cf5457c728783f2
[]
no_license
zhoufengzd/python
7ca0de97fa0050f4984d866c87ea0f3069ad3cfa
036e2e17fde91c5ef46b22af00fc73e41bf75428
refs/heads/master
2022-10-13T23:10:10.538705
2022-09-25T03:51:26
2022-09-25T03:51:26
209,899,423
0
0
null
null
null
null
UTF-8
Python
false
false
3,931
py
import datetime class DateTimeParam: """ Support: 1. parse date time string with a few format 2. parse time window string flexible format, and date delta 3. predefined tags: {{ today }}, {{ yesterday }}, {{ tomorrow }}, {{ n_days_ago }}, {{ n_months_ago }} "...
[ "zhoufengzd@gmail.com" ]
zhoufengzd@gmail.com