blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
334249cec979a5fe4f70253adb78273457ef3d2b
8dbde2f77c1c213a3477d21979d1cbec9aba8df7
/baselines/her_pddl/ddpg.py
4a33ccf8a99aaf748725c80e65bd41828b240775
[ "MIT" ]
permissive
fabawi/goal_conditioned_RL_baselines
04694e216d5024093c7135e68459338bc9ed6926
915fc875fd8cc75accd0804d99373916756f726e
refs/heads/master
2023-01-08T12:11:57.130496
2020-08-14T13:28:52
2020-08-14T13:28:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,984
py
from collections import OrderedDict import numpy as np import tensorflow as tf from tensorflow.contrib.staging import StagingArea from baselines import logger from baselines.util import ( import_function, store_args, flatten_grads, transitions_in_episode_batch, prob_dist2discrete) from baselines.her_pddl.normaliz...
[ "eppe@informatik.uni-hamburg.de" ]
eppe@informatik.uni-hamburg.de
c735627231131ebf3d41f8b0d0b2c4e1b2f91659
26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f
/exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/kubevirt_vm.py
ddcab20e9863af4105ed6489bcd7c4e7021b0e5a
[ "GPL-3.0-only", "MIT", "GPL-3.0-or-later", "CC0-1.0", "GPL-1.0-or-later" ]
permissive
tr3ck3r/linklight
37814ed19173d893cdff161355d70a1cf538239b
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
refs/heads/master
2021-04-11T04:33:02.727318
2020-03-25T17:38:41
2020-03-25T17:38:41
248,992,437
0
0
MIT
2020-03-21T14:26:25
2020-03-21T14:26:25
null
UTF-8
Python
false
false
16,645
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
[ "joshuamadison+gh@gmail.com" ]
joshuamadison+gh@gmail.com
216c67e07b22577d4087564e68fc2b07c9350297
02464d5cef58178de8fe68b32b109ac8a06a6d69
/02_generate.py
b9eb61dc4eb714f48dc2b09ab5a0c8f72c2fe090
[]
no_license
koharukoharu/AI_carcof
27fa0325d140a4c29433c9b6438d9a20e759505d
d8d37ee1c1395ebf8c9c4503a4b749df4e6752c4
refs/heads/master
2020-04-10T20:23:11.349292
2019-01-11T09:13:29
2019-01-11T09:13:29
161,265,917
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
# -*- coding: utf-8 -*- from GenerateText import GenerateText def generate_tweet(): generator = GenerateText() print(generator.generate()) if __name__ == '__main__': generate_tweet()
[ "masayoshi_sakino@waku-2.com" ]
masayoshi_sakino@waku-2.com
557e30a0058eb90a9047425be82e7edde954fedc
4309faae9913ca6e159468b7385201ed15a54e64
/Travelling Salesman Problem.py
3ce0d3fa8044716dc4084e8ee0e5a3b10c7c4a6d
[ "MIT" ]
permissive
anshuljain21120/Genetic-Algorithms
69f27988d8edd466101d5fde1b3d53dc002613a0
fe53ea259929af739f46881f7b394472d811d7bf
refs/heads/master
2020-09-12T02:51:12.559464
2019-12-12T05:25:49
2019-12-12T05:25:49
222,276,678
1
0
null
null
null
null
UTF-8
Python
false
false
3,795
py
import random import pandas as pd import numpy as np import matplotlib.pyplot as plt def fitness(chrm,distances): dis = 0 for i in range(len(chrm)-1): dis += distances[chrm[i]][chrm[i+1]] dis += distances[chrm[0]][chrm[len(chrm)-1]] return dis def randinit(n,lenchrm,dis): df = pd.D...
[ "noreply@github.com" ]
noreply@github.com
580d51ce82ab0853343de7bbef2392334147e0e8
1f5a437354efeaffc4d5e04db9596d51398e63db
/cmake-build-debug/catkin_generated/pkg.develspace.context.pc.py
c795e5db2188c0fe3b8abcde3aaefad3d73382e3
[]
no_license
fbjelonic/xbox_controller
1bd9caadb5438ebf14993fa35e5a987be285507e
9576f6afd8f515c1088420f46e060f9065a845f9
refs/heads/master
2021-04-24T00:07:25.985052
2021-01-24T19:35:32
2021-01-24T19:35:32
250,039,784
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/filip/banana_ws/src/xbox_controller/cmake-build-debug/devel/include;/home/filip/banana_ws/src/xbox_controller/include".split(';') if "/home/filip/banana_ws/src/xbox_controller/cmake-build-debug/d...
[ "filip.bjelonic@gmail.com" ]
filip.bjelonic@gmail.com
156d6f7fc512c8f3ba50b7135ffd548e1d30f08e
8e75843fc2b27d50e1f8a95f0367a3a96a3dae30
/Code/python_quote.py
a1cb9f69bbba8935805a704b36ca94ea7291b786
[]
no_license
franklin-phan/CS-2-Tweet-Generator
5f122e2aab7a6ee749feb888d094c8057671a7ee
fedb9ba46be3f31a1586f8d64986ec92c58296b6
refs/heads/master
2021-07-14T14:37:13.404088
2020-03-06T07:08:03
2020-03-06T07:08:03
236,772,553
0
0
null
2021-03-20T02:58:02
2020-01-28T15:47:39
Python
UTF-8
Python
false
false
332
py
import random quotes = ("It's just a flesh wound.", "He's not the Messiah. He's a very naughty boy!", "THIS IS AN EX-PARROT!!") def random_python_quote(): rand_index = random.randint(0, len(quotes) - 1) return quotes[rand_index] if __name__ == '__main__': quote = random_python_quote(...
[ "franklin.phan123@gmail.com" ]
franklin.phan123@gmail.com
a650fcc83f32dd0898f953ec683b1b54eb77b733
233f97c6f360d478bf975016dd9e9c2be4a64adb
/guvi3.py
6dd143242eb16cf5b6ec3091f1ddba172fd1f82f
[]
no_license
unknownboyy/GUVI
3dbd1bb2bc6b3db52f5f79491accd6c56a2dec45
d757dd473c4f5eef526a516cf64a1757eb235869
refs/heads/master
2020-03-27T00:07:12.449280
2019-03-19T12:57:03
2019-03-19T12:57:03
145,595,379
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
def check(n): count = 0 for i in str(n): count+=int(i) if str(count)[0]=='1': return count else: return False n = int(input()) l = [8] c = 0 diff = 2 curr = 800 while curr+diff<=n: curr+=diff w = check(curr) if w!=False: l.append(w) diff+=2 c+=1 print(...
[ "ankitagrawal11b@gmail.com" ]
ankitagrawal11b@gmail.com
c6b5a89e10f3042dbf3e41d7c89e392ca76b813f
a5668837dbc639e87460c3c725539e97a2698667
/chapter-4/7_build_order.py
1929fc9bc52c99a26ee48f889ac4ff1d1ea6e693
[]
no_license
shanminlin/Cracking_the_Coding_Interview
6ea2a4a103fcd5ebcac956f715d15b7593587a69
133165d879a76f86ba0fa3fea723203118e9ef11
refs/heads/master
2022-09-12T21:28:08.926935
2020-06-03T07:49:49
2020-06-03T07:49:49
195,264,456
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
""" Chapter 4 - Problem 4.7 - Build Order Problem: You are given a list of projects and a list of dependencies (which is a list of pairs of projects, where the second project is dependent on the first project). All of a project's dependencis must be built before th project is. Find a build order that will allow the pro...
[ "shanminlin@gmail.com" ]
shanminlin@gmail.com
35ffd32429dda0c8f6f7fc732cecded99c89a129
3e395616b524f7c416d3eb5bedcb385efc9476b9
/Python - University of Michigan/02 Python Data Structures - University of Michigan/170813_coursera_pds.py
7fa10f5b001a560c1e1b7dd8dd1946a9e5cdd417
[]
no_license
rohannanaware/Python
614f925c25a49852f3fe875367d61c089d3980f4
d1f49571aac0f3b13c450311f420a26f2f70b910
refs/heads/master
2021-09-12T08:46:35.391638
2018-04-15T16:54:00
2018-04-15T16:54:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,055
py
#Author : Rohan M. Nanaware #Date C.: 13th Aug 2017 #Date M.: 13th Aug 2017 #Purpose: Python data structures code documentation #6.1 Strings fruit = 'banana' print(fruit[0]) print(len(fruit)) for i in range(len(fruit)): print(i, fruit[i]) for letter in fruit: print(letter) #Slicing strings - Upto ...
[ "noreply@github.com" ]
noreply@github.com
b39e0b8dd9b5b7433907c2c42d410fd4a1992a54
97cd75e0a505e3a499f292a671d1bbf678e59ad3
/extras/[Day03.x]CrossedWires-Rendering.py
d8ada5180189cb430960eeb42512bcba7bffb294
[]
no_license
cgdilley/AdventOfCode2019
53768e96eb629d8b9a8a27bd2bdbcb0bf7280f61
6e5816ea7e9e7c9921a139a328234d79c04e2f50
refs/heads/master
2020-09-22T12:55:16.869258
2019-12-13T10:10:11
2019-12-13T10:10:11
225,205,308
0
0
null
null
null
null
UTF-8
Python
false
false
3,345
py
import pygame from shared.day3 import load_wires, Wire import time import sys from typing import Tuple Coord = Tuple[int, int] def main(): wire1, wire2 = load_wires() render_wires(wire1, wire2, progressive=True, speed=30) # # def render_wires(*wires: Wire, progressive: bool, speed: int): bounds =...
[ "christopher@cabuu.de" ]
christopher@cabuu.de
112b70a8cb49822a6647aa03586fb30a695eb9e9
6684fa1ad429185b3008058b763f2a3874a75e5e
/python_spj.py
c5b467cdc3336105478663ea4d3995b13c2134f6
[]
no_license
DeepsnowTech/QubitOnlineJudgeBackend
b43c84c1e75e824b47ffb1196b41ce07a605fd9e
434f87e568687dc1c58fc6715c2896d61a130446
refs/heads/main
2023-02-13T11:19:53.995413
2021-01-14T14:32:18
2021-01-14T14:32:18
328,137,570
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
import os import subprocess SPJ_WA = 1 SPJ_AC = 0 SPJ_ERROR = -1 PY_SPJ_HOME = "/code/ProblemCenter/PythonSPJ/" def py_spj_run(spj_src_path, test_in_file_path, user_out_file_path): problem_id = get_problem_id(spj_src_path) return _py_spj_run(problem_id, test_in_file_path, user_out_file_path) def _py_spj_run...
[ "doomspec@outlook.com" ]
doomspec@outlook.com
dd6599933934b2322beb606cd62f466192ff2185
f450ab7329a2e5182d4b8e798a0192580949c737
/src_detection/HOG_SVM/pedestran_detect_me_without_train_16.py
c793711b38c46b6eebc05a090b2996bf24165e62
[]
no_license
xuelanglv/KCF_IOU_Tracker
96e0f03a7ad24d30fa0430c2466a515119532611
bccaa0c145b6f58dec75d5843de4995c5aeba136
refs/heads/master
2020-05-25T19:36:57.125575
2019-04-27T03:09:01
2019-04-27T03:09:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,453
py
# *_*coding:utf-8 *_* # 参考资料:https://blog.csdn.net/qq_33662995/article/details/79356939 # # author: 许鸿斌 import os import sys import cv2 import time import logging import numpy as np import pandas as pd def logger_init(): ''' 自定义python的日志信息打印配置 :return logger: 日志信息打印模块 ''' # 获取logger实例,如果参数为空则返回ro...
[ "15822775539@163.com" ]
15822775539@163.com
a98677c79904384ea4f9182f45560317822060b0
1eb50735e3861cde4bca8f4feab5afc730003078
/future/flags_threadpool.py
68c2812cf5337155961672ac7f2d7ec0945eca02
[]
no_license
chinaylssly/fluent-python
442e6458215e3c5a74c4d34d020b714da108f81d
126c1d3e7853628c4a2c0e6ff475362b7d7fe33a
refs/heads/master
2020-04-17T13:58:03.534184
2019-02-01T14:40:42
2019-02-01T14:40:42
166,637,609
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
# -*- coding: utf-8 -*- import random,sys from time import sleep,time from concurrent import futures MAX_WORKERS= 20 tl=[i*0.01 for i in range(20)] def do_one(t=0.2): # print (t) sleep(t) return t def do_many(tl=tl): workers=min(len(tl),MAX_WORKERS) with futures.ThreadPoolExecutor(worke...
[ "chinaylssly@qq.com" ]
chinaylssly@qq.com
819929e661e932eb05fa4daed21aad26f4396234
92a08e6bca398d9a59f18aabb67090869a2ec963
/bagua/torch_api/data_parallel/functional.py
c12a379f2083826838ecb87c830b4d4751871a8f
[ "MIT" ]
permissive
JCGit2018/bagua
74e77e3b4062075824a407e8f739f1dfa8b1bd7c
689bb20623bb72a929758b54c67689e1639f2d12
refs/heads/master
2023-09-02T17:32:00.068437
2021-11-16T09:07:07
2021-11-16T09:07:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,253
py
import enum import torch from torch.autograd import Function import torch.distributed as dist # must be consistent with Aluminum ReductionOperator: https://github.com/BaguaSys/Aluminum/blob/master/include/aluminum/base.hpp class ReduceOp(enum.IntEnum): """An enum-like class for available reduction operations: ``S...
[ "noreply@github.com" ]
noreply@github.com
b831e9344373a01d47963d9f219b70d3348677fd
472c1437ac75d3cfa0e4a262c43d30f2d8e5c240
/ISM4402_workbookA1.py
cde017455dde1401fc094fafdeff4d2e00666437
[]
no_license
pwanner/ISM-4402
871153a785caf4e101d33ae0b3769897d438d27d
1d23d01000845bdd2429af46bace8097ccfcee00
refs/heads/master
2020-07-23T04:32:09.227897
2019-12-02T16:09:21
2019-12-02T16:09:21
207,446,910
0
0
null
null
null
null
UTF-8
Python
false
false
2,045
py
#!/usr/bin/env python # coding: utf-8 # In[1]: path_to_zip_file = "datasets.zip" directory_to_extract_to = "" import zipfile zip_ref = zipfile.ZipFile(path_to_zip_file, 'r') zip_ref.extractall(directory_to_extract_to) zip_ref.close() # In[2]: import pandas as pd Location = "datasets/smallgradesh.csv" df = pd.rea...
[ "noreply@github.com" ]
noreply@github.com
25a966ceab5d2deb560acac18c7d2c9729e93236
be999cad30c28d0370a57b73057cb734fdffbf23
/workshop_corona19/corona19_07_여행력.py
899ed6dd8d5552a0e7aa1dc68988569ffc65f5fa
[]
no_license
choicoding1026/ML
341181d5b1088f48fa0336a6db773ed7cfbecc21
69db5fcd559a7a41ce9fb0ece543d3cf9b44d5bb
refs/heads/master
2023-01-01T07:35:09.655664
2020-10-15T07:41:50
2020-10-15T07:41:50
303,907,947
0
0
null
null
null
null
UTF-8
Python
false
false
3,833
py
''' 서울시 코로나19 데이터 수집 및 분석 26. 여행력 ''' import pandas as pd import numpy as np file_name = "seoul_corona_10_11_.csv" df = pd.read_csv(file_name, encoding="utf-8") # 한글처리 # 1. '연번' 기준으로 오름차순 정렬 df = df.sort_values(by="연번", ascending=False) print("1. '연번' 기준으로 오름차순 정렬:\n", df.head()) # 2. 확진일의 빈도수 ==> 어느 날짜에 가장 ...
[ "justin6130@gmail.com" ]
justin6130@gmail.com
7d3286a307ecea8c8c07ea2d6f62606007ac26d0
1dd57fce35b0dee6d12a0a16473c1d7ff5df408d
/Assignment.8.5.py
c96d8ececa8738de6fcc0c797e365bab51a08b16
[]
no_license
JohnyWilson/ChuckPython
4b2770796a0466366d4c0b2414d6f2ca419bcfb7
6e4d2b446ce7f9305af202005aa2b1ece16dd44d
refs/heads/master
2021-01-10T16:36:47.459263
2015-12-15T05:21:21
2015-12-15T05:21:21
47,785,993
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# 8.5 Open the file mbox-short.txt and read it line by line. When you find a line that starts with 'From ' like the following line: ##### From stephen.marquard@uct.ac.za Sat Jan 5 09:14:16 2008 # You will parse the From line using split() and print out the second word in the line (i.e. the entire address of the person...
[ "imemyself9163@gmail.com" ]
imemyself9163@gmail.com
218da19b57c5712555289e34068f1467c2a0dd69
16047f965a69893a8cd2c8d18fbd7b9c86a07eb3
/src/networkx/algorithms/tree/mst.py
b7b8c1d9326cb3ad5fb75cc1770917b253928b1e
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
guctum/aws-kube-codesuite
9ce2cc02fe5fa15c2e175fb697138014fb162f1e
5d62beaadc13bec745ac7d2fc18f07805e91cef3
refs/heads/master
2021-05-24T10:08:00.651840
2020-04-23T20:21:46
2020-04-23T20:21:46
253,511,083
0
0
Apache-2.0
2020-04-06T13:48:14
2020-04-06T13:48:13
null
UTF-8
Python
false
false
21,167
py
# -*- coding: utf-8 -*- # Copyright (C) 2017 NetworkX Developers # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Loïc Séguin-C. <loicseguin@gmail.com> # All rights reserved. # BSD license. """ Algorithms for calculating min/max spanning trees/f...
[ "olari@784f435df7a4.ant.amazon.com" ]
olari@784f435df7a4.ant.amazon.com
989528ac7820dca22e21aec571ce43ed89e4c1a0
e3e3071e5f01f75ba3716ac229abef484e8c051a
/mnist.py
f9639c963cb10a4bdcfc9a82659ccfe73a01289c
[]
no_license
schmit/dictlearning
9efc9e15e73a99f840db71d81925dbe7c0bd22d0
14c37631aa4d330d58fc174b2294866e2484d5d0
refs/heads/master
2021-01-10T04:06:33.899917
2013-03-15T18:40:33
2013-03-15T18:40:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,943
py
import numpy as np import scipy.io as sio import dictionary import matplotlib.pyplot as plt import matplotlib.image as mpimg from multiOGD import * from kernels import * import sys import argparse import utility sys.stdout = utility.Logger() print 'Starting run of MNIST.py' parser = argparse.ArgumentParser(descriptio...
[ "schmit@stanford.edu" ]
schmit@stanford.edu
c271649567b1d4fcc6318325d96d7492f682fd23
0837592e2900db9ec8cf7fdb6fcce3053af7aeae
/New Main.py
85b701d2fb9156512fd98900c6da509d5fde2472
[]
no_license
AbdullahAjiPratama/GoldPrice-Prediction
5e3ce396aa82e0c223e11b6ae551c69831b72ed6
46807984b540104645202402458ebbe98d21bdd0
refs/heads/master
2020-08-10T17:30:38.877698
2017-02-22T08:06:18
2017-02-22T08:06:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,114
py
#Import semua prosedur dari file Datahandler.py import Datahandler as dh import ann2 as ann import numpy as np #BAGIAN INI DIKHUSUSKAN UNTUK TRAINING DATA #CHANGEABLE VARIABLE : File DATA TRAINING fileTrain = 'DataTrainSMA.xlsx' data, target = dh.generateToSeries(fileTrain, 3) #CHANGEABLE VARIABLE ...
[ "noreply@github.com" ]
noreply@github.com
24ebdd333e00edb3f74ccd4677e9ab43d5c096e3
c03d7a4e03c581d4be98b6363003cddb9c213ec0
/pets/migrations/0007_auto_20180910_0016.py
6228879999e3df790cc687d09ad854b059402325
[]
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
771
py
# Generated by Django 2.1 on 2018-09-10 05:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('pets', '0006_auto_20180910...
[ "hernandavidc@hotmail.com" ]
hernandavidc@hotmail.com
a3eefa3f23a8dfe00c158170d73f421c29d1e373
c79737296bdf4b3a969ab5ceb69198daf66def0e
/python/solutii/bogdan_iacoboae/caesar/caesar.py
315bde89ddbea8afd9d78e0152861ba4b9c51fa0
[ "MIT" ]
permissive
ilieandrei98/labs
96c749072b6455b34dc5f0bd3bb20f7a0e95b706
cda09cbf5352e88909f51546c2eb360e1ff2bec1
refs/heads/master
2020-04-26T03:23:48.220151
2019-03-01T08:56:43
2019-03-01T08:56:43
173,265,757
0
0
MIT
2019-03-01T08:37:14
2019-03-01T08:37:14
null
UTF-8
Python
false
false
1,939
py
# coding=utf-8 # from __future__ import print_function """Împăratul a primit serie de mesaje importante pe care este important să le descifreze cât mai repede. Din păcate mesagerul nu a apucat să îi spună împăratul care au fost cheile alese pentru fiecare mesaj și tu ai fost ales să descifrezi misterul. Informații: ...
[ "mmicu@cloudbasesolutions.com" ]
mmicu@cloudbasesolutions.com
5f3bf0a00a97af0ee8dafb8ced4351ea6a96ee71
6373ae8a308d5d8a7a100a36933b2e7de22638cf
/ldpc_jossy/py/ldpc.py
7841745ac8da20912be0cd1097fb01eb0a6de236
[]
no_license
appleginny/Test_LDPC
5c0b79eeb0b61180cc0a7d833f5c1b95529fb46c
a39a3f92dc836eaff6cc29459e753e1c23ae52e1
refs/heads/main
2023-05-08T03:23:30.124992
2021-05-26T08:46:05
2021-05-26T08:46:05
370,964,996
0
0
null
null
null
null
UTF-8
Python
false
false
35,147
py
from types import DynamicClassAttribute import numpy as nphttps://github.com/appleginny/Test_LDPC/blob/main/ldpc_jossy/py/ldpc.py import ctypes as ct class code: def __init__(self, standard = '802.11n', rate = '1/2', z=27, ptype='A'): self.standard = standard self.rate = rate self.z = z ...
[ "noreply@github.com" ]
noreply@github.com
9cc6631841e0d557fe5f7c550d607b43dd261df1
859fcc80ae3fcb062afba484344db4d061fd2bb0
/baseline/similarity.py
251517e2387474af47a1a8649da75220f4d3e563
[]
no_license
theblackcat102/who-wants-to-join
ee0cf4e5f1aa979edfc09651497d042d27b0e9b9
3f2e40454423fc96e1d93b54fb46e4ac083fb210
refs/heads/master
2022-08-27T05:28:35.137639
2020-05-03T06:58:24
2020-05-03T06:58:24
227,043,853
0
0
null
null
null
null
UTF-8
Python
false
false
4,578
py
from dataset.aminer import Aminer from dataset.meetup import Meetup,locations_id import numpy as np import pickle from sklearn.metrics import f1_score from src.utils import dict2table, np_confusion, str2bool def similarity_evaluation(dataset, embeddings, user_node_id, top_k=20, user_size = 399212): name2id = embed...
[ "zhirui09400@gmail.com" ]
zhirui09400@gmail.com
6ffd1941c7d2a0e2f96614bc4e481f9522b2e3f1
53e7a7eaa898ed070e1bcf8ecee6cfe37454ceb4
/network/tf_net.py
9d0a7338fe4d3472c847d6af718e36b0a981e93a
[]
no_license
joshualley/VoiceScope
dcf0026068ac5f981ed70f69280f117c124dbee2
cf6d09aef473bdffdb4e77e53ce2cc25e81b91f2
refs/heads/master
2020-03-23T23:30:47.770874
2018-07-25T02:55:19
2018-07-25T02:55:19
142,238,842
0
0
null
null
null
null
UTF-8
Python
false
false
4,393
py
import time import numpy as np import tensorflow as tf import os from configuration.config import PATH from utils.utils import read_fontnames, load_words os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' def read_from_npy(batch_size, num=1): path = PATH.DATASET_DIR+'train_one.npy' features = np.load(path).astype(np.fl...
[ "ly.silent.valley@gmail.com" ]
ly.silent.valley@gmail.com
af0460b6768e958b118d4f766a5792cc8bd5d712
08a77e9d1b67362430c404d044d1cff831a07dfa
/2021/day-09/solution1.py
87ef0bce3fce0ad478cecdaf8dcf9bed61b938dd
[ "Unlicense" ]
permissive
TeddyDD/advent-of-code
439974f31e30fc7ed541f56b2adf8bc365b91c86
6d3ba76e7312033a1255225f17a9ef580e066496
refs/heads/master
2022-12-11T10:39:40.339521
2022-12-06T07:55:53
2022-12-06T07:55:53
225,712,283
0
0
null
null
null
null
UTF-8
Python
false
false
41
py
import sys map = [y for y in sys.stdin]
[ "vision360.daniel@gmail.com" ]
vision360.daniel@gmail.com
cea5223ecb0de449aa5326b907fde8616c1df06b
5d0ec686240860bc3f0c611fee8fe0188536b15c
/plot_utils.py
4a3819a588036390264f528a21278b825e387f18
[]
no_license
kareemelbadry/projection_effects
87212d7212c5b83f446f6be005ffc77e8d7991e1
3c8a9f6f1f852dcc4150ff379b3fd60cc40ffe9f
refs/heads/master
2020-04-03T21:45:39.294743
2018-10-31T16:31:42
2018-10-31T16:31:42
155,580,611
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
''' very simple shortcuts for making plots ''' import matplotlib.pyplot as plt def new_column(nrow, xlim): ''' a single column with multiple rows ''' f, ax = plt.subplots(nrow, 1, figsize = (6, 1+3*nrow)) plt.subplots_adjust(hspace = 0) for i in range(nrow): ax[i].set_xlim(xlim) ...
[ "kareem@Kareems-MacBook-Pro.local" ]
kareem@Kareems-MacBook-Pro.local
cd010d7bf747349b82d9fd068f3b210bc383404a
d00890e73e5c16b4bab8528fc061d7c54ceeceac
/myproject/__init__.py
000d0202daa9e5f3cc314bf9414333bebc2f5e0c
[]
no_license
satishkr39/PuppyAdoptionSite
43d0b23e0b052de69833a3e5f129fac1e1246261
a07ec09e64cc8f23701a3f7542989f7be050f3da
refs/heads/master
2023-06-10T19:28:28.154570
2021-07-05T10:15:20
2021-07-05T10:15:20
383,097,023
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# __init__.py it is used to set up db and our application from flask import Flask, render_template, url_for, redirect from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate import os # setting our flask application app = Flask(__name__) app.config['SECRET_KEY'] = 'mysecretkey' basedir = os.path.a...
[ "satishkr639@gmail.com" ]
satishkr639@gmail.com
7e6aaa5e69e03122dd3e0dec7476a9bc38d155c2
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Difference/trend_MovingMedian/cycle_7/ar_/test_artificial_128_Difference_MovingMedian_7__20.py
3857b72f05dfa8e9071a105b318bb037455121e2
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
268
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
54031cba37a673bde336fdea678bd62f203009b0
ac15c013c340e96240a866fb9f0cdec953227e9d
/Module 1/Unit_1-2/1/2.py
bfa9a5cd5e9cf2f1d1c88a36253516968465f2b3
[]
no_license
NeroSH/python-beginner
3c47cd11a4784bf891f40693b4fe21eaf55e6ed6
71f9dd350e53f8897e1f8a00228df0604c1968b6
refs/heads/master
2022-12-04T19:05:16.509630
2020-08-25T10:28:17
2020-08-25T10:28:17
286,216,431
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
# Исправь программу # Сделай так, чтобы программа напечатала "How do you do?" print(How do you do?)
[ "mustafo.xon@gmail.com" ]
mustafo.xon@gmail.com
e39687a83d7901840b63d3e947089e5c408f944d
11137bde91389c04a95df6f6fdaf64f7f49f5f80
/secondTest/introduction_MIT2/5_1.py
47272dfbccb9fef4086d3fd1feaa61aff6aa3068
[]
no_license
starschen/learning
cf3c5a76c867567bce73e9cacb2cf0979ba053d9
34decb8f9990117a5f40b8db6dba076a7f115671
refs/heads/master
2020-04-06T07:02:56.444233
2016-08-24T08:11:49
2016-08-24T08:11:49
39,417,895
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
#encoding:utf8 def findDivisors(n1,n2): divisors=() for i in range(1,min(n1,n2)+1): if n1%i==0 and n2%i==0: divisors=divisors+(i,) return divisors divisors=findDivisors(20,200) # print divisors total=0 for d in divisors: total+=d # print total def findExtremeDivisors(n1,n2): d...
[ "stars_chenjiao@163.com" ]
stars_chenjiao@163.com
c3a82f8ae4512e4c66cb1f0c074facd96d2a4bf3
e89a3a203bd4b433c0f1acc05b2e3c89a7020a9f
/src/robots/descriptions/cheetah_simu/cheetah_sim/ros_package/cheetah_core/src/leg_control/__init__.py
88699440d88fb79604aa080b53b86fcbe3df9d3b
[]
no_license
JJHbrams/QuadrupedMotionPlanning
03e5dfdd8410710a26553441aa557e9585b5f10f
cf83de83776b8215b2e94dbc2afa5f59039e6d4d
refs/heads/master
2023-01-12T11:30:38.202023
2020-11-11T10:52:20
2020-11-11T10:52:20
311,865,277
0
0
null
null
null
null
UTF-8
Python
false
false
26
py
__all__=["legController"]
[ "dpswpfrhdid@naver.com" ]
dpswpfrhdid@naver.com
2f56ea2d6cedf1b7304b6de0a323b6d4b0d96f6b
382d0c69a9c4f7da95ef057e9babd657fd7963e0
/dog_classes.py
1f0f6f9d66b533e64c03373235a1cfc723c456aa
[]
no_license
mewen38/mikes_repo
9503523481218486f52365f05d7aa9fb3d0263fe
64e086317ed6663bf470708f3cee9d03777dbb7e
refs/heads/master
2022-12-04T18:51:46.215587
2020-07-29T04:49:04
2020-07-29T05:04:05
202,954,078
0
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
# I remember feeling very uncomfortable with classes, so I'm forcing myself to mess around after reading an article class animal: def __init__ (self, name, color, type): self.animal_name = name self.animal_color = color self.animal_type = type def speak(self): print('happy thoug...
[ "michael.ewen@compass.com" ]
michael.ewen@compass.com
49ba3fc51d417b778a7e6f918187d160af935600
a737f2f6b731afa8c041e8f06322730069193132
/start_game.py
692513f10d6eff56ce7e09c65eda2be91eb78e75
[]
no_license
qinjiang03/PokerAgent
514c01566d4dfaa1667e3a0f097ed3b9502c8428
1d7d50362393d4fd29972a2357fc056fb97524e8
refs/heads/master
2020-04-29T02:50:33.850260
2019-04-08T11:09:04
2019-04-08T11:09:04
175,785,512
0
0
null
2019-04-08T08:07:09
2019-03-15T09:05:53
Python
UTF-8
Python
false
false
1,611
py
from pypokerengine.api.game import setup_config, start_poker from randomplayer import RandomPlayer from raise_player import RaisedPlayer from custom.minimax_player import MiniMaxPlayer from custom.honest_player import HonestPlayer from custom.honest_player2 import HonestPlayer2 from custom.call_player import CallPlayer...
[ "qinjiang03@gmail.com" ]
qinjiang03@gmail.com
a1b7503c84df5db765cd1c0cf077084232aec8f4
88386ed170ab6d496b87ae3e8501130b92b82cf4
/gui-framework/app.py
681e45e0ed55088ee3d88f1942ab3b811ce99ac6
[]
no_license
LiuYuancheng/tls_attack
f6186dc74704928ee883f1c1a9142d42954dc7ae
3abe611d23a87aad9c35ad253e15bc06ff4bea35
refs/heads/master
2022-02-22T10:42:41.478189
2019-09-26T08:42:25
2019-09-26T08:42:25
221,579,890
2
0
null
2019-11-14T00:48:49
2019-11-14T00:48:48
null
UTF-8
Python
false
false
1,369
py
import os import sys import argparse from template import Ui_MainWindow from PyQt5 import QtCore, QtGui, QtWidgets parser = argparse.ArgumentParser() # parser.add_argument('-r', '--rootdir', help='Input the root directory path containing the data in json format for all trained model. Typically, foo/bar/rnn-model/train...
[ "yilong_tan@mymail.sutd.edu.sg" ]
yilong_tan@mymail.sutd.edu.sg
6c42121e14c982c244c5e02c8719f1cf0456c50b
00829e1ff78f73dab073a201d68139960c1d1922
/tools/toolset/tool/rigging/beam/core/maths/color.py
dc40bd6d1cd95c9443bd68690d5e0cbba7ef7e09
[]
no_license
liangyongg/Beam_Tools
a021ceb4187107508536c46726da5b9629ffd1cf
21b5d06e660f058434e589ae4f672f96296b7540
refs/heads/master
2018-11-04T04:43:02.523654
2018-08-26T12:33:09
2018-08-26T12:33:09
115,005,481
0
0
null
null
null
null
UTF-8
Python
false
false
9,953
py
"""Kraken - maths.color module. Classes: Color -- Color object. """ import random import math from rigging.beam.core.beam_system import bs from math_object import MathObject class Color(MathObject): """Vector 4 object.""" def __init__(self, r=0.0, g=0.0, b=0.0, a=1.0): """Initializes r, g b and a ...
[ "hhhh" ]
hhhh
9a987096b65f6e71be52e794d735cf712074ae9b
28938a381a60249062d18685c36ddaa5bd4069e2
/Fibanocci.py
264239845db697eb77bf0f5181b20e56fb8e4b66
[]
no_license
AmitH2000/Mycap
ab108024da938c4616ce271e3ec2ae2b0db7b528
881e8603474be3552464ec9f6d5a362b0fa7e73a
refs/heads/master
2021-05-26T03:51:24.033224
2020-04-12T10:57:34
2020-04-12T10:57:34
254,040,542
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
num=int(input("Enter the limit :")) a,b=0,1 while a<num: print(a,end=",") a,b=b,a+b print()
[ "noreply@github.com" ]
noreply@github.com
a090dee8f11f5d2e00a19ab4bc1ac21126f49a4a
1ea0e2b4f064ba0de45a73c527ee89a36771e8fc
/tests/sentry/api/endpoints/test_project_create_sample.py
89581e77fde5be59d789372f824b173ee52fe4f8
[ "BSD-2-Clause" ]
permissive
atlassian/sentry
6775e59c317f20f96982e91c2b3c88c02ecbb56b
b937615079d7b24dc225a83b99b1b65da932fc66
refs/heads/master
2023-08-27T15:45:47.699173
2017-09-18T22:14:55
2017-09-18T22:14:55
103,999,066
1
5
BSD-3-Clause
2023-04-01T07:49:37
2017-09-18T22:38:18
Python
UTF-8
Python
false
false
4,940
py
from __future__ import absolute_import from django.core.urlresolvers import reverse import json from sentry.testutils import APITestCase class ProjectCreateSampleTest(APITestCase): def setUp(self): self.login_as(user=self.user) self.team = self.create_team() def test_simple(self): p...
[ "noreply@github.com" ]
noreply@github.com
f72ea5adb6bb93fb22ed43dc90bdc32c3d350e5e
e9c9e38ed91969df78bbd7f9ca2a0fdb264d8ddb
/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_pkg_firewall_policy6.py
4e8e6249ef88271ad42c8c22653a3b534363cbf7
[]
no_license
Arceusir/PRELIM_SKILLS_EXAM
882fcf2868926f0bbfe1fb18d50e5fe165936c02
b685c5b28d058f59de2875c7579739c545df2e0c
refs/heads/master
2023-08-15T07:30:42.303283
2021-10-09T01:27:19
2021-10-09T01:27:19
415,167,192
0
0
null
null
null
null
UTF-8
Python
false
false
80,550
py
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2021 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
[ "aaronchristopher.dalmacio@gmail.com" ]
aaronchristopher.dalmacio@gmail.com
fec7c69adfe85662ef8afe4fad53eb0ed76d2067
e35cd19277b6440371bb5dd1b92c0abfd90c1e49
/get_background.py
17cd858a39421c138234ef7006b073fd1618aeab
[]
no_license
sbrems/background_sources
eb1272f37b0e3b5bf7134ee69f3caa5a46bbc7f0
127ec0452afd01eda93dd980e6db5f592940f4f0
refs/heads/master
2021-01-25T05:02:12.436972
2017-06-14T11:46:03
2017-06-14T11:46:03
93,503,241
0
0
null
null
null
null
UTF-8
Python
false
false
10,468
py
import numpy as np import matplotlib.pyplot as plt from matplotlib import gridspec from astropy.coordinates import Angle,SkyCoord import astropy.units as u from astropy.table import Table from starclass import Star from parameters import * import pickle import os import ipdb star = Star(srcname) star.coordinates = 'a...
[ "sbrems@lsw.uni-heidelberg.de" ]
sbrems@lsw.uni-heidelberg.de
5596e27e04441cf697f3ff37533f45e9882c9af2
856ada709d85f7c2c385277bbfdf07fabb24b762
/mysite/cocktails/views.py
e67443d0717c2a5edd839bf45b05f8e1c6921ffc
[]
no_license
laurence-liu/DearLiquor.Django
91ca130ac088ef2815355d88e940d5fb69da5350
395f9edda908ffedef7b9e41bc67e6cca6d5e71c
refs/heads/master
2020-04-28T20:18:15.994826
2019-03-29T08:30:11
2019-03-29T08:30:11
175,540,088
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from django.shortcuts import render from .models import Cocktail # Create your views here. def cocktail(request): cocktails = Cocktail.objects.all() return render(request, 'cocktail.html', { 'cocktails': cocktails, })
[ "laurence.liuuu@gmail.com" ]
laurence.liuuu@gmail.com
fc68572641d5a74b599133888502a7f9c82b6d3d
cd050f1f91d516101f3a8c05f36e9ac506560b5d
/crypto_api.py
7999f838d75d9f35c0658b52b5621d99f065bd43
[]
no_license
jacinthd/progyny-assessment
684dbe2b9062e106340549c0ad69cd8b8df1c967
a2a4ca5a2de09fe2a13ffc18d8e79a6a6829f4a0
refs/heads/main
2023-05-14T11:56:05.373384
2021-06-09T17:23:24
2021-06-09T17:23:24
375,439,966
0
1
null
2021-06-11T02:38:08
2021-06-09T17:36:53
Python
UTF-8
Python
false
false
1,149
py
"""Crypto API.""" from typing import Dict, List import requests # API Documentation - https://www.coingecko.com/en/api#explore-api def get_coins() -> List[Dict]: """This function will get the top 10 coins at the current time, sorted by market cap in desc order.""" response = requests.get('https://api.coinge...
[ "jacinthdavid@gmail.com" ]
jacinthdavid@gmail.com
b24a4d5318b0f26c286c6480a6924b655e13f8e5
a2fc37a497c73629c88fededb4c3c925ad2d75c6
/proyectoWeb/servicios/urls.py
cf4fafb9a238a2f02e0959892a9f3e5b697263ec
[]
no_license
atziripe/GestionPedidos
4b212796f5bbc704c6dbf42a4fcea18e1eb4435a
7522ce7ed8407c6e70938f7cd24a0ae92ea5fbfc
refs/heads/main
2023-06-17T13:31:25.227177
2021-07-09T00:53:33
2021-07-09T00:53:33
348,610,009
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
from django.urls import path from . import views urlpatterns = [ path('', views.servicios, name="Servicios"), ]
[ "atziripg.99@gmail.com" ]
atziripg.99@gmail.com
5bdd6cdb881c2c468c9c6d67ac53d6fa8cb63ced
7531ccd6d19ada54a11c69b721a352500a4220f0
/_commands/_CreateDirectory.py
50fb1206e5e72edaf082dae022c8819f45b56fd6
[]
no_license
pallavigusain92/FTP
27d234e5d799c02ef67bdb1189b3a199e8bf1c8e
68483b49cb8d70d1a7797438164c7cd89d6b4829
refs/heads/master
2020-04-26T00:08:03.095976
2019-02-28T19:15:33
2019-02-28T19:15:33
173,167,722
0
0
null
2019-02-28T18:55:33
2019-02-28T18:39:29
null
UTF-8
Python
false
false
314
py
class Command: def do_createdirectory(self, input_directory): """ Command to create directory with name of new directory Args: input_directory (str): Name of directory you want to create """ print(input_directory) response = self._perform_ftp_command('listdir') print(response)
[ "noreply@github.com" ]
noreply@github.com
86f7be2c3bdb7768e0fad6cef2776da4e48735ab
4639dec8b435074b62c4dbc8ca05d6885cb51d6e
/실습과제2/In[22].py
8dd6ba012e1b300afb658b5e4eb513abcc605dac
[]
no_license
kimhyeyun/2020-DataMining
10e2bbde8a8f5575f659e52e4bb17b35a2566b65
a0c7c7d70158a828072169e13f6d1662aa2e0324
refs/heads/master
2021-04-07T13:24:35.317906
2020-06-25T01:07:23
2020-06-25T01:07:23
248,679,523
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
from pandas import Series s3 = Series([1.2,2.5,-2.2,3.1,-0.8,-3.2], index = ['Jan 1','Jan 2','Jan 3','Jan 4','Jan 5','Jan 6',]) print(s3 + 4) #applying scalar operation on a numeric Series print(s3 / 4)
[ "cqqwer@gmail.com" ]
cqqwer@gmail.com
1093f8dcf00af1185853fa3a81e1e25a43a616dc
4842612668bd2378dbc2b38f922616688892ace0
/Django/env/FTM/views.py
7793b68bd4379d46ebe531941083e100cdbef630
[]
no_license
CoupDgrace/FamilyProjectTracker
1b04d697dac19dff8c3ba13e07cd409c9457c6e3
1a3621fe459c9c93ebfcba57eaafb08d29435a87
refs/heads/main
2023-07-13T02:12:49.369827
2021-08-30T04:34:28
2021-08-30T04:34:28
360,789,760
0
0
null
2021-08-30T04:34:29
2021-04-23T06:47:50
TSQL
UTF-8
Python
false
false
1,275
py
from django.shortcuts import render from django.http import HttpResponse from .models import * from django.db.models import Q # Create your views here. # Home Page def home(request): nTicks = Tasks.objects.filter(assignedMember = 1) kTicks = Tasks.objects.filter(assignedMember = 2) gTicks = Tasks.objects.f...
[ "nathan.banksd@gmail.com" ]
nathan.banksd@gmail.com
634e1c3d02aa18881bd9b4af1f650f111c07e4c7
9db4cf293323d83c02aa3846e172242ce3ded550
/qa/pull-tester/rpc-tests.py
ec86971a09eedebd51c8dc16e6d568722ede2eb9
[ "MIT" ]
permissive
mtx-coin/Matrix-Blockchain
bd0495038146cd639db655787edfa5f406806ef9
cb8c2c4c7ec5ee911c4f43a718785241cd4ceafe
refs/heads/master
2020-06-02T15:19:01.450287
2019-06-10T17:13:12
2019-06-10T17:13:12
191,206,437
0
0
null
null
null
null
UTF-8
Python
false
false
12,801
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Run Regression Test Suite This module calls down into individual test cases via subprocess. It will ...
[ "noreply@github.com" ]
noreply@github.com
ad62f9feb1c07f0e0d3a9a0db8defb334439b636
a2fdcd5252741bdd3ad96f20944c07d80bd57dc8
/class_sample.py
ca23e1669eeab4e7a15a44c5a304dc1c92735155
[]
no_license
chaossky/Python2019
7cd11aab7cecf23acb42b7635f8bfb506555c856
fd63563f6a175a6aef1f3248aefb3f754f6658e1
refs/heads/master
2021-07-31T09:15:14.430835
2019-08-16T12:13:45
2019-08-16T12:13:45
200,347,544
0
0
null
2019-08-05T21:54:10
2019-08-03T07:43:34
Python
UTF-8
Python
false
false
365
py
class Ball: color="" speed=0 def setSpeed(self,value): self.speed=value ball01=Ball() ball01.color="Red" ball01.setSpeed(10) ball02=Ball() ball02.color="Blue" ball02.setSpeed(20) print("Ball01 color:%s" %ball01.color) print("Ball01 speed:%s" %ball01.speed) print("Ball02 color:%s" %ball02.col...
[ "user@email.mail" ]
user@email.mail
1d3c6228044c40a6619b0f83a3379c3346d6e98c
4e265daafbfd97c84029dff9f15f52962c26b1fa
/Week_01/week_01.py
84481dd7bbb74d55ca307ca3cc080f036b16cc60
[]
no_license
AI-Candy-Yang/algorithm017
a536e3afb51de2df54795ab3468b5e140ba67f92
855eef0aa006c14ade8413cf03615ff99f229923
refs/heads/master
2023-01-07T00:05:09.054946
2020-10-28T04:13:37
2020-10-28T04:13:37
296,322,117
0
0
null
2020-09-17T12:38:52
2020-09-17T12:38:51
null
UTF-8
Python
false
false
12,155
py
#-*- encoding:utf-8 -*- #作业 #1.删除排序数组中的重复项,返回去重后的数组长度 def removeDuplicates(nums): # 双指针 快指针指向不重复的元素 low = 0 for fast in range(len(nums)): if (nums[fast] != nums[low]): low += 1 nums[low] = nums[fast] return low + 1 #2.旋转数组 def rotate(nums, k): """ Do not return ...
[ "yangshuang@sinandata.com" ]
yangshuang@sinandata.com
fce40fcdd08dbb6ed7e3d1ea9d199b10684218c0
c36bbbafedbf84ff39111b501a0f555e15ad7246
/20200509python/20200321python/welcome.py
abdcbbe6c53a77ec1676b46488f7a65f23c6cb3d
[]
no_license
JoltDJ/mysite-3-14-20
996e815b6e6702b2a43aacb974139daa4ddec137
93c78371ff6a62a5134bf6a21689edec8209b408
refs/heads/master
2021-03-20T08:35:44.864754
2020-05-16T01:45:41
2020-05-16T01:45:41
247,193,816
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
from jinja2 import Template def welcomeHTML(): with open('welcome.html') as f: s = f.read() return s def main(): user1 = { 'name': 'Alice', 'likes': 123} user2 = { 'name': 'Jimmy', 'likes': 1234} tmpl = Template(welcomeHTML()) print(tmpl.render({ 'user': user1})) print(tmpl.rende...
[ "438043@ibsh.tw" ]
438043@ibsh.tw
b3659978c254246c6d5f9ff0bb961a8029d82c3e
30e2a85fc560165a16813b0486a862317c7a486a
/tensorflow/test/misc/graph.py
f141c134d6cf1435e3b25c0f9515954553e7ee26
[]
no_license
muryliang/python_prac
2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01
0301e8f523a2e31e417fd99a968ad8414e9a1e08
refs/heads/master
2021-01-21T11:03:48.397178
2017-09-18T04:13:27
2017-09-18T04:13:27
68,801,688
1
0
null
null
null
null
UTF-8
Python
false
false
438
py
import tensorflow as tf g1 = tf.Graph() with g1.as_default(): v = tf.get_variable( "v", initializer=tf.zeros_initializer(shape=[1])) g2 = tf.Graph() with g2.as_default(): v= tf.get_variable( "v", initializer=tf.ones_initializer(shape=[1])) with tf.Session(graph=g1) as sess: tf.ini...
[ "muryliang@gmail.com" ]
muryliang@gmail.com
166d918b5aab10d1f189e7aef448ea5254188780
82859a8effe9420e53dee38f0c69a31cdae4355e
/prologlib/ui.py
0be5cc77ef533c15f7682f656c2bece153dbb73f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
gpiancastelli/prologlib
1b0bf32383624e88d33ac5b48973231b95c0b267
a9911ffb4e3ea2b0f958bd7a8b158b9870bd2975
refs/heads/master
2021-04-13T14:09:15.099263
2010-05-14T15:52:28
2010-05-14T15:52:28
249,167,512
0
0
null
null
null
null
UTF-8
Python
false
false
5,630
py
import errno import sys from .core import Engine, PrologError from .parser import PrologParser, InvalidTermException __version__ = 'UNRELEASED' __date__ = '2010-05-14' header = """ prologlib {} ({}) Type 'help.' for help, 'halt.' to exit. """.lstrip().format(__version__, __date__) HELP_TEXT = """ Wel...
[ "giulio.piancastelli@gmail.com" ]
giulio.piancastelli@gmail.com
3df9670854119be5855f85168905dd7833a5b034
e0532dba57ff8455b7a95fb7b64e80a9bfa249a9
/SplitGuys/wsgi.py
6c755fbbd79ebbbb9823d6293c2d7a06c9dead50
[]
no_license
Rozhiin/SplitGuys
a98455a96f6d938d82cfc4a2bb3d4ff031caa632
f333d8b14a59c41c0706779e27bb16a9f883d57b
refs/heads/master
2020-05-29T21:10:29.192878
2019-07-13T19:17:24
2019-07-13T19:17:24
189,373,505
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for SplitGuys project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "salarkiama@gmail.com" ]
salarkiama@gmail.com
bd95c1d7fb41edc644b0ff48474088e1cc624552
ee622ac8bb8cb695056e53f6bec2a2a7ef001de2
/detection/configs/anti-uav/faster_rcnn_r50_fpn_2x_anti-uav-full.py
734e5885ef64d3081104e939af2dfcc527f4029c
[]
no_license
maloo135/UAVDetectionTrackingBenchmark
faee6f0f0e628f921e40d4f2040e2093ae2006f0
9ad8bdeaedc5a8c2cc7633bf481c98c903bfacf1
refs/heads/main
2023-07-08T10:16:38.806317
2021-08-10T11:14:27
2021-08-10T11:14:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py' ] model = dict( roi_head=dict( bbox_head=dict( num_classes=1,))) checkpoint_config = dict(interval=3) classes = ('d...
[ "brian.k.isaac-medina@durham.ac.uk" ]
brian.k.isaac-medina@durham.ac.uk
2d28abd02b655286a0b2762b8b7f33ce1e3ce5c8
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/u19.py
44f8d26c2e4a9b7cdc3d42f29e4fe1307c540b0c
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
445c2230f975dd0e1e6f4f7c980b766500609f3a
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/mirrativ.py
0a8ee0c3a52eeff28f2d9e679e0ae5913bc34970
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
4,880
py
from .common import InfoExtractor from ..utils import ( ExtractorError, dict_get, traverse_obj, try_get, ) class MirrativBaseIE(InfoExtractor): def assert_error(self, response): error_message = traverse_obj(response, ('status', 'error')) if error_message: raise Extracto...
[ "noreply@github.com" ]
noreply@github.com
fb12706820982b795c59f849b48717b13ef46c7d
7f2d9dd3a65cd0f040b21ce40894eb2edfb40f11
/train_hr.py
f5c9b27dddf46580e37113891917ae0cb6922dab
[ "MIT" ]
permissive
jinxu06/pixel-cnn
3546e5ea071ac764bcc8129fbf68bba296b57364
9cad98f3f801bd772815dbb403fb6649ff704dfa
refs/heads/master
2021-09-06T13:50:08.190072
2018-02-07T05:38:26
2018-02-07T05:38:26
109,583,064
1
0
null
null
null
null
UTF-8
Python
false
false
13,118
py
""" Trains a Pixel-CNN++ generative model on CIFAR-10 or Tiny ImageNet data. Uses multiple GPUs, indicated by the flag --nr-gpu Example usage: CUDA_VISIBLE_DEVICES=0,1,2,3 python train_double_cnn.py --nr_gpu 4 """ import os import sys import time import json import argparse import numpy as np import tensorflow as tf...
[ "s1673820@sms.ed.ac.uk" ]
s1673820@sms.ed.ac.uk
edb183db7cca17314943fd54d12e17ee078172da
708ed0381947de546923c98acbc8dd41bf506c7b
/constant.py
2de6ba3c213c973ec5a15525c17c18932d117895
[]
no_license
fazli1702/tic-tac-toe
7072ce973641785f54b88dbd77574cedfa42e004
c9f7e065df3b69682b0f37f501e40a33fdf544d1
refs/heads/master
2023-02-10T15:09:08.970809
2020-12-25T04:59:34
2020-12-25T04:59:34
322,166,535
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
import pygame WIDTH, HEIGHT = 600, 600 SQUARE_SIZE = WIDTH // 3 or HEIGHT // 3 WHITE = (255, 255, 255) BLACK = (0, 0, 0) RED = (255, 0, 0) BLUE = (0, 0, 255) def get_row_col(x, y): row = y // SQUARE_SIZE col = x // SQUARE_SIZE return row, col
[ "fazliyazid1702@gmail.com" ]
fazliyazid1702@gmail.com
041c50eb2bba907e2b7b482cee6cae683559bf89
50382ea6c3fc3fe0a26a10496c52b248c22b2505
/notes/Items = Judge Amandeep.py
cad89c22cb4caae67383ccdf12ff53663966e7e4
[]
no_license
Judge61/CSE
9288f21a3d6847ab414c0f3c92e225661f118f36
b70a9cf94e8223609b96c2860fa6ea079404b02a
refs/heads/master
2020-04-02T06:57:39.156633
2019-05-23T16:45:12
2019-05-23T16:45:12
154,175,599
0
0
null
null
null
null
UTF-8
Python
false
false
1,352
py
class Item(object): def __init__(self, name): self.name = name class Weapon(Item): def __init__(self, name, damage): super(Weapon, self).__init__(name) self.damage = damage print("Nice attack") class Armor(Item): def __init__(self, name, armor_amt): super(Armor, s...
[ "42385606+Judge61@users.noreply.github.com" ]
42385606+Judge61@users.noreply.github.com
7d81bfd1aecb256087020de1e52e5f0ca83e6295
d52af838e79dbc0a8524ea14d3b84b7eada45df8
/repcal/__init__.py
c5fa765ce2e8cfa2ce5c2f13928dba92223f3483
[ "MIT" ]
permissive
dekadans/repcal
989544f368e043d99287a1a03fea226dbcb886ff
a9022943fc43190f5260f5e09c78cbc4001edc6e
refs/heads/main
2023-02-03T19:09:40.721567
2020-12-23T12:25:43
2020-12-23T12:25:43
305,468,317
5
0
null
null
null
null
UTF-8
Python
false
false
133
py
from .RepublicanDate import RepublicanDate from .DecimalTime import DecimalTime from .RepublicanFormatter import RepublicanFormatter
[ "tomas.thelander0@gmail.com" ]
tomas.thelander0@gmail.com
c9ba661b2eaf706150acc8d70fa5c78430f74e48
622a73eb5e7e3f465b3f0d7774df5e742b1532ce
/intermediate tasks/task3.1/myModels.py
dc9c50a215f88d6dd060c69b8fcb96f2e0f39832
[]
no_license
nirajmahajan/Diabetic-Retinopathy-Image-Generation
6a88ae8b170598353b383d9b4ad787481b8d2cb6
511bca72217180ada58bfa5fb7ffe8fb17e1a108
refs/heads/main
2023-08-28T03:23:04.427883
2021-10-28T09:26:32
2021-10-28T09:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,552
py
import numpy as np import torch import torchvision import matplotlib.pyplot as plt from torchvision import transforms, models from torchvision.models import vgg16, vgg16_bn, alexnet from torch import nn, optim from torch.nn import functional as F import pickle import argparse import sys import os import PIL device = t...
[ "nirajmahajan007@gmail.com" ]
nirajmahajan007@gmail.com
462fdb171366888fdd4b6940b64acb815518deda
d4d421ef14e5155a9c8252fb28c432d736d62f74
/comment_spider/comment_spider/spiders/commentspider.py
bd87f5509af3e7661af55f82cad58599c3b1d1d7
[ "Apache-2.0" ]
permissive
moxi255/jd-spider
e63a6a37030443ee79f87cb610a3c27f5865e788
8f92f7e7a9a27c2f83f6432f17e1f0bb920b4213
refs/heads/master
2020-05-23T20:58:22.578965
2019-05-16T03:35:20
2019-05-16T03:35:20
186,941,334
13
2
null
null
null
null
UTF-8
Python
false
false
3,524
py
# -*- coding: utf-8 -*- import scrapy import json, re from tools.sql_tools import * from tools.jieba_content import get_jieba_comment from ..items import CommentSpiderItem from ..settings import EXISTS_CONMENTS class CommentspiderSpider(scrapy.Spider): name = 'commentspider' allowed_domains = ['jd.com'] st...
[ "614303219@qq.com" ]
614303219@qq.com
951eff5775832bdb7d6d2882d73b8b743dbe75e8
60f93042cd806b56362232105dad1a5ba8e10d51
/energy_budget/dependencies/useful_functions.py
a2357ccf5d32d2752b3b38e08eca0312ce22ec18
[]
no_license
robertladwig/LakeGeneva
264d5dac287891ccc1f264056e6b5ff4b1b34f14
25370cf570ad8d112ea6a7f3990eeb5fbd4e2e1a
refs/heads/main
2023-07-13T03:45:56.772603
2021-08-28T19:46:26
2021-08-28T19:46:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,973
py
## USEFUL FUNCTIONS #B. Fernandez Castro 2020.03.03 import numpy as np import sys import matplotlib.pyplot as plt def moving_average(x,n, window = "flat"): if n%2 == 0: n+=1 N = x.size cx = np.full(x.size, np.nan) for i in range(N): ii = np.arange(i-n//2, i+n//2+1,1) if window ...
[ "noreply@github.com" ]
noreply@github.com
af93385675fcf4822c571cccec3632e16d5f819f
af275f01dfdf5636e61ecb8977b207109031f79a
/deneme/models.py
0dd77a30e2db97a36f48461963433abb8b7a0164
[]
no_license
malialtinel/Newspaper
871e0990bc4d34b3998587d5f2c1fb4c4b9990e5
b594c1a9afc145e1535f60e76357f059b7d9a4a2
refs/heads/master
2020-03-22T14:11:50.539698
2018-07-08T11:24:40
2018-07-08T11:24:40
140,160,237
1
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
from django.db import models from django.contrib.auth.models import User from ckeditor.fields import RichTextField class Halk_User(models.Model): vatandas=models.OneToOneField( User, on_delete=models.CASCADE, primary_key=True, ) def __str__(self): return self.vatandas.last_...
[ "malialtinel@gmail.com" ]
malialtinel@gmail.com
deeae75fb55700a9bf1ce2d3c2f15007fbc511d0
c9af78f03563391def0e1cb808afda4d88a21066
/ex7.py
8ae5bbca0fd2aeffb24f76cb66d2f833a6d6269d
[]
no_license
Psyconne/python-examples
b873b30db237524d8bff9123e334db096d0239c5
35a4bb668c49aa51d9645d68a7bdf39daa0b58a4
refs/heads/master
2021-01-02T09:14:23.549963
2015-07-20T15:00:39
2015-07-20T15:00:39
39,284,103
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
print "I had a little lamb" print "its fleece was white as %s." % 'snow' print "." * 10 #printing it 10 times l1 = 'M' l2 = 'a' l3 = 'r' l4 = 'o' l5 = 'u' l6 = 'a' l7 = 'n' end = 'E' print l1 + l2 + l3 + l4 + l5 + l6 + l7 + end print l1 + l2 + l3 + l4, #a space print l5 + l6 + l7, print end
[ "iimen.elidrissi@gmail.com" ]
iimen.elidrissi@gmail.com
38910cfa0d829421a6d14748e1081970a606abe0
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/dossier/upgrades/20170307184059_reindex_searchable_text_for_dossier_templates/upgrade.py
436c02f98340c2800590927a5f6bf366f0ad4ab2
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
365
py
from ftw.upgrade import UpgradeStep class ReindexSearchableTextForDossierTemplates(UpgradeStep): """Reindex SearchableText for dossier templates. """ def __call__(self): self.install_upgrade_profile() self.catalog_reindex_objects( {'portal_type': 'opengever.dossier.dossiertemp...
[ "david.erni@4teamwork.ch" ]
david.erni@4teamwork.ch
0c9d8876bb93f2c786e18e37dc1213e7ef6c6c2d
8e8260d109d6b3680e3ce966e9baaa540393db8b
/xadmintest/settings.py
ff250650fd023fd3bc87381d949c7e0e1b6833b0
[]
no_license
loveguan/xadmintest
4472c13bd68f4b4ae47479449f4319e6f50df4fc
f20093afe25216154861fd8f6f061bcfee7269f2
refs/heads/master
2020-09-04T23:24:06.094513
2019-11-06T05:57:04
2019-11-06T05:57:04
219,922,499
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
""" Django settings for xadmintest project. Generated by 'django-admin startproject' using Django 2.0.7. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os...
[ "zhouguanjie@qq.com" ]
zhouguanjie@qq.com
6fbbd263a969c5cf0e893a592532066c44019962
9d425b64bd8d66993fc2253613095d82ff667a6f
/day_7/parse_input.py
44682ccb370fad08ced644dbbfc4c61dd285d510
[]
no_license
evanptang/advent-of-code-2020
bcf4766ff2c9bd7a9d09ed4b4ad1faf47c4920ff
e4a6871e8495142e7e4644d06e133fa421eb440c
refs/heads/master
2023-02-02T09:50:10.432697
2020-12-13T20:04:16
2020-12-13T20:04:16
319,874,774
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
import json file_name = 'sample.txt' # file_name = 'input.txt' final_object = dict() with open(f'parsed_{file_name}', 'w+') as f: with open(file_name) as g: for line in g: line = line.replace('\n', '') line = line.replace('bags', 'bag') line = line.replace('.', '') ...
[ "evantang2019@u.northwestern.edu" ]
evantang2019@u.northwestern.edu
49f3e7d823cd9ee17a9c42cca9f6a42c42a6c33e
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/ENJTPoWCyEGgnXYjM_18.py
35efe9177850a3a6a90e03c5f007d2d7ec0fb8cc
[]
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
125
py
def percent_filled(box): return str(round((''.join(box).count('o') / ((len(box[0]) - 2) * (len(box) - 2))) * 100)) + '%'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d25e02789b4302272e941ce1371e76e9d26a1faf
898fc24e399b203bf8072cec03b9bfd22d3160e6
/Neural Networks/Assignment1/venv/Scripts/pip-script.py
d2c4c69759d833d8db79036eb12596186b31282b
[]
no_license
ismael-martinez/AQM
94505fe8acf44e459b731e6563e304789ec9db47
a9c08ca6f9be2b07e7892773c0bad165f695899a
refs/heads/master
2022-12-23T12:19:40.591906
2018-02-02T08:08:04
2018-02-02T08:08:04
119,900,486
0
1
null
2022-12-09T23:40:38
2018-02-01T22:18:18
Python
UTF-8
Python
false
false
436
py
#!"C:\Users\Ismael Martinez\Desktop\AQM\Neural Networks\Assignment1\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?...
[ "ismael.martinez@hotmail.ca" ]
ismael.martinez@hotmail.ca
19cf498c8d5f4bfad7938928cf5d71d9ab7e19e4
d8c589e279b59a0ad6ac79ef42e073e0e86340e5
/caluma/core/tests/test_pagination.py
82a9cfc701678272b3d073c0e262679a53303ee8
[ "AGPL-3.0-only", "MIT" ]
permissive
Yelinz/caluma
e9d8b03a91f4923da99b4d820e66349a3de946e2
b5d4f1ed3fa3e144d8516e7823dd57c3b68617be
refs/heads/master
2023-08-16T14:00:11.207559
2019-10-18T12:40:03
2019-10-18T12:40:03
181,823,650
0
0
MIT
2019-04-17T05:34:28
2019-04-17T05:34:27
null
UTF-8
Python
false
false
1,309
py
import pytest @pytest.mark.parametrize( "first,last,before,after,has_next,has_previous", [ (1, None, None, None, True, False), (None, 1, None, None, False, True), (None, None, None, None, False, False), (None, None, None, "YXJyYXljb25uZWN0aW9uOjI=", False, True), (None,...
[ "fabio.raemi@adfinis-sygroup.ch" ]
fabio.raemi@adfinis-sygroup.ch
7d50401e7f1cf6286d23132c3ea577467c6a556e
84caee3f7b0e9811f91da65f59c93b08f76453f3
/later/task.py
a201c2d1487a33d00572d896156b06435581c5c9
[ "Apache-2.0" ]
permissive
thatch/later
541492ca2ebd77d4b5859c00ff46247847a1d1a5
29c614c8a14eb290555bd1708fafea6542365e60
refs/heads/master
2021-01-09T16:10:39.247170
2020-02-19T01:33:45
2020-02-19T01:36:01
242,367,315
0
0
null
2020-02-22T15:46:40
2020-02-22T15:46:39
null
UTF-8
Python
false
false
11,199
py
# Copyright (c) Facebook, Inc. and its affiliates. 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 ap...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
9e44aadf38af013a19b2183bcb83b8f98eec8804
83d7c9edec86a024165889a725ce21486c7af707
/pichr/fixtures/parse_pichr_json.py
f53a730d9eda7b51ce9dc70de06d150d5b6fe23a
[]
no_license
emilymye/pichr
3a5cb3a2c8f54bf07c832c45fe4225882dac87b5
7441b54a2450358fb3b6a85f4be67e2bf695e9b8
refs/heads/master
2021-01-13T01:54:12.737860
2015-03-12T22:18:46
2015-03-12T22:18:46
31,866,993
0
0
null
null
null
null
UTF-8
Python
false
false
1,609
py
import json import csv if __name__ == "__main__": with open("data.csv") as data_f: reader = csv.DictReader(data_f) print reader.fieldnames players = {} recoveries = [] for row in reader: player = { "name": row['Name'].strip(), "pid": int(row['PlayerId']), "tea...
[ "emily3ye@gmail.com" ]
emily3ye@gmail.com
a08c27bb4b36f95989b207b71198e8f3254b8485
827cc3633a99f90eed504da343ecc86684556c24
/24.py
fc9b8c38d637f320fcafc3b4a42faa0f723416f0
[]
no_license
fs-source/fs-source
7f6e5c0504decc8111c50d0e3bba2e48e0f27658
5a39697e5b7fe1e895e92f0fedab4889dc8812ad
refs/heads/main
2023-07-14T23:13:54.307676
2021-08-26T20:37:22
2021-08-26T20:37:22
328,153,163
0
0
null
null
null
null
UTF-8
Python
false
false
18
py
print(292 + 774)
[ "tlxt5650508@163.com" ]
tlxt5650508@163.com
218c12ac6119307e120b6b12b5bfe4a790c1aa59
33fab1fae9b4a099e705dcc10443b7721da8f430
/1.py
4963f2a6e3bdf4eb5409bc2735c4474c71f9afa8
[]
no_license
cm12348/tryGithub
4d797e40ae28b87a20aaad543997e2531d279ba5
5300bdd4a008d597595aea08a831361f85fc95e9
refs/heads/master
2020-04-16T06:24:27.109767
2019-01-12T04:36:38
2019-01-12T04:36:38
165,345,404
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
""" I did some changes. """ print("Helloworld")
[ "noreply@github.com" ]
noreply@github.com
c8bca5286d0a9ad049f59155f5a9114d8f06dd8c
b92eee41d665314bc42043d1ff46c608af5ffdfd
/sesion_3/prog.4.py
eda17bf266e753571861d3d45fc42db362032da6
[]
no_license
badillosoft/python-economics
40efe8326558a8fb93f84fdbd2137428844ee5f3
82af43c7a47297ce186dc0e23e30620d46e6693a
refs/heads/master
2021-01-11T18:55:15.762752
2017-05-09T01:15:59
2017-05-09T01:15:59
79,656,798
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
from openpyxl import load_workbook from geg import * wb = load_workbook("puntos.xlsx") ws = wb.active puntos = automatic_load_data(ws, "A2") def f(x, y): return x**2 + y**2 for p in puntos: x = p["X"] y = p["Y"] z = f(x, y) print "%f, %f, %f" %(x, y, z)
[ "kmmx@hsoft.local" ]
kmmx@hsoft.local
533e43f778d33b82ee7fcc0f71873a2f54f2a562
1abb00f7a02635918eba197cb31a16f9cff8550f
/Zadanie5.py
7e8db8044cd0327daedda99eae58f101384011f7
[]
no_license
Exoticisignis/Sem5SL
5535513408905778d9cfb3920c44663cd0d60fb8
a823f1956c07aeceede75571fb83bc5738796461
refs/heads/master
2023-03-28T12:17:32.243911
2021-04-05T18:20:41
2021-04-05T18:20:41
354,929,965
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
list = [7, 'x', 'y', 6, "uaua", 9, 10, 99] def process(list): new_list = [i for i in list if isinstance(i, int)] summ = sum(new_list) length = len(new_list) average = float(summ / length) minn = min(new_list) maxx = max(new_list) variance = calc_variance(new_list, length, average) resul...
[ "debysh99@gmail.com" ]
debysh99@gmail.com
4403759cc3a6535b10eb3e09928d293cb9555aad
bb151500b0fc5bb9ef1b1a9e5bba98e485b4b34d
/problemSet/591C_Median_Smoothing.py
9436f6108c5e3ab88ea40e68a7cd92378f7749a0
[]
no_license
yamaton/codeforces
47b98b23da0a3a8237d9021b0122eaa498d98628
e0675fd010df852c94eadffdf8b801eeea7ad81b
refs/heads/master
2021-01-10T01:22:02.338425
2018-11-28T02:45:04
2018-11-28T03:21:45
45,873,825
0
0
null
null
null
null
UTF-8
Python
false
false
2,697
py
""" Codeforces Round #327 (Div. 2) Problem 591 C. Median Smoothing @author yamaton @date 2015-11-06 """ def reduce_consec(iterable): """ [1, 2, 3, 6, 7, 9, 10, 11, 12, 13, 20] --> [(1, 3), (6, 2), (9, 5), (20, 1)] Detect consecutive part and (starting_value, length) pair :param xs: List of int ...
[ "yamaton@gmail.com" ]
yamaton@gmail.com
cba35a947a9ee82ae669d9f1be77bc9ee3889334
3d5a99baa64e8c1bb0946f2b3e2ea29bf1d12b98
/ch02/r28.py
5a8a9bf99f9bb9cb1f5f7a49e0f0da4b65a56418
[]
no_license
lakchaud89/python_data_structures
a9809d3a6b7d1db48d24e53ed376224673565ce2
97198952d4d275775da21224a3754b7a6b37fc03
refs/heads/master
2021-01-21T06:48:58.710228
2017-09-08T21:33:54
2017-09-08T21:33:54
101,947,272
0
0
null
2017-09-02T03:19:33
2017-08-31T01:53:16
null
UTF-8
Python
false
false
2,262
py
# Modify the declaration of the first for loop in the CreditCard tests, from Code Fragment 2.3, # so that it will eventually cause exactly one of the three credit cards to go over its credit limit. # Which credit card is it? class CreditCard: def __init__(self,customer,bank,account,limit,balance = None): s...
[ "lakshmichaudhari@lakshmis-mbp.gateway.pace.com" ]
lakshmichaudhari@lakshmis-mbp.gateway.pace.com
a5255900b8026034fbd41ea3c3b5ab5f8ea68614
1c61d9e996f24e87ae686c2b6a2f01ef052425d1
/accountapp/views.py
b383b2612cc5d41cb64536203155784c87823fbb
[]
no_license
joft-ware/django_web
ba3be679299fdacba7fc1c49cb5317209e895a59
06f750fd4a2bdced2b0d67a198ebafd5d3407637
refs/heads/master
2023-02-26T19:52:49.247705
2021-02-02T14:12:53
2021-02-02T14:12:53
325,967,749
0
0
null
null
null
null
UTF-8
Python
false
false
1,896
py
from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render # Create your views here. from django.urls import reverse, reverse_l...
[ "34998542+sky033116@users.noreply.github.com" ]
34998542+sky033116@users.noreply.github.com
c122747c667ba2b5cd4b66de7acfc231a1576ac7
9634a7dd26605fbf6260f2338bfb1f061111c8e6
/wishes/urls.py
d4ac2c932e9d1ccfb6786700bf76f6175716a944
[]
no_license
pkc035/21-1st-MealKatMarket-backend
985b18e28e55758e08455c597fcfc48822c92c65
1d43eea1cf8f30bcd893fb74b30e2645dd0f5561
refs/heads/main
2023-06-03T06:49:52.052308
2021-06-20T11:22:01
2021-06-20T11:22:01
378,775,535
1
0
null
2021-06-21T01:35:25
2021-06-21T01:35:25
null
UTF-8
Python
false
false
155
py
from django.urls import path from .views import WishView urlpatterns = [ path('',WishView.as_view()), path('/<int:food_id>', WishView.as_view()) ]
[ "pkc0305@gmail.com" ]
pkc0305@gmail.com
d40f02e6db1890c62e20ceca6eb08cad3e7ac968
674a882b1f958766e3ac2db0fc445a7a7fd7ee16
/weather/views.py
324005a5103ce55e011138cfe0ddb753ad0b2766
[]
no_license
harinder8407/weather-app
2463bd9155e887d51bca83223de5828a570ab694
e30adedfb351d5e2da5d1be42686323293d86ae9
refs/heads/master
2023-03-09T00:25:10.219507
2021-03-01T09:14:33
2021-03-01T09:14:33
343,339,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,919
py
import requests from django.shortcuts import render, redirect from .models import City from .forms import CityForm def index(request): url = 'http://api.openweathermap.org/data/2.5/weather?q={}&units=imperial&appid=14c01bd544e820b6681e78683c1103a7' err_msg = '' message = '' message_cla...
[ "harinderss2899@gmail.com" ]
harinderss2899@gmail.com
a5961849eacd9651fe5f3146a8524c53eda4f663
4db107059e4f77740bea34705fc459bb6a2fe981
/MicroAOD/python/flashggTriLeptons_cfi.py
2a7348b193e44455a9fd1bb1c4dd5f03b8c01bfe
[]
no_license
GiuliaNegro/dafne
6e4188e233113387b67096bf5b0eed362771f1e3
628076faec651c6ebaedd068b1b1626c8b3d9a1d
refs/heads/master
2020-09-26T23:59:11.712519
2019-01-31T19:50:45
2019-01-31T19:50:45
67,401,535
0
1
null
null
null
null
UTF-8
Python
false
false
595
py
import FWCore.ParameterSet.Config as cms flashggTriLeptons = cms.EDProducer('FlashggTriLeptonsProducer', ElectronTag=cms.InputTag('flashggElectrons'), #'slimmedElectrons'), MuonTag=cms.InputTag('flashggMuons'), #'slimmedMuons'), VertexTag=cms.InputTag('offlineSlimmedPrimaryVe...
[ "giulia.negro@cern.ch" ]
giulia.negro@cern.ch
2a5cef818c311103bcb5f7606a771da35e81fd54
2c9750d1f89b0c3d2936f826e7af750d850e9cce
/RHMDashboard/wsgi.py
1ba08fb3f4211fbb2e844033d12d8210abd9cf63
[]
no_license
AGhosh-SPC/RegulatorHealthMonitor
738a97ed9f243489e833bc3390c792ff4137b86f
fa3404126112d9b013a1bba3bd54132bee8d188b
refs/heads/main
2023-04-06T23:29:53.735996
2021-04-14T20:07:34
2021-04-14T20:07:34
358,028,166
0
0
null
null
null
null
UTF-8
Python
false
false
1,111
py
""" WSGI config for RHMDashboard 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_APPLICATI...
[ "Ghosh.Aindrila@spartancontrols.com" ]
Ghosh.Aindrila@spartancontrols.com
2ac3a4e371b349d7e8e7c8a07168edbe9ea3a41a
04d3f37b043364cd0233348863036436dfabedd6
/manage.py
7a4745372d94347843ee1bf9eb1a5ae4839100bb
[]
no_license
anonim0zero/NASA-challenges-covid-19
b281d0f8faad453bd5c1ddd81510f94b8acc6625
1eed3aa9b8ae871539605084a22da3c037ea8843
refs/heads/main
2023-08-16T20:46:44.454581
2021-10-03T16:50:45
2021-10-03T16:50:45
413,138,339
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NASA.settings') try: from django.core.management import execute_from_command_line except ImportE...
[ "igorteplov2001@gmail.com" ]
igorteplov2001@gmail.com
53c51e60a3111190c14795ad4a983b2bcccfe5af
b397e24cdb458fa7cb9ba1838e8236b425eed66e
/Locators.py
9c4a3dba58c4c8b2e1710c1ad47a318c638d4b96
[]
no_license
Mrkabu/PageObjectPatern
29b177a2598f85c87aa9947cdce61883857b043b
7e4a208adecd36cbb449c68f1e3c7baf6b34e9c9
refs/heads/master
2020-03-16T03:58:19.924212
2018-05-17T20:33:47
2018-05-17T20:33:47
132,499,689
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
class Locators(object): logo = '//*[@id="top"]/div/div/div/div/nav/ul/li[2]/a' terazwtv = '//*[@id="top"]/div/div/div/div/div/nav/a[1]' login = '//*[@id="Email"]' password = '//*[@id="Password"]' buttonzaloguj = '//*[@id="login-form"]/fieldset/div/div[1]/div[3]/button' logowyszukiwarka = '//*[@...
[ "sagan07@gmail.com" ]
sagan07@gmail.com
0a2a4d1068f3c40fd8c94b02d7e99a8d7d07b26f
47718952e24df62386dc5e858a889ba37323c6c0
/anal-lexico.py
ea41df822875166bb2859730fe681f8daf898fb7
[]
no_license
rv0lt/PDL
4ae5f9acdf5b30885c81670d9ac8fef043c26b37
4a016bc8becbb8d742dd7b9ce56418e449c46b5d
refs/heads/master
2022-04-28T01:16:12.451534
2020-03-18T17:02:34
2020-03-18T17:02:34
211,706,759
0
0
null
null
null
null
UTF-8
Python
false
false
14,778
py
import ply.lex as lex from ply.lex import TOKEN import sys import re from TablaSimbolos import TablaSimbolos from TablaSimbolos import Fun from gramatica import parser import gramatica lexema="" tipo=None comentario=False tabla_simbolos = TablaSimbolos() estoy_en_fun=False #sirve para indicar si voy a leer una funcion ...
[ "arevuelta@Rv0lt" ]
arevuelta@Rv0lt
13c9307b9b5ccdc95f35925e7cd437499b488c9b
5cd67aa3b3c43937e623bd7f4deede198956061d
/migrations/versions/f1318346a431_.py
a723d1b76520dd99b9160eaeb5d082d57fec78aa
[]
no_license
GDG-SSU/gdg-homepage-project
596d6379c8f93d2bbdc70c67703c80a42b07ec16
883bfdb9fa0e6f07d84a3b671daefbd8c69647c5
refs/heads/backup
2023-01-10T07:36:41.575334
2016-03-17T04:33:04
2016-03-17T04:33:04
49,634,424
6
2
null
2022-12-26T20:00:24
2016-01-14T08:45:02
JavaScript
UTF-8
Python
false
false
954
py
"""empty message Revision ID: f1318346a431 Revises: None Create Date: 2016-01-30 16:42:51.170407 """ # revision identifiers, used by Alembic. revision = 'f1318346a431' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ###...
[ "Genus@Genusui-MacBook-Pro.local" ]
Genus@Genusui-MacBook-Pro.local
ee3e2068130cbb427286d11a91b9b4c4a9af71c5
db6c003ab9d407979386fa8fd48eb88b791ace7a
/aws_scripts/zero_all_asgs.py
4f9224b49fe2e6e98d512679ea18ba17a46b6a52
[]
no_license
aria-jpl/ops_scripts2
319e3450358748531dce5d2e3e8fbe0ac8ef0ade
332b1ecd2de3978724800136162aead998391ee6
refs/heads/master
2021-08-08T08:13:43.492801
2021-07-14T18:24:00
2021-07-14T18:24:00
188,817,794
0
0
null
2021-07-14T18:24:00
2019-05-27T09:56:04
Python
UTF-8
Python
false
false
6,178
py
''' This script will set the max size, min size, and desired capacity values for all auto-scaling groups to zero then wait until all instances have been terminated after which these initial values will be restored. A list of asg's with active instances is printed to the console until no active instances are detect...
[ "marjorie.j.lucas@jpl.nasa.gov" ]
marjorie.j.lucas@jpl.nasa.gov
d3d86e14f08837fc614c41663d93f3d0699382aa
79c89b881f488310bff3354dc71171371cf33987
/fast_text_embeddings.py
46cd6246a771888cc32d0927a9941020a944634e
[]
no_license
sreeja-g/NER-code-mix
4f32aa3de1cb2aff4ce98b97557fe9974357e3e1
f84d1b43c1ffdd01b6db61dd379d670f396eb06c
refs/heads/master
2022-11-29T07:16:41.941878
2020-07-30T22:58:38
2020-07-30T22:58:38
281,765,112
0
0
null
null
null
null
UTF-8
Python
false
false
709
py
import pandas as pd import csv import nltk nltk.download('stopwords') from nltk.corpus import stopwords stop_words = set(stopwords.words('english')) from gensim.models import FastText data = pd.read_csv("processed_data/annotatedVec.tsv",sep='\t', quoting=csv.QUOTE_NONE, header=None) data.columns=['Sent', 'words', ...
[ "37956427+sreeja-g@users.noreply.github.com" ]
37956427+sreeja-g@users.noreply.github.com
930560ddc5302324fc791a268bd09fb10d2e8b48
42a91364a9d25096f7b23791f666f25e02520ddf
/FETCH_CODE/quilt_flatten/distance.py
47ef94afaf28004972fe594793db81d8bec1ec9e
[]
no_license
Jie-Tree/FETCH_CODE
0d9d2ab04a085beefa3baf6cf15c2c671aa65944
37b0286843619fd231ff7b8277e6a0a8dff40ac7
refs/heads/master
2020-04-11T13:10:07.739588
2018-12-14T16:12:41
2018-12-14T16:12:41
161,806,079
2
1
null
null
null
null
UTF-8
Python
false
false
4,933
py
from fetch_core import robot_interface, camera import time import cv2 import numpy as np import requests import rospy import socket from moveit_python import MoveGroupInterface, PlanningSceneInterface import os from matplotlib import pyplot as plt from cal_position import CalPosition from manage_fetch_robot ...
[ "904615562@qq.com" ]
904615562@qq.com
85d502c61f2fa92729891532280aef50f4e2f0f3
4c5c0a3883a9416568930f7e434e1b4cfb333831
/form_test.py
2e436dd367465b7cf1987029b3698ce8036b0b2a
[]
no_license
SugimuraMichael/pfscm_change_tracker
8bc9dec4ad180da55f0f765babd431152cbcd9e5
467d3500c7e16ea5d29160c2f843fc54e8cbf146
refs/heads/master
2021-01-01T16:32:22.036952
2017-07-20T15:57:00
2017-07-20T15:57:00
97,853,919
0
0
null
null
null
null
UTF-8
Python
false
false
9,404
py
''' current version of this code takes a google sheet, copy of original which is static... next thing would be to implement a copy in google drive... I can go do that now... total time is --- 149.125 seconds --- ''' import gspread import pandas as pd from oauth2client.service_account import ServiceAccountCredentials ...
[ "sugimura_michael@bah.com" ]
sugimura_michael@bah.com
713e56b0dfc1b28ab55d67e75f8720cff692e593
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=49/params.py
fcbfbdfe45d4c06dbfe8c250d00b2d4aa9ae3364
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
{'cpus': 4, 'duration': 30, 'final_util': '3.557024', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.5', 'res_nmb': '4', 'res_weight': '0.06', 'scheduler': 'RUN', 'trial': 49, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
2c15394b0845b5b8e849bf6d0b52a048d9f8be8d
016cab497a506bb50ac5b89e3e4622c244fe1339
/src/TrainModel/study1_rawdata_plot.py
ac605a5599dd121b62cc445cc9f248d7e0aa7597
[]
no_license
SYilei/LimiTouch
917595cb87cf012542c3da3375342fa492d5a892
f757a7838572617239a4039a0daa31a826238830
refs/heads/master
2023-07-20T22:57:59.315684
2019-09-19T22:35:29
2019-09-19T22:35:29
195,982,686
0
0
null
2023-07-06T21:41:32
2019-07-09T10:00:32
Python
UTF-8
Python
false
false
1,916
py
import torch import numpy as np import os import sys import pandas as pd import random from study1_modelclass import LeNet import matplotlib.pyplot as plt import plotly.graph_objects as go touch_data = pd.read_csv('../../data/Data_Study1/chamod_touch_free_circle.csv')[['ax','ay','az','gx','gy','gz']].values nontouch_d...
[ "1000839@wifi-staff-172-24-20-243.net.auckland.ac.nz" ]
1000839@wifi-staff-172-24-20-243.net.auckland.ac.nz
c28398d854bb76f93aa2b6c24c128a40872bddbc
cc2a0a075a2f069e5b65bb749c7af0ac488ce1af
/manage.py
0e98d8243e2c62f9a996d0df5086d14f2899816c
[]
no_license
PaoAguilar/sistema-de-compras
ff88a39beceb42088a1b7b4662b2e2eff819c369
ae66deb9ca92fe7c168901ac526cb18b34ad2b8c
refs/heads/main
2023-02-10T07:56:34.657052
2020-11-29T23:48:48
2020-11-29T23:48:48
316,593,342
0
1
null
2020-11-30T06:06:30
2020-11-27T20:24:07
JavaScript
UTF-8
Python
false
false
634
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', 'sistemaCompras.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise...
[ "pao.aquev29@gmail.com" ]
pao.aquev29@gmail.com
8b37a3439da396e141ef81dfd7a5c6ecb6a958c9
2763387c80e808e63bd9aa190e64a2582454f4f9
/aoc18/day05/day05.py
655f65e24f0534d2b87cf80ec34035f34501882c
[ "MIT" ]
permissive
dds/advent18
ca68bb26a3d8d890eeb0cdc49b15f6de7e6a7d7f
51c6f32cd90f50657d33527e1c9b3a0768f28538
refs/heads/master
2020-04-09T06:19:04.378438
2019-03-22T15:17:50
2019-03-22T15:17:50
160,107,033
1
0
null
null
null
null
UTF-8
Python
false
false
1,614
py
import util from string import lowercase test_input = """ aA abBA aBAB aabAAB dabAcCaCBAcCcaDA """ def reaction(left, right): if left != right and (ord(left) % 32) == (ord(right) % 32): return True return False def reactPolymer(polymer): index = 1 while True: if len(polymer) == 0 or in...
[ "davidsmith@acm.org" ]
davidsmith@acm.org
541a41450f5c3cc864969e5d8d374347713e4ae8
92150eee1ef8c331b3a417cc9d5917cbf8274d37
/src/01_06_image_kernel.py
05ebe6a4136adf939742b67abc7f61baa872972c
[]
no_license
deepdeepdot/nano-deep-learning
87606acd7a0a9c0b1d4108f7dd5749e106eed652
20da799fac155e7e59e4fa56d3e949a81b895a89
refs/heads/master
2020-04-26T06:36:44.944351
2019-04-21T18:32:13
2019-04-21T18:32:13
173,370,424
2
1
null
null
null
null
UTF-8
Python
false
false
572
py
import matplotlib.pyplot as plt import numpy as np img = plt.imread("panda-corner.jpg") nrows, ncols = img.shape[0], img.shape[1] nchannels = img.shape[2] emboss = [ [-2, -1, 0], [-1, 1, 1], [0, 1, 2] ] buffer = np.zeros((nrows, ncols, 3)) for i in range(1, nrows-1): for j in range(1, ncols-1): ...
[ "ph@educreational.com" ]
ph@educreational.com
9a4567c7387b96986d9b3a7c804bb75fdfa5cae6
e29d2cd7dd16f961a964dbf90a7b3e011ecf7c4c
/LambdaAWSFunction/message.py
bcc9a6323e1350a0f2352d92bd579524d14d686c
[]
no_license
shrirangbagdi/LogParser
8c0af19a7f01ec2682eed0818bbb3eb7201ddf7f
a5a2dabbfab828e103f5062bb65d2988a72323e4
refs/heads/master
2022-12-01T06:28:05.091601
2020-08-16T22:17:05
2020-08-16T22:17:05
274,524,768
1
0
null
null
null
null
UTF-8
Python
false
false
4,754
py
import boto3 from PatternFour import PatternFour from PatternOne import PatternOne from PatternThree import PatternThree class message: def __init__(self, caseID, event): self.caseID = caseID self.event = event def generate_messages(self): s3 = boto3.client('s3') list_of_mes...
[ "sbagdi2@illinois.edu" ]
sbagdi2@illinois.edu
9ac194b9a29467ac4a1e58124ee6a21762943045
e2b0f6994076bf5183108bc8ee016ea09648cc5e
/apps/organization/migrations/0003_auto_20171119_2204.py
e78d20a4db95a404a9b0a0fcf71932ddb795d212
[]
no_license
tongguoweizpp/MxOnline
aaa8bf7e12be133e94cd6a10f76bdfab049c023b
8ad57dd0eba5c297de8da09d3908cd238d0c23b7
refs/heads/master
2021-09-04T09:09:34.663455
2018-01-17T15:13:49
2018-01-17T15:13:49
117,853,001
1
0
null
null
null
null
UTF-8
Python
false
false
668
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-11-19 22:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organization', '0002_auto_20171119_1113'), ] operations = [ migrations.AddFiel...
[ "tongguoweizpp@gmail.com" ]
tongguoweizpp@gmail.com
d0b17bbfb828844b9aade0e41ba7dacd041135e1
b83bebc43ba07d299c5e8a3d954f710024d27bcc
/owners_api/serializers.py
3ed8fe27b47c19714055045d0ff8595764dc12a8
[]
no_license
Faiza1987/Salon-API
eaf601b44abed4fcd2501f1076aa4f043e14caa7
8bfab422accb2a5cae253a08f9cdab05a7469e6d
refs/heads/master
2022-11-27T14:29:56.986608
2019-07-22T20:49:14
2019-07-22T20:49:14
196,279,240
0
0
null
2022-11-22T04:07:37
2019-07-10T21:48:18
Python
UTF-8
Python
false
false
2,117
py
from rest_framework import serializers from owners_api.models import User, UserProfile class UserProfileSerializer(serializers.ModelSerializer): class Meta: model = UserProfile fields = ('salon_name', 'salon_address', 'salon_city', 'salon_state', 'salon_zip', 'salon_phone_number'...
[ "faiza.ahsan1222@gmail.com" ]
faiza.ahsan1222@gmail.com