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
21628b37dfb94ee6579e7e07989522a480fe16e9
63b259f1bce1a06e3619861b23d234ad979d5b09
/quetzal/Dashboard.py
45355ded5fc5b413ff7f3d8eafff4f0fd5d215c3
[ "MIT" ]
permissive
maljovec/quetzal
12d2c363b2a44b624d07e0864ca37c98c3066ac2
507aec65077f9f07ed554bedb05cf269849ce966
refs/heads/master
2020-03-26T10:40:24.620137
2018-12-14T21:28:37
2018-12-14T21:28:37
144,810,374
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
import json from flask import Flask from flask import render_template import webbrowser class Dashboard(object): """ A Dashboard class for visualizing multidimensional data using parallel coordinates in d3 """ def __init__(self, data=None, configuration=None, name=None, **kwargs): if data...
[ "maljovec002@gmail.com" ]
maljovec002@gmail.com
bcf651fba22d01d60d0806cda33a3c99646e72ac
c1d1411edf0bf0bed56f4a59b96a0fff25a8661e
/Broadcast_send.py
0a5e03001d61afa34b1451cf9d0b8dd1be8b2603
[]
no_license
davidrotari19/FinalProject
79e00836c99c03476b9cee15c4688e6fd6bb5cf6
1b1942310db68a1c21fd83488845f4c321e6e883
refs/heads/main
2023-04-30T02:38:40.609018
2021-01-27T16:48:40
2021-01-27T16:48:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
import socket IP= "192.168.0.255" PORT = 5005 MESSAGE = "Thats just fucked up!" sock = socket.socket( socket.AF_INET, socket.SOCK_DGRAM) sock.sendto( MESSAGE, (IP,PORT)) sock.close()
[ "noreply@github.com" ]
davidrotari19.noreply@github.com
86e955f4852f982d77e59aba8b9b5a448ca980be
2a24d860161eea9a5825b499258c5ab35cd84f60
/contact/models.py
05b604ac91543ec0a6d8d91e053d6a702280f26b
[]
no_license
irungumaina/django-wagtail-cms
527a319a5b18e33eaee6d53341249496f6647014
9fdc276b37d4d13980cef521826f6d91e1629f86
refs/heads/master
2022-05-27T09:48:02.606018
2019-09-23T13:32:00
2019-09-23T13:32:00
202,886,635
1
0
null
2022-04-22T22:06:14
2019-08-17T13:50:05
Python
UTF-8
Python
false
false
1,393
py
from django.db import models from modelcluster.fields import ParentalKey from wagtail.admin.edit_handlers import ( FieldPanel, FieldRowPanel, InlinePanel, MultiFieldPanel ) from wagtail.core.fields import RichTextField from wagtail.contrib.forms.models import AbstractFormField, AbstractEmailForm from ...
[ "kirathimo2010@gmail.com" ]
kirathimo2010@gmail.com
d1c4e9665883226b65b2e82e8acc7f7f56b247c5
1fc2765585128b31c5bb8df4d1742216fa6aaf24
/ssp.py
fa0fe65903b3b52fd854596229eeb65eda6580b5
[]
no_license
athelath/ssp
7ea0d44297517098b58de2f72e2d31898c6992c6
bc848ffc8d26d2c5a628413d665481cdb37b2b8a
refs/heads/master
2020-03-28T02:18:05.983919
2018-09-11T13:57:42
2018-09-11T13:57:42
147,560,985
0
0
null
null
null
null
UTF-8
Python
false
false
5,762
py
#!/usr/bin/python # -*- coding: utf-8 import MySQLdb from subprocess import Popen, PIPE import subprocess import httplib, urllib import json from termcolor import colored import string, os, sys, re try: import configparser except: from six.moves import configparser conf_file = "/etc/asterisk/extconfig.conf" rt...
[ "vitaliy.lamashevskiy.ltr@gmail.com" ]
vitaliy.lamashevskiy.ltr@gmail.com
c6d0485cc99fb6c0456f616883c72fb71f4f5926
7df827a137f3fbac295fd3b7d09cd54c6eb5c81c
/python_module/multiThread/mainMulti.py
7f44a8993fb592b008c8257d9eddcf7d13cdb7b8
[]
no_license
dawidbeno/memory_management
57304a5e95258223734249d329101ed9054553c0
07f430919263618e7e8b4759f3588e3451106d08
refs/heads/master
2021-01-22T18:50:54.167181
2019-09-30T16:51:55
2019-09-30T16:51:55
85,122,740
0
0
null
null
null
null
UTF-8
Python
false
false
8,008
py
# multiThread from PyQt4 import QtGui from PyQt4.QtCore import QThread, SIGNAL import sys import form import controller import time class View(QtGui.QMainWindow, form.Ui_Form): def __init__(self): super(self.__class__, self).__init__() self.setupUi(self) self.btnLoadLvl1.clicked.connect(s...
[ "dawid.beno@gmail.com" ]
dawid.beno@gmail.com
d9e361b8b4602c4fc876a19fa99b58a00dd92860
d07432b9969c4bfa5b4e0d0d2ce7b74236d6a33d
/pygeodesy/gars.py
28c68e4904de16df15b071f6765348679771ba8a
[ "MIT" ]
permissive
cwilder23/PyGeodesy
aeb8301a7134bc5c19b35335ac1aff1fa0933e02
6e2f989fb9040c525040270b5834b259b0b4d0d9
refs/heads/master
2022-11-12T00:25:26.253946
2020-06-24T17:39:54
2020-06-24T17:39:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,312
py
# -*- coding: utf-8 -*- u'''Classes L{Garef} and L{GARSError} and several functions to encode, decode and inspect I{Global Area Reference System} (GARS) references. Transcribed from C++ class U{GARS <https://GeographicLib.SourceForge.io/html/classGeographicLib_1_1GARS.html>} by I{Charles Karney}. See also U{Global ...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
6979557a264c91c1c6e5ee3ef5c87b6b45bed6cf
d77ee52c5ed31c906fd014294767db3865ea1ac1
/OnsiteContests/3/strong_password.py
47e14de8b5c55ee155dfa10c82334a4f855a12cb
[ "MIT" ]
permissive
koltpython/python-contests
df9ee36d1a7bbf8d32344c43e7d09d6478ca0560
2f8f51f39d7809dcadbcd6dd13a658faffcf902e
refs/heads/master
2020-04-25T17:42:34.928796
2019-03-20T17:28:51
2019-03-20T17:28:51
172,958,427
1
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
#!/bin/python3 import math import os import random import re import sys numbers = "0123456789" lower_case = "abcdefghijklmnopqrstuvwxyz" upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" special_characters = "!@#$%^&*()-+" # Complete the minimumNumber function below. def minimumNumber(n, password): has_digit = False ...
[ "auysal16@ku.edu.tr" ]
auysal16@ku.edu.tr
c0e2e9b1024557449c6caaf8a792a87679e308ef
2ff745b3083fed89deffa29221a2b3062d8c177d
/python-dsl-code/bake_kernel.py
8d74db466d4beb3af95e5f2e796525c7f2678ee4
[ "Apache-2.0" ]
permissive
artyompal/kaggle-abstract-reasoning
47bb24cf43b85af4987e843b476e5d8e48f45404
f5e9933c26c12270e5fcb0476696eea79bf981fc
refs/heads/master
2022-09-16T18:59:41.673852
2020-05-30T08:43:20
2020-05-30T08:45:28
267,439,383
11
0
null
null
null
null
UTF-8
Python
false
false
1,751
py
#!/usr/bin/python3.6 import base64 import gzip import os import sys from pathlib import Path from glob import glob def encode_file(path: str) -> str: compressed = gzip.compress(Path(path).read_bytes(), compresslevel=9) return base64.b64encode(compressed).decode('utf-8') if __name__ == '__main__': to_en...
[ "artyom@artyom" ]
artyom@artyom
8841efec4e8475932943061b5b32ec3aa97783ca
1c7f0c62eeb393877d06e9a5076b41d90fa22f12
/python_workbook/0001.py
add0b87453cda55d1bb904d6e7236029349c87cd
[]
no_license
myhlcb/python_exercise
6f39c749af8fa3eb4963a6b6ed5cacc6e177a4b7
d19421e09de7640b57c1f9d1062393118a46d17c
refs/heads/master
2021-03-07T09:20:01.471768
2020-03-10T09:51:12
2020-03-10T09:51:12
246,256,975
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
# 做为 Apple Store App 独立开发者,你要搞限时促销,为你的应用生成激活码(或者优惠券),使用 Python 如何生成 200 个激活码(或者优惠券)? import string import random import os def getCoupon(): data = '' for i in range(200): i=i+1 data+='coupon no.'+str(i)+' '+''.join(random.sample(string.ascii_lowercase+string.digits,12))+'\n' return data path...
[ "1029785965@qq.com" ]
1029785965@qq.com
0de5b13218c3a51894c04721c9f9dd0bd80fb3c1
eb9ca15c9da35975cf3f203fc67472d73864cea9
/api/testapp/views.py
71e7f39f6c3a02ec2e0dff6edef2cf7515045b54
[]
no_license
tariqul87/gate-of-truth
67f9d5ca55a66a9207eb3e7ed5888e6058546a0b
270c9b6a6371b9fec57a971de584b73bbc4aeca6
refs/heads/master
2023-01-11T18:52:56.957662
2020-11-06T19:02:18
2020-11-06T19:02:18
301,211,027
0
0
null
2020-11-06T19:02:19
2020-10-04T19:33:00
JavaScript
UTF-8
Python
false
false
541
py
from django.shortcuts import render from rest_framework.authtoken.models import Token from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status class TestAPIView(APIView): def get(self, request, format=None): print('We took a hit!!!') to...
[ "tariqul.isha@gmail.com" ]
tariqul.isha@gmail.com
4f613303615c55d2729147ae5cb8c6cd97c4ca83
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02383/s686099688.py
8350ca148ab207ab25ea1b72f0d85043ae5cfc38
[]
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
526
py
dice = input().split() direction = list(input()) dice2 = [] for i in range(len(direction)): dice2 = dice if direction[i] == 'E': dice = [dice2[3],dice2[1],dice2[0],dice2[5],dice2[4],dice2[2]] elif direction[i] == 'N': dice = [dice2[1],dice2[5],dice2[2],dice2[3],dice2[0],dice2[4]] elif di...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1a15a77e37ce83123dd5fd180a50913623bcf0be
89ed806011362f09d115a0f83ff96a09ec2411d7
/tests/test_adapters.py
f12b7f299404c354193d7ae97013f2a83b57a0ca
[ "MIT" ]
permissive
Sraq-Zit/cloudflare-scrape
e4d51f3d38fee89c9db67fcb184a15f0319cb5d9
954670774887e028cf53f197b95db0d7076c6518
refs/heads/master
2022-11-18T03:21:35.226147
2020-07-05T23:29:04
2020-07-05T23:29:04
273,616,840
3
4
MIT
2020-06-20T01:25:59
2020-06-20T01:25:58
null
UTF-8
Python
false
false
1,430
py
# -*- coding: utf-8 -*- import ssl import sure # noqa import urllib3 from cfscrape import CloudflareAdapter class TestCloudflareAdapter: def test_create_adapter(self): adapter = CloudflareAdapter() adapter.should.be.a("requests.adapters.HTTPAdapter") adapter.close() def test_get_c...
[ "phitapig@gmail.com" ]
phitapig@gmail.com
330465e9c7046e35f6e9643ad0783b8b0f75b9e3
466912406272829982f75854cf0104c6ce8c9814
/data/nlp/task/tn.py
1f80c0f141aa16e10b8cdf4cd2f2570f501f9aef
[]
no_license
logonmy/Codes
9631fa103fc499663361fa7eeccd7cedb9bb08e4
92723efdeccfc193f9ee5d0ab77203c254f34bc2
refs/heads/master
2021-09-21T18:07:22.985184
2018-08-30T05:53:26
2018-08-30T05:53:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,710
py
# -*- coding: utf-8 -*- __author__ = 'victor' import os import sys reload(sys) sys.setdefaultencoding('utf-8') sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '..')) sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util')) import db as dbcon from fundtag imp...
[ "hush_guo@163.com" ]
hush_guo@163.com
2b86ef172ef88375f4c4e37f4a58e375d1650fd3
a976a3e5ffbc68e3f198194e42684ce6ef2d65bf
/Data_Analyst/Step_2_Intermediate_Python_and_Pandas/2_Data_Analysis_with_Pandas_Intermediate/3_Introduction_to_Pandas/8_Data_types/script.py
c9571b909c1219a0e1601b2acf526e9ec28fb622
[ "MIT" ]
permissive
siyuantoronto/Dataquest
58980d20cf9e6fdc13eb35968dd30effb5deb619
18a5ed8e361e8263af7e3a52cf04028f097a624e
refs/heads/master
2022-02-22T22:23:24.185280
2022-02-10T15:45:07
2022-02-10T15:45:07
183,970,155
0
0
null
2019-04-28T23:37:30
2019-04-28T23:37:29
null
UTF-8
Python
false
false
227
py
import pandas as pandas_Pandas_Module class Script: @staticmethod def main(): food_info = pandas_Pandas_Module.read_csv("../food_info.csv") hundredth_row = food_info.loc[99] print(str(hundredth_row)) Script.main()
[ "gitter@ls3d.de" ]
gitter@ls3d.de
cb1b99ef8d93b50f9e8a57564834306cb3c1da22
88aa532448cc7bd6db3c9e89b8d37618f39c9184
/pygameui/callback.py
2dd82dc2ae957987c7ff11b8da51fa50207827ea
[ "MIT" ]
permissive
jwayneroth/mpd-touch
4c245b68586352ae26091f2270509eacdd919be4
2e860c8d30c790bb6b07295eeb909d37ad88fcf3
refs/heads/master
2023-05-31T06:41:54.553175
2022-06-12T19:33:36
2022-06-12T19:33:36
60,374,409
7
0
null
null
null
null
UTF-8
Python
false
false
431
py
class Signal(object): "A simple signal - slot mechanism" # TODO use weak refs? really? def __init__(self): self.slots = [] def connect(self, slot): "slot: is a function / method" assert callable(slot) self.slots.append(slot) def __call__(self, *args, **kwargs): ...
[ "jwayneroth@gmail.com" ]
jwayneroth@gmail.com
bad380548ed14d1a6f80a0365a8b665879bedd6f
ced259bfa61e7d637e53224a2b88d514a4b43cc2
/Class/range.py
1e1de5b0bf2f700dc8669e158632c5ac86caac85
[]
no_license
virani1993/Assignment
2e716628b385b207f7b11c61e3ccc2dbae915595
8284770a37baa31ab729504360f7fbde755049b8
refs/heads/master
2023-03-08T01:14:15.052666
2021-02-18T17:19:41
2021-02-18T17:19:41
329,701,729
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
List = [] a = int(input("Number :")) for i in range(0,a): b = int(input("Number :")) List.append(b) print(List)
[ "piyush0pv@gmail.com" ]
piyush0pv@gmail.com
865ac22163c2707030533b413545131726723479
a4bb97b92edf149e0daa193e47922ec362f7f2a6
/feature_finder/planet.py
366f5c170cf646e706d7e45431b2b86e9f879728
[ "Apache-2.0" ]
permissive
planetlabs/feature_finder
034206ba676cc2251dd72de4b70aa94d3f16f473
86e7110fec43a80460ceef09965e3619430fbfc8
refs/heads/master
2016-09-09T23:49:36.288130
2014-11-07T22:54:40
2014-11-07T22:54:40
25,700,512
2
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
''' Copyright 2014, Planet Labs, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
[ "reiberkyle@gmail.com" ]
reiberkyle@gmail.com
c4228442ea7bb005562f42293f54db22ffd4a496
85738a4cacd2a6d93c4487cf856c883c3d9d314a
/tests/web/settings.py
9a68dbff38a085e8bd59eb1e7053c05ef3ac066a
[ "Apache-2.0" ]
permissive
Kitware/tangelo
cc0cb1372bc5728e0585f739a9412a58a5069069
470034ee9b3d7a01becc1ce5fddc7adc1d5263ef
refs/heads/develop
2023-08-28T11:57:57.909917
2016-01-25T15:56:18
2016-01-25T15:56:18
6,885,877
40
21
Apache-2.0
2018-03-05T01:24:16
2012-11-27T15:38:26
JavaScript
UTF-8
Python
false
false
320
py
import cherrypy import tangelo # This service reports the value of cherrypy's thread pool setting def run(**kwargs): if kwargs.get('pool'): tangelo.util.set_server_setting('server.thread_pool', int(kwargs['pool'])) response = 'pool="%r"' % cherrypy.config.get('server.thread_pool') return response
[ "roni.choudhury@kitware.com" ]
roni.choudhury@kitware.com
a778be45a738c428c09f03ec65096a832a8df811
b66c83dbdb1181d3274cfb309637c0bdf590553f
/build/extrinsic_Industrial/intelligent_actuator/robo_cylinder/catkin_generated/pkg.develspace.context.pc.py
50404616a97e27fc816577449f0fc4dc7749b87a
[]
no_license
Sinchiguano/repo_project
9079c80f6544cbe39902c68f61f421bd7cfd55e6
666da1d6d91704302b69ec9e0b0d30db3a709f30
refs/heads/master
2020-04-30T18:06:16.162025
2019-04-25T18:47:58
2019-04-25T18:47:58
177,000,277
0
1
null
null
null
null
UTF-8
Python
false
false
499
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/casch/yumi_depends_ws/devel/include".split(';') if "/home/casch/yumi_depends_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ') PKG...
[ "cesarsinchiguano@hotmail.es" ]
cesarsinchiguano@hotmail.es
e2e04294908887bd4d011cf9ed92d3da4a1df179
9114967f26a0091f08ae5598d802976ca5ed3e2b
/databricks_utils/aws.py
076f98a5b372cd243185554676b4b362ba0644dc
[ "Apache-2.0" ]
permissive
e2fyi/databricks-utils
5c48ff48357d9496795165ade5e3c36a4a7d6c5b
e3cfc91a70c75d9e08e80df473df302b3f4a5c2d
refs/heads/master
2020-03-21T17:12:14.191851
2018-07-03T07:22:56
2018-07-03T07:22:56
138,819,592
1
0
null
null
null
null
UTF-8
Python
false
false
5,389
py
""" Utility classes to interface with AWS for databricks notebooks. .. moduleauthor:: eterna2@hotmail.com """ import os class S3Bucket(object): """ Class to wrap around a S3 bucket and mount at databricks fs. """ dbutils = None def __init__(self, bucketname, aws_access_key, aws_secret_key, dbutils...
[ "eterna2@hotmail.com" ]
eterna2@hotmail.com
37f8d92e24b2223ab6dc273df38d3076171aa6f1
670ebb2dfbdce19389c78bdabdd8523a18eea678
/app.py
b279c2681a4f130c88f15e8cd85bb049bf585a34
[]
no_license
moemily123819/Belly-button-biodiversity-app
95bb250aa42f80dcf6396c87a19d594bccc7432c
ddb4d0e32852407dab5865936d2e94fb728331ee
refs/heads/master
2022-12-11T00:42:53.825212
2019-07-16T16:34:16
2019-07-16T16:34:16
197,174,270
0
0
null
null
null
null
UTF-8
Python
false
false
3,986
py
import os import pandas as pd import numpy as np import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine from flask import Flask, jsonify, render_template from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) ###############...
[ "moemily123819@gmail.com" ]
moemily123819@gmail.com
a2c649431539213fa5e43c0386933739f79e2b91
6ede954089046c2562025c4fb2f8087a1c515375
/Covid/src/db/data.py
5e172a76b45627d8172b28c39d0b78065c7798c5
[]
no_license
J3T4R0/Covid-Scrapper
c788007e698d3f91e5efad523e57e8f383607df7
e68c6151b034317b5287ea059c9b0120c7cda2c1
refs/heads/master
2021-04-24T05:31:20.640430
2020-03-30T07:33:32
2020-03-30T07:33:32
250,085,300
0
1
null
2020-03-30T00:41:42
2020-03-25T20:33:31
JavaScript
UTF-8
Python
false
false
1,832
py
from pprint import pprint from pymongo import MongoClient import requests import time client = MongoClient('mongodb://localhost:27017/') def main(): get_mongo_doc('cases', 'customer.cases') get_mongo_doc('expectedCases', 'customer.expectedCases') get_mongo_doc('mediaReportings', 'mediaReportin...
[ "noreply@github.com" ]
J3T4R0.noreply@github.com
d02dba956bc8728a171a9bd2b531dbfe02d74d53
ddc230d25a4f39550d3b77045d8c1f55a6bf2ef5
/exercise6.py
e61efca5fb055094765680efaa1effab3afeb6ae
[]
no_license
javalive09/learn-python-the-hard-way
18bf26fc07bf0224d7ad10441dbb539595a9422a
31cb38a646365027569b411ccba9e45490f7ad18
refs/heads/master
2021-05-08T18:17:54.395842
2018-01-30T09:31:53
2018-01-30T09:31:53
119,510,884
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
# coding=utf-8 # 字符串和文本 x = "There are %d types of people." % 10 binary = "binary" do_not = "don't" y = "Those who know %s and those who %s." % (binary, do_not) print x print y print "I said: %r." % x print "I also said: '%s'." % y hilarious = False joke_evaluation = "Isn't that joke so funny?! %r" print joke_evalu...
[ "zhangrui24@baidu.com" ]
zhangrui24@baidu.com
21220efe1d1d31ad7316402c1ff459e6d8c58e6e
368b556157c04aac2705d08a5a7e9d894a8f9410
/tickets/settings/tickets.py
405413a52ac0d306f4b917e53b5081f038cb3a2c
[]
no_license
drakeg/tickets
14f91487e29a6ea46277894c16d7a8660add646c
d8e1efdf1b8c2ce408fc29c63889cf3004be17fc
refs/heads/master
2023-08-09T12:41:00.688551
2023-01-24T23:39:05
2023-01-24T23:39:05
125,151,507
0
0
null
2023-07-25T21:07:49
2018-03-14T03:44:08
HTML
UTF-8
Python
false
false
248
py
""" Django Environments 0.3.0-alpha2 All settings here will override another ones """ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ENVIRONMENT_NAME = "Tickets" ENVIRONMENT_VERSION_CODE = ""
[ "greg@drakeweb.org" ]
greg@drakeweb.org
6dcb30fec438ec2e9fff5f0b0626da1774055b61
653eaef652627b155569b5fe9ab9bb3607fc1e78
/alg/discriminative-jackknife/models/BNN.py
3a17799407f89d0061443791a187ff674aeeaeab
[ "BSD-3-Clause" ]
permissive
IlyaTrofimov/mlforhealthlabpub
11ab86a83bd2ffd2574364a956b322b0c62406ae
190cbad2faae9e559ffe7a68143df7f747d70adc
refs/heads/main
2023-04-16T03:58:38.423288
2021-04-21T10:22:43
2021-04-21T10:22:43
358,528,623
0
0
NOASSERTION
2021-04-16T08:25:26
2021-04-16T08:25:25
null
UTF-8
Python
false
false
1,534
py
import torch import torch.nn as nn class BNN(nn.Module): def __init__(self, *layers): super(BNN, self).__init__() self.layers, self.params = [], nn.ParameterList() for layer in layers: self.layers.append(layer) self.params.extend([*layer.parameters()]) # register...
[ "e.s.saveliev@gmail.com" ]
e.s.saveliev@gmail.com
9c9b54ae3de56b5139d8df996f8853f77c45d8bd
f7200c1ac73f04e909b059ac8c91c671cef07b78
/tree/Reverselevel.py
c3d4b751de07c18bc65c65cd09f4ac7343f83056
[]
no_license
mkhanw01/DataStructure
bc64cbfbd6c3e1aa6e53750671446da22d266377
7210e2f23e3618cf57d58292c0f61ffd6b00c190
refs/heads/master
2021-01-20T19:27:14.601576
2016-08-08T06:37:36
2016-08-08T06:37:36
65,179,120
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
class Node: def __init__ (self,key): self.data=key self.left=None self.right=None def hieght(node): if node is None: return 0 else: lh=hieght(node.left) rh=hieght(node.right) if lh>rh: return lh+1 else: return rh+1 def g...
[ "mkhanw01@gmail.com" ]
mkhanw01@gmail.com
718d0f430682a0b47ec3c0d95755ecd74fa8612a
7134e45563b2045837296cb5c4f1974a025e4f2b
/.history/MathmeticPracticeTimeLimit_20200411174234.py
16d18819de876f7987bf70910f5d9fe1a1e15342
[]
no_license
Nordenbox/Nordenbox_Python_Fundmental
dca175c471ac2c64453cc4bcf291dd0773be4add
9c79fd5d0dada580072b523d5aa1d72f996e3a22
refs/heads/master
2022-01-21T06:37:15.084437
2022-01-06T13:55:30
2022-01-06T13:55:30
240,154,945
0
0
null
null
null
null
UTF-8
Python
false
false
2,601
py
import random import time import os import subprocess def mode_choice(): print('请选用练习模式:\n1,选择练习题目数。\n') print('2, 选择练习时间') choice_num = int(input('您的选择: ')) if choice_num == 1: multipile_issues() else: multipile_time() def multipile_issues(): practicese_times = int(input('您要...
[ "nordenbox@gmail.com" ]
nordenbox@gmail.com
5763ca493d0539aa217968e3b9c9a4581b80bb47
21307dc8a0dfb0c0d079762ec78cab37373e642b
/statusio/__init__.py
1f7b169bf300ee443da8840ac4a4861f7c867610
[]
no_license
cfrancocapo/statusio-python
2a9dabac2358519aafffe3fdb5adb698e5dfb3cd
c8143d5fd91cb03d8baab49089ccb01681861820
refs/heads/master
2021-01-01T22:32:27.758260
2018-11-28T20:05:16
2018-11-28T20:05:16
239,372,338
0
0
null
2020-02-09T20:50:54
2020-02-09T20:50:53
null
UTF-8
Python
false
false
288
py
#!/usr/bin/env python """A library that provides a Python interface to the Status.io API""" from __future__ import absolute_import __author__ = 'hello@status.io' __version__ = '0.8' import json # noqa from .api import Api # noqa
[ "joe@t3ch.com" ]
joe@t3ch.com
c6f2008e87cb9a11cd7366979ea3851fa420c065
52d53fa337e3db4349b43f08961dc42cc2cc7624
/Visualisations/Utils/LedsOnOffCountExtractor.py
33fd11af602ed53d6f5053b5435606b229c3644c
[]
no_license
tomneutens/log_data_analysis
7f0a0e14230fe692091bad9508f1433322de8f19
6c7d4f8aba05975fdbd0597da60037eccc0fda22
refs/heads/master
2021-06-29T19:17:02.602250
2020-11-16T08:25:38
2020-11-16T08:25:38
178,832,512
0
1
null
null
null
null
UTF-8
Python
false
false
289
py
from Visualisations.Utils.MetaDataExtractor import MetaDataExtractor class LedsOnOffCountExtractor(MetaDataExtractor): def __init__(self): super().__init__() pass def extract(self, xmlString): return self.getBlockTypeCount(xmlString, 'dwenguino_on_off')
[ "tomneutens@gmail.com" ]
tomneutens@gmail.com
9e8028eecbb81aba0197aa5be87be4035896e0f5
a7363c9b471ac33298ffc4399cfd4cff88d93068
/modules/helper.py
62cb76d178817f6b05c87b45ccd2138b764b2b31
[ "Apache-2.0" ]
permissive
blockpass-org/service-auth-example-python
81fd418030b5a0b462eea45e41bd4fa02830a835
dca07eba5ca92b01ac7deec4f3af21233f16d648
refs/heads/master
2020-03-18T02:44:34.985122
2018-06-08T12:17:32
2018-06-08T12:17:32
134,205,057
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
import json def read_json (path): rows = [] with open(path, 'rb') as filedata: rows = json.load(filedata) return rows def print_json (data): print json.dumps(data, indent=2) def write_json (data, filename): with open(filename, 'w') as outfile: json.dump(data, outfile, indent=2) def flatten (arr): ...
[ "tinnhlt@blockchainlabs.asia" ]
tinnhlt@blockchainlabs.asia
59b111e7c48d6899e63795c608a24e3d51ca5fb3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02706/s901477236.py
e5cd388ef56bc4369f68551299e42a2e436c4640
[]
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
260
py
#import numpy as np #import math #from decimal import * #from numba import njit #@njit def main(): N,M = map(int, input().split()) A = list(map(int, input().split())) s = sum(A) if s > N: print(-1) else: print(N-s) main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2340d4c9854fec7977e205ba86fa2509780728b3
1b720474da9efd83b729b28903709405a7155a04
/python/list-1/common_end.py
fb52d7f1cec5f6687c851322cc89e1bcf699a512
[]
no_license
mesolaries/codingbat
b1e738e3fd3073956bcc8856eda0369caed44bc2
2c741827a7551afc854eff2d9eb1ca52cf243368
refs/heads/master
2021-01-15T16:51:31.511496
2017-08-13T12:17:45
2017-08-13T12:17:45
99,728,408
1
0
null
null
null
null
UTF-8
Python
false
false
354
py
''' Given 2 arrays of ints, a and b, return True if they have the same first element or they have the same last element. Both arrays will be length 1 or more. ''' # common_end([1, 2, 3], [7, 3]) → True # common_end([1, 2, 3], [7, 3, 2]) → False # common_end([1, 2, 3], [1, 3]) → True def common_end(a, b): return a[0...
[ "noreply@github.com" ]
mesolaries.noreply@github.com
80e9eeda1efc064f19b56be3222ec30e6dd1564d
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5744014401732608_1/Python/feigao/main.py
9d1ebc3970ed5aa77f1c7df72eca82287fe1e3c1
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
3,015
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys from functools import wraps, lru_cache def io_wrapper(func): @wraps(func) def _func(in_file=None, out_file=None, lines_per_case=1): in_buffers = [] if in_file is None: while True: try: ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
5ac5bd8c10ef9c4aa282171fa3b3d304ba459c14
0bf212091da81fdbca0ad4a49f1cb0fc31384b29
/grasp_recon/src/pyOpt_cost_function_collision.py
21d9d79a9660b6a78f64f85763821cb986f21863
[]
no_license
kanaek/GPIS-Grasp-DynObject-Reconstruction
b9d7b9b5375993b39bc6aa39d4f13115f41d2f9c
7c59502c5508c67eb0c0b964ab47e331fb7a4178
refs/heads/master
2020-04-08T13:45:35.643942
2018-11-27T23:29:12
2018-11-27T23:29:12
159,405,742
1
0
null
null
null
null
UTF-8
Python
false
false
5,066
py
#!/usr/bin/env python # This function wraps the cost function with pyOpt compatible objective function import numpy as np class CostFns: def __init__(self,immediate_cost,final_cost,grad,grad_final,robot_model,x_d,u0): self.eps=1e-15 self.delta_t=robot_model.delta_t self.cost=immediate_cost ...
[ "u1063462@utah.edu" ]
u1063462@utah.edu
99d81d749eeb3c8cf378d891abfa8eb3dfabd43b
6c0cb75ae47c19110e3b9758c0f53c95ecb8357d
/pymdwizard/gui/Descriptor.py
158c45c11f9afdb43eadfd6ae6fcd222d93ee66f
[ "LicenseRef-scancode-warranty-disclaimer", "CC-BY-4.0" ]
permissive
mhannon-usgs/pymdwizard
e0f772fd195c590b1c693aa1be652eb926737570
c8ebf72c561bbedab972e304389958f2e4370350
refs/heads/master
2020-07-16T16:22:41.187835
2017-02-08T17:02:54
2017-02-08T17:02:54
73,944,035
0
0
null
2016-11-16T17:28:02
2016-11-16T17:28:02
null
UTF-8
Python
false
false
6,363
py
#!/usr/bin/env python # -*- coding: utf8 -*- """ License: Creative Commons Attribution 4.0 International (CC BY 4.0) http://creativecommons.org/licenses/by/4.0/ PURPOSE ------------------------------------------------------------------------------ Provide a pyqt widget for a Descriptor <...
[ "mhannon@usgs.gov" ]
mhannon@usgs.gov
999fdc61f6b4202e0965fa910b444732d4621b43
7c710d0c02e8c66c84493f38ad9b57c9cd62df6d
/Ch3-4-dividerdanger.py
e1ee216d8aee92eea9025e441e1af30ab87cf574
[]
no_license
OneForth/Learning-Python-Chapter-3
b1f488c3593069622ba0ee8956297b447fafc8fc
017657d4425679d99ad593f8e2ee143c5f6bc1b3
refs/heads/master
2020-04-21T04:23:17.665839
2019-02-06T18:20:44
2019-02-06T18:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Filename: Ch3-4-dividerdanger.py # Author: OneForth # Last Modified: Febuary 6, 2019 # Demonstrates the potential error of letting the use input zero as a divisor # Get two numbers from the user divided, divisor = eval(input("Please enter two number: ")) #Divids them then reports the results to the user p...
[ "noreply@github.com" ]
OneForth.noreply@github.com
82de8bf21474e30eeb3a6fcffd3d1d58d367c8b1
40c855e1d5343e234d46777ac2f19f413aa99fd1
/employee_app/models.py
076d4dd4984455ae17cb27a63b42e6471d0bb170
[]
no_license
tathyakapadia/Django_Cybage_Assignment
2d805eac1996cc39b2321b55af74547f81ac687e
bc611dd606e7ba91814fc393d8045c0b51edc4da
refs/heads/main
2023-01-10T09:41:31.523094
2020-11-09T09:41:28
2020-11-09T09:41:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
from django.db import models class Organization(models.Model): organizationName = models.CharField( max_length=100, null=False, blank=False) def __str__(self): return self.organizationName # def default_org(): # return Organization.objects.get_or_create(organizationName="DefaultOrg")[0]....
[ "tathya4225@gmail.com" ]
tathya4225@gmail.com
010427a5856703a295156243fe70f85976250e8c
2f17bb840634eab6f08a7bb488781f6951ce6b47
/AOJ_courses/ITP1_4_D.py
42e76330f54037ab4673edbc5a65b21db34f3da8
[]
no_license
NHRD/Atcoderpractice
3d5c1175e147a0bdbacf46f51b23db1a1b2dea22
958835069c84791afa36d119298b742d53e86ae0
refs/heads/master
2022-12-15T17:30:10.310049
2020-09-19T13:39:07
2020-09-19T13:39:07
279,771,996
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
n = int(input()) nums = list(map(int, input().split())) nums = sorted(nums) sumnum = sum(nums) print("{} {} {}" .format(nums[0], nums[len(nums)-1], sumnum))
[ "naohisa.harada@gmail.com" ]
naohisa.harada@gmail.com
e9880143e1cf66275f3cb00db8e80924fd0897d1
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_protocol_request.py
ad11aa561d4c11a287678808d35c64ee2c118655
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,463
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class KeystoneCreateProtocolRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dic...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
6f6e71ada7d0648a80e26f1ba5129ba140ff65e0
b11f4d0f4285e5990d56b4ec3745935ac01fd90a
/Applications/Core/exams.py
0b7d71b31f1639a18b4cafd2e1aef3a67074d6f5
[]
no_license
SrihariTheddu/school-administration-website
1d72d06115c77f4e67db96458b5522023766bc9e
f34e7b5158a6c43802c144292a2b9f472cea37bd
refs/heads/main
2023-07-25T08:54:17.960899
2021-09-08T07:24:25
2021-09-08T07:24:25
380,668,976
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
from Applications.Examination.models import Question,CourseQuestions from DataProcessorSystem.FixturesInstallation.questions import QUESTIONS def ParseQuestions(course,QUESTIONS): this_questions = [] for index,question in enumerate(QUESTIONS): question['question_code']=course.course_code+str(course.standard....
[ "noreply@github.com" ]
SrihariTheddu.noreply@github.com
a91fed492e7ea829b15b61d9b085c6cd0457af50
379dbcfc3f4e41e64a38989359a2bf4874af89d8
/autokeras-1.0.14/autokeras/tuners/greedy.py
e84ba7a57fcec5147de0156717936d49a093bace
[ "Apache-2.0" ]
permissive
yy-iris/autokeras
86830cde539ec50103df461f3bf12b9779f34d95
4ac9355f44ef560bf8d4a86320e03cb3e9a77b02
refs/heads/master
2023-05-21T05:07:57.254564
2021-06-11T08:15:22
2021-06-11T08:15:22
375,951,679
0
0
null
null
null
null
UTF-8
Python
false
false
7,842
py
# Copyright 2020 The AutoKeras Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "yy.iris@outlook.com" ]
yy.iris@outlook.com
f0320b3b1e118fdbbad1d2595014cde9eaf74e65
d02adc312091edd768d5bf47267d3bb6d25a47d1
/final project/sample_models.py
6605d6ce0cd08c0707f95025eb53e6d0db4bef4f
[]
no_license
shanjgit/udacity-NLP-projects
46d0bc56e2638668923a748f223faf3aadabe84a
615bdcc22095b08b43bfcb8b5c7456b7ea5ab86f
refs/heads/master
2020-04-28T21:52:22.449744
2019-03-14T12:47:29
2019-03-14T12:47:29
175,597,273
1
0
null
null
null
null
UTF-8
Python
false
false
9,109
py
from keras import backend as K from keras.models import Model from keras.layers import (BatchNormalization, Conv1D, Dense, Input, TimeDistributed, Activation, Bidirectional, SimpleRNN, GRU, LSTM) from keras.regularizers import l2 def simple_rnn_model(input_dim, output_dim=29): """ Build a recurrent network fo...
[ "lightemit@gmail.com" ]
lightemit@gmail.com
1125be93d6bf6ec5f578a754b518db5452606a9d
4d8f0c491943e0c688c11561c7f57d815b014b76
/experiments/tf_vae_pixel/resnet_16.py
a289791f5c82669c58bc4a02e9871acbdb7e5406
[]
no_license
kundan2510/nn
d5e434e9d6275a82a04c12df4d8e4be855c39ab5
39d247f3b64f9ac9400835dd72d3af7a84578449
refs/heads/master
2020-12-26T03:10:23.949984
2016-12-27T20:23:58
2016-12-27T20:23:58
64,513,518
0
1
null
2016-07-29T22:19:40
2016-07-29T22:19:39
null
UTF-8
Python
false
false
42,905
py
""" Multilayer VAE + Pixel CNN Ishaan Gulrajani """ import os, sys sys.path.append(os.getcwd()) N_GPUS = 1 try: # This only matters on Ishaan's computer import experiment_tools experiment_tools.wait_for_gpu(tf=True, n_gpus=N_GPUS) except ImportError: pass import tflib as lib import tflib.debug import tf...
[ "kundankumar2510@gmail.com" ]
kundankumar2510@gmail.com
1f17b1b6a2c0bd4d5957fdf6884f06dc99a93f8a
82c562bf2257c248fae968ad27876f840c98d5cc
/python_stack/django/django_orm/firstorm/firstorm/settings.py
f42135421e8b5e24068980b7988b67264548ecc7
[]
no_license
tbkrft567/CodingDojo
5175dbf5cae1e7b23ad1b91e6370bbf1467e2c31
142974abeffa0aef93f3761ffd3a9e2cc452e990
refs/heads/master
2023-02-19T09:03:26.644627
2021-02-21T22:06:54
2021-02-21T22:06:54
230,340,732
0
0
null
2023-01-19T16:39:50
2019-12-26T23:24:56
Python
UTF-8
Python
false
false
3,100
py
""" Django settings for firstorm project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "tbkrft@gmail.com" ]
tbkrft@gmail.com
c6f33d8d91c4d33b1e2add5fcf4896a139314cc8
be50e8a41b8f0f82f91fc5abe4a377815476fafa
/src/data/adobe5k.py
9286401ddd19dd7cf01bc183694cc53cfe76489c
[ "MIT" ]
permissive
XenonLamb/CSConvNet
fae5eea59f24b6f5555384f8552fb7e3d5698221
b8fbf016789e54805b1ac87925e2cc8c00e8e3a6
refs/heads/master
2023-06-20T08:10:32.785147
2021-07-12T15:26:54
2021-07-12T15:26:54
248,464,717
2
2
null
null
null
null
UTF-8
Python
false
false
1,449
py
from data import srdata class ADOBE5K(srdata.SRData): def __init__(self, args, name='ADOBE5K', train=True, benchmark=True): data_range = [r.split('-') for r in args.data_range_adobe.split('/')] if train: data_range = data_range[0] else: if args.test_only and len(data...
[ "SENSETIME\\xulu@hkst18060094.domain.sensetime.com" ]
SENSETIME\xulu@hkst18060094.domain.sensetime.com
7edba09660881e3764ee50d3188e8cd70e43a36f
5684a61797621b7be82d2bc1e8c5014259222477
/server.py
5691ee21ceeda1379239ee746702f8841a5b1fc0
[]
no_license
AnthonyMMiller/pybook_oop
a09d3c71f169c24cf87f7180ff5dbaa7859ce7e4
d5f86a494c2bb2302c67efa290dab830a6dc43cf
refs/heads/master
2022-06-14T06:17:06.218409
2020-05-12T05:14:19
2020-05-12T05:14:19
263,234,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
import sqlite3 # Database functions class Database: def __init__(self,db): self.conn=sqlite3.connect(db) self.cur=self.conn.cursor() self.cur.execute("CREATE TABLE IF NOT EXISTS book (id INTEGER PRIMARY KEY, title text, author text, year integer, isbn integer)") self.conn.commit(...
[ "1anthony1@gmail.com" ]
1anthony1@gmail.com
1248a9f99fc64024fc9b8cf760110b69f45b0851
199dbeb3fdf280f40016d054494cb131f040eb88
/fixture/contact.py
d620f04317be6e2d96dcd552a071199fe3a837d9
[ "Apache-2.0" ]
permissive
nataliamaslova/python_training
97495723ede1c52357b12f4398f5c537558f7bc3
9e831457291cfb1b25a4f8436ce13ad3314ab5b5
refs/heads/master
2021-05-07T04:08:09.811463
2018-01-09T12:37:38
2018-01-09T12:37:38
111,091,694
0
0
null
null
null
null
UTF-8
Python
false
false
8,881
py
from model.contact import Contact import re import selenium class ContactHelper: def __init__(self, app): self.app = app def open_contact_page(self): wd = self.app.wd if not (wd.current_url.endswith("/index.php") and len(wd.find_elements_by_name("selected[]")) > 0): wd.fin...
[ "maslova.nd@gmail.com" ]
maslova.nd@gmail.com
aae837f59af9f85121c650a148ad462e5d129e86
d8a92fcdc83063779a1e57746fe83bc2ef417e79
/python/TimeConvert.py
72e00f453b2a380e58fdd796f528191115802631
[]
no_license
solsteve/Europa-trncmp
caa3c17043e752a8adf23ae4fcdb4f499a1839c6
ab4f8f4de5d1c63fda0833c156da7acf30bccbd3
refs/heads/master
2021-02-13T09:00:19.394031
2020-06-15T19:30:12
2020-06-15T19:30:12
244,682,418
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
#!/usr/bin/python3 import numpy as np inFile = '' outyFile = ''
[ "stephen@soliday.com" ]
stephen@soliday.com
d8541729ab254efed662b593b9d468fc5bb5016a
85bfa6fc1ff7f0f4973083251552a86c3cc5acea
/Numbers.py
8c15b0c0908eedc993b12b9ac899479082f7113f
[]
no_license
Barshon-git/Test
4353b87e81fa9081d8cfc1a6dbc2323605da9fb6
8317fe9c3268d248cd082b1686b15b4024c4308a
refs/heads/master
2020-06-20T19:13:11.361498
2019-07-16T15:38:32
2019-07-16T15:38:32
197,218,742
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
print(2) print(2.5) print(2+7) print(2-7) print(2*7) print(2/7) print(2+4*6) print((2+7)*7) print(10%4) my_number=123 print(my_number) print(str(my_number)) my_number=-45.23 print(abs(my_number)) print(pow(my_number, 2)) print(max(my_number,-234)) print(min(my_number,-2124)) print(round(my_number)) from math import *...
[ "52784421+Barshon-git@users.noreply.github.com" ]
52784421+Barshon-git@users.noreply.github.com
a4cbdc127de8adeb4a567c47aef68184eacde895
17af0907a768516e8e3773e0c758da3749f6de39
/crawling-backup/crawling_scrapy 2/scrapyproject/ecommerce/ecommerce/items.py
12d67dd6a869e9540280ce6c5581359b09fe69eb
[]
no_license
ssubin29/WebCrawling_PBL
9aa34683a1af6b7f58cadd751fc6d0fc0b59b5cc
3004762c31e794a740fa39d20e111873ad955192
refs/heads/main
2023-06-06T09:55:20.348451
2021-06-28T04:51:22
2021-06-28T04:51:22
353,890,863
1
0
null
null
null
null
UTF-8
Python
false
false
515
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class EcommerceItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() main_category_name = scrapy.Field() ...
[ "(20201003@sungshin.ac.kr)" ]
(20201003@sungshin.ac.kr)
20f9a920e3fe0d8331bd86ce5e2efa02f2201bee
f8248aa7ba95fa914db8aaadfe1a4c69f8b63c91
/phase_1/demo4_2.py
be5eb2bb10dbd4bd6298fbfa8a6f5b3011244dea
[]
no_license
LoTwT/clawer
6001a0cec519628b273048b6453c1b7f42e23b09
192eeb02e745e1415ddd1c47f86bdc2c60be6114
refs/heads/master
2023-06-05T22:35:47.605393
2021-06-26T18:27:57
2021-06-26T18:27:57
359,274,008
0
0
null
null
null
null
UTF-8
Python
false
false
2,159
py
# 小说下载器 # 输入吞噬小说网对应小说 url, 下载小说 import requests from lxml import etree import os base_url = "https://www.tsxs.org" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36", "referer": "https://www.doutub.com/" } def get_n...
[ "709937065@qq.com" ]
709937065@qq.com
6fff662b7057c077bb1da9127f6f21b8d14c2b7b
37c1dcd23cd8bf7a169a9a2317418acc39ef6341
/Model/Alpha/model.py
de4eb8b691cafba32e95d39b0445cc067f0bb1cb
[]
no_license
zhang-yi-chi/AlphaZeroConnect4
049468d3884503046098417022264fcf70e25c5d
68e8c3c1936ff743fa4904c45dcc0d1e84dd0468
refs/heads/master
2020-03-11T12:38:05.912521
2018-04-18T14:40:44
2018-04-18T14:40:44
130,002,667
0
0
null
null
null
null
UTF-8
Python
false
false
2,740
py
import tensorflow as tf import numpy as np class PolicyValueNet(): def __init__(self): self.state = None self.valid_actions = None self.log_probs = None self.value = None self.build_model() def eval_probs(self, game): state = game.get_state()[np.newaxis, :] valid_actions = game.get_valid_actions() l...
[ "673865549@qq.com" ]
673865549@qq.com
6b59d1bac200837cf9ef6b6229235b3d975852e6
5a1c975df6d83e85fd66093caf1dc95330050046
/04. Add Rus data/proceed_ruslinks.py
dba6fb8ba65f46b40e7b8898b5e14947cfd9c722
[]
no_license
n0an/MyNamesEnvironment
cfc3468f520b8f30c93ed69fd016d818991b5b08
1f2f42083b408b43db48e86b6a52bc5a5ea458c8
refs/heads/master
2021-01-19T00:40:31.803131
2019-05-11T07:38:06
2019-05-11T07:38:06
87,197,466
3
0
null
null
null
null
UTF-8
Python
false
false
1,470
py
#!/usr/bin/python3 # coding: utf-8 import os import shutil import openpyxl import webbrowser import bs4 import requests os.chdir('!WORKFLOW') workbook = openpyxl.load_workbook('resulttableStage1.xlsx') sheet = workbook.get_sheet_by_name('sheet1') sourceSheet = workbook.get_sheet_by_name('sourcesheet') # +++++++++++...
[ "nantog@gmail.com" ]
nantog@gmail.com
7ac1f1e02d6fca1348af5cffc138f9aba464a34f
7512e51d6f56e738692db1b7d72fd8f7039ab0e0
/proj_agent_101/functionApproxAgent.py
218f7287e1da33f9f990d7fd3fb5fd7b917ca9df
[]
no_license
Ken4scholars/grid-world-reinforcement-learning
4acf12959235f05e95fb83e731a6d3e515907a1e
c3a07096df0db1e11482e2cb27df7f5d486ba2ce
refs/heads/master
2023-01-13T23:03:26.972568
2020-11-20T14:24:10
2020-11-20T14:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,914
py
import gym import gym_grid_driving import collections import numpy as np import random import math import os import torch import torch.autograd as autograd import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from gym_grid_driving.envs.grid_driving import LaneSpec try: # server-compatibl...
[ "kchinedu@mail.ru" ]
kchinedu@mail.ru
18772b128b050a7ff3d1dabdbdd5d2091d72921c
2d94902e0367f364eabd038b4aa49ac34e1ebd47
/config.py
7e17e0f65019ab54b69a72e387746c5c258de67a
[ "Apache-2.0" ]
permissive
qitianchan/Patap
25f642759698391c77527ed3f676a84fcf918023
e71bd95300d94f7e26f9d87e5bdb9f4c73175383
refs/heads/master
2021-01-20T20:03:52.546735
2016-07-27T12:01:31
2016-07-27T12:01:31
64,106,084
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
# Create dummy secrey key so we can use sessions SECRET_KEY = '123456790' # Create in-memory database DATABASE_FILE = 'patap.sqlite' SQLALCHEMY_DATABASE_URI = 'sqlite:///' + DATABASE_FILE SQLALCHEMY_ECHO = True # Flask-Security config # SECURITY_URL_PREFIX = "/admin" SECURITY_PASSWORD_HASH = "pbkdf2_sha512" SECURITY_...
[ "qitianchan@sina.com" ]
qitianchan@sina.com
0f623b7efc31b36e7164ee5d0583e99681d30c6a
86059cbbba04e62a1a6b217ea043081d10c55174
/SOFTENG_370 _AdditionalPart/ServiceA.py
a6b810d13434a32c9165439754e8b21b55438766
[]
no_license
AdityaJNair/PythonAssignment
4d0190a8bf2576fcf7863fea5cd7b195e6060bc5
3c0b8cb1d47b29382bc40239fe4735034db1965e
refs/heads/master
2021-01-20T11:50:55.030343
2016-08-18T05:21:20
2016-08-18T05:21:20
65,005,206
0
0
null
null
null
null
UTF-8
Python
false
false
3,270
py
import os import sys import pickle import time import threading import atexit import re from queue import Queue import math ANY='any' class ServiceA(): service_dictionary = {} communication_queue = Queue() communication_list = [] arrived_condition = threading.Condition() def start_service(self)...
[ "adijnair@gmail.com" ]
adijnair@gmail.com
43c8d1a9b3efa665b4fb6fc75672a0ecd4805a45
42bee9a601e102ce884382f8e9ba125c8c9d7468
/signs/migrations/0009_auto_20161222_2030.py
9ed4de5fc0ca0f83e32999301da65a006a269691
[ "Apache-2.0" ]
permissive
ppreeper/signage
9bfa02e1d01ed048ecae4300938272ce8cfa9493
033df11f8980862a5b8da2eaac7ba04d9ebb6f1d
refs/heads/main
2023-03-06T13:00:19.584956
2023-02-23T04:06:01
2023-02-23T04:06:01
78,864,588
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-12-23 03:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('signs', '0008_auto_20161222_2027'), ] operations = [ migrations.RemoveField( ...
[ "ppreeper@gmail.com" ]
ppreeper@gmail.com
e73627f2cd62d56e3044aac448a938ae74e30088
191f1e8535e11ce4ab3e2f5298f52a8c6d801866
/python/code3/xml-parsing assignment.py
e5cb2b07778f87caf62cad2947021c1ba5507230
[]
no_license
Chitransh219/chitransh-web-capg
c895807d03956b785a2258b742b4b9bdffad04ed
55f53d8bef0b8702165a6903d483b3723ac28fac
refs/heads/master
2023-04-20T20:34:57.142629
2021-05-08T05:44:07
2021-05-08T05:44:07
365,429,103
0
0
null
null
null
null
UTF-8
Python
false
false
1,065
py
import urllib.request, urllib.parse, urllib.error import xml.etree.ElementTree as ET import ssl api_key = False # If you have a Google Places API key, enter it here # api_key = 'AIzaSy___IDByT70' # https://developers.google.com/maps/documentation/geocoding/intro if api_key is False: api_key = 42 serviceurl = ...
[ "derashrichitransh@gmail.com" ]
derashrichitransh@gmail.com
763b3c41f750dca1f47c7fdc416ee621be024e3c
90cdae33e672b23a3ccb84dec0f281e78d3934ce
/auto_test_leke/web_test/src/common/method.py
038feba19e8b7600635d53982ce2dd7eead0e753
[]
no_license
kuangtao94/TestHome
dffdb3737ab60f6db435c770c33f423d814b5594
46acedadd225b07fe73f43feebd5c66d19c7eeac
refs/heads/master
2020-06-29T07:38:37.316844
2019-11-24T02:14:25
2019-11-24T02:14:25
200,475,947
0
1
null
null
null
null
UTF-8
Python
false
false
1,918
py
# coding:utf-8 from selenium import webdriver import os from selenium.webdriver.common.by import By #导入by定位 from selenium.webdriver.support.ui import WebDriverWait #导入显示等待包 from selenium.webdriver.support import expected_conditions as EC #导入期望条件 from logging import log ...
[ "1512500241@qq.com" ]
1512500241@qq.com
c8a986b497b7a0c2128f13bbfde54e050e90750c
1745474c122c8a810ec835024c28c39c276f6e34
/facetrain.py
ce5763a2387ee13e1464aa7f5d52d1f385ef4cff
[]
no_license
HariAcidReign/ImageRecognition
92ccfc96bea62e3fa2120d4c0f44a848bd73052e
3d635a59d4a4c4354bff13928bd7ed4617c8cdae
refs/heads/master
2022-05-26T20:22:19.053898
2020-05-01T13:42:31
2020-05-01T13:42:31
259,615,230
0
0
null
null
null
null
UTF-8
Python
false
false
1,688
py
import os import cv2 import numpy as np import pickle from PIL import Image #Finds path of this facetrain.py file and assigns it to BASE_DIR BASE_DIR = os.path.dirname(os.path.abspath(__file__)) IMAGE_DIR = os.path.join(BASE_DIR,'images') face_cascade = cv2.CascadeClassifier('cascades/data/haarcascade_fr...
[ "noreply@github.com" ]
HariAcidReign.noreply@github.com
d7c716d5a9bf07da17abc23ef4d78ad48a9b06b9
e43f3a2b54b4f4b17c598a35dcf26fd534630b31
/blog/forms.py
c424d5419b962e12971ccf8c3289e20a82564fcc
[]
no_license
s8508235/CloudProgrammingWebApp
caa61282807a5cd5ed9e8060716a69f1b76838d0
6f9c379ab8c598cd5d132cec21b8c3b839899a29
refs/heads/master
2021-01-20T13:43:31.644473
2018-10-05T12:20:34
2018-10-05T12:20:34
90,520,119
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import Post class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=False, help_text='Optional.') last_name = forms.CharField(max_length=30, ...
[ "s8508235@yahoo.com.tw" ]
s8508235@yahoo.com.tw
f2c256c323ba1cec97493ee8de823784aeb287cc
ac8779998b00a35b2fced864b007334a32873bf1
/manage.py
cf1caf56512e01322d1767d71e4b7fce84a389b2
[]
no_license
openmaker-eu/dsp-explorer
5cb5ad4e7190dc8559b69a3154da9ae6383ef536
8a8b007ac6095ac6864e030641545724a6872f2e
refs/heads/master
2022-12-09T13:50:47.218076
2019-02-14T20:21:53
2019-02-14T20:21:53
90,641,109
5
8
null
2022-12-08T02:06:16
2017-05-08T15:02:38
Python
UTF-8
Python
false
false
809
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dspexplorer.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that ...
[ "alex.comunian@gmail.com" ]
alex.comunian@gmail.com
28f6b650adb85f3d667907e9d3035cf4f87b003a
4cd3609eded219222020b13c63d8dcfcba2cee0a
/badolexpenses/settings.py
d18d38c8219d9333a03165046b0788062d309cd8
[]
no_license
axdev4591/badol
b9856438a5d5201de4f8fe56b82bd444b815d63a
8739cf04cd19d34f49e7f77432230268b3b7e89b
refs/heads/master
2023-01-24T20:28:24.238471
2020-12-07T16:15:01
2020-12-07T16:15:01
317,877,435
0
0
null
null
null
null
UTF-8
Python
false
false
6,010
py
""" Django settings for badolexpenses project. Generated by 'django-admin startproject' using Django 3.0.7. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import...
[ "axelmouele@gmail.com" ]
axelmouele@gmail.com
ebf5a9196a6824deddd88d2ef1ea7e87b79f251b
e1425ebafec083e96cafb6fb24e120339b412333
/Link5/views.py
28c4d9d912a275e53709c1e4c647e9e4adbc5c9b
[]
no_license
sunvir72/EduWeb
825491a34e71cc63d478a66015f295651bb92a01
f02b5722e6f5f3318af8d84b860a89d057bc5258
refs/heads/master
2021-12-03T06:12:03.343047
2021-08-22T15:50:06
2021-08-22T15:50:06
235,432,186
0
0
null
null
null
null
UTF-8
Python
false
false
20,800
py
from django.shortcuts import render from django.shortcuts import HttpResponse,redirect from django.contrib.auth.models import User from django.contrib.auth import authenticate from Link2.models import saved_models,List import pandas as pd from django.core.files.base import ContentFile import pickle import os import dat...
[ "sunvirsingh72@gmail.com" ]
sunvirsingh72@gmail.com
8d7aefb0ee4e87eb4980fd57b5be7b87f7709f88
d3bfad41c5d935e6420322cf175b96b1ad1c7146
/venv/variousDebug.py
c41d03c457ff841db96b32ec0ed45e0426a12c80
[]
no_license
Rastinn235/02456-deep-learning-project
8d3221e4b30aec647b90f81bc40b81506f40981a
5b9a8e3011193075736d7780a2ffb6731204031c
refs/heads/main
2023-02-10T18:51:24.826296
2021-01-04T22:37:02
2021-01-04T22:37:02
318,879,838
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
# plot random piano roll midiroll = midi.midi2roll(listofAllMidiFiles[1]) midi.plotPianoRoll(midiroll) plt.figure(figsize=(8, 4)) plt.show() train, target = midi.splitLowHighNotes(midiroll) print("split") midi.plotPianoRoll(train) plt.figure(figsize=(8, 4)) plt.show() midi.plotPianoRoll(target) plt.figure(figsize=(8, 4...
[ "s144002@student.dtu.dk" ]
s144002@student.dtu.dk
388949d03d9a2d1082cb50d691f752acbb33b87e
ec11ade6f674d92c3accc917771c69de927c882c
/gmso/utils/decorators.py
aff3219d0151aee0d37154a8b7a955157ed5c9a0
[ "MIT" ]
permissive
rmatsum836/gmso
36a20a5b5c3548af7a0830c127fcba284f15c39b
8c662cc8e511f3b47f6e791d1a0d6a5f2ffeb1bc
refs/heads/master
2021-09-21T01:39:16.863137
2020-03-10T17:56:19
2020-03-10T17:56:19
244,210,188
1
0
MIT
2020-03-01T19:26:49
2020-03-01T19:26:48
null
UTF-8
Python
false
false
635
py
from functools import wraps def confirm_dict_existence(setter_function): """This decorator confirms that any core type member is in the topology's set (if it is used to wrap setters of the core type member class) """ @wraps(setter_function) def setter_with_dict_removal(self, *args, **kwargs):...
[ "umesh.timalsina@vanderbilt.edu" ]
umesh.timalsina@vanderbilt.edu
d800c64654a972e6395fb5cd0ec1bd2d1e9771bc
2c1afb1c43b8ba0df7791ccdb11c709e15a430d1
/cp_datawarehouse/etl/load.py
be92a9901e49723a9e8b2a4e4993b3aa3f80839e
[]
no_license
nicolasblaye/cp_datawarehouse
aca0146811e19910341f932a6e9ebba3954f750e
f7dfdd42e9161a0e465e8de64a0e84844e983a91
refs/heads/master
2020-03-21T18:52:00.131509
2018-07-01T20:38:04
2018-07-01T20:38:04
138,917,778
0
0
null
null
null
null
UTF-8
Python
false
false
2,093
py
""" Load module provides functions to load data into various cp_datawarehouse tables """ import logging import psycopg2 import psycopg2.extras import pandas as pd from cp_datawarehouse.config.base import config LOGGER = logging.getLogger(__name__) CONFIG = config() def insert_users_list(users_list): """ I...
[ "nblaye@powerspace.com" ]
nblaye@powerspace.com
94be3ed0169b5b1a099858c6d26cca996a1e3f6c
ee7ca0fed1620c3426fdfd22e5a82bba2a515983
/dsn_qc_pbsa/models/qc.py
49236e76f3e03ea571e2b17105d32c21ef6826d9
[]
no_license
disna-sistemas/odoo
318d0e38d9b43bea56978fe85fc72850d597f033
0826091462cc10c9edc3cc29ea59c417f8e66c33
refs/heads/8.0
2022-03-08T19:01:21.162717
2022-02-15T13:06:26
2022-02-15T13:06:26
99,210,381
0
5
null
2019-07-24T08:49:58
2017-08-03T08:36:55
Python
UTF-8
Python
false
false
1,399
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2012 OpenERP SA (<http://openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
[ "sistemas@disna.com" ]
sistemas@disna.com
f840cd0dfd6083df3c8aa4752cea0ac6b3a1cea0
75f34a0053cd3dc53862395148479d507e376b0e
/Starfield/main.py
9eadda72a9745b85463c10de85a1a3c22d5a1949
[]
no_license
nakamarusun/TA-stuff
0d093fe0ae720e8b68015146e0a5c74f15da1e8f
eb66ba8a74dea3f8fb2cfd5d2d949d530639e0ad
refs/heads/master
2023-03-02T17:09:07.752131
2021-02-08T15:49:33
2021-02-08T15:49:33
297,830,367
1
0
null
null
null
null
UTF-8
Python
false
false
1,168
py
import pygame import pygame.event import pygame.display import object_manager import pygame.time import util from time import time pygame.display.set_caption("Starfield") # Inits the pygame library pygame.init() while 1: # Records the first delta begin_time = time() # Loads the events to a local var ...
[ "nakamarujc@gmail.com" ]
nakamarujc@gmail.com
79a789918719a6e265aac3a7a5bbc428f2e62603
767a21165b30e8c443664b2f1f1254a2c75adc17
/python/ray/rllib/RL/DeepADFQ/run_anytime_planner.py
f2e7fb62b6fd6ecff60c11b9712dd31b04939d30
[ "Apache-2.0", "MIT" ]
permissive
christopher-hsu/ray
2113b1341e765f98950f970695aed71a69a19e91
abe84b596253411607a91b3a44c135f5e9ac6ac7
refs/heads/master
2020-06-10T22:49:45.683288
2019-08-05T19:15:56
2019-08-05T19:15:56
193,778,726
0
0
Apache-2.0
2019-06-25T20:27:48
2019-06-25T20:27:48
null
UTF-8
Python
false
false
3,092
py
import pdb import numpy as np import pickle import datetime, json, os, argparse import envs import pyInfoGathering as IGL parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--seed', help='RNG seed', type=int, default=0) parser.add_argument('--render', help='r...
[ "christopherhsu8@gmail.com" ]
christopherhsu8@gmail.com
b7fbde2b24ceb11a7e7084a5c6a99e00950b5a0e
28525dc93b71aed4465a76c5b92136795712cb10
/University/run.py
f8128905748c2a876b34caca226f8304b117ff25
[]
no_license
anasvp444/MachineLearning
7f2383ea069159e7813a94a2a64f32e7f2a5273a
b5581c6f8662c2eeda9f7ca69daa054b67c7bcaa
refs/heads/master
2020-05-05T06:54:55.347035
2019-12-04T02:36:01
2019-12-04T02:36:01
179,806,220
3
1
null
null
null
null
UTF-8
Python
false
false
2,203
py
from sklearn.linear_model import LinearRegression from flask import Flask, render_template, request, flash, redirect, url_for, Response import numpy as np import pandas as pd data = pd.read_csv('Admission_Predict_Ver1.1.csv') continues_data = data[['GRE Score', 'TOEFL Score', 'Uni...
[ "anasvp444@gmail.com" ]
anasvp444@gmail.com
b3b1665fb21f6233aa62577bc888715c6c87326f
e5a044708032b853f1cdf8906da63502716fd410
/test/test_acs_response.py
50ae8c13ac7310108d49f9d76f8061799b9c37d7
[]
no_license
GBSEcom/Python
4b93bab80476051fc99f379f018ac9fa109a8a6a
5fa37dba8d0c3853686fdc726f863743376060c9
refs/heads/master
2021-12-04T12:55:29.605843
2021-11-19T22:01:03
2021-11-19T22:01:03
136,058,345
1
2
null
null
null
null
UTF-8
Python
false
false
1,064
py
# coding: utf-8 """ Payment Gateway API Specification. The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501 The ve...
[ "emargules@bluepay.com" ]
emargules@bluepay.com
10affdb29314ddfb1405ef86dcd765a719c52ee1
6a6ef66fbf39e8a5c77c3359fc3d1995f5e32646
/purchase_app/purchase/views.py
ebcee4cd76718836d289f938414efe558b144757
[]
no_license
Shwetaa22/PurchaseModel
0a380634305218d784540122ef3ce8bbcf419ea6
128abc346648d0b6ce364a0dbe5cb29663d36290
refs/heads/master
2023-02-02T09:42:30.613976
2020-12-20T14:24:22
2020-12-20T14:24:22
321,710,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,087
py
from django.db import connection from django.shortcuts import render from django.db.models import Sum, Count from django.http import JsonResponse from .models import PurchaseModel,PurchaseStatusModel def home(request): return render(request, 'home.html') def bar_chart(request): labels = [] data = [] ...
[ "shweta.ayre@tacto.in" ]
shweta.ayre@tacto.in
cc93233f0b52c7d0783f65cc3716005438cc0fd3
164ffe077dde59373ad9fadcfd727f279a1cfe93
/jni_build/jni/include/tensorflow/python/client/timeline.py
03e07a27ad5cafa21dfe51e752b2a4f8cbfac7b7
[]
no_license
Basofe/Community_Based_Repository_Traffic_Signs
524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd
a20da440a21ed5160baae4d283c5880b8ba8e83c
refs/heads/master
2021-01-22T21:17:37.392145
2017-09-28T21:35:58
2017-09-28T21:35:58
85,407,197
0
2
null
null
null
null
UTF-8
Python
false
false
24,412
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...
[ "helder_m_p_novais@hotmail.com" ]
helder_m_p_novais@hotmail.com
8c2c7e01389a645b6a32e59ca057febd60ccbc87
5afce1498e13fd7f45c139fa66b0560c6a9fb479
/DBproject/wsgi.py
00b752dc663f2e1f4362c19798317c596076744e
[]
no_license
borigor/DBproject
8bc17d7ea2f247edfa74ca29ab723caa4bee8f59
54c2d572e19661320a2b6bf4eb68671b1374243e
refs/heads/master
2021-01-23T06:50:11.655902
2014-04-30T04:27:35
2014-04-30T04:27:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,428
py
""" WSGI config for DBproject project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`...
[ "igor.gigi13@gmail.com" ]
igor.gigi13@gmail.com
2b450b24f67d599f14f273d97dbbfbec3c6f8837
d6bac4d51530329a8b8ec7f865c56655d5517ada
/formatString.py
8a2a43c13456b738ae49ff3f89bc9b45d8324442
[]
no_license
diogocatapreta/pythoncouse
7bde33e83f799aed12f8fb96eea057f94195f086
f865ef4c3928a1d7ee7be62ebbdc70c3aee605f0
refs/heads/master
2021-04-30T08:31:08.763622
2018-02-22T18:10:17
2018-02-22T18:10:17
121,377,677
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
name = "Diogo" machine = "Welly" interpolation = True if interpolation: print("Hello {0}, I'm a machine and my name is {1}".format(name, machine)) else: #String Interpolation sample print(f"Hello {name}, I'm a machine and my name is {machine}.")
[ "diogocatapreta@gmail.com" ]
diogocatapreta@gmail.com
09f70f369e144a71c51b73ed22daee52504648d1
a7248b870e97100ac0128d28f74fa70186c4cb7a
/Data Integration.py
9742f3a9e94dcf25874c56dc5ad0d9d015c6761b
[]
no_license
sklimantovich/IntersetInterview
b4e97cd9d4158e6d76147fa45ba97fcf2e18942d
d8b7f0231ce72d424a0df9b894130d6248432596
refs/heads/master
2021-01-20T06:17:38.970517
2017-04-30T16:05:59
2017-04-30T16:05:59
89,860,439
0
0
null
null
null
null
UTF-8
Python
false
false
5,759
py
# This script is compatible with Python 3.6. # Using Python 2.7 may not work # Written by Sergey Klimantovich # Date: 30/04/2017 import json import csv from datetime import datetime import argparse import os """ This method opens a file with JSON object, read it line by line and creates json_data objec...
[ "noreply@github.com" ]
sklimantovich.noreply@github.com
c9e7c33fa1def03f75ae6eae3e0060a1052e6d21
1e05b18a9dd212e21789deec471262cc84e9dce7
/models/fastrcnn_resnet_50.py
a37cf739c748a34375d1d9ba2784d1568d4f8abd
[]
no_license
Bovey0809/global_wheat
9ff7f1888a7b1ad5668369d0c242bb8728348822
6daf58503c5525352497a689f1854df14f62b77d
refs/heads/master
2022-11-23T02:35:05.725850
2020-07-09T07:03:20
2020-07-09T07:03:20
277,493,088
1
0
null
null
null
null
UTF-8
Python
false
false
268
py
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision.models.detection.faster_rcnn import FastRCNNPredictor from torchvision.models.detection import fasterrcnn_resnet50_fpn class fastercnn(torch.nn.Module):
[ "my364007886@gmail.com" ]
my364007886@gmail.com
5b59245810f273b453d8890a4323042d1618a756
dcfdad4ce2289af76fc1ca2a9f593a13a79b390d
/CS154_Labs_2ndSem/Lab10/file_worrd.py
45c75e7ea91c696879235a5f17708d11d17ee1ed
[]
no_license
arponbasu/CS154_Labs_2ndSem
ee2b4b02ea13028d59236cf51a64ca89505a9fd0
f48b016776a57435f050fe6babac1fc90ac3d85e
refs/heads/main
2023-07-05T01:20:14.895773
2021-09-01T16:32:58
2021-09-01T16:32:58
392,825,511
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
fl=open(sys.argv[1], 'r').readlines() word_list=[lines.split(" ") for lines in fl] print(len(word_list))
[ "noreply@github.com" ]
arponbasu.noreply@github.com
2294bcc3211c94ad16f0784191f9eb000b41fb76
23805cffc86ac4dfb5bcce672b8c7070b4616e41
/Apprendre-Python/sum-1-n/scripts/feedback.py
638e0fc434e034cca499389e17e3f7f853abd000
[]
no_license
ukonline/pythia-tasks
f90ff90299fe0eedd0e2787bcf666df07c709a00
81a3731eb0cdfe16b26a4e75a165a5071fb48ff5
refs/heads/master
2021-01-25T03:26:33.915795
2016-01-04T20:03:24
2016-01-04T20:03:24
40,974,655
0
2
null
2016-12-21T13:12:14
2015-08-18T13:49:39
Python
UTF-8
Python
false
false
1,247
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Course: Apprendre Python # Problem: Somme de 1 à n # Feedback script import ast import csv import json import os import sys sys.path.append('/task/static') from lib import pythia import math def computesum(n): result = 0 i = 1 while i <= n: result += ...
[ "seb478@gmail.com" ]
seb478@gmail.com
46823e51aef1425db664261b1bf8807eda1cf97f
ff21dd1b906db472584aa92a32c22fb9351c9ffd
/NOTE/02_PythonBase/day20/exercise/mycopy.py
84c9355038bbc272ced2e384557d1676f5064f61
[]
no_license
Bertram-Liu/Note
0e176b2c9625f02e463b8f6be3587f1f0b873e9b
60a30b03ff5d41ab6233e6fd30074de396703b68
refs/heads/master
2020-07-18T18:14:24.920528
2019-09-04T11:55:59
2019-09-04T11:55:59
206,290,323
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
# 1. 写程序,实现复制文件的功能 # 要求: # 1. 要考虑关闭文件的问题 # 2. 要考虑超大文件的问题 # 3. 要能复制二进制文件 def copy(src_file, dst_file): '''src_file 源文件 dst_file 目标文件''' # 以下实现复制 try: with open(src_file, 'rb') as fr, \ open(dst_file, 'wb') as fw: while True: ...
[ "bertram_liu@163.com" ]
bertram_liu@163.com
b529d4e2ef137a416b1a7794a47c6e9eebffab3b
01ac9e40052a468dd472a296df0003c4e629e2c9
/news_all/spiders_ydyl/cppcc_all.py
4081ec07efd2853fce653816d12c6835d575b706
[]
no_license
Pintrue/news_all
b5cee16584ed92e6574edd825b574214df65d917
eb8c32c79bdacd8e2f76b88f27871c3cd0118006
refs/heads/master
2022-03-23T13:34:10.354029
2019-11-22T07:40:50
2019-11-22T07:40:50
223,058,997
2
1
null
null
null
null
UTF-8
Python
false
false
1,433
py
# -*- coding: utf-8 -*- from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Rule from news_all.spider_models import NewsRCSpider class Zgzxw_allSpider(NewsRCSpider): """中国政协网""" name = 'zgzxw' mystart_urls = { 'http://www.cppcc.gov.cn/zxww/newcppcc/zxyw/index.shtml': 7642, ...
[ "py416@ic.ac.uk" ]
py416@ic.ac.uk
281b53afc70f1980e6fd4fce95475fb535e8f4a3
4219ce3a8d69ece222700b6eca4ed615dc8a3b33
/light.py
1dead3e43034d265477cc38b3142f3652b92421b
[ "MIT" ]
permissive
ami-GS/Timelapse_RPi
8b144606f7e2ffbd24f312420e240a9f11948097
f7732f4882ddf64cc5496e1bc2bab05ad75fa221
refs/heads/master
2020-04-28T06:56:06.913496
2015-02-23T11:59:50
2015-02-23T11:59:50
18,900,825
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
import RPi.GPIO as GPIO class LEDs(): def __init__(self, chan_list = []): GPIO.setmode(GPIO.BOARD) if chan_list: self.setChannels(chan_list) def init(self): self.__init__(self.chan_list) def setChannels(self, chan_list): self.chan_list = chan_list GPIO....
[ "1991.daiki@gmail.com" ]
1991.daiki@gmail.com
22fe6252c1d33a331415ffaf644c9dbdb687b865
99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6
/algorithm/IM/반나누기.py
0f16cc1db1f921f7c87b424d4ce293b0641550ca
[]
no_license
HSx3/TIL
92acc90758015c2e31660617bd927f7f100f5f64
981c9aaaf09c930d980205f68a28f2fc8006efcb
refs/heads/master
2020-04-11T21:13:36.239246
2019-05-08T08:18:03
2019-05-08T08:18:03
162,099,042
4
0
null
null
null
null
UTF-8
Python
false
false
783
py
import sys sys.stdin = open("반나누기.txt") T = int(input()) for tc in range(1, T+1): N, Kmin, Kmax = map(int, input().split()) score = list(map(int, input().split())) div_class = [] for T1 in range(1, 101): for T2 in range(T1+1, 101): A = [] B = [] C = [] ...
[ "hs.ssafy@gmail.com" ]
hs.ssafy@gmail.com
8660e3e52419ba988cffe6b272af016b10932e8c
3279fdc580a255bd5d9fcb9f7ba74db87289bb2f
/build/turtlebot/turtlebot_capabilities/catkin_generated/pkg.installspace.context.pc.py
2f1dd7351f47345b5129c3d03adc686e9c3f0e76
[]
no_license
juspch/homeservicerobot
3450cb0ceddc8a09a9da879a0f3f81795f79a998
afdfacc87637a926d037330108c1d6fc45aaa7a2
refs/heads/master
2022-04-15T15:00:14.453327
2020-04-13T14:33:25
2020-04-13T14:33:25
255,339,431
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "turtlebot_capabilities" PROJECT_SPACE...
[ "juspch@gmail.com" ]
juspch@gmail.com
af54c2b60779c31d1d0d83a753f2c43b38f14d77
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/mDzheHpwtqyXePEBE_1.py
ab0f5df7676101d833a8e557fffe7d8f9cbc98e4
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
def sum_polygon(n): return (n - 2) * 180
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
ce2c39c3477019baaa00ce42f360612cc208f501
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
/eXe/rev2283-2409/base-trunk-2283/exe/engine/path.py
8c18ee779da2843b3377442bd070d39038cb31c2
[]
no_license
joliebig/featurehouse_fstmerge_examples
af1b963537839d13e834f829cf51f8ad5e6ffe76
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
refs/heads/master
2016-09-05T10:24:50.974902
2013-03-28T16:28:47
2013-03-28T16:28:47
9,080,611
3
2
null
null
null
null
UTF-8
Python
false
false
29,655
py
""" path.py - An object representing a path to a file or directory. Example: from path import Path d = Path('/home/guido/bin') for file_ in d.files('*.py'): file_.chmod(0755) This module requires Python 2.2 or later. Licensed under GPL. URL: http://www.jorendorff.com/articles/python/path Author: Jason Orendorf...
[ "joliebig@fim.uni-passau.de" ]
joliebig@fim.uni-passau.de
48ee96aaa54d9169918858f83eda7034d7c94797
af3d3cd43d156d10fd2b6016b3527cb2d03e7d7a
/utils/score.py
590edd1e6c390b39767c5a0ac6c59d60d9f2a60f
[ "Apache-2.0" ]
permissive
YapheeetS/stance_detection
11e79ec1bcca3a2bdba795c71635b29eb5d70b19
7710d558676b4ec86f2dd1fde5da43e29ba3676f
refs/heads/master
2022-12-01T17:55:59.763174
2020-08-20T18:47:31
2020-08-20T18:47:31
289,083,697
0
0
null
null
null
null
UTF-8
Python
false
false
1,980
py
#Adapted from https://github.com/FakeNewsChallenge/fnc-1/blob/master/scorer.py #Original credit - @bgalbraith from sklearn.metrics import f1_score LABELS = ['agree', 'disagree', 'discuss', 'unrelated'] LABELS_RELATED = ['unrelated','related'] RELATED = LABELS[0:3] def score_submission(gold_labels, test_labels): m...
[ "liaohaojin@163.com" ]
liaohaojin@163.com
2c399c1745c86c9f7a98fac907d68674946c84be
ed5cb7ca5d815ee9401b58d1f2f0c560cba2e46a
/homework2(ylab).py
048111aee3585429b56c636d2e70c1a7eb4c8a94
[]
no_license
reydnn/ylab-homework
57ab0e79246534086d0913df627c823c36076191
c2d7f5aaedc7beabc061d4e97f6423d8c5898799
refs/heads/main
2023-08-23T20:27:12.527163
2021-10-17T11:43:35
2021-10-17T11:43:35
417,834,948
0
0
null
null
null
null
UTF-8
Python
false
false
10,367
py
from tkinter import * import random as random game = True field = [] x_count = 0 length = 10 widht = 10 def print_window(): # отрисовка игрового окна root = Tk() root.title('Игра') for row in range(length): line = [] ...
[ "noreply@github.com" ]
reydnn.noreply@github.com
e87ad93a3d3dcdf7cfea8ea52573b0f8fcc1a35a
54290d468f91a21f131458b136213354a3780a46
/fabfile.py
2f37bf95d517421a6878a2eb07b905c48515e92f
[ "WTFPL" ]
permissive
LaPosteSNA/addok
9435cccd37e936c89c538caed08f5db04e6bd0eb
22a4e407c5a94d412673d223a25a8a3651801a71
refs/heads/master
2021-01-22T13:13:37.465954
2016-01-26T17:02:01
2016-01-26T17:02:01
45,954,224
1
0
null
2015-11-11T02:15:32
2015-11-11T02:15:31
null
UTF-8
Python
true
false
3,886
py
from fabric.api import cd, env, execute, hide, puts, roles, sudo, task env.project_name = 'addok' env.repository = 'https://github.com/etalab/addok.git' env.local_branch = 'master' env.remote_ref = 'origin/master' env.requirements_file = 'requirements.txt' env.use_ssh_config = True env.shell = "/bin/bash -c" # Defaul...
[ "yb@enix.org" ]
yb@enix.org
b3a29506b11dcc3e4676d7b4a86512f5f01e9ffb
91f665f982b164eeb3b6db21eb047746e8488ba5
/LY.py
97808d7d4a5ab867627318ae834ce2f411beae00
[]
no_license
46319943/qgis_plugin_homework
1dd6915b9617e55609c2dd858c64cb011742ab5d
94cb6bc74512a439effad1e5556e1bf9cbfeb3bd
refs/heads/master
2023-01-02T21:17:56.255944
2020-10-20T09:10:18
2020-10-20T09:10:18
305,649,392
0
0
null
null
null
null
UTF-8
Python
false
false
6,775
py
# -*- coding: utf-8 -*- """ /*************************************************************************** LY A QGIS plugin LY Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/ ------------------- begin : 2...
[ "495384481@qq.com" ]
495384481@qq.com
7d4e6bffda2aa0fba7162dcdddd61002522e4a74
5f408e5c43cf39a0ae6abf1c1309004f997cc7ee
/extras/benchmark/format_bench_results.py
45065d4b7c14abb9180393e80434e2d0bf098081
[ "Apache-2.0" ]
permissive
fran6co/fruit
408e24385ded3c8d49e23f0c572e4ce4d7569622
b34b703b4d50b49a658aeab227765bc3260d7d89
refs/heads/master
2021-01-19T10:34:32.890334
2017-05-09T08:42:15
2017-05-09T08:42:15
82,211,310
0
0
null
2017-02-16T18:14:59
2017-02-16T18:14:59
null
UTF-8
Python
false
false
13,384
py
#!/usr/bin/env python3 # Copyright 2016 Google Inc. 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 requir...
[ "poletti.marco@gmail.com" ]
poletti.marco@gmail.com
d7db13e9901dfdb2541b150c96b70055368e00ee
cf720b69d428b92186e84e52ff4f7eb39b8dd723
/Probablity and Statistics/3. WAP to find the probability of drawing an ace after drawing an ace on the first draw.py
d831885a30876fdd223cd5f274b1fb19dbec87e6
[]
no_license
bl-deepakchawla/ML-Followship-Program
b0fd2232f6dd2ea4356e4402be86cca84a5fbd60
41d88172ea226c42c1f56fd9e59769142575734c
refs/heads/master
2020-04-01T13:56:11.595143
2018-10-31T10:28:19
2018-10-31T10:28:19
153,273,456
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
def pr_ace_after_ace_draw(l_ace_cards, l_total_cards): l_pr_ace_card = (l_ace_cards/l_total_cards) * 100 return l_pr_ace_card g_total_cards = 52 g_ace_draw = 1 g_total_cards = g_total_cards - g_ace_draw g_ace_cards = 4 - g_ace_draw g_pr_ace_card = pr_ace_after_ace_draw(g_ace_cards, g_total_cards) print("Proba...
[ "deepakchawla35@gmail.com" ]
deepakchawla35@gmail.com
964f0f6d8e473b5059787827e5796aee63a0f3bf
5e6ee5d0f840bf031bab13df120987dc31491034
/restfulapicrud/restfulapicrud/urls.py
31852b1d2f0d2de7f58a9906e25779311f8ea86f
[]
no_license
cal1log/heroku_api_rest
9027d3b24c704ed8f15c6badd7dd8fca62894cfa
a800706ac5e24a26ef7c68dc039b6bba0448fce3
refs/heads/main
2023-06-28T00:11:14.578647
2021-07-26T21:03:12
2021-07-26T21:03:12
388,584,473
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
"""restfulapicrud URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/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') Clas...
[ "orlago250183@gmail.com" ]
orlago250183@gmail.com
5aa39cd29ff6236b62f61c9c3f51364eea44b3a5
419db2c95082e57eab3ebea9568693c2a961add7
/pyverilog/dataflow/dataflow_analyzer.py
8136f89271efed5ed13e2089e74ec92349f3bf33
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hoangt/Pyverilog-1
ef309528150a3174e74126b2f1328ca9824fcbfe
d0cb60a5633e88f59a7c5c36dff8981f000ee525
refs/heads/master
2021-01-19T22:53:52.170548
2015-09-16T15:23:16
2015-09-16T15:23:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,027
py
#------------------------------------------------------------------------------- # dataflow_analyzer.py # # Verilog module signal/module dataflow analyzer # # Copyright (C) 2013, Shinya Takamaeda-Yamazaki # License: Apache 2.0 #------------------------------------------------------------------------------- from __futu...
[ "shta.ky1018@gmail.com" ]
shta.ky1018@gmail.com
7e13be84bbf8b99b433ee0cdf9942b535f5fe129
e2a78a6ada3d87f90231b0457eb46d5999c75ee0
/LINFO1101/[INFO1] Informatique 1 - Introduction à la programmation/Session 03/Q_Plus grand diviseur.py
36d53895d2e44438216f09844cf53611c46c6d23
[]
no_license
Oldgram/SINFEDU
3df19e6db5737bc1fff5e0dcd2171c5e737f4b31
1012355bc418c62de117b56bf4726336b88bf8ef
refs/heads/master
2023-02-26T19:52:28.987465
2021-02-02T14:33:35
2021-02-02T14:33:35
233,269,625
6
6
null
2021-01-20T23:32:47
2020-01-11T17:26:59
Java
UTF-8
Python
false
false
115
py
if a == 0 or a == 1 : return None l = [] for i in range(1, a+1): if not a % i: l.append(i) return l[-2]
[ "goffindy@gmail.com" ]
goffindy@gmail.com
547aa077f046aab16aae678a4411d80daf8a71ac
e44455d19049fcff6fb74504207c396e67e2a9b5
/Eng_lda(FINAL).py
577c820dbd2d78ed0afec2a1bda54615a3dd631f
[]
no_license
NoraishaYusuf/Research-Project-WQD7002
e52de6e2e96fa97cf85c0a2043afe55d5fbdc524
e6ee020456c5d4f95d0c7281675ce7282e576b9e
refs/heads/master
2021-02-18T01:58:39.584405
2020-06-18T01:10:34
2020-06-18T01:10:34
245,147,481
0
0
null
null
null
null
UTF-8
Python
false
false
7,498
py
# ============================================================================= # MALAY CORPUS: # 1. Tuned LDA model for train data # 2. Use tuned lda model to infer topic distribution on test data # ============================================================================= "Execute preprocessing functions" ...
[ "noreply@github.com" ]
NoraishaYusuf.noreply@github.com
8138e1872ba83e8b4e5232c1d3cc450e30f9a153
527cc44efaa5a2d738d638d76cf4737b37a0e27d
/fiepipe.py
3302504191367767067a54043f89092e1dc52f4e
[ "MIT" ]
permissive
leith-bartrich/fiepipe
c98a978d81a24013a98bbae97c65ca053e9af481
2f48054a349059ec5919ff9402a02c03b27b5915
refs/heads/master
2021-04-06T13:52:51.391039
2019-06-25T21:01:39
2019-06-25T21:01:39
125,394,369
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
#!/usr/local/bin/python import fiepipelib.localplatform.routines.localplatform import fiepipelib.localuser.routines.localuser import fiepipedesktoplib.shells.fiepipe def main(): # TODO register fie.us and populate the public key from somewhere authoritative. platform = fiepipelib.localplatform.routines.local...
[ "brad@fie.us" ]
brad@fie.us
f4279375082aa381ae5e057b8c58038de2b7a844
b39c3568d2347dfb1dfa9581f0bf9e3e24d15a73
/rl_algos/offpol_correction.py
66ede794260a0f3c8a17fdd3b450d3971224c672
[]
no_license
P-Schumacher/research
2f55ea4fa5bad32c2537298a619c4f55d4338f06
61bcf6aed6594d57c3074b43a2b8ffa80e79ca5d
refs/heads/master
2023-02-12T08:43:41.400651
2021-01-04T13:22:47
2021-01-04T13:22:47
242,512,373
0
0
null
null
null
null
UTF-8
Python
false
false
5,645
py
import tensorflow as tf from pudb import set_trace @tf.function() def off_policy_correction(subgoal_ranges, target_dim, pi, goal_b, state_b, next_state_b, no_candidates, c_step, state_seq, action_seq, zero_obs): # TODO Update docstring to real dimensions '''Computes the off-policy cor...
[ "pier_schumacher@hotmail.com" ]
pier_schumacher@hotmail.com
d5d0d875069bad8de3497ee1a32aeff5d8fa994f
7326f37b50c5e78f0620503ed2fc48467e86386d
/tests/test_slow_class.py
da1206f98cf6ce468f76d3543fea090a55a5ebec
[]
no_license
zsolt-halo/pytest-mock-examples
4a5e59c297e22d7dd49caf12db6b6ac1437db409
c1d53f383b9dd5f6a69616b6937d448bc7aed304
refs/heads/master
2022-12-04T22:40:04.259800
2020-08-20T14:06:39
2020-08-20T14:06:39
289,021,963
0
0
null
2020-08-20T14:04:22
2020-08-20T14:04:22
null
UTF-8
Python
false
false
302
py
from mock_examples.main import slow_dataset def test_mocking_class_method(mocker): expected = 'xyz' def mock_load(self): return 'xyz' mocker.patch( 'mock_examples.main.Dataset.load_data', mock_load ) actual = slow_dataset() assert expected == actual
[ "lee.changhsin@gmail.com" ]
lee.changhsin@gmail.com