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
1e375586cbd7c74b358b69b8b358e5b661304080
4994dd5eab22d7f742e8314cc6b794758c9efb88
/rasp-server/serverInterface/gui.py
05741a1ca0338a76cc268011b9de048e38fa527a
[]
no_license
lukasp2/my-programs
500ad27e0600c5b6d9ef13540ee7aec8643b8e07
34a340922c70a76f5cdc39be98fd248859d32ac7
refs/heads/master
2021-10-20T10:25:16.389875
2021-10-13T17:51:59
2021-10-13T17:51:59
249,396,758
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
from tkinter import * class Gui(): def __init__(self): self.window = Tk() self.window.title("Server Interface") self.window.geometry('1080x720') def add(self, text="ABC", font=("Arial Bold", 10), position=(0,0)): lbl = Label(self.window, text=text, font=font) lbl.place(...
[ "lukpohl3@gmail.com" ]
lukpohl3@gmail.com
a816b9eb7cb4c15572bcc2fde5429a9a3fef50b8
2827d7a837eb29c3cb07793ab6d3d5a753e18669
/alipay/aop/api/request/AlipayOfflineMarketProductBatchqueryRequest.py
5b6524909b5e0b93c45834d283793cf3e6e236ce
[ "Apache-2.0" ]
permissive
shaobenbin/alipay-sdk-python
22e809b8f5096bec57d2bb25414f64bdc87fa8b3
5232ad74dff2e8a6e0e7646ab3318feefa07a37d
refs/heads/master
2020-03-21T04:51:39.935692
2018-06-21T07:03:31
2018-06-21T07:03:31
138,131,022
0
0
null
2018-06-21T06:50:24
2018-06-21T06:50:24
null
UTF-8
Python
false
false
4,015
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOfflineMarketProductBatchqueryModel import AlipayOfflineMarketProductBatchqueryModel class AlipayOfflineMarketProductBatchquer...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
cd4370074bb41bf9e731daf73ccce7b0d725f95e
d73f2c600d018a7decbf99feac95ea192b8048d7
/union_of_arrays.py
0e4be2de7253e273aa502789f45bdb92bf3b3423
[]
no_license
saurabhlengare15/gfg_array
fca91526ac1131cea74a59c2434bce6bc22bfbad
0d16c017164de8431358ab7d9a22b9d02fec00d8
refs/heads/main
2023-07-17T21:49:16.765165
2021-09-02T06:25:43
2021-09-02T06:25:43
399,807,570
0
0
null
null
null
null
UTF-8
Python
false
false
141
py
a = [85,25,1,32,54,6] b = [85,2] for i in b: if i in a: a.remove(i) op = b+a print(list(set(op))) print(len(op))
[ "saurabhlengare15@gmail.com" ]
saurabhlengare15@gmail.com
584e6c0d4289d72efa6b226ce78b5ab638aacebb
d97bb55d1ba4d62212f3ebc47cee36ad2dff1581
/blog/migrations/0002_comment.py
7ce191aae3a3e30b790af33d0554b02e2310723a
[]
no_license
Zhgong/my-first-blog
f9a68f59fdf6b477d1bb9934c86d127e07eb1d03
d1db922234ffe3198942e9649b2166814b5a6436
refs/heads/master
2021-01-17T06:52:36.067752
2016-07-28T20:25:37
2016-07-28T20:25:37
45,757,197
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-28 20:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] ...
[ "sean.gongz@gmail.com" ]
sean.gongz@gmail.com
0a45a862d3c529f57cce59103290f55dc8ab44f8
057fde8a8ab9622a3524cb880c7ace5a15c0f355
/set7/70.py
4b1fb8e3c9d5e4a6348aeeaf197facb1e7fb3b10
[]
no_license
ramyasutraye/Guvi_Python
e9ba6eb812ec8014214dce77d710ce230bbb8020
2fed3c460185fbf7bcf64c068084bcdb7d840140
refs/heads/master
2020-04-23T19:30:21.003061
2018-05-25T10:43:14
2018-05-25T10:43:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
a=int(input("Enter any number:")) for i in range(0,a): num=2**i if num>a: print(num) break if a==2: print("4") elif a==1 or a==0: print("2")
[ "noreply@github.com" ]
ramyasutraye.noreply@github.com
dbe5bcedfd167903ef625947a9f2ad1c9b06331d
b03b82524d44aa14cfa700370841373e93f87de0
/Part2/weighted_choice.py
767d0d18fc83875885101c0497a5175456c1a8a6
[]
no_license
megagreg72/2014_washu_social_networks_graph_of_citations
881f9373d572ac9d19d52563aa9cb6879473bd8c
f5a6fde958be9d671c5ca42b4e4b43de65c8efd2
refs/heads/master
2020-07-22T01:13:49.500392
2019-09-07T21:25:11
2019-09-07T21:25:11
207,026,984
0
0
null
null
null
null
UTF-8
Python
false
false
3,198
py
import itertools import random import math import bisect import networkx as nx from networkx.generators.classic import empty_graph, path_graph, complete_graph """ Part of a failed attempt to reimplement NetworkX graph generation. Nothing to see here. """ """ Gets random element of list in O(n) time. """...
[ "noreply@github.com" ]
megagreg72.noreply@github.com
57ad9713e3f79782de7a2975b56af58d0da43ecc
865649cd891b2e0583f16c65b97a7ad9b81e8608
/python/mockUserInterests.py
0e2fe9abfd3a965a6845eb9ae7aab586e7074fbb
[]
no_license
crnlmchina/scripts
486912b6ac997d39dda24fe4548e86bb3004058e
b1220f001153871b18506d8be6f915e144785800
refs/heads/master
2016-09-05T16:45:13.755633
2015-06-11T07:19:24
2015-06-11T07:19:24
10,258,998
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
# -*- coding: utf8 -*- ''' Created on 2012-3-5 @author: wangyuxaun ''' from pymongo import * from pyExcelerator import * import re _output_report_name='/home/wendui/scripts/python/mock_user_interests.xls' #_output_report_name='C:/data/mock_user_interests.xls' _mongo_host='127.0.0.1' _categories={ 'vmlrkfkytk' : u...
[ "crnlmcn@gmail.com" ]
crnlmcn@gmail.com
809595d1fa3df5a45abcab47ef7dd4d58698b915
8af8544612d10260d1eaf4c613e599aaafc8f4c7
/cal/admin.py
48bd114c5a689fcc66e2fa9e1edc167617f235d1
[]
no_license
Noeuclides/djangocalendar
46979e7249adc94c449b7bd54888f752936a9a46
4a7fed9ae73989190c8b1f620de81af48248b788
refs/heads/master
2023-07-31T21:42:25.638017
2020-06-22T22:32:15
2020-06-22T22:32:15
273,511,608
0
0
null
2021-09-22T19:16:05
2020-06-19T14:20:39
Python
UTF-8
Python
false
false
1,114
py
from django.contrib import admin from cal.models import * class EventAdmin(admin.ModelAdmin): list_display = ('id', 'title', 'grade') list_display_links = ('id', 'title', 'grade') class ChallengeAdmin(admin.ModelAdmin): list_display = ('id', 'name', 'grade') list_display_links = ('id', 'name', 'grade'...
[ "euclidesnoeuclides@gmail.com" ]
euclidesnoeuclides@gmail.com
39b6a43f069ab0c1d6e92990a6bd9b7bfcea8462
d4a62b61a25db4edd6e772aa63e46efa6003cd7d
/Common/model_utils.py
32c13eb6489c1beb3e962327ec6b095f84fd61db
[ "MIT" ]
permissive
PC-Completion/VPC-Net
ae7255831cc07c7aab2c8686fc9c0130d5674282
5bcdfb7bdf0eca214b02bed26b05faa6ea6c1fee
refs/heads/main
2023-07-19T17:12:49.457825
2021-04-20T19:20:44
2021-04-20T19:20:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,132
py
import os import tensorflow as tf from pc_distance import tf_nndistance, tf_approxmatch from tf_ops.sampling import tf_sampling from tf_ops.grouping.tf_grouping import query_ball_point, group_point, knn_point_2 from tf_ops.sampling.tf_sampling import gather_point, farthest_point_sample import numpy as np def covarianc...
[ "xyansunshine@gmail.com" ]
xyansunshine@gmail.com
cdf830ae3e0835a12624bfd2c5ef4c83e633a614
313afbb1ea19f2266571870c7461f2591e30ea7b
/src/lab/lab01/z_7_macierze.py
e11a427c91a7ab0da9a9a38c400254c006be1ae9
[]
no_license
tborzyszkowski/LogikaProgramowania
89201a76ddc60692ffccaf7c4c7b17d4e1e2c0e8
cceb161a6ff5933d2acc31f15879cafcf03b285b
refs/heads/master
2022-06-23T18:41:29.460094
2022-06-17T16:18:29
2022-06-17T16:18:29
250,095,485
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
from random import random N = 2 m1 = [ [(1 if i == j else 0) for j in range(N)] for i in range(N) ] m2 = [[int(random() * 100) for y in range(N)] for x in range(N)] print("m1:") for row in m1: print(row) print("\n-----------\n") print("m2:") for row in m2: print(row) print("\n----------...
[ "t.borzyszkowski@gmail.com" ]
t.borzyszkowski@gmail.com
c6601188140090565f5e973a3caafcdca7e549d6
204e9b50e363126702dbdb69657938a5ab8f43ce
/home/migrations/0001_initial.py
6f48e658682c34c5091f192fc03c9ee95d086c1e
[]
no_license
thangnguyen-gmail/thimanguonmo
9a763335747ce7cf497f20a1981c3320b84c11f1
c739ee74e1563a8ee25f607d7ae5a5db9547e945
refs/heads/master
2020-12-01T17:01:42.416278
2019-12-29T05:10:07
2019-12-29T05:10:07
230,705,577
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
# Generated by Django 2.2.7 on 2019-12-18 16:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('cat_id', models.AutoF...
[ "thangnguyen1098@gmail.com" ]
thangnguyen1098@gmail.com
00a9ae15be7eee119897d2fa31829272702b24dd
dcb1c6ccd8df1658f63bbcc9c0d57e019126e918
/Other Pjts_RecSys/cosine_similarity.py
a887e66488b439426ab94aaf18a0695b7684dc97
[]
no_license
alishaaj/data-works
58f7e419257383c1d873c2be507d2d4bb2ec284a
fc0d0ef8923414b6d593ffd412a93782b98f434f
refs/heads/master
2020-03-25T09:23:57.733913
2018-08-06T03:22:30
2018-08-06T03:22:30
143,664,745
0
0
null
null
null
null
UTF-8
Python
false
false
1,791
py
# -*- coding: utf-8 -*- """ Created on Wed May 23 11:03:36 2018 @author: alish """ #----Train----------- import pandas as pd # Importing the dataset rating_data = pd.read_csv('train5.csv') traindata=rating_data[['User','Item','Rating']] #selecting positive irems ; rating>3 posdata_train=traindata.loc[traindata['Ratin...
[ "alisha.jose2@gmail.com" ]
alisha.jose2@gmail.com
87b034c3f1d2cf08e6ac08e11e95b604ac377c93
6a3aadefc99e8e1f4f57daffa11f629ce4c5173b
/getWeatherData.py
77d2bc4d933c1958ab4be065dbceba16a4402d16
[]
no_license
Allen2Git/weatherScrapy
44b2e32a57d85e3bfa56cedd80ca69ef06c01618
02b74dd53b9b6a26c0acbedfcae8fcc30fe9c1f5
refs/heads/master
2021-05-11T16:25:33.561203
2018-01-17T01:40:47
2018-01-17T01:40:47
117,766,763
0
0
null
null
null
null
UTF-8
Python
false
false
3,422
py
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup import pandas as pd import requests import calendar import os # try: # request = urllib2.Request(url) # response = urllib2.urlopen(request) # htmlString = response.read() # # print html # except urllib2.URLError, e: # if hasattr(e,"code"): # print e...
[ "noreply@github.com" ]
Allen2Git.noreply@github.com
65a2eb863705b577a75d3e79df2f1efd7b5c0fed
df1d5b0890f01a3f9e0f995ce7f4f63d1d32ec17
/option2.py
89264033b9948095550ae60edde6e753a773a23e
[]
no_license
nicolasmarat9/isoprog_finger
9747eaf886e69781343df4f9b0429e8930a01570
67c0099cb3b4a86a92f18e46930e617b438938ea
refs/heads/master
2021-05-20T00:42:38.409759
2020-04-28T21:26:53
2020-04-28T21:26:53
252,112,025
0
0
null
null
null
null
UTF-8
Python
false
false
21,912
py
import serial import time import csv import matplotlib matplotlib.use("tkAgg") import matplotlib.pyplot as plt import numpy as np import pandas as pd from PyQt5 import QtCore, QtGui, QtWidgets from mplwidget import MplWidget from threading import Thread import ctypes import pandas as pd import serial.t...
[ "noreply@github.com" ]
nicolasmarat9.noreply@github.com
4fd5d0b3cf69ec3401158708578acd35b429b996
242f1dafae18d3c597b51067e2a8622c600d6df2
/src/0000-0099/0005.manacher.py
fb347e485f03f4f36cd8545c32505243e8a5b10e
[]
no_license
gyang274/leetcode
a873adaa083270eb05ddcdd3db225025533e0dfe
6043134736452a6f4704b62857d0aed2e9571164
refs/heads/master
2021-08-07T15:15:01.885679
2020-12-22T20:57:19
2020-12-22T20:57:19
233,179,192
1
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
class Solution: def longestPalindrome(self, s: str) -> str: """Manacher Algorithm. """ n = 2 * len(s) + 1 # augmented s with # ss = lambda s, i: s[(i - 1) // 2] if i % 2 else '#' # c: center of palindrome with rightmost position c = 0 # r: right of palindrom with rightmost position ...
[ "gyang274@gmail.com" ]
gyang274@gmail.com
bc576f8ef94ce910cccb8942737b54d6b3bf8daa
c071eb46184635818e8349ce9c2a78d6c6e460fc
/system/python_stubs/1336907795/Scripts/_testbuffer.py
706a5b806e0bdf4a96417ae23fce495550448982
[]
no_license
sidbmw/PyCharm-Settings
a71bc594c83829a1522e215155686381b8ac5c6e
083f9fe945ee5358346e5d86b17130d521d1b954
refs/heads/master
2020-04-05T14:24:03.216082
2018-12-28T02:29:29
2018-12-28T02:29:29
156,927,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
# encoding: utf-8 # module Scripts._testbuffer # from C:\Users\siddh\PycharmProjects\Introduction to Python\.idea\VirtualEnvironment\Scripts\_testbuffer.pyd # by generator 1.145 # no doc # no imports # Variables with simple values ND_FORTRAN = 4 ND_GETBUF_FAIL = 64 ND_GETBUF_UNDEFINED = 128 ND_MAX_NDIM = 128 ND_PI...
[ "siddharthnatamai@gmail.com" ]
siddharthnatamai@gmail.com
d6285ad479fd73931af9354c270848582cab80b4
d3b829dc03641fba2a57c816891a021ab7d5b505
/fluent_contents/migrations/0001_initial.py
d713326b77ede1588edb67715503f41e8d68659b
[ "Apache-2.0" ]
permissive
django-fluent/django-fluent-contents
7af8c0782f1e99832cae6c4f1ed3d99e72097199
5577567303d29b56fd48128c22c7dc5d8b2c7476
refs/heads/master
2023-02-21T01:44:34.935089
2021-11-17T08:55:16
2021-11-17T08:58:26
3,145,163
84
18
Apache-2.0
2023-02-15T20:50:09
2012-01-10T12:54:57
Python
UTF-8
Python
false
false
4,207
py
import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("contenttypes", "0001_initial")] operations = [ migrations.CreateModel( name="ContentItem", fields=[ ( "id", ...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
0411ebaf80ddf8ce1148e6e61434439b0e02038f
22c44f797b76966ca40ca64e53001992c48bee3f
/myenv/blog/models.py
be9cfd1582baa7d989e1f6db2ea22565c5b371d0
[]
no_license
itzelmoon/my-first-blog
a3da59e5340dc7b370e554af112d990401c4b3a7
447cdad1403b1773822a7c1a15ee0feb7d45b4f1
refs/heads/master
2021-01-10T10:24:03.463913
2016-02-27T20:33:04
2016-02-27T20:33:04
52,683,269
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
from django.db import models from django.utils import timezone class Post(models.Model): author = models.ForeignKey('auth.User') title = models.CharField(max_length=200) text = models.TextField() created_date = models.DateTimeField(default=timezone.now) published_date = models.DateTimeField(bla...
[ "itzelmoon10@gmail.com" ]
itzelmoon10@gmail.com
5c466cc7c955839e188762702b289ea2c19c3c63
32e62bcae835e1d53c72640c5ca538fd44d0ca2f
/class3/food/models.py
b5c7adf49002530676d7dcec6ed50afab1b2c4a1
[]
no_license
ricomoss/july-2015-django-class
f993115202a3157526b1a3a0b01a51150f6ba4ba
9c6f2330cd4ff31e6d2b51c98b4783d2a77de0ff
refs/heads/master
2021-06-13T09:10:41.504217
2017-07-05T16:49:20
2017-07-05T16:49:20
38,569,199
4
4
null
2017-07-05T16:49:21
2015-07-05T12:59:42
Python
UTF-8
Python
false
false
419
py
from django.db import models from food import constants class Item(models.Model): name = models.CharField(max_length=255) portion_in_grams = models.IntegerField() calories = models.IntegerField() food_type = models.CharField( max_length=255, choices=constants.FOOD_TYPE_CHOICES) class Meal(m...
[ "rico@neutroninteractive.com" ]
rico@neutroninteractive.com
71f4da9bf76d7ce5423fa13168d3894bf54d0327
e41e9f412d44ff29a583795a598e41e003dd97b5
/venv/bin/easy_install3
b6da6e7097a1f65199a427be5f19a5af94b7b030
[]
no_license
heejung-gjt/DataAnalysis
1269244f59801f721481a63c368fc77f3bff2b47
a8a7394f0c85cb68d22e74b4556f0d8bb57289d8
refs/heads/master
2023-07-07T15:54:26.823158
2021-08-06T09:45:36
2021-08-06T09:45:36
326,552,875
0
0
null
null
null
null
UTF-8
Python
false
false
278
#!/home/heejung/Desktop/github-upload/DataAnalysis/venv/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "hee_9803@naver.com" ]
hee_9803@naver.com
bd7ba2fb279054a1e1286343fd1c9120d95b8a62
2b6c5e7a809092b2af4fec38b73d93b478df3510
/Solved-Problems/problem008.py
398eaeba49c2145d9a2c3f17e4239c7c57161173
[]
no_license
VeraJulian/Project-Euler
9d1d0e34af3902d887fa101b06ecaf49843c7c57
c9acfc09ca467bf987dd38a67176c04c29d71fbf
refs/heads/master
2020-06-26T18:44:25.812972
2016-08-23T04:10:05
2016-08-23T04:10:05
66,316,118
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
#real 0m0.046s #user 0m0.025s #sys 0m0.013s # Finds the thirteen adjacent digits in the 1000-digit number that have the # greatest product s = "731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507...
[ "noreply@github.com" ]
VeraJulian.noreply@github.com
82a744b8e16c95cc45709d1f8a55ecdc0eccd7bd
82573ac683d257c33e6938281cc2ff34998eb836
/server.py
0b2295036f9374907edc2d58b9309a9d9d081fb5
[]
no_license
MuhammadHamzaAmir/Multi-Server-Client-File-Sharing-System
31bb17a377b97078c996e07f295f55d854498ec0
0c92a71fd4b26bc40194abb603532ea590aebb4d
refs/heads/main
2023-02-08T17:52:49.140148
2020-12-21T17:16:59
2020-12-21T17:16:59
323,394,895
0
0
null
null
null
null
UTF-8
Python
false
false
37,308
py
import socket import threading import time import os import sys import shutil #An append function which takes data from one list and append it to other list def list_append(to_append,from_list): for i in range(len(from_list)): to_append.append(from_list[i]) #Function to append data from a ...
[ "noreply@github.com" ]
MuhammadHamzaAmir.noreply@github.com
e7567675022bdbdfd9b443dd0209766b03578342
9f2ea36883c5fbd2b96132917e4939d5f99de400
/flask_mongo_profiler/contrib/flask_admin/formatters/lookup.py
c500c2d56a60f9c56a9b70753024b9727317fc00
[ "MIT" ]
permissive
eduflow/flask-mongo-profiler
80803111e1c4e5a817401d1339571c8475c9b84c
a267eeb49fea07c9a24fb370bd9d7a90ed313ccf
refs/heads/master
2023-05-27T01:58:24.860787
2018-12-15T21:16:57
2018-12-15T21:18:54
154,967,856
0
0
MIT
2023-05-22T21:35:44
2018-10-27T13:31:26
Python
UTF-8
Python
false
false
1,265
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from flask import Markup from ..helpers import get_list_url_filtered_by_field_value def search_field_formatter(view, context, model, name): filter_url = get_list_url_filtered_by_field_value(view, model, name) filter_applied = F...
[ "tony@git-pull.com" ]
tony@git-pull.com
4e4334450f22bbbdb6cbd28d91bea30372bf64eb
8fa938eddcc75eb7dff1f2055c49cb3817a00c63
/String/ex49.py
60dfa2055e3999b694cd7c97f3c9dca529ba9fc5
[]
no_license
jayhebe/w3resource_exercises
f27109759d112b0611574aa70eb378ace447c2a0
b29aa7c806f6021a8988e83bb9f674522a41380d
refs/heads/master
2020-05-07T09:23:24.039271
2020-01-30T15:05:06
2020-01-30T15:05:06
180,374,062
2
0
null
null
null
null
UTF-8
Python
false
false
148
py
def get_vowels(char_str): return [ch for ch in char_str if ch in "aeiouAEIOU"] if __name__ == '__main__': print(get_vowels("w3resource"))
[ "jayhebe1983@sina.com" ]
jayhebe1983@sina.com
36c0c6e123ff29ee4a375e881e4ed7a2da29f0f8
fab35d1ed2185139aafa5b79880504912469b1f7
/tests/test_providers.py
ab218832918b09e2410cc07f9e2d43aa481758f1
[ "MIT" ]
permissive
gitter-badger/skosprovider
3de269a63a78bdf314a9282e41708fa86234e142
01dbaba99fb0fc5cd14752bc6560564fc4405c65
refs/heads/master
2021-01-14T11:25:27.269559
2016-05-19T20:46:04
2016-05-19T20:46:04
59,283,197
0
0
null
2016-05-20T09:42:47
2016-05-20T09:42:47
null
UTF-8
Python
false
false
27,792
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import warnings import os import csv from skosprovider.providers import ( DictionaryProvider, SimpleCsvProvider ) from skosprovider.skos import ( Concept, Collection, ConceptScheme, Note ) larch = { 'id': ...
[ "koen_van_daele@telenet.be" ]
koen_van_daele@telenet.be
c9cb7bf67807ee15b47121245c5adc77aae2ad5c
b7ced519161dbda1fdceceeb0d8b93980e982eaa
/nnt/store/rdb.py
f17bcfa413452b39f0426b4ad345265abbaebfe5
[]
no_license
wybosys/nnt.logic.py
4a17911778a28b30c67aa59460c47fb2e55d65a7
c8f60b8bc1ce25fd45ea695809e736c74a6b3595
refs/heads/master
2023-04-30T09:38:08.507024
2020-04-29T07:20:14
2020-04-29T07:20:14
248,126,563
2
0
null
null
null
null
UTF-8
Python
false
false
624
py
from nnt.store.proto import FieldOption from nnt.store.store import AbstractDbms class AbstractRdb(AbstractDbms): def compareFieldDef(self, my: FieldOption, tgt) -> bool: """比较字段定义和手写定义是否有变化""" pass def FpToRelvDefType(fp: FieldOption) -> str: if fp.string: return "char(128)" if fp....
[ "wybosys@gmail.com" ]
wybosys@gmail.com
dc14a29bcda6ecf3a3ee593ade7e2abd02a6a5af
1160830f2cd0a4478e1777b857436b052d347184
/bfs_sample.py
8bdba676afa54f884b53226ad8189bc3595adeec
[]
no_license
stefsy/khan-algo-python
b52cbc1c4185a26218292e58bbf46557ef877b1f
b0e9438702c44fd6739028d81167883afad0d2ce
refs/heads/master
2021-01-22T23:37:32.662329
2015-07-08T23:08:00
2015-07-08T23:08:00
33,344,812
0
0
null
2015-05-21T16:56:48
2015-04-03T03:41:18
Python
UTF-8
Python
false
false
1,661
py
''' Breadth-first Search: Learn how to traverse a graph using breadth-first-search to find a particular node or to make sure you've visited all the notes, traversing one layer at a time. https://www.khanacademy.org/computing/computer-science/algorithms/breadth-first-search ''' class Queue(object): def __in...
[ "steffiy@gmail.com" ]
steffiy@gmail.com
4866533813b4833e66898cd9b0a57458874987cf
b2fea1a385f8107e8fbd02bf648cccf142572692
/books/migrations/0002_auto_20180407_1337.py
49a2a337134dbf40f80242b05abf95e51a927371
[]
no_license
xzp1990/readit
b7bef99cc75c5288cd86c6a1cd29bfce0f2f45c8
915e238c0b6c2f2699fc1c408295ffae1afacb67
refs/heads/master
2020-03-09T18:57:58.893120
2018-04-12T07:06:22
2018-04-12T07:06:22
128,945,791
0
0
null
null
null
null
UTF-8
Python
false
false
1,023
py
# Generated by Django 2.0.4 on 2018-04-07 13:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('books', '0001_initial'), ] operations = [ migrations.CreateModel( name='Author', fields=[ ('id', mod...
[ "jason@Jasons-MacBook-Pro.local" ]
jason@Jasons-MacBook-Pro.local
82563986fedbe023a78ab1cfba06ab903935afe6
b52874ff7d4ce4deb83bcab09284202175d6b86a
/pytorch/iris.py
91017c82c4f1f9ca803bedc1d996e88f249639a0
[]
no_license
hichoe95/Iris-classification
e42d7688e29af43572493b328add4b5d9df8954c
e842b5041be249412cb414b9017ba8776a947816
refs/heads/master
2020-03-20T02:05:06.918809
2018-06-12T16:48:11
2018-06-12T16:48:11
137,098,917
3
0
null
null
null
null
UTF-8
Python
false
false
3,371
py
# coding: utf-8 # In[1]: import numpy as np import matplotlib.pyplot as plt import os import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F from __future__ import print_function import os.path import torch.nn.parallel from PIL import Image import PIL import random to...
[ "noreply@github.com" ]
hichoe95.noreply@github.com
ca50d5c0b3ea5f81ac562cfcff11bb34f930b10e
95c2de9482503c59aef57a9ef58fc450b36d8fa1
/MTRApp/manage.py
9192d6b96ab4d9007e724e9dff2b90bacb6b5d17
[]
no_license
doshig/Maintenance-Request-App
6a92f6e83116814eee0455fc67988eb5e81c69a4
9b49827b426841873760a1b9e45e5fb6aae4bbaa
refs/heads/master
2022-04-09T17:23:35.813562
2020-03-16T22:04:28
2020-03-16T22:04:28
241,707,764
0
0
null
null
null
null
UTF-8
Python
false
false
626
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', 'MTRApp.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportE...
[ "61166587+doshig@users.noreply.github.com" ]
61166587+doshig@users.noreply.github.com
6ed3906bb0a8b1f0255d94410bc218f2908f1b60
06df11884149bbf883958e084eac23112baf3389
/system_tests/workflow/test_end_to_end.py
4d9330d1174d802152937e3b6033130033f44e4e
[ "Apache-2.0" ]
permissive
guruprasad89/data-attribute-recommendation-python-sdk
60a9d95822ea1ef4f71792a1c82ea379a024e9ec
b3c6692d710ebe271d7c32ee5e0e704a6be641ff
refs/heads/main
2023-07-28T08:43:27.684584
2021-06-28T09:09:55
2021-06-28T09:09:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,657
py
import logging import uuid from io import BytesIO import pytest from sap.aibus.dar.client.data_manager_client import DataManagerClient from sap.aibus.dar.client.exceptions import DARHTTPException, ModelAlreadyExists from sap.aibus.dar.client.inference_client import InferenceClient from sap.aibus.dar.client.model_mana...
[ "michael.haas01@sap.com" ]
michael.haas01@sap.com
4948525db640c3afa56c893152d7fbc5df066d6a
ca3b5c1a507224a32655c5434116486a200f09ee
/bank/details/migrations/0004_auto_20190830_1606.py
1cc9198d62c6668269e5c1f863b907c8f2e0bc42
[]
no_license
abhishek510/django_psql_jwt
0ab2045e104daa42fe7b61652f0e047737a7bf4c
18565cbdbd2d163e3516ea8f3728eb5a7559eb47
refs/heads/master
2020-07-16T06:32:25.997180
2019-09-03T18:19:23
2019-09-03T18:19:23
205,738,374
1
0
null
null
null
null
UTF-8
Python
false
false
470
py
# Generated by Django 2.2.4 on 2019-08-30 16:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('details', '0003_auto_20190830_1541'), ] operations = [ migrations.AlterField( model_name='branc...
[ "abhishekdwi.05@gmail.com" ]
abhishekdwi.05@gmail.com
fd2e8c27abaefe51e09b3162135a53f569c2aeda
f2ebc38c206d74248322121a2291c4138716b10b
/NE_metodi/AES.py
01aeea9a4fd1b15137ce637fd9355cdaf81b5781
[]
no_license
vermutsk/Laborator
6453bd1e8cbc982b39f000d01151d202afafa126
8568c0e79c7a575a463fc8223207daedc8dd159a
refs/heads/master
2023-08-24T20:29:33.027604
2021-10-07T10:40:37
2021-10-07T10:40:37
249,997,827
0
2
null
null
null
null
UTF-8
Python
false
false
1,361
py
import pyAesCrypt import os import random import time def remove_file(file: str): os.remove(file) def AES_encrypt(file_txt: str, key: str, buffsize=512 * 1024): # 1. Файл который шифруется, # 2. Ключ по которому шифруют, # 3. (Стандартное значение 512 * 1024) Буфер file_aes = file_txt + '.aes' ...
[ "62577988+vermutsk@users.noreply.github.com" ]
62577988+vermutsk@users.noreply.github.com
9da71e19c2b4adda4b23d39ab1da9b6548f57442
73959ef3218f846c56252a8ab9d8da834115f650
/2021/12.py
a5176cd4a87e313c69ff67ac27e917455ec1f577
[]
no_license
domino14/advent_of_code
2ada78491522affc9db4e13e07314e3cb82f8b8d
322780953819399287cd04968564ae2bc4ed6933
refs/heads/master
2021-12-24T02:55:53.319679
2021-12-20T02:22:06
2021-12-20T02:22:06
160,305,524
0
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
input = open("./12/input.txt", "r").readlines() class Cave: tp: str def __init__(self, name): self.tp = "small" if name.lower() != name: self.tp = "big" self.name = name self.caves = [] self.visit_count = 0 def connect(self, c): self.caves.app...
[ "delsolar@gmail.com" ]
delsolar@gmail.com
d25cf7ac80ad6f989933087108b9db9f3b219e3f
0b4f5336fc9dc521b69d7e02b09cb6eb498f09cf
/vendor/src/github.com/Workiva/go-datastructures/fibheap/Test Generator/EnqDeqMin.py
a7ae1ecbbd90f7712ac07a0b6ff5086cb4938048
[ "Apache-2.0" ]
permissive
opsgang/amazon-ssm-agent
e689c745b459f14300be2682a32e4624cbc30834
fb693b1f5ceaf24d58d8cabc484816da417ed4ab
refs/heads/released
2021-05-10T13:02:22.763699
2018-04-10T16:04:20
2018-04-10T16:04:20
118,457,012
6
0
Apache-2.0
2018-01-23T15:22:55
2018-01-22T12:55:00
Go
UTF-8
Python
false
false
137
py
#!/usr/bin/python3 import random l = [] for i in range(20): l.append(random.uniform(-1E10, 1E10)) print(l) l = sorted(l) print(l)
[ "kaporahu@amazon.com" ]
kaporahu@amazon.com
4cd053901e1f43dd183c51997634cdb21b4fe02c
eef0f198cef4b07aa326b6fa0cba0d6a581286f2
/Other_Tools/Additional_Tools/FindTopazEbooks.pyw
e39025ba9bafbaa72165d1bb5ca1cb2774b6746d
[]
no_license
xiangbin1997/dedrm-ebook-tools
ea1ee24c630dce488da003b108215af1c6484576
af856f53afb7fb22699cabbee216477da0752335
refs/heads/master
2021-01-18T05:53:26.416286
2012-11-27T23:59:42
2012-11-27T23:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,657
pyw
#!/usr/bin/env python # This is a simple tool to identify all Amazon Topaz ebooks in a specific directory. # There always seems to be confusion since Topaz books downloaded to K4PC/Mac can have # almost any extension (.azw, .azw1, .prc, tpz). While the .azw1 and .tpz extensions # are fairly easy to indentify, the othe...
[ "larry@johnmcneilstudio.com" ]
larry@johnmcneilstudio.com
91585dc4d371d2b44523db73b029a995cd696dab
0cdf52f3538ca0d29b2355d9818e0b82be18b0ff
/backend/flaskr/__init__.py
448a1773f947ee62e8ee9e95ef00aa6cecfb61ba
[]
no_license
GeorgeNady/trivia_api
17672609f516575ea59a332d93fb48424db9ab7d
6d6fd523e6370fdc3c382ad51806b391c155fccc
refs/heads/main
2023-01-18T19:14:02.867166
2020-11-14T03:47:15
2020-11-14T03:47:15
312,399,551
0
0
null
null
null
null
UTF-8
Python
false
false
8,235
py
import os from random import randint from flask import Flask, request, abort, jsonify from flask_cors import CORS from models import setup_db, Question, Category QUESTIONS_PER_PAGE = 10 def create_app(test_config=None): """ :return app """ # create and configure the app => DONE app = Flask(__name...
[ "gorgonady.gn@gmail.com" ]
gorgonady.gn@gmail.com
208a3e68e166652ef046f1d0036157b125c2e29e
f17193a6a6199e68dc2214b66851274cf2edd9b3
/jenkins/scripts/query-zanata-project-version.py
b29795ac9c16906766dd2ba3272cc79b37d502f6
[ "Apache-2.0" ]
permissive
yujunz/project-config
7c7b780effb95682a79cb17dfc36719542bf49a7
aa0c999b2ad1206bfea194ba600550cdcd474248
refs/heads/master
2021-01-21T03:09:47.622368
2016-07-19T08:19:59
2016-07-19T08:19:59
63,739,840
1
0
null
2016-07-20T01:28:22
2016-07-20T01:28:22
null
UTF-8
Python
false
false
1,866
py
#!/usr/bin/env python # Copyright (c) 2015 Hewlett-Packard Development Company, L.P. # # 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 # # U...
[ "steven@wedontsleep.org" ]
steven@wedontsleep.org
8fd540a6f790c9d55de0ef299e13487739a175d3
41bcb2bd77b0bed67ebb10baaa803b1be177e6ef
/Bot_new_gorilla.py
b0b8c9eb95183d69f381dd5e1d07e5a962b5c99d
[]
no_license
jkeegeda/botforbot
14d70ee9e3b76b629a01cd10f3b6e65f92fd9b96
8dc8a670f6aacc71b7366fe189bef199890ce1ff
refs/heads/master
2021-07-13T04:18:07.804407
2020-11-14T08:39:57
2020-11-14T08:39:57
220,711,642
0
0
null
null
null
null
UTF-8
Python
false
false
3,903
py
from vk_api.longpoll import VkLongPoll, VkEventType from threading import Thread import vk_api, random, time, os mytokenvk = os.environ.get('BOT_TOKEN_VK') vk_session = vk_api.VkApi(token=mytokenvk) longpull = VkLongPoll(vk_session) vk = vk_session.get_api() def answer(): while True: for event in longpul...
[ "noreply@github.com" ]
jkeegeda.noreply@github.com
2080504d10c9b09bfbe3577eb1c24ad13d48342d
d08319731fe8310bd3faf70763fc6fc893ddf49e
/wscript
9328e7e73d12a35ce4d2e858d357f0ae7ee2afac
[]
no_license
philipp-97/aml-cINN
71fce48aa06cef389b33433a3fa181245b160647
8e9493abb258ff5ad6042d14ad3ecd9a1e266ffb
refs/heads/master
2023-08-05T18:21:21.973449
2021-09-26T10:17:05
2021-09-26T10:17:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
from os.path import join from waflib.extras.test_base import summary from waflib.extras.symwaf2ic import get_toplevel_path def depends(ctx): ctx("freia") def options(opt): pass def configure(cfg): cfg.load("python") cfg.check_python_version() def build(bld): bld(name="aml-cinn", sour...
[ "philipp.dauer@kip.uni-heidelberg.de" ]
philipp.dauer@kip.uni-heidelberg.de
057c6fe3892f100ee64568dbb71cd1ed6043afa0
d7f3d42ad667fcb533be2e36474b0aa850ad855e
/usermessages/forms.py
c6c63474e3d51319e70dbaa86787c588b772d075
[]
no_license
jovianch/lnpoint-webdev
eb6db78e631b34bff0003fbc2e77e531c8c539b7
8acaf0aea00015a38720c0d2e50878a02ef07def
refs/heads/master
2022-12-08T19:28:54.918144
2018-04-24T05:20:22
2018-04-24T05:20:22
130,716,125
1
0
null
2022-11-22T01:57:01
2018-04-23T15:15:01
CSS
UTF-8
Python
false
false
356
py
from django import forms from .models import UserMessage class ChatUserMessage(forms.ModelForm): message = forms.CharField(required=True, widget=forms.TextInput(attrs={'class':'form-control form-chat','placeholder':'Enter messages here...'})) class Meta: model = UserMessage fields = ( ...
[ "christiantojovian@gmail.com" ]
christiantojovian@gmail.com
37622bd384cc377d31cf52cceba87131abd2c22f
054f03640ea7598b8d623fa604c691c7526c19e7
/extra_foam/pipeline/tests/test_data_model.py
dde2d4e18c5425922fa66e37b72f0efc1681b9a1
[ "BSD-3-Clause" ]
permissive
zhujun98/EXtra-foam
ef1298f026c08b9d83464a84106c612fbfbe000f
680d6d7fd4afdcbc41eb8e440feac54b6cecab33
refs/heads/master
2021-07-25T20:18:17.736460
2020-07-31T15:46:47
2020-07-31T15:46:47
224,394,172
0
0
BSD-3-Clause
2019-12-04T10:21:56
2019-11-27T09:32:38
Python
UTF-8
Python
false
false
15,441
py
import unittest from unittest.mock import patch import numpy as np from extra_foam.pipeline.data_model import ( PulseIndexMask, MovingAverageArray, MovingAverageScalar, ImageData, ProcessedData, RawImageData ) from extra_foam.config import config class TestMovingAverageScalar(unittest.TestCase): def tes...
[ "zhujun981661@gmail.com" ]
zhujun981661@gmail.com
2f6e18a5f4ba8b0456377676821bca0328fe208c
8311a0bcf3f2126d622f928483ce2ea9d6a7cb0d
/Code/Matthew/python/bogosort.py
8a5e8b1541f2a5351db02b7bfa5859e5544947c6
[]
no_license
guam68/class_iguana
857247dca0ff732d11f7fb0d3dc761ec83846c94
e4359d32dfe60423a643c21df5636669016ad2c0
refs/heads/master
2020-05-01T06:33:22.611127
2019-03-13T23:07:41
2019-03-13T23:07:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,570
py
# import random # def bubble_sort(nums): # for i in range(len(nums)): # for j in range(len(nums)-1): # if nums[j] > nums[j+1]: # nums[j], nums[j+1] = nums[j+1], nums[j] # # nums = [random.randint(0,99) for i in range(100)] # print(nums) # bubble_sort(nums) # print(nums) impor...
[ "flux2341@gmail.com" ]
flux2341@gmail.com
88f7a209509eee437b97371628877ef2229a7e87
e94a93ca440afd1588074c234742aa6d3f4a97ef
/version_1/src/classes.py
c1959f065f21688d0c1f7f0ed4fab0bf9309fb9d
[]
no_license
MarlonCorreia/search-challenge
b269d2b8eb579697e931992746e11f34064353b8
668d8e2c2db983fe4899d0659877cf98a441e8c1
refs/heads/master
2023-02-02T12:28:02.462791
2020-12-19T20:42:57
2020-12-19T20:42:57
312,433,548
0
0
null
2020-11-25T18:01:43
2020-11-13T00:48:28
Python
UTF-8
Python
false
false
2,648
py
import json import re from collections import Counter class Catalog(): """ This is data abstraction for a catalog of products, it consists in a dict: { productId:{ "name": productName }, } """ products = {} def __init__(self, ): pass def g...
[ "malilocsimas26@gmail.com" ]
malilocsimas26@gmail.com
cdfbde7eb4da01a71e8c30befffd45d0aef0586b
0132a327e3324830770980ecdee525884e3f6191
/PaddleNLP/dialogue_model_toolkit/dialogue_general_understanding/scripts/build_atis_dataset.py
2dafb1bc7feb0ea5ae332dd4151d558f12afa2a9
[ "Apache-2.0" ]
permissive
wawltor/models
50dab0058245008a088ed2a7b42d5957dc77305b
25fe892e02a7117ec62d90839ec3df4f5019cef9
refs/heads/develop
2021-06-18T08:56:49.944493
2019-04-29T03:49:41
2019-04-29T03:49:41
184,034,821
3
0
Apache-2.0
2021-01-06T08:16:57
2019-04-29T08:50:38
Python
UTF-8
Python
false
false
5,792
py
# Copyright (c) 2018 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
wawltor.noreply@github.com
19d84cb48523b1f33dfbbc80555e822ae0d9177b
9cfdfe633dfb2755955f9d356fdd0a9601089955
/account_auth/tests/test_veiws.py
cc19cd637b9384f9d338cf62d7f16a79d4b53583
[]
no_license
DimAntDim/ResumeBuilder
cec597ba4b857d98147e2f5f6831bd3c93c83c80
0507d5d9c44936d892df280015f7c6d8e630f55b
refs/heads/main
2023-08-21T08:03:43.327868
2021-11-03T19:43:04
2021-11-03T19:43:04
394,882,643
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
from account_auth.forms import RegisterForm from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse UserModel = get_user_model() class RegisterViewTest(TestCase): def test_register_render_template(self): response = self.client.get(reverse('register'...
[ "66394357+DimAntDim@users.noreply.github.com" ]
66394357+DimAntDim@users.noreply.github.com
a9010a2cd673f6b8d99acd4fbeb2029ddfcb8d02
9fbc35cb7e6502a56067bed8ceb0f914a227c33c
/网络编程/6.py
d0628ea7939af67549a7e1d67c667ef216e9709d
[]
no_license
1930609129/all
3ef968202d8857c744ae92d24c85cb1bfdcb6ab8
53be9da6bffb5b657092cd971d0115c62dfdc9ce
refs/heads/main
2023-08-24T19:31:25.423420
2021-09-19T09:57:28
2021-09-19T09:57:28
396,636,077
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
# -*- coding:utf-8 -*- import socket import hashlib import time def m(md5,ran): md = hashlib.md5(md5) md.update(ran) rs = md.hexdigest() return rs def c(con): while True: con.send('hh'.encode('utf-8')) msg=con.recv(1024).decode('utf-8') print(msg) time.sleep(0.5) s=s...
[ "1930609129@qq.com" ]
1930609129@qq.com
e6171d3c11f9f2f56638bb0d772a84871d827406
ec61e7a23c34a53e9152f060d36118a58696b791
/henderson.py
b5a259b9b90b6544fe0c876729979bd908b214a5
[]
no_license
suzennn/collab_work
91d097787360875208513c7e4d8c1bd69492e4ab
de30fe2d4b10ff261f05f86b9dee5445f8f41fc8
refs/heads/master
2020-07-08T02:07:27.834321
2019-08-21T10:11:37
2019-08-21T10:11:37
203,536,217
0
1
null
2019-08-21T10:11:38
2019-08-21T08:02:18
Python
UTF-8
Python
false
false
17
py
hi from henderson
[ "hendersonteow@Hendersons-MacBook-Air.local" ]
hendersonteow@Hendersons-MacBook-Air.local
84e97a270236c3c3a811761bb082bcd9707afcd1
79d87e1c5c1d07d52f4ab73feae3d68ce476815d
/simulator/player.py
c666f34553d19fbdc6e957ce198b5ff3c2cf54e9
[ "MIT" ]
permissive
Zahidsqldba07/SpringChallenge
7bf1802e555a23376bc4b989e6b7abea3f0d480c
20a315182439f322ba1b2e5c0af0f22f1d0ba7ee
refs/heads/main
2023-04-21T06:49:35.917088
2021-05-15T16:20:40
2021-05-15T16:20:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
import abc from dataclasses import dataclass from enum import Enum from action import Action from evnets import TurnEvent from game_state import GameState import multiprocessing as mp from hex import HexCoord class AlgoBase(abc.ABC): def __init__(self, player_id): self.player_id = player_id @abc.ab...
[ "tentaclehorn@gmail.com" ]
tentaclehorn@gmail.com
0797c311f47d452f7d067ce093d1a6ac6666d7b9
d178ecd2d3511fcd98aca731ada1aa0fec0e15a1
/prog_count/grader.py
dca9b796081c90aeae9a3b3000b81e8f76932a68
[]
no_license
0xBADCA7/easyctf-iv-problems
165cca68e2bad788604dab4b15c644e994c7fa85
7037fe557df97cd85b3eada672ef44a356236522
refs/heads/master
2020-08-13T21:16:26.114580
2018-02-21T06:15:40
2018-02-21T06:15:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from itertools import combinations as comb n, s = map(int, input().split()) nums = [int(u) for u in input().split()] t = 0 for i in range(1, len(nums) + 1): for c in comb(nums, i): if sum(c) == s: t += 1 print(t)
[ "failed.down@gmail.com" ]
failed.down@gmail.com
d366f4ee1394c250a4ec05d817262f7d60cf211c
639194c45587d5fc539da4d385c1e4cbfe93d371
/Tree/descision tree2.py
11ac97dc56120046fd832b4f86eaa6c2471c8e89
[]
no_license
ZHasaral/DataAnalys
5cd26c5b99e27da5fbb440f002d9ce61569258ae
0afb80301dc1efde2c74c231ba90221a1023b1bd
refs/heads/master
2022-11-03T11:44:25.929030
2018-05-01T13:01:17
2018-05-01T13:01:17
121,307,393
0
1
null
2022-10-10T01:55:11
2018-02-12T21:59:38
Python
UTF-8
Python
false
false
504
py
from sklearn import tree get = tree.DecisionTreeClassifier() #подготовка = 0,1,2 #сложность(легкий, сложный) = 0,1 # не готов,готов= 0,1 x= [[1,1,0],[0,1,1],[2,1,0],[1,0,0],[1,0,1],[0,1,1],[2,0,1]] y=['fail','pass','pass','pass','pass','fail','pass'] get = get.fit(x,y) result = get.predict([[input("Введите уровень п...
[ "zhasaralture@gmail.com" ]
zhasaralture@gmail.com
8f425fd16f7d5aded1fbfb08578f898f5cecf18f
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1beta_generated_alloy_db_admin_generate_client_certificate_async.py
f1d54b369e792a9e23c7159b0cbbd6d2a0c78430
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,940
py
# -*- coding: utf-8 -*- # Copyright 2023 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 or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
4d4049f8223ad64d5195851a8226d1819aa40e2f
12e504d9ad7086c5429bb55f343e5c8d1dabeff1
/autobahntestsuite/choosereactor.py
f5b6100142854bdc64319adbaa0a74058b5f3e73
[]
no_license
andypeker/autobahntestsuite
4b6bfbb74362c4609965bd86c0c2c7b8e045584e
16424a1194886a958bc03a3fd574f8bfcce3bac6
refs/heads/master
2016-09-06T10:32:48.593031
2014-11-26T04:57:05
2014-11-26T04:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
############################################################################### ## ## Copyright 2011,2012 Tavendo GmbH ## ## 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:...
[ "whyang@DST58428.cn1.global.ctrip.com" ]
whyang@DST58428.cn1.global.ctrip.com
ba3fafbdca455c58e3ba5d8138948a0d3556a888
9c7f04dbc00a4d01eb72c72a066f68240bbb66f9
/DeepLearningKaggle/digit_reg.py
20d048143f76edeb6690362aae895e265ed25746
[]
no_license
b2220333/PyTorch-1
84550c3b6e33531596ab811ed0d49591e62abf47
f08ac81323b487bb0b5d092eef413af1c8eb1c7e
refs/heads/master
2020-06-05T03:16:35.627199
2018-02-19T13:29:33
2018-02-19T13:29:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,019
py
import pandas as pd import torch import torch.utils.data as Data from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt # import torchvision train = pd.read_csv('digits.csv') test = pd.read_csv('test.csv') plt.imshow(test.ix[1, :].reshape(28, -1), cm...
[ "jeremy@Jeremys-MacBook-Pro.local" ]
jeremy@Jeremys-MacBook-Pro.local
5f7225a8bb8465174507e5765718f14c91635f9b
2d9a3ce2a04190d0032e8a298829022260b1d76b
/indra/databases/biolookup_client.py
a8ac55265ff756883e26106fd0c97136b94d074f
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
sorgerlab/indra
f127a0f9bdd2d3f48df14575883fd31e2f4de4bf
6d6ca1174792b6c5a05cbf3afcb9f138fabcec6a
refs/heads/master
2023-08-21T13:25:54.654995
2023-06-11T16:46:41
2023-06-11T16:46:41
22,848,436
158
61
BSD-2-Clause
2023-08-30T21:47:59
2014-08-11T17:44:05
Python
UTF-8
Python
false
false
1,316
py
"""A client to the Biolookup web service available at http://biolookup.io/.""" from typing import Dict import requests URL = 'http://biolookup.io/api/lookup/' def lookup_curie(curie: str) -> Dict: """Look up a CURIE in the Biolookup web service. Parameters ---------- curie : The CURIE to loo...
[ "ben.gyori@gmail.com" ]
ben.gyori@gmail.com
d3feee41343bafcda28292cf28535527d81b00ab
2c44a2fa455dec422048170bcdd84aaea3cc23cc
/app.py
db3dc77d98fd850a05f2dae18d04cf4bdc9ba663
[ "MIT" ]
permissive
aiflow-tech/object_detection_demo
567f83bfad5b27322b9b70ae43f3b2fbcfbcc0a7
7d28f8d4eab0aee3a7b102bcb2cd99e3fc8347be
refs/heads/master
2021-05-21T14:38:11.362853
2020-04-06T09:07:10
2020-04-06T09:07:10
252,683,505
0
0
NOASSERTION
2020-04-03T09:07:56
2020-04-03T09:07:55
null
UTF-8
Python
false
false
372
py
import wabtec_track file_name = 'images/Caltrain_01-08-20_Page_2.jpg' wtt = wabtec_track.WabTecTrack(file_name=file_name) lines = wtt.get_lines() #gets list of line_track objects for ln in lines: print(ln.point_one(), ', ' , ln.point_two()) #print(ln.x1) #can also be accesseds #only for testing wtt.draw...
[ "pramuka1995@gmail.com" ]
pramuka1995@gmail.com
04f06111126887806589e20ae3df08a21ef35dab
683a90831bb591526c6786e5f8c4a2b34852cf99
/CodeSignal/Interview/Backtracking/2_WordBoggle.py
56777e11c7b04f10d9d347dd0cc392adb21fe6d6
[]
no_license
dbetm/cp-history
32a3ee0b19236a759ce0a6b9ba1b72ceb56b194d
0ceeba631525c4776c21d547e5ab101f10c4fe70
refs/heads/main
2023-04-29T19:36:31.180763
2023-04-15T18:03:19
2023-04-15T18:03:19
164,786,056
8
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
import copy # https://app.codesignal.com/interview-practice/task/v3uf4PGocp2CH62nn/description # Tag(s): Backtracking, recursion def print_board(board): for row in board: print(row) deltas = [ (-1, 0), (-1, -1), (-1, 1), (0, -1), (0, 1), (1, 0), (1, -1), (1, 1) ] def explore(board, word, i, j, k):...
[ "davbetm@gmail.com" ]
davbetm@gmail.com
6ea63dca8c810d9d56bcf90041de8915f4ecef95
1fd587d717c75965765ba935809238493e44ac4f
/palindromes.py
b6eb69ef67661dd3502eabcc40f04302eda26aea
[]
no_license
tstrait/Unit1Project
85ea53b9dc12e9847ee075a08592683b89e52966
99688af2973b67f8f26bafd19d46c34d51b26457
refs/heads/master
2020-03-13T03:05:03.385296
2018-04-28T21:47:24
2018-04-28T21:47:24
130,937,195
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
import numpy as np list1=list(range(100, 1001)) list2=list(range(100, 1001)) c=[] def multipliers(a,b): for i in range(len(a)): for j in range(len(b)): c.append(a[i]*b[j]) print(c) def checkpalindrome(a): d=str(a) return d==d[::-1] def combined(a,b): c.sort() for i in c[::-1]: if checkpalindrome(i): ...
[ "testrait@gmail.com" ]
testrait@gmail.com
acdb10dbfc10d5b825093adbd0d5c5b4567c8628
f724771deff1ff00d67df3a2e115ed4c0afe9d39
/tests/models/test_lexical_model.py
2423773dab33a4e24c793be9f45d8640aea75863
[ "Apache-2.0" ]
permissive
arunchaganty/obviousli
6e32cb3dc1c2c91de7b741e8a30a75a0e51ad65f
56169b8e91ca0b29ce51f3e56646a082a0894e31
refs/heads/master
2021-01-24T08:11:48.140536
2016-11-30T17:27:45
2016-11-30T17:27:45
70,012,911
1
0
null
null
null
null
UTF-8
Python
false
false
2,332
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ """ import pytest from obviousli.defs import State, Truth from obviousli.models.LexicalModel import LexicalModel from keras import backend as K @pytest.fixture def word_map(): words = "we eat bananas for lunch do n't .".split() return {word : i for i, word in...
[ "chaganty@stanford.edu" ]
chaganty@stanford.edu
9a9a5e1a87e823fb31274cc803479e5f9f48c592
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/day_or_point/say_good_work.py
e57f94898800ec38a14522b3b0c3743ae46ef192
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
#! /usr/bin/env python def use_few_part_over_bad_hand(str_arg): important_number(str_arg) print('thing') def important_number(str_arg): print(str_arg) if __name__ == '__main__': use_few_part_over_bad_hand('great_year')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
3c930ca9812d5d1faf2a6010c6f5b64372be63ef
d677075fca7955cf79cbae02684fabe2344c2b18
/backend/apps/history_event/migrations/0002_alter_historyevent_end_date.py
56bf561322401036b5faa5955b9483d9648cca99
[ "MIT" ]
permissive
AnthonyDeniau/owwned-ril19
f264f92c2063b26f12217533d3460567ebe483b2
3008fd2231fef8c8f5776dc22f5fee2a32e40453
refs/heads/main
2023-07-13T13:41:38.279748
2021-08-27T14:07:02
2021-08-27T14:07:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
# Generated by Django 3.2.6 on 2021-08-27 12:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('history_event', '0001_initial'), ] operations = [ migrations.AlterField( model_name='historyevent', name='end_date',...
[ "anthony.deniau@gmail.com" ]
anthony.deniau@gmail.com
8137538c751572157b1a44dc0c0f97368389f271
f9cce83d8259f53686ed545cf301d6e72258ea90
/mynewproject/mynewproject/settings.py
2a6d9179c5e65c306eeb698650876c6ff4e54220
[]
no_license
ir4y/docker-workshop
dc649e53598d9fc237348aab64ccd3b5141bc12e
9e6f7f2445bf4b4ac1c416f83488a8d840d64db6
refs/heads/master
2020-12-24T22:06:12.190270
2016-04-22T20:53:22
2016-04-22T20:53:22
56,765,105
1
0
null
null
null
null
UTF-8
Python
false
false
3,123
py
""" Django settings for mynewproject project. Generated by 'django-admin startproject' using Django 1.9.5. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import ...
[ "ir4y.ix@gmail.com" ]
ir4y.ix@gmail.com
1593d481a58f59c3565bff77f0c78a8bdb4a4b6d
7d2292dd4c0f846ecbeef0c6423deedae2f60aba
/PlotsSuite.py
d9cbb9001ac44bdd79ac10241edcf6a42c07ac07
[]
no_license
JackNelson/MSDS_Capstone
854ac73b283ac6b229ea2e213759b63898f39b94
11c8711888b7514534863843e7bd5a4c6943ec17
refs/heads/master
2021-04-12T09:15:01.215213
2018-06-17T14:57:23
2018-06-17T14:57:23
126,631,912
0
0
null
null
null
null
UTF-8
Python
false
false
9,385
py
import matplotlib.pyplot as plt import matplotlib.lines as mlines import numpy as np import seaborn as sns import matplotlib.patches import scipy.stats as stats from datetime import datetime plt.style.use('ggplot') def objectivePercent(df, ax=None, title=''): #assigning ax variable if not given for plotting if...
[ "jack.nelson245@gmail.com" ]
jack.nelson245@gmail.com
6e9e392e85040122ce2005616daa723d88ec1f32
7ca7eb242d5c2211bead3039ef8d2271a473bf00
/ce37.py
41c15bdb888298e6f6b25ef74b7f8d58ee593eed
[]
no_license
raman934/python-2019
613214da5f4215f1db507321d94ac9d29784c126
ba5cf4e2204349e3bc716d8a7ef68a863d74b547
refs/heads/master
2020-06-25T04:12:56.717409
2019-10-02T07:33:56
2019-10-02T07:33:56
199,197,390
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
# RG # 3.14 N = 3 N_new = (N + 1) // 2 num = 0 for i in reversed(range(N_new + 1)): for j in range(i): print(" ", end='') for k in range(i, N_new + 1): num += 1 print(num, end=' ') for l in range(i, N_new): num -= 1 print(num, end=' ') ...
[ "noreply@github.com" ]
raman934.noreply@github.com
147dbde4578958b7b0ee1e8e38817dfe410366b1
0cecd87b7bad3b89955ae0330d9d73e06942dfd7
/Haskell.py
b2ea5ae82db0efb8881157a338252407c18af2ab
[]
no_license
vapourismo/st3-user
795d10d8ffd6feb19cca2899987d94feaf9bba46
f1c91e264cbdedb326abab2e9ca7a46a867d7ba7
refs/heads/master
2020-12-24T06:24:12.922604
2018-06-15T21:48:06
2018-06-15T21:48:06
39,160,245
2
0
null
null
null
null
UTF-8
Python
false
false
351
py
import sublime import sublime_plugin import subprocess import os.path class StylishHaskell(sublime_plugin.EventListener): def on_post_save_async(self, view): file = view.file_name() if view.is_scratch() or file[-3:] != '.hs': return subprocess.call( ['stylish-haskell', '-i', file], cwd = os.path.dirna...
[ "ole@vprsm.de" ]
ole@vprsm.de
7c86fe28c725c6efc14d4551d10001121eb9e2fd
104be3a746d12b00c73b34e4250723d2d54147c5
/controller/Battery_Controller.py
3189a7166630bcf408639152f8f1cf2059cdb47f
[]
no_license
asfrank/AppPerf
5566945e572b1c1b7f17c3752016caa0706f9ce6
29abe4e0311680f2ade719ca1dd53c9ea8552749
refs/heads/master
2021-01-03T09:59:12.167006
2020-02-12T14:20:30
2020-02-12T14:20:30
240,031,125
0
0
null
null
null
null
UTF-8
Python
false
false
3,808
py
import os import time import csv import threading import re from datetime import datetime class Battery_Controller(): def __init__(self,json): self._json = json list_devices = self._json["Devices"] for key in list_devices.keys(): device_ip = list_devices[key]["ip"] ...
[ "lishuyu01@qiyi.com" ]
lishuyu01@qiyi.com
d06678d67dcefc6417a02c2af68296234e4302ae
466f8dec24f6949c3c650390aac6b4923662c874
/venv/Lib/site-packages/zmq/log/handlers.py
e4c6a971dc13164772c586865773bddcec50e805
[]
no_license
CatCoinz/blockchain
6f2bf2d88e0c375a2e5a372799a5c58f0dcf7063
661a63d1033e86e82c247358a53c3ac1ce7d8f18
refs/heads/master
2023-08-01T13:53:39.569174
2021-09-25T13:51:30
2021-09-25T13:51:30
410,283,153
0
0
null
null
null
null
UTF-8
Python
false
false
6,239
py
"""pyzmq logging handlers. This mainly defines the PUBHandler object for publishing logging messages over a zmq.PUB socket. The PUBHandler can be used with the regular logging module, as in:: >>> import logging >>> handler = PUBHandler('tcp://127.0.0.1:12345') >>> handler.root_topic = 'foo' ...
[ "yuutayamauchi0109@gmail.com" ]
yuutayamauchi0109@gmail.com
99b80aeb3f1ac2520446ebd639dc649f9fe6a6e0
1725601c942037bc3e77bdb2d82ac8f938e830fb
/pubsub/utils.py
8a52d85c99be4b613ac978499f2a56b98fe7712e
[ "MIT" ]
permissive
nickfishman/autobahn-tests
99e9c16377bed5d576847ac15106f839b726c6db
7ef11eb4851a0f1b879404c583fa9224768de898
refs/heads/master
2020-12-24T13:53:08.465847
2013-10-29T10:32:58
2013-10-29T10:32:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
from twisted.internet import reactor from twisted.python import log from autobahn.wamp import WampClientFactory class AutoreconnectWampClientFactory(WampClientFactory): """Utility client factory that automatically reconnects on connection failures""" def _reconnect(self, connector): log.msg("reconnecting...
[ "nick@minervaproject.com" ]
nick@minervaproject.com
0e90578ecea38bebaff16ca498f22b3b9c314c0c
6d2a7627ac19f6af3cf461d18a63153e69a6630f
/detect.py
646b271f5af2212222892022a6abacdc04cff86f
[ "MIT" ]
permissive
Chailcy/compresso
2fdab873d7a6764af77f338eac319630e322aad7
052c4fdf8d5d02bce256465d6053d8bdfa305952
refs/heads/main
2023-04-05T16:31:40.074563
2021-04-18T11:44:38
2021-04-18T11:44:38
359,125,387
0
1
null
null
null
null
UTF-8
Python
false
false
12,630
py
from __future__ import division import time import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import cv2 from util import * import argparse import os import os.path as osp from darknet import Darknet from preprocess import prep_image, inp_to_image import pandas as pd import ra...
[ "noreply@github.com" ]
Chailcy.noreply@github.com
8a654ecf34b18c5a04a72f3a99210e2aebc4b4c8
7c04c5c8c8330b4e2babffb96f7d8c88f1a39e7f
/flow/db/trade/aggregate/basecache.py
e4944bf799876c5a3ffa988a384b964cdf3971e2
[ "BSD-3-Clause" ]
permissive
OspreyX/flow
d200a07e21a90e0ff621a7d0012754d6559cd538
20cdcd6b128defe57649d6e20a5fec60488fd0d2
refs/heads/master
2020-12-27T21:22:22.863762
2013-05-20T06:11:39
2013-05-20T06:11:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
from jflow.utils.observer import lazyobject from jflow.rates import log class cacheBase(lazyobject): def __init__(self): super(cacheBase,self).__init__() def post_attach(self, obs): ''' observable method. Invoked when we attach a new observer. H...
[ "info@quantmind.com" ]
info@quantmind.com
a98481b3d1f22163655265f851ea9317f940bcf5
ea6b0c837cfc6f06d79e7e0cb48a4d27318f557b
/14MapReduce/mrMeanReducer.py
423c97ab319e0a34243cf7658b1e9c0e914e651c
[]
no_license
Ewenwan/PyML
383d928fed6d524e9a28bfaeb2bec24699d7fa8d
687f87c9da7d73c7584bddd73fe3d0d2024b642a
refs/heads/master
2021-01-16T18:33:03.803722
2019-01-04T05:17:43
2019-01-04T05:17:43
100,088,124
6
2
null
null
null
null
UTF-8
Python
false
false
1,248
py
#-*- coding:utf-8 -*- #!/usr/bin/python ''' Hadoop 流 多机器分发作业合作 mrMeanReducer.py ''' # 运行 # linux 平台 # cat inputFile.txt | python mrMeanMapper.py | python mrMeanReducer.py # 打开文件 管道 管道 # windows 平台 DOS 窗口下 # python mrMeanMapper.py < inputFile.txt | python mrMeanReducer.py import sys# 系统输入输出 from nump...
[ "1756429307@qq.com" ]
1756429307@qq.com
7208daedc8fa29c8a647a70162523436def9ff85
6823937e2384128a0a8ff5101ce9cd95548896c3
/metapp2/group/views.py
3234caec959e3aaf80b9506329893224e0ba26b7
[ "BSD-3-Clause" ]
permissive
phamtrisi/metapp2
c7551486f2816db02a32c5c48c044c1d1e740956
cde00d4ca8c4a29b824e5089bb0d3576137e6122
refs/heads/master
2021-01-22T07:35:18.178764
2015-01-26T02:19:42
2015-01-26T02:19:42
29,798,533
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# -*- coding: utf-8 -*- from flask import Blueprint, render_template from flask.ext.login import login_required blueprint = Blueprint("group", __name__, url_prefix='/groups', static_folder="../static") @blueprint.route("/") @login_required def members(): return render_template("group/list...
[ "quanphamminh@gmail.com" ]
quanphamminh@gmail.com
c0414e00cafbf74684e1f0e04d73d5791952f63a
96bcbd87280f6c9794399faa9b0eeff9640f2bf3
/1_First_Flask_Project/database_sqlite3.py
d0df2273299d517f3d79ea321e10bd52d5ae0e87
[]
no_license
anandaheino/Creating_API_Flask
43046413bf4e777c3845d9071a48a83a49d2f111
03a4891e0ca4555f1343f4894a12fd27942015d1
refs/heads/main
2023-07-27T02:46:56.414814
2021-09-12T19:55:48
2021-09-12T19:55:48
404,477,340
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
import sqlite3 ### CREATING DATABASE USING SQLITE3 # Choosing the name of our database: enterprise.db conn = sqlite3.connect('enterprise.db') # Using cursor to create and access tables cursor = conn.cursor() # creating a table passing the query #### Following the same base from the dict created at the server...
[ "anandaheino2@gmail.com" ]
anandaheino2@gmail.com
d0725b642111cd872e94339bb6d20b1ed796ebe2
c2b06e8e86231f53d8e159d7bf45ebb6602aaece
/CSC384-A1/WaterJugs.py
02b06a3259bb3981b591d0c3a46fe038381bb5a0
[]
no_license
jianajavier/PycharmProjects
101f5d7a492f39f25914949d37c2226f1a323281
23130f41136eeaf39e6814baccec6759a1e6f55a
refs/heads/master
2021-01-17T10:09:00.653555
2016-05-30T23:30:21
2016-05-30T23:30:21
60,043,326
0
0
null
null
null
null
UTF-8
Python
false
false
6,507
py
''' EXAMPLE STATESPACE WATERJUGS States in the waterjugs problem can be represented by two integers, (gal3,gal4), where gal3 is the amount of water in the 3 gallon jug, and gal4 is the amount of water in the 4 gallon jug. To use the search routines we subclass the "StateSpace" class and implement specialized versions...
[ "jiana.javier@mail.utoronto.ca" ]
jiana.javier@mail.utoronto.ca
1058cbb6c3bf38739ccea3ae06ef948317fab391
ca7a68d83ea9051068ac7ada1997d9253883b0da
/lab6/pta/perceptron_training.py
ee62ef3773a1a969bb4ee1605323026232e3c78b
[]
no_license
anuragshirolkar/AI-labs
384713430133248dd3e16b55b11a13bd1d73993c
468ba3182557e6c6cfb3296136c572cf4e2cbe83
refs/heads/master
2021-01-21T19:06:06.428864
2015-04-28T22:06:38
2015-04-28T22:06:38
29,127,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
n = int(input()) inputs = [] outputs = [] for i in range(n) : inp = raw_input().split() out = int(inp[-1]) inp = [int(x) for x in inp[:-1]] inp.append(-11) inputs.append(inp) outputs.append(out) def is_valid(inp, out, weights) : tot = 0 for i in range(len(inp)) : tot += inp[i] ...
[ "ashirolkar47@gmail.com" ]
ashirolkar47@gmail.com
29f444e48a77eb43cdbbb7fd3bd6b4a5d037cdfc
985484e415631abe5b4afc2e0c67d6b1e2d0c5d1
/apps/xfzauth/migrations/0003_user_image.py
7de80792bad5c80ea4bf0f45a4c90e4f5172bfd3
[]
no_license
a371057600/xfz
b88046f1c174956e0204abe8a56456dfe1471efc
dfb830d0060a95f7ca3a4e7df7f3bb957ac74384
refs/heads/master
2020-04-20T16:56:08.581009
2019-03-20T17:28:27
2019-03-20T17:28:27
168,973,712
1
1
null
null
null
null
UTF-8
Python
false
false
375
py
# Generated by Django 2.1.4 on 2018-12-29 12:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('xfzauth', '0002_auto_20180628_1159'), ] operations = [ migrations.AddField( model_name='user', name='image', ...
[ "44048541+a371057600@users.noreply.github.com" ]
44048541+a371057600@users.noreply.github.com
6c96671f74b9343463bf52518965371e3ce49f1b
70be35c6669cfc740f8379cfa0b685eb36058352
/posts/admin.py
a816627dc64c2e979252261606ae9ea50c623621
[]
no_license
RimoldRynold/django-blog
1e727718f12c7fa90d9098f1a79d158498abb56e
1f20e178e4f6bd1cfefa323482fab2da47b8928d
refs/heads/main
2023-07-16T02:56:47.141063
2021-09-06T19:42:21
2021-09-06T19:42:21
403,733,283
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Posts)
[ "rimoldishere@gmail.com" ]
rimoldishere@gmail.com
1023c90c9e41ab6e063e80f56d7aa9d936f1cc7f
ad2c88af9412b757bde7df94f57660c70748d877
/Jatin Kamboj CW/2-D Arrays.py
3e9b68b38ef8176d397ebd96f6508b42e8bd85be
[]
no_license
MJK618/Python
5d19b7046d7709b16068c758ebcbf7e61f52e374
edb31ab490403a53fffa6a82692e1dd76040c5d7
refs/heads/master
2023-02-17T15:51:42.533454
2021-01-19T17:12:42
2021-01-19T17:12:42
297,244,564
3
0
null
null
null
null
UTF-8
Python
false
false
1,400
py
#2-D Arrays #By Jatin Kamboj m=int(input("Enter Number Of Rows")) n=int(input("Enter Number Of Columns")) mat=[] for i in range(0,m): mat.append([]) for i in range(0,m): for j in range(0,n): mat[i].append(j) mat[i][j]=0 print("Enter The Elements") for i in range(0,m): for j in range(0...
[ "noreply@github.com" ]
MJK618.noreply@github.com
b459778641b56e0820e5fb384b11042a69533afa
d46b78f80e6893f208c1e9b1206108122909c83c
/writeFile.py
b7ff8695fe7a62bafe65fbf288eefef66cbdb7c8
[]
no_license
chandra88/docmaker
fd62786e40399de04ddcc8a5635a5d80e3a0ccf7
35ba70f3984a6ebc1524fc05a542caefe4b8bdd4
refs/heads/master
2021-01-21T14:01:37.806865
2015-06-02T00:29:40
2015-06-02T00:29:40
35,890,180
0
0
null
null
null
null
UTF-8
Python
false
false
12,349
py
#!/bin/python import os, sys import os.path import subprocess as sp import fileinput import glob import commands import shutil import re from textManip import * from classFile import * from initialize import * doctype = '<!DOCTYPE HTML> ''\n'' \ <html lang=en> ''\n'' \ <head> ''\n'' \ <meta charset="utf-8" /> ''\n''...
[ "csah88@yahoo.com" ]
csah88@yahoo.com
53f18e3d6324766217bd33e5f7c5df5c74d01171
7e98a3fc246547cc93ce2a93f39410aac38f8dd3
/bag/tests/test_urls.py
c6fc2dc10f4a6c80e6986f82a633ff10c1e9cdec
[]
no_license
kydzoster/huntinteriors
53b5d064f05010c71c70d72a6148494226980287
4439c652d74d9b5553abc67d4bbac73b33b42336
refs/heads/main
2023-02-04T03:14:50.250492
2020-12-16T13:22:31
2020-12-16T13:22:31
301,401,449
0
1
null
null
null
null
UTF-8
Python
false
false
1,063
py
from django.test import TestCase from django.urls import reverse, resolve from bag.views import view_bag, add_to_bag, adjust_bag, remove_from_bag,\ success class TestUrls(TestCase): def test_view_bag_url_is_resolved(self): url = reverse('view_bag') print(resolve(url)) self.assertEqual...
[ "kydzoster@gmail.com" ]
kydzoster@gmail.com
23b50708c3ac706936af52d8e0bd0e147f9ff4a3
3ad4ee773d5eb24dfc28f54bfd138bcafc977aae
/account_statement_cfonb/__openerp__.py
527188528542632e4dace3181d3c9a16e9bdf0da
[]
no_license
akretion/l10n_fr_bank_statement
31cca790840568ec878a749b346d049943ff9a9d
0c965998b827d2832c7b707587b5fcf2fe9ff096
refs/heads/master
2020-12-25T17:36:39.308909
2014-11-04T11:13:33
2014-11-04T11:13:33
40,714,755
1
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
# -*- coding: utf-8 -*- ############################################################################### # # account_statement_cfonb for OpenERP # Copyright (C) 2012-TODAY Akretion <http://www.akretion.com>. # @author Sébastien BEAU <sebastien.beau@akretion.com> # # This program is free software: you can redistr...
[ "sebastien.beau@akretion.com" ]
sebastien.beau@akretion.com
69a47ced6cdb4ee3837dfd3e6ec326e51e6a695c
0a3d5e79c9e88af1e46ab05754896f19b1cdbc4b
/mnist_train.py
8153c062791597f326b8ce79f2bae8ec2e77a63d
[]
no_license
Jensen-Lv/tensorflow_mnist
e04a726d54ae65e5116e66a012e5ca4420106146
a6956da2da69e4c48157385a74a2ce0955b6ece5
refs/heads/master
2021-08-23T21:02:06.607742
2017-12-06T14:41:37
2017-12-06T14:41:37
111,697,843
0
0
null
null
null
null
UTF-8
Python
false
false
2,442
py
import os import numpy as np import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import mnist_inference BATCH_SIZE = 100 LEARNING_RATE_BASE = 0.8 LEARNING_RATE_DECAY = 0.99 REGULARAZTION_RATE = 0.0001 TRAINING_STEPS = 30000 MOVING_AVERAGE_DECAY = 0.99 MODEL_SAVE_PATH = "./model" MODEL_N...
[ "yanlonglv@yanlonglvdeMacBook-Air.local" ]
yanlonglv@yanlonglvdeMacBook-Air.local
9fcdf9b1d8f3ebecbece833c1586e2a3ed618d05
0c83ef7d2604888863c1af345ef28a4b57b32b7f
/AirlineReviewClassifier/AilrlineReviewClassifier.py
eeb63cac1f0bd35734e5e30f7591547fe1a6367b
[]
no_license
btennant521/Data-Science-Projects
3321535d3f00e42a357de5a2720105dde3573211
a9162f07188af98359ece44a4cadc64d21785979
refs/heads/master
2023-02-07T05:11:30.175411
2020-12-28T19:25:48
2020-12-28T19:25:48
279,488,347
0
0
null
null
null
null
UTF-8
Python
false
false
9,648
py
#!/usr/bin/env python # coding: utf-8 # In[15]: import numpy as np import pandas as pd # # Experiment Objective # The dataset I chose to use consists of tweets from a twitter user directed at an airline. I downloaded the archive file from kaggle, website for Data Scientist to share and play with different data sc...
[ "ben.tennant@du.edu" ]
ben.tennant@du.edu
8afe84368719c408ffe7879c59647637b4ef3d99
de56b7409521bec01709042fb6ba8d7b49c066bc
/Baekjoon/Bronze/10809.py
fd7f2bf0bc9e1603919ab7c87bd43c4e9e0b26e3
[]
no_license
hodurie/Algorithm
40595c836febef815eff80585765a21a8cc299f1
f0a72afd65d078661f3e8921de61d8c61ac06d89
refs/heads/master
2023-07-26T04:29:59.181987
2021-09-06T11:44:39
2021-09-06T11:44:39
264,898,915
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
S = input() lst = list(map(chr, range(97, 123))) for i in lst: print(S.find(i), end = " ")
[ "hodurie@gmail.com" ]
hodurie@gmail.com
937a48765acfadc6493d3b1d0b2c9ca105426070
a5de67ad2a76753a8644307e6736e03f77e5e196
/Largest.py
497b2cad676a452f1912681dd214645a98cb47ef
[]
no_license
Sonaelizebeth/Python-Programs
d7b89a775ea6ab978f0ad17d52bd57369c94f9de
27348269ba238cad6cc22773069bb5e1c2a980cb
refs/heads/main
2023-06-05T01:30:22.326600
2021-06-24T16:06:43
2021-06-24T16:06:43
378,443,480
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
#program to check the largest number among 3 numbers a = int(input("Enter the first number:")) b = int(input("Enter the second number:")) c = int(input("Enter the third number:")) if(a>c): print("A is Largest") elif (b>c): print("B is largest") else: print("C is largest")
[ "noreply@github.com" ]
Sonaelizebeth.noreply@github.com
0aa85492271aaf75d61d16e7ddde4438d0ea5ae7
ac235a23f22be0d6f1818bb53902177f9969813a
/ddtrace/contrib/kafka/patch.py
bbec71de62bc1dc85235d14cc11c93ef77323796
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
10,186
py
import time import confluent_kafka from confluent_kafka import TopicPartition from ddtrace import config from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.constants import SPAN_KIND from ddtrace.constants import SPAN_MEASURED_KEY from ddtrace.contrib import trace_utils from ddtrace.ext import SpanK...
[ "noreply@github.com" ]
DataDog.noreply@github.com
15bc8407519a5501e2d0687a01ae6c171ec545ed
051c3ee44478265c4510530888335335ec9f7fdf
/ML_Applications/SVM/experiments_(MRs_on_Mutants)/digitsData/RBFKernel/Mutants/MR1-permuteFeatures/r5/DigitRecognitionApp_5.py
99860b4f108cd70b0936ce937a2f1954c2cf2a6a
[]
no_license
PinjiaHe/VerifyML
b581c016012c62d8439adfce0caef4f098b36d5e
3bd7c49e45720c1cdfe0af4ac7dd35b201056e65
refs/heads/master
2020-03-25T19:40:39.996370
2018-01-30T08:58:58
2018-01-30T08:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
""" Created on Fri May 26 15:20:01 2017 #Digit Recognition for V & V #Following note added by Raghu Note: 1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example 2. For more info, refer this link ...
[ "anurag.bms@gmail.com" ]
anurag.bms@gmail.com
b83ec2d670154dd3d5a2031394f7a16de87460de
2b19784741ebc5206eb6f275a15e04fe58b621de
/PySARibbon/SAWidgets/SARibbonApplicationButton.py
eac8ee315ec343593a30928182e68ee8872116b0
[ "MIT" ]
permissive
mcxrrp/SARibbon-pyqt5
c0055ac1e2f7aba2ff619ecc29a9493c313198cb
a8359e86401d76bd4ad266223bc76026585043b3
refs/heads/master
2023-09-01T12:03:48.587394
2021-09-14T16:14:29
2021-09-14T16:14:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
# -*- coding: utf-8 -*- """ @Module SARibbonApplicationButton @Author ROOT """ from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QPushButton class SARibbonApplicationButton(QPushButton): def __init__(self, *_args): """ __init__(parent=None) __init__(str, parent=None) ...
[ "963831134@qq.com" ]
963831134@qq.com
4511418ac6a1ba4d051b347cf150a798e4753afa
644d9ef18713e4cb5d4c3b53301bd7276dcdf477
/api/programs/serializers/courses/__init__.py
0420ef42cac21787e67976e0cca760e59a01bd92
[]
no_license
alexhernandez-git/django-classline
6cb5bcd268248999e18037f58c4ed30012d51915
49fcf0c6d735a56eaebc17d04be52dab91ca4c3a
refs/heads/master
2023-03-18T07:10:08.770066
2021-03-04T22:24:09
2021-03-04T22:24:09
287,985,028
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from .languages import * from .prices import * from .courses import * from .blocks import * from .block_tracks import * from .items import * from .item_tracks import * from .contents import * from .item_questions import * from .item_answers import * from .items_viewed import * from .materials import * from ...
[ "vlexhndz@gmail.com" ]
vlexhndz@gmail.com
890901cd0fa23a318fe40de3e3fe0723f54bbf50
96c98bd154f0f0a52390830425b57e5924523817
/sfd_test_code/WIDER_FACE/wider_test.py
5a3d4a10fc9240e23974e4f27e668532e2545dc1
[]
no_license
bonseyes-admin/SFD
cbb7972fe5cbd478447b0c41454c0049c0976935
b00e3d5890dd2cdaac8633dcc1c44666bd4efa87
refs/heads/master
2021-01-25T14:23:23.976555
2018-03-03T09:04:13
2018-03-03T09:04:13
123,692,086
1
0
null
2018-03-03T12:58:41
2018-03-03T12:58:41
null
UTF-8
Python
false
false
6,546
py
import numpy as np import cv2 import scipy.io as sio # Make sure that caffe is on the python path: caffe_root = '../../' # this file is expected to be in {caffe_root}/sfd_test_code import os os.chdir(caffe_root) import sys sys.path.insert(0, 'python') import caffe def detect_face(net, image, shrink): if shrink...
[ "noreply@github.com" ]
bonseyes-admin.noreply@github.com
0b47f8c6eb3a77131d6348dd8f32fd610752db01
ae9c8b6e04b65390ec25ca9b849b068e79a1fc6d
/Functions/GlobalMapSoilMoisture.py
538b8b3e630a4efb110fe0352ca51a5fd0f85ae1
[]
no_license
HarroJongen/DUHI
877456c114c9cc7fb70d1a807285f84248d4e480
b50e633802403ef48678bb174a749f18cea0ceb8
refs/heads/master
2023-07-31T02:12:36.830459
2021-09-24T09:05:52
2021-09-24T09:05:52
270,948,762
0
0
null
null
null
null
UTF-8
Python
false
false
664
py
#Title: GlobalMapSoilMoisture #Date: 23-07-2020 #Author: Harro Jongen #Draws a global map of the soil moisture for a given filepath def GlobalMapSoilMoisture(filepath): from netCDF4 import Dataset as NetCDFFile import numpy as np from mpl_toolkits.basemap import Basemap nc = NetCDFFile(filepath) ...
[ "harro.jongen@wur.nl" ]
harro.jongen@wur.nl
c27457207eaa7886233b01db019a34d541a16a43
0a3a5486d7d9dbb08bff2ece258e98f5ce676ec8
/src/registroCivil.py
5d6b1cf058220c6071355933cb8bfad1754f40a7
[ "MIT" ]
permissive
rodsalasf/Datos-COVID19
4eda2b99da963dc30eb3b0b12f11274e3a2612b7
098414e945203d2ec7ed4ab5f4b1436df23bc21e
refs/heads/master
2022-09-03T23:20:33.400884
2020-05-20T17:26:15
2020-05-20T17:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,200
py
''' MIT License Copyright (c) 2020 Sebastian Cornejo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ...
[ "sebastian.cornejo@gmail.com" ]
sebastian.cornejo@gmail.com
da07e9c6ef4dbfb70b6cc5d01d2eea1a53773cd9
5b7b6100866a4dc2c3da3dc019882154c7d9ef4a
/Games/Python/A/RPSLS.py
5e32f3ea3d84cecda3654461e3cd5c9dcb08ac6f
[]
no_license
Hellrungj/Python-Games
711b17a2198fd95b9a317d7db857ca30782264b4
34c78c630457018c04b7a05fef320750b11b5c1d
refs/heads/master
2016-09-13T09:43:30.923904
2016-04-18T02:01:09
2016-04-18T02:01:09
56,359,904
0
0
null
null
null
null
UTF-8
Python
false
false
3,713
py
#------------------------------------------------------------------------------- # Name: hellrungj # Purpose: This is the game Rock, Paper, Scissors, Lizard, Spock # Created: 22/04/2014 # Copyright: (c) hellrungj 2014 # Licence: <your licence> #-----------------------------------------------------...
[ "hellrungj@berea.edu" ]
hellrungj@berea.edu
be0eda8aa93f7cb677306f18f5e62307bb935bc2
efec547cce9f3e73246990de7ce9572f2c585725
/tensorflow/python/distribute/tpu_strategy.py
f39491da5307fe44a4ad03eb944b19983a0d66c3
[ "Apache-2.0" ]
permissive
ltn100/tensorflow
a5d150fbb4930f2c516cee9e712774d82e260ac6
4c54f0a0a83d3cf8e2a3326734880fced6e37541
refs/heads/master
2020-09-03T02:08:06.344814
2019-11-13T09:03:03
2019-11-13T09:06:49
219,355,872
1
0
Apache-2.0
2019-11-03T19:45:13
2019-11-03T19:45:12
null
UTF-8
Python
false
false
31,090
py
# Copyright 2018 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
81b3c1a604d12b227bc601a62060b3b20494c030
c03d7a4e03c581d4be98b6363003cddb9c213ec0
/registration/migrations/0017_auto_20181122_2208.py
3e33472466085ca31c4186c48ec9f60a73f4368e
[]
no_license
hernandavidc/plataforma
b333e4f06290713072d8dc609c27d4ce8af1d9df
4316e2a59db76e74f1e6106958631ad4a7a653c7
refs/heads/master
2020-04-06T17:08:21.019355
2019-04-09T04:41:00
2019-04-09T04:41:00
157,648,096
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
# Generated by Django 2.1 on 2018-11-23 03:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registration', '0016_auto_20180910_1209'), ] operations = [ migrations.AlterField( model_name='veterinaria', name='lat...
[ "hernandavidc@hotmail.com" ]
hernandavidc@hotmail.com
4383fc24843a959d785ac18857cc493f6aa482fe
223054ff0a9a33e8b340d52f22c745dee58b2d98
/notebookAssets/codeSnippets/codeSnippet.py
3afa4a35c6df4c552a2a3240d0fd02814578bb5e
[ "MIT" ]
permissive
WaunBroderick/Search-Identify
5b7358b7b6c8947044fa0080a280b2ef69e615c6
24ce11cb0d1cb75424c390928fbd55a1a1092456
refs/heads/master
2020-06-06T11:34:43.236182
2020-01-28T03:49:32
2020-01-28T03:49:32
192,729,366
1
1
null
null
null
null
UTF-8
Python
false
false
534
py
def train_model(x_train, x_test, y_train, y_test): input_shape=(img_rows,img_cols,3) model=create_model(input_shape,total_countries) adams=optimizers.Adam(lr=1e-4) model.compile(loss='categorical_crossentropy', optimizer= adams, metrics=['accuracy']) model.fit(x = x_t...
[ "waun.broderick@gyroscopic.ca" ]
waun.broderick@gyroscopic.ca
c73e4eea2ea7eda52fcb5c5f04c46ccaf9eb0d3e
c241ff1a0a5a4051d618820cdc8d391e6c3592b3
/094.py
3acbab8f2d6fdbcab547d76ae9d52d6351d39546
[]
no_license
116pythonZS/YiBaiExample
3377f05f282c1f4d2d9f514d551fa38836fed569
54cac8724d8df384b5febb29ec8edb16e2e67ce5
refs/heads/master
2021-06-22T03:22:24.647907
2017-08-29T16:40:26
2017-08-29T16:40:26
100,593,473
0
0
null
null
null
null
UTF-8
Python
false
false
1,062
py
#!/usr/bin/python # -*- coding=utf8 -*- # Created by carrot on 2017/8/29. """ 题目:时间函数举例4,一个猜数游戏,判断一个人反应快慢。 """ import time import random def main(): play_it = input("想要继续玩吗('y'or'n')") while play_it == 'y': i = random.randint(0,2**32) % 100 start = time.clock() # a = time.time() ...
[ "carrot@HXL-MBP.local" ]
carrot@HXL-MBP.local
8ec08ea622782ba48301755259667cb66b3bcb6d
c719b6b0c51e208c93006b3244c096af1e4752f8
/examples/Pi2.py
0c74627ae81e2a121c22a26bed84f4e8f772a41f
[ "Apache-2.0" ]
permissive
gtaffoni/Learn-Python
db99e2c494d098ba203f882e4a26a959a96ad297
dc7a56e05f9f5b47621e6f37a9cfb36b83926de9
refs/heads/master
2021-01-23T03:33:57.630483
2018-05-28T10:01:20
2018-05-28T10:01:20
86,091,059
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
#!/usr/bin/env python #----------------------------------------------------------------------------- # # Pi2.py # Learn Python # # Created by giuliano taffoni on 31/03/17. # Copyright 2017 Guliano Taffoni. All rights reserved. # # The full license is in the file LICENSE, distributed with this software. #-----------...
[ "morgan@anouk.oats.inaf.it" ]
morgan@anouk.oats.inaf.it
71510656048ba2862fc44370f36b3b47fff25955
99e8cb8fcce23454fc20a4bd7e932f6b304bfa5f
/app.py
873b9f9da76cbd324c0150b43050259790dcfd80
[ "MIT" ]
permissive
alexpulver/aws-iot-web-api
5b5065c06345358feab7458ac238d731cda0d987
6f3bf93252c4faad25b9c0f9011192c622916ebd
refs/heads/master
2020-04-13T22:48:19.952401
2018-12-29T07:38:01
2018-12-29T07:38:01
163,488,493
1
0
null
null
null
null
UTF-8
Python
false
false
687
py
import json import boto3 from flask import Flask, request app = Flask(__name__) @app.route('/devices/<device_id>', methods=['GET', 'POST']) def manage_devices(device_id): client = boto3.client('iot-data') if request.method == 'GET': response = client.get_thing_shadow(thingName=device_id) else: ...
[ "apulver@amazon.com" ]
apulver@amazon.com
98e67432ab2b7827aba8367a3bb3ecfbbeb4e98f
d27c4ca7fd96a62363e555677d9d41e0b649f704
/tools/external_converter_v2/parser/onnx/med_trans_util.py
31c479efed5a3a150666bc4f3f5c9d23bc82381c
[ "Apache-2.0" ]
permissive
imharrywu/Anakin-1
26e69bb2ec38d66d279cb3b1003501cbf0f8b729
ffabcf1bd4b19cc6c682ba8a9e68b8ef976d9da7
refs/heads/master
2020-09-21T12:53:29.055278
2019-11-29T09:37:52
2019-11-29T09:37:52
224,795,082
0
0
Apache-2.0
2019-11-29T06:56:16
2019-11-29T06:56:16
null
UTF-8
Python
false
false
10,522
py
import numpy as np from ..graph_io import TensorProtoIO, OpsProtoIO from ..operations import OpsParam def shape_2_ak_shape(shape): """ onnx shape to anakin shape :param shape: :return: """ mini_shape = [i for i in shape if (i is not None and i > 0)] return map(int, [1] * (4 - len(mini_shape...
[ "qq332982511@qq.com" ]
qq332982511@qq.com