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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
168a1a3ba4c092e59778ca8c0e121f8af2cbdb0f | b6af5ed67f758dace85c9cec2091c36d769e5668 | /build/handsnet_time/catkin_generated/installspace/tactile_image_publisher_5.py | 34897b9675238a073264ba477e450f23797c3517 | [
"MIT"
] | permissive | robertokcanale/ros_workspace_handsnet | 897920d6ef30554556449085816d2e8ffb096721 | 09672bf2b4c54d0064f339005dc5eb3ac4f9d80d | refs/heads/main | 2023-04-10T06:50:12.652997 | 2021-04-12T12:08:41 | 2021-04-12T12:08:41 | 353,714,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | #!/usr/bin/env python3
import rospy
#import tensorflow as tf
from PIL import Image
from sensor_msgs.msg import Image as TactileImage
from handsnet_time.msg import Image_array
import numpy as np
#I can make a message of this type
#sensor_msgs/Image[] data
if __name__ == '__main__':
pub = rospy.Publisher('tactile_... | [
"robyrugby95@gmail.com"
] | robyrugby95@gmail.com |
ce0b42ad0fd7e0b3fbad4cd569a8db078f570c0d | cf839c1b6fda75cdcc999994fb5073f2f12c5050 | /Lunar_Lander.py | 394bc37cd15ea7df0f72f23e381055fcd098a69f | [] | no_license | rishitapasam/lunar-lander | 58c938b2034ed116752d991580e5b2fda0efdf18 | 2a847c0739a678b9a9729e56cc062b99c07870a6 | refs/heads/main | 2023-07-02T00:40:03.339717 | 2021-08-09T04:33:57 | 2021-08-09T04:33:57 | 394,148,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,857 | py | import gym
import numpy as np
import pandas as pd
from collections import deque
import random
from keras import Sequential
from keras.layers import Dense
from keras.activations import relu, linear
from keras.optimizers import Adam
from keras.losses import mean_squared_error
from keras.models import load_model
import... | [
"noreply@github.com"
] | noreply@github.com |
512b2baa52c49ad3c6ea3a96a8fa5c6b0bbb3c8f | b1c5be501902fa7af32cb43cfce479874bcd78b1 | /find_lang.py | e8f5474dfb3ccd322c64f928ce2978a61e69bc5b | [] | no_license | ceshwar/norm-network | b5de9a45e293ed14b5faafb45799e50271e61914 | 001360867a2a87235a70a9d686d00de7591526a7 | refs/heads/master | 2021-04-12T11:28:42.799263 | 2018-07-06T16:39:49 | 2018-07-06T16:39:49 | 126,243,384 | 0 | 1 | null | 2018-03-30T23:10:11 | 2018-03-21T21:34:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,058 | py | import os
import codecs
import langdetect
from collections import Counter
from multiprocessing import Pool
indir = '/home/samory/preprocessed_data_balanced/'
fnames = [os.path.join(indir, fname) for fname in os.listdir(indir) if fname.endswith('..balanced')]
def wraplangdetect(line):
try:
return langdetec... | [
"mattia.samory@gmail.com"
] | mattia.samory@gmail.com |
977ec5e17883fd2375a9a058edc884c0c94f2d3a | 174aac2e2e990413745e498e99cbfe2b9353aea9 | /examples/run_app.py | ee6fb56a5106293cf1365d945de6f0cbf68449f1 | [] | no_license | nguyensinhtu/pyservice | 98e86ea05dc01757425712e28a5be4f7cb6ca646 | 6c2a7d502690aadfaab5acd50db96d6aa3396187 | refs/heads/master | 2020-09-28T17:58:36.147905 | 2020-09-04T02:12:55 | 2020-09-04T02:12:55 | 226,829,769 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from pyservice import app
@app.main(app_name='abc')
def main_app():
while True:
print('hello')
if __name__ == "__main__":
main_app() | [
"tuns@vng.com.vn"
] | tuns@vng.com.vn |
e6ff765e39660197728176631c129a6e521196c7 | ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3 | /old/past1_E.py | e538f70ef5be64f085af47fec1d7b8236ac36a41 | [] | no_license | kussy-tessy/atcoder | 5604919747242ee9740b9131bb6e168e96af0151 | ee917fa5a5218d4a9e72f710d0d844e7c203f13b | refs/heads/master | 2023-07-21T09:25:15.464881 | 2021-09-04T14:06:02 | 2021-09-04T14:06:02 | 311,221,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | # print('input >>')
N, Q = map(int,(input().split()))
follows = [[0] * N for _ in range(N)]
logs = []
for _ in range(Q):
logs.append(input())
for log in logs:
log_info = log.split()
person = int(log_info[1])-1
if log_info[0] == '1':
follows[person][int(log_info[2])-1] = 1
... | [
"teppei04285000@gmail.com"
] | teppei04285000@gmail.com |
6fc9e4a1b64d40596d776205e98565fd67ee4d27 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/nOU.py | 6c27926aad7723e383583892ecc75bdfa6a62613 | [] | 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 |
ca342874fc6aa3634b471f0358797e5ad7650ccb | a937322eab2a44644495b923a551bff0a370d402 | /scrapebs4.py | ff2ae56dd5213378fc575c3c48cd85da697e9119 | [] | no_license | samghadri/webscrape_py | 9f824fb2f5e5c098d2145957f24f8b8edc5f5bd9 | 3fbc95779cc98e85160e3ae57c002fc3a07527d7 | refs/heads/master | 2021-08-23T03:29:18.618188 | 2017-12-02T22:43:56 | 2017-12-02T22:43:56 | 109,503,429 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import urllib.request
from bs4 import BeautifulSoup
html = urllib.request.urlopen(input("Enter URL: "))
soup = BeautifulSoup(html, "html.parser")
spans = soup('span')
numbers = list()
for span in spans:
numbers.append(int(span.string))
print (sum(numbers)) | [
"sam.ghadri@gmail.com"
] | sam.ghadri@gmail.com |
5864f0ca9d8b5f806acaf47af45d1ce325e1ef3c | 7e1b3cc87737201ea2b66eb93501be34297a88d6 | /dimension_reduction.py | bdd0828e792f813390617d99f81e8d6c52b9425f | [
"MIT"
] | permissive | Negahead/nlp | 19d745fa22cba126149ad3963dee5b392e25efa8 | 215c5beec9a52bf905312e86f8e58305ab5e43de | refs/heads/master | 2020-03-26T11:45:11.668549 | 2018-08-22T12:55:38 | 2018-08-22T12:55:38 | 144,858,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | class PrincipleComponentAnalysis:
"""
PCA helps us to identify patterns in data based on the correlation between features. In a nutshell,
PCA aims to find the direction of maximum variance in high-dimensional data and projects ot onto a
new subspace with equal or fewer dimensions than the original one.
... | [
"ZW282615SC@gmial.com"
] | ZW282615SC@gmial.com |
080b3808ad65aeadf62c0f3a420f7f9a286b309d | 7a4da5ec2196bf975a9e6115846244788b36b952 | /3.7.0/lldb-3.7.0.src/test/python_api/frame/inlines/TestInlinedFrame.py | 217b87e892696f5a9f974f714461cd306ed5a293 | [
"NCSA",
"MIT"
] | permissive | androm3da/clang_sles | ca4ada2ec85d625c65818ca9b60dcf1bc27f0756 | 2ba6d0711546ad681883c42dfb8661b842806695 | refs/heads/master | 2021-01-10T13:50:25.353394 | 2016-03-31T21:38:29 | 2016-03-31T21:38:29 | 44,787,977 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | """
Testlldb Python SBFrame APIs IsInlined() and GetFunctionName().
"""
import os, time
import re
import unittest2
import lldb, lldbutil
from lldbtest import *
class InlinedFrameAPITestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@skipUnlessDarwin
@python_api_test
@dsym_test
def test... | [
"brian.cain@gmail.com"
] | brian.cain@gmail.com |
c1ef04487156c52d006421aed898ac3f771c0669 | f00e1a7c08a67a6a6aa1f31ec018089c84f0ee9c | /tools.py | a57251f0fa9464b4cf499482608732ad86a83f70 | [] | no_license | fortisaqua/artery_segment_gan | ae987866560846822ba4deaa101858786dd704ba | 6f688fd35db40062ee52f5d07244e69074ff74c4 | refs/heads/master | 2021-05-09T20:42:18.161684 | 2019-05-09T01:14:36 | 2019-05-09T01:14:36 | 118,705,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,565 | py | import numpy as np
import os
import re
from random import shuffle
import tensorflow as tf
# import matplotlib.pyplot as plt
# import matplotlib.gridspec as gridspec
# from mpl_toolkits import mplot3d
import random
import organize_data
from dicom_read import read_dicoms
import SimpleITK as ST
class Data_block:
# si... | [
"1336250263@qq.com"
] | 1336250263@qq.com |
05fe043159b3a552239569b85a4fc2b8d1f40367 | 81e004afc3285708b56936c47f8a11e9d3b0a921 | /pyapi/CFlaskRestful.py | 2a94a2fd0b63ba293d9cad46727111e3551444b9 | [] | no_license | zhxhcoder/python_study | 6fb345ead26ac4dd8c5c16c0d08157f0324d5f06 | 51ee8a87f76332ad5c7bfe238d2acbcf15e34c45 | refs/heads/master | 2023-04-28T03:33:23.492482 | 2023-04-24T03:11:27 | 2023-04-24T03:11:27 | 244,091,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | from flask import Flask
from flask_restful import reqparse, abort, Api, Resource
app = Flask(__name__)
api = Api(app)
TODOS = {
'todo1': {'task': '呵呵哒111'},
'todo2': {'task': '呵呵哒222'},
'todo3': {'task': '呵呵哒333'},
}
def abort_if_todo_doesnt_exist(todo_id):
if todo_id not in TODOS:
abort(404... | [
"zhxhcoder@gmail.com"
] | zhxhcoder@gmail.com |
fcb312103203be8e4e3153ba7abe8cf49985db6e | 973f552142a150f24d8602cf91e45d5c764e1ddc | /user.py | e0c9a53a6a7c1419da26334aadc7560ae760493d | [] | no_license | fjcarnevale/redditwalls | 534d5f7267b8f37f34b97089f3ef1849a69c619f | 791eeb817fbb22123d0f121f631a3cc8d41954b5 | refs/heads/master | 2021-05-15T01:47:52.724836 | 2017-02-22T02:27:39 | 2017-02-22T02:27:39 | 19,913,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,844 | py | from google.appengine.ext import ndb
from Imgur import Imgur
class User(ndb.Model):
username = ndb.StringProperty()
favorites = ndb.StringProperty(repeated=True)
album = ndb.StringProperty()
subreddits = ndb.StringProperty(repeated=True)
access_token = ndb.StringProperty()
access_expiration = ndb.IntegerP... | [
"fjcarnevale@gmail.com"
] | fjcarnevale@gmail.com |
b83962f8d926061997321482969175d3eafd8d1a | 4e5d3c743db5318c9a5e30823adedd1066b52350 | /payntera/version.py | abadaefae0c99b255acfb15361bd5d30f4c32405 | [] | no_license | saalfeldlab/payntera | 2c68d24da46f45d3261cb2f9451bdfcb6c7866e6 | d7111f318c1b1db8c8f9d4bb3e2fb8919cc9048e | refs/heads/master | 2020-03-23T00:55:42.380542 | 2019-10-02T20:07:12 | 2019-10-02T20:07:15 | 140,892,566 | 1 | 1 | null | 2018-11-13T13:54:05 | 2018-07-13T21:00:17 | Python | UTF-8 | Python | false | false | 23 | py | __version__ = '0.20.1'
| [
"hanslovskyp@janelia.hhmi.org"
] | hanslovskyp@janelia.hhmi.org |
a9dd2c3e38251e3fe34630665ff726efb62cdf76 | d36dc8115ae129bc8a0a3871116cacadaa208cac | /common/__init__.py | d229039f87ed86bcb81f6e91771ca6d3914beba8 | [] | no_license | ivan-gerov/r_OnePiece | f033da4ee485202d87f469ef8b74b05c4b8ddc03 | 086c00f7025e5d33c97139188c68a9523d459ed1 | refs/heads/master | 2020-06-13T03:37:43.484975 | 2019-09-27T19:23:33 | 2019-09-27T19:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from . import db_operators, reddit_api_logic, reddit_post, send_email, search_query
| [
"igerov11@gmail.com"
] | igerov11@gmail.com |
332ddb5ca74bea02bc986b2897cf7c86c05a77fa | b0a8de0c29c111c2d589b98ab118fc9ddacc08ad | /code/python_scipy/Experiment_8/3.py | 99f1ac7edfe190190c208f45013fca411c79d2d5 | [] | no_license | Eliminate2810/Eliminate2810.github.io | 9062220cf55c925f4e3b407a815929b4181ddec4 | 0037103eecd4260ff7d272091d7a52e19bfd3257 | refs/heads/main | 2023-08-05T08:03:33.293390 | 2021-09-12T14:31:00 | 2021-09-12T14:31:00 | 302,829,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import matplotlib.pyplot as plt
import numpy as np
import scipy
from scipy.fftpack import fft,fftshift
from scipy import signal
plt.rcParams['font.sans-serif']=['SimHei'] #加上这一句就能在图表中显示中文
plt.rcParams['axes.unicode_minus']=False #用来正常显示负号
wp = 0.3 * np.pi
ws = 0.5 * np.pi
rp=0.1
rs=50
num=99
wc=0.5*(wp+ws)
window = ... | [
"964728773@qq.com"
] | 964728773@qq.com |
6e893d139ab48be87023f62b01a3f4eeb9863bef | 6935dc6ec893a5e22b8274cf0419b91d1fbf18c3 | /training/layers.py | 9d38339edf0d070d57db2d64a94f07a4ce125497 | [] | no_license | Manato1fg/AmazingCamera | 91dd7db09f2bbfec55a2fdc1811d6ba674bb96ff | 1cce0fa2c16461b1cb1948d1af403ec3610e2432 | refs/heads/master | 2020-04-14T01:39:13.336019 | 2019-01-12T07:44:54 | 2019-01-12T07:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,434 | py | import numpy as np
import sys
from util.utils import *
class Layer:
def __init__(self, name):
if name == "":
name = random_str(16)
self.name = name
self.batch_size = None
def forward(self, x):
pass
def backward(self, dout):
pass
def op... | [
"tacotaco0716@gmail.com"
] | tacotaco0716@gmail.com |
e8d93d872c4362a563a5f96c76667cf243b575f9 | 6786fe845dcf1d968bd86e31bee2802b7aa9e8bf | /adcdac.py | b9a4c5e102fecf505cee49cc4f9f7d12365dcfcd | [] | no_license | foggetta/test_python_pi | 85294e97bf2dc745ee2e33fdfdb5e67e275a7060 | 5859b784301985c04809a57828d986215fa3a757 | refs/heads/master | 2021-09-02T07:47:32.901865 | 2017-12-31T16:39:28 | 2017-12-31T16:39:28 | 115,520,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | #!/usr/bin/env python
"""
================================================
ABElectronics ADC Pi 8-Channel ADC demo
Requires python smbus to be installed
run with: python demo_readvoltage.py
================================================
Initialise the ADC device using the default addresses and sample rate,
change t... | [
"foggetta@gmail.com"
] | foggetta@gmail.com |
3a03118ad6c245b214a6a7c8e8507971af09062f | 2997ed80223d0f3760d955ee34c20a906a0315ca | /AdminUserInterface and GlobalServer/redemptionweb/redemptionweb.py | 826ddf21bb7b609e4720376da383d32812e1e39c | [] | no_license | fuzzitus/wurtland | 187edc594e9f1f470018aee9beefca30e5b6ad96 | fefbe9b84ad49f269c37c9be0f93e1f1681179ae | refs/heads/master | 2020-06-06T14:51:07.846636 | 2013-03-07T16:54:18 | 2013-03-07T16:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | #!/usr/bin/python
#Copyright (c) 2013 Nathaniel "CageInfamous" Wilson, cageinfamous@redemptionsoft.com
#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 lim... | [
"cageinfamous@gmail.com"
] | cageinfamous@gmail.com |
6e8e25b4b34bbd151cdb7f6c3d8944f3800f95e4 | 2d31482095cccd3b415dbb394446c0519acaae23 | /rcpsp/formulations/perfect_knowledge/discrete/rcpsp_dis.py | 2bedf40362bb79e4ea44ad8d470bae7cea510e5b | [] | no_license | AlkisPlas/MPRJ_RCPSP | 11555e111b9818de268e026d42b5244f77927b30 | ef101962e63d8089e54fdfca0a3e2cd52f5a8a2b | refs/heads/main | 2023-08-17T06:46:08.404106 | 2021-09-21T15:20:42 | 2021-09-21T15:20:42 | 362,830,429 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | from pyomo.environ import *
'''
Binary Integer Programming formulation for the RCPSP.
Time horizon is divided into discrete intervals. Deterministic activity durations
Based on the formulation of Aristide Mingozzi, Vittorio Maniezzo, Salvatore Ricciardelli, Lucio Bianco, (1998)
An Exact Algorithm for the Resource-Co... | [
"alkisplas@gmail.com"
] | alkisplas@gmail.com |
9ad7124222349fbc6bcec76bef91147640688314 | 00da97c7d54ae6666ea202db7c7391ef5599e2c0 | /abliz/wsgi.py | 73e90bcc8c1ba1fdb20b374b8271941ccb353d7a | [] | no_license | Sean609/Learn-Chinas- | c986327479ab225fd768f3b43ee0765e5947df8a | d052a295d11a7ff1f324206f3ffc01a3454b9ac0 | refs/heads/master | 2022-12-10T03:47:28.346088 | 2018-10-04T12:37:11 | 2018-10-04T12:37:11 | 151,568,133 | 0 | 0 | null | 2022-11-22T02:52:50 | 2018-10-04T12:29:05 | JavaScript | UTF-8 | Python | false | false | 388 | py | """
WSGI config for abliz 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"abliz@bluemouse.com.cn"
] | abliz@bluemouse.com.cn |
e489b80b813521f9e69b3f3c43c39d02cdba43cf | c526d2f3e457b1b25d5f2cb5bda914236e6c265b | /candidates/urls.py | 5c8fb469cc8b566cb76f30f605fdaab774b81d78 | [
"CC0-1.0"
] | permissive | yhsiang/twly-voter-guide | 99e2269da57a21b5779ec3defd9c7e23c7668f64 | ae87c9f9b9f053f79a12f04afe0d60f227dc68c1 | refs/heads/master | 2020-12-31T02:42:01.568168 | 2015-03-21T13:24:55 | 2015-03-21T13:24:55 | 33,117,399 | 0 | 0 | null | 2015-03-30T10:42:56 | 2015-03-30T10:42:56 | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from candidates import views
urlpatterns = patterns('',
url(r'^$', views.counties, {"ad": 8}),
url(r'^(?P<ad>\d+)/(?P<county>\S+)/(?P<constituency>\d+)/$', views.district, name='district'),
url(r'^(?P<ad>\d+)/(?P<county>\S+)/$', views.distr... | [
"twly.tw@gmail.com"
] | twly.tw@gmail.com |
6aef0dfa201351c5ff882396e805b6125e9e0aaf | 3fcf7f3652d99d8943d0bf789e79abbfe38dcae2 | /biblio/settings.py | 062de069507d6b8bdc75d8394233a78bbe067c8d | [] | no_license | Arek149/Kurs-djago | 9975ef4c76906e236a56665ea6a4cc41f8a30c12 | 574b88afcf0bdaa43b081a6f3197d40bc18a7863 | refs/heads/master | 2020-04-19T09:59:53.867201 | 2016-10-22T23:36:58 | 2016-10-22T23:36:58 | 67,162,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | """
Django settings for biblio project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"arek_krajewski@op.pl"
] | arek_krajewski@op.pl |
b54976fb9d15a1f9346958c45a9a81ed5f7c775a | 66d26a0b88a1a234ac031c4f45d43204c2c17c09 | /wongi/hospitals.py | ff341971efafb82b2a477d7139fb7245d2d58bae | [] | no_license | ROODAY/course-2017-fal-proj | 28f7072208bd73aa64ca2a14f6d3b8c18b71ba5a | 97e72731ffadbeae57d7a332decd58706e7c08de | refs/heads/master | 2021-08-29T22:56:27.169855 | 2017-12-15T06:58:08 | 2017-12-15T06:58:08 | 109,328,495 | 3 | 0 | null | 2017-11-02T23:14:26 | 2017-11-02T23:14:26 | null | UTF-8 | Python | false | false | 3,118 | py | import urllib.request
import json
import dml
import prov.model
import datetime
import uuid
class hospitals(dml.Algorithm):
contributor = 'wongi'
reads = []
writes = ['wongi.hospitals']
@staticmethod
def execute(trial = False):
'''Retrieve Hospital Data from Analyze Boston .'''
star... | [
"wongi@bu.edu"
] | wongi@bu.edu |
e142c7b129b5264a5b08871064c7512ef6ea4611 | b2e44508bbc96e428d47585fcff9c0a7e2f80a0c | /Equal Stacks.py | 557e654089e419b4ba3155e52dae43f4b3f3189b | [] | no_license | ABresting/Hackerrank | c99eae5f849387f853bfb756955a1815d8c3a387 | c476c3fc85d7f5b9f95fc01ebe42743f4cd3e1a2 | refs/heads/master | 2020-12-29T02:19:19.608011 | 2016-08-16T12:40:42 | 2016-08-16T12:40:42 | 65,664,928 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
s = raw_input()
s = map(int, s.split(' '))
num_of_c1, num_of_c2, num_of_c3 = s[0], s[1], s[2]
s = raw_input()
s1 = map(int, s.split(' '))
s = raw_input()
s2 = map(int, s.split(' '))
s = raw_input()
s3 = map(int, s.split(' '))
h1, h2, h3 = sum(s1), su... | [
"noreply@github.com"
] | noreply@github.com |
4ad54746641d6b63a6e4f6988f9954243a799490 | e7a977e3e0d71c5c2a0006896f7ff982cf8c9f64 | /depth_first_main.py | 16e994b87ca79a51491d2aa737fedbbaa2605e8a | [] | no_license | britto-jeyanth/CORE | e9f7be2884a9c6e472a71e9519e0436d5eb19842 | 5a23db9485e9f3fcff1c5010f73871b150f2bfce | refs/heads/master | 2021-01-22T06:28:46.110409 | 2017-04-12T09:15:21 | 2017-04-12T09:15:21 | 81,766,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,862 | py | from random import *
from Tkinter import *
import os
import time
import requests
import json
import numpy as np
width=500
height=500
def inVisited(visitX, visitY, x, y):
for num in range(1,len(visitX)):
if(x==visitX[num-1] and y==visitY[num-1]):
return 0
return 1
def reverse(path1,mouse):
last = path1.pop()... | [
"noreply@github.com"
] | noreply@github.com |
ad37c0960cdfb07438a992205eb49a0338f744ab | 0611a5b543258c8b7f555606ca7487bb451153e9 | /vivian/forms.py | b308db3ce040d984bb3db4b1bf21fbe9b6915251 | [] | no_license | ralsuwaidi/djangoApp | 2755965c2a0763e17c50d8e22d82fc7ab1944f9f | 8e9ac8c8c76627ebde47614ca240a97cf385f530 | refs/heads/master | 2020-03-10T12:40:28.650049 | 2018-05-17T08:13:33 | 2018-05-17T08:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django import forms
class NameForm(forms.Form):
sort_hot = forms.BooleanField(required=False)
| [
"x.suwaidi@gmail.com"
] | x.suwaidi@gmail.com |
b7ef34e8214299adfef0b05c8203c7815be87e90 | 368ff7d8613811027d85ce69cda1637b01375675 | /Macros/Matrix/Shift Col 1 Up.py | fe918743a51599620baafd29e74676439355459e | [] | no_license | iv-mexx/AOA-DMXIS | 5177e73b06ffcfcb0768bd0e0b9615c6cce0c55e | e78f83742e24a61483d1644ffb545c088d4412c8 | refs/heads/master | 2022-10-20T11:52:48.487005 | 2022-10-13T12:59:29 | 2022-10-13T12:59:29 | 152,772,162 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | #===============================================================
# DMXIS Macro (c) 2014 Markus Chmelar
#===============================================================
# Copy the left matrix to the right matrix
offset = 1
numCols = 5
numRows = 5
bankSize = 33
col = 0
def addressForPoint(row, col, bank):
return off... | [
"aeonsofashes@gmail.com"
] | aeonsofashes@gmail.com |
58e9f9212ed8b1ac0ced1beb80a3a50936a3d03e | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/site_packages/numpy/fft/info.py | 98e7d88d37cdf14381335db9fead5f63b6dd4bbf | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,813 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: '''
2: Discrete Fourier Transform (:mod:`numpy.fft`)
3: =============================================
4:
5: .. currentmodule:: numpy.fft
6:
7: Standard FFTs
8: -------------
9:
10: .. autosummary::
11: :toctree: generated/
12:
13: fft Discre... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
058f5c938ff523c0a5121757b0a2f73e467d701e | 15b82123ac54bcc4d8f985928f900f238b817230 | /Queue.py | d977ae8164d96cdeacd54ba161f7ef0d15ea881d | [] | no_license | jeffysonar/Data-Structures-and-Algorithms-in-Python | 9d5b1ba930d2e40a70ddcf8d4efc54ba3f2ed9cd | 53597f1ebb12a04f0d5c7ca88a5b1598c8f2db24 | refs/heads/master | 2020-03-25T15:41:18.554808 | 2018-08-30T16:38:04 | 2018-08-30T16:38:04 | 143,401,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,641 | py | from LinkedList import LinkedList
from LinkedList import DLinkedList
# Simple Queue
class Queue:
# constructor : initialises Simple Queue
# _rear : points to rear of queue
def __init__(self):
self.queue = LinkedList()
self._rear = None
# front will be head of LinkedList in background
# toString : returns st... | [
"pratik.jeffysonar@gmail.com"
] | pratik.jeffysonar@gmail.com |
a0dd27fef1fb202b46b36f362efef5eb2283ba8d | 181f1809e0fdd60277a66d1ec62f801b202f9834 | /Aula_26/file_create_folder.py | ef59215433a8fad912338ea58a5acd611c787e1c | [] | no_license | Donzellini/pythonCampinasTech | a1096af54b7013bad8b46f4a9b2683c7414bbba5 | 8ed19209eeba0582c56715e9e6eb7eeec16899c9 | refs/heads/master | 2023-03-07T00:16:34.031888 | 2021-02-25T00:50:35 | 2021-02-25T00:50:35 | 328,802,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | import os
import sys
os.mkdir("test") | [
"muriel.donzellini@gmail.com"
] | muriel.donzellini@gmail.com |
0862f9687c49a1b93a680b55a4b8f60e099f633b | 96ebdebfb0019708b4e0deea378043a01bf838b0 | /hw2/Inference_Markov_github.py | 8745124214d4996236b93328e8e57758d7fd52e3 | [] | no_license | linamy85/md2016 | e3833e4c9093fb38aa03c88cf96af3ff4c503c55 | 0325622602dd84dab992950ca7d2af3e445bd4b4 | refs/heads/master | 2021-04-30T23:14:23.693352 | 2017-01-19T12:53:01 | 2017-01-19T12:53:01 | 72,410,540 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py |
# coding: utf-8
# ### This version hasn't been neither COMPILED or UNIT-TESTED
# In[19]:
import pandas as pd
import numpy as np
import sys
import random
#from pgmpy.models import MarkovModel
from pgmpy_onGithub.pgmpy.models import MarkovModel
#from pgmpy.factors import Factor
from pgmpy_onGithub.pgmpy.factors.disc... | [
"linamy85@gmail.com"
] | linamy85@gmail.com |
f29be39df6b51f72bbd6d4ae6c22cc702a61e7a1 | 0b09b418f1928aed085d58d59f345959b5d6afc5 | /test_browser_languages_firefox.py | 81160d37312d32efc0120719998f114f7cc9e9b8 | [] | no_license | davydovk/stepic_selenium_course | 33c2cc2e2e391390278d807b5287b9ff7d86631e | bbc581f38c8d92bb6eb85c29a59dc86f046d73fe | refs/heads/master | 2023-01-01T17:07:17.022227 | 2020-10-21T09:07:03 | 2020-10-21T09:07:03 | 305,966,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from selenium import webdriver
fp = webdriver.FirefoxProfile()
fp.set_preference("intl.accept_languages", 'user_language')
browser = webdriver.Firefox(firefox_profile=fp)
| [
"davydov@rosenergo.com"
] | davydov@rosenergo.com |
188aee9517361a84dbb41dfaaf7c93e66f69122f | 48997954c0e4af29dd8ae17cbfde6081fc225dcc | /PROJ_COD/Machine/park/chart.py | 6b695935eafe767df38a00e465bd064b6504b39c | [] | no_license | annie522/kitri | 7c7fd9e6ab015a94051b398704d39df09ba8966d | 5ae2e8f5ee7e15cd1b0e828ee63e30a320746317 | refs/heads/master | 2021-01-22T10:57:01.778072 | 2017-07-26T00:40:25 | 2017-07-26T00:40:25 | 92,664,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import matplotlib.pyplot as plt
def create_bar_chart(data, labels):
num_bars = len(data)
positions = range (1, num_bars+1)
plt.barh(positions, data, align='center')
plt.yticks(positions, labels)
plt.xlabel('rate')
plt.ylabel('type')
plt.show()
if __name__ == '__main__':
steps = [60, 40... | [
"pourdeesse@gmail.com"
] | pourdeesse@gmail.com |
e05b41c5481445ef154314613c38564c035bed0f | 30782a24008db6fa023d607f08356986be8e1303 | /utils/misc.py | 84c3d8c2fc57ded233069eb54b5fe64296f6f241 | [] | no_license | Deddryk/projecteuler | 752ad6cd45e47b10eeb4df56cba62d5c8764cf65 | b06d94d72c928bc0509785da642f35279fe421d1 | refs/heads/master | 2021-01-25T12:48:24.977896 | 2018-03-02T00:47:15 | 2018-03-02T00:47:15 | 123,507,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # Author: Deddryk
"""
Miscelaneous utilities
"""
from operator import mul
from math import log10
def product(numbers):
"""
Return the product of a list of numbers
"""
return reduce(mul, numbers)
def used_digits(n):
"""
Return a set containing every digit used in n
"""
digits = set(... | [
"deddryk@gmail.com"
] | deddryk@gmail.com |
fbefa2c35d1cc2ba20e0679c9e1f1fb9fff81205 | c4c26a76642b53700526b1b00d049ba7eac6bd08 | /shuchongwo/apps.py | 5a8179c078c64e01b25a72b7cdc43f523d27df54 | [] | no_license | wsluolik/django-book | 62cba80300da3d15c949d65e15c684df8ffdae60 | 2f559b0d0f7f9c602c71a560d43f2ddc972eb66c | refs/heads/master | 2020-08-18T07:11:58.898921 | 2019-10-19T04:40:21 | 2019-10-19T04:40:21 | 215,762,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class ShuchongwoConfig(AppConfig):
name = 'shuchongwo'
| [
"1209976337@qq.com"
] | 1209976337@qq.com |
118466e501e0ee10c514f5cf6c80c46cf6addb12 | 0c2618728241b2c952d7af16c56a6a0569cac49a | /New Data/feature.py | 9d8beacb8162e030103d8843177ac803a4d3b182 | [] | no_license | eclub-iitk/skintrack | db43e39f4a3c1a348f2cfb01dbed1ef145100301 | a4cfcd291809b21106663468e5fa4e9adc4c1cb3 | refs/heads/master | 2022-12-25T03:41:00.721189 | 2022-12-11T13:56:59 | 2022-12-11T13:56:59 | 135,062,015 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,877 | py | #By Ashok Kumar Chaudhary
""" This Code loads data and extract features from them
and label them."""
import myfeat
import pandas as pd
import numpy as np
from numpy import matrix
import xlwt
from scipy.stats import kurtosis, skew
import matplotlib.pyplot as plt
book = xlwt.Workbook(encoding="utf-8")
sheet1 = book.add... | [
"jayamaheswari98@gmail.com"
] | jayamaheswari98@gmail.com |
9a94b74ab1306422f86792b91e9d82bfe6ad264d | fadae4c2fed47f31c507777c7bddd93bf6f94680 | /pronoun_classifier/pronounLSTM.py | 68774150d3b969c82f7f34c8d08f1de4b54d7c5a | [
"Apache-2.0"
] | permissive | UppsalaNLP/uuPronPred | a28b0d61a08732da470c2b5bd110f29c7571bfcf | c511755ee4eb27df39f7d681e81184c4f68d58d9 | refs/heads/master | 2021-08-23T05:00:24.606750 | 2017-12-03T13:38:13 | 2017-12-03T13:38:13 | 105,022,697 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,683 | py | from dynet import *
from utils import Sentence, PronClass, read_prons, write_prons
from operator import itemgetter
from itertools import chain
import utils, time, random
import numpy as np
# This code is partially based on:
# BIST parser by Eli Kiperwasser and Yoav Goldberg: https://github.com/elikip/bist-parser
# u... | [
"sara.stymne@lingfil.uu.se"
] | sara.stymne@lingfil.uu.se |
4befd61303749bccba6d3ec7eee2958b857ddd59 | a12e9779a2a9cd293ea7a9b26019d129a203b171 | /hw4/base/svm_classifier.py | 672938c581af992c48a71135db912a097770e0be | [
"Apache-2.0"
] | permissive | hhio618/AUT-ml-hw-2017 | ae22d0ab7a65be11143cff38273939265928103c | c82e2813348f988f291377c78edbd58868b81ac0 | refs/heads/master | 2020-03-07T22:59:11.352039 | 2018-04-02T15:06:35 | 2018-04-02T15:06:35 | 127,769,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,429 | py | import matplotlib
from libsvm.python.svm import PRECOMPUTED
import os
gui_env = ['TKAgg', 'GTKAgg', 'Qt4Agg', 'WXAgg']
for gui in gui_env:
try:
print "Testing matplotlib backend...", gui
matplotlib.use(gui, warn=False, force=True)
matplotlib.interactive(False)
from matplotlib import... | [
"hhio618@gmail.com"
] | hhio618@gmail.com |
d0dfd983b97793c39c7bd8b179ae8a358e378c2f | 8a0362576f4e398879415e4115a9e23b77385f82 | /montepython/likelihoods/euclid_lensing/__init__.py | 709634297cedc7f2125be048681a898ce1cb8f0f | [
"MIT"
] | permissive | ivandebono/montepython_public | d8e3d3eec71dd438fa047f8546761f92972bb84a | 5fa678be87361e2bfdd5cdabc9efe06b2296a922 | refs/heads/3.0 | 2022-06-26T19:43:28.021239 | 2018-05-29T08:22:58 | 2018-05-29T08:22:58 | 169,779,923 | 0 | 0 | MIT | 2019-02-08T18:25:16 | 2019-02-08T18:25:16 | null | UTF-8 | Python | false | false | 22,250 | py | ########################################################
# Euclid_lensing likelihood
########################################################
# written by Benjamin Audren
# (adapted from J Lesgourgues's old COSMOS likelihood for CosmoMC)
#
# Modified by S. Clesse in March 2016 to add an optional form of n(z)
# motivate... | [
"brinckmann@physik.rwth-aachen.de"
] | brinckmann@physik.rwth-aachen.de |
1994f796ad15b3508c88ed95ec66d3daa1886155 | 103a63773e60d3101c05bc804198cd489c4e0a54 | /app/Tests/test_rules_db.py | d5f504772208e280698b5e5944621dbddb6a3c40 | [] | no_license | Kenr0t/Cepheid | 5a5b6ddcb894f123bbda03c44f975c8651d7f1ae | 3eba18e6e977edb00638a3ca7384a039dd23097a | refs/heads/master | 2023-01-23T16:27:47.582776 | 2020-11-28T14:19:33 | 2020-11-28T14:19:33 | 288,239,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,850 | py | import unittest
import json
import requests
from config import orion_url, iota_url, default_service, default_servicepath
from Rule import Rule
from Rules_db import RulesDB
svc = default_service
svcP = default_servicepath
headers = {"Accept": "application/json", "Fiware-Service": svc, "Fiware-ServicePath": svcP}
cl... | [
"kenrot.shooter@gmail.com"
] | kenrot.shooter@gmail.com |
ad78bbb24aa5ad0a3916447b27776c7b4beb447b | 399adc61c5b30817474c5e38609e7e8c5f438120 | /trydjango/bin/django-admin | e65f885f86b98b9e78fa58dde16d7d5ba14d4b56 | [
"MIT"
] | permissive | amanjha18/django_project | d464b3b55e7eb0e37c9291dc9b0bab8164099b77 | b01acf5fbc627d12d94b560e7757a4e7d1693a14 | refs/heads/master | 2020-06-27T21:39:14.498578 | 2019-08-12T12:24:02 | 2019-08-12T12:24:02 | 200,056,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | #!/home/amanjha/projects/trydjango/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"amanjha18@navgurukul.org"
] | amanjha18@navgurukul.org | |
df6d3657cf32d06e982cebe3c9167baa228617d8 | 3fba47ac0db1be2aa84b7662cd5bcf0b70477719 | /src/FindExplorationDuration.py | 515571cef0d01c902ce92158a2b95c6defbc55c7 | [] | no_license | ChrisS2812/ComputingMaximumSuffixes | 8fbada6514ab82835833cc6f59a1d75678711d0a | 6deac8a593061d48e5730d26573984fc64eeff2a | refs/heads/master | 2023-01-29T13:50:52.612197 | 2020-12-07T01:01:12 | 2020-12-07T01:01:12 | 319,167,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | import itertools
from pprint import pprint
import networkx as nx
from Util import Util
n = 8
m = 8
UTIL = Util(n, m)
tree = UTIL.load_fuzzy_tree(n)
all_words = itertools.product(range(n), repeat=n)
already_seen_comps = {}
nr_comparisons_count = {}
for i, word in enumerate(all_words):
if i % 100000 == 0:
... | [
"christian.scherer@student.uni-augsburg.de"
] | christian.scherer@student.uni-augsburg.de |
4c83a5db0ba14d55f47edf5d53d2b9725c4ca26c | 92d280bb5cb1293a1bfb5def837101d28e851a6d | /hw/migrations/0008_auto_20171124_1435.py | 1a0a1d06ed9bda016433b92a0b5200cbf1cfb1f9 | [] | no_license | KirillNikitin97/howework | 2c08808455853aa1dcf36a803c8e810b0b9b7c79 | b8e909e41594a5c6b04ee3f314fc661ba7de38e7 | refs/heads/master | 2021-09-03T20:08:43.646350 | 2018-01-11T16:32:36 | 2018-01-11T16:32:36 | 117,124,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,945 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-24 14:35
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('hw', '0007... | [
"kirill-nik-88@mail.ru"
] | kirill-nik-88@mail.ru |
417ee3827266e744938ef5a6a35d7969f17befe8 | 51b486e02c296611fd0241a1e3a8fd7644fcdcc8 | /project/new_project/Accounts/views.py | 948d3a12514bc573f8bfec5a23250741e0ccea6e | [] | no_license | Rohitkush002/django-project- | 317c395a8235607ac34a3926d9d7cc79f378de2e | 09c1209862bd9e30077a54e426f3edf1e96f5df5 | refs/heads/master | 2020-05-20T13:34:23.913427 | 2019-05-13T05:00:59 | 2019-05-13T05:00:59 | 185,601,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | from django.shortcuts import render, redirect
from .models import NewUsers
from .forms import UserForm, ChangePassword, LoginForm
from django.contrib.auth import logout
class UserAccounts:
def all_users(request):
if not request.session.get('username', None):
return redirect('login')
u... | [
"rohitkush002@gmail.com"
] | rohitkush002@gmail.com |
ac0a59717df833eb09494f402c8e02b5cea906c9 | 6b73988a0970627ecb7e49e6047b29fbc366ae5f | /server/pmon/resource/__init__.py | be5fd68867b1edc4190aaaa3ee779abafec6cfbc | [
"Apache-2.0"
] | permissive | yolylight/PMon | 43850372996b6c940c458aa07e7c28283c80f38e | de6c7fa3ded6b936328e6fc678f2e6f7b098de39 | refs/heads/master | 2022-12-04T19:19:56.490444 | 2020-08-15T03:39:55 | 2020-08-15T03:39:55 | 286,378,886 | 0 | 0 | Apache-2.0 | 2020-08-15T03:39:56 | 2020-08-10T04:51:41 | Vue | UTF-8 | Python | false | false | 1,837 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
插件配置
"""
from __future__ import print_function
from __future__ import absolute_import
from flask_restful import Api
from .login import Login, User
from .task import TaskIssue, Tasks
from ..backend.task import TaskBackend
from .port import Ports
from .ticket import T... | [
"weiw.chi@gmail.com"
] | weiw.chi@gmail.com |
2b02d1a99c683e7dacc5808ffc01519b62f5385d | 618408b7e89798b8a745ae5aaf6a098d17af5468 | /2019vacational_project/spider/11_re_guokr.py | 485d332730e4fe9d4929b19b9ec8db2ee1ec26b7 | [] | no_license | Mr-Da-Yang/Python_learning | 3fc832325aa9aff4e11a15cad5b3636918dd61bc | 23586139fc44fe76c7dbcd83929a1804485be5f4 | refs/heads/master | 2023-01-08T21:35:42.324510 | 2020-10-26T13:01:02 | 2020-10-26T13:01:02 | 281,889,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | import requests
import re
import json
class Guokr:
def __init__(self):
self.url ='https://www.guokr.com/ask/highlight/?page={}'
self.headers ={"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.26 Safari/537.36 Core/1.63.5558.400 QQBrowser/1... | [
"noreply@github.com"
] | noreply@github.com |
c76e0a8da89cff2174d9900d2b2d795ccf522914 | be50b4dd0b5b8c3813b8c3158332b1154fe8fe62 | /Math/Python/SortedPermutationRank.py | 28c0906d6624cf1570338c7b46d6235b336d4950 | [] | no_license | Zimmermann25/InterviewBit | a8d89e090068d9644e28085625963c8ce75d3dff | 6d2138e740bd5ba8eab992d9bf090977e077bfc5 | refs/heads/main | 2023-03-24T18:12:48.244950 | 2021-03-24T14:36:48 | 2021-03-24T14:36:48 | 350,835,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | class Solution:
import math
# @param A : string
# @return an integer
def findRank(self, A):
if len(A) < 1:return 0
if len(A) ==1:return 1
counter = 0
# False oznacza,ze ta litera nie zostala jeszcze wykorzystana
charArr = [[A[i], False] for i in... | [
"noreply@github.com"
] | noreply@github.com |
45c93dfe5019d6bc09fc9cd7499e5990d2691491 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02821/s486815367.py | c6e104ff5932a2b1ed2561cc6e8d0125a064d8c4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import sys
from bisect import bisect_left,bisect_right
sys.setrecursionlimit(10**9)
INF=10**18
def input():
return sys.stdin.readline().rstrip()
def main():
N,M=map(int,input().split())
A=sorted(list(map(int,input().split())))
S=[0]*(N+1)
for i in range(N):
S[i+1]=S[i]+A[i]
def nibutan(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9f4bc932227744f345ed0a27e45cac0a613b094f | 61629b6f73d41d2035139f827a047d9f9444fa6c | /Task 1/jpm_module_1/client_test.py | 83f29ecf6df3528ede5f9e514e7214694ade701c | [
"MIT"
] | permissive | abitaaugustine/JPMorgan-Chase-Virtual-Internship | d217e3a344395715f4033ee3a1613ede7f716181 | b04e01b2d2bf5155c3bc52ef08e4fef6edc009e7 | refs/heads/master | 2022-10-04T14:45:11.463547 | 2020-06-10T16:41:33 | 2020-06-10T16:41:33 | 271,086,538 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | import unittest
from client3 import *
class ClientTest(unittest.TestCase):
def test_getDataPoint_calculatePrice(self):
quotes = [
{'top_ask': {'price': 121.2, 'size': 36}, 'timestamp': '2019-02-11 22:06:30.572453', 'top_bid': {'price': 120.48, 'size': 109}, 'id': '0.109974697771', 'stock': 'ABC'},
{'... | [
"noreply@github.com"
] | noreply@github.com |
53d90f7769313cd1cd415ab8fb577b3002254e15 | ece9057f947c16982ad66cd5e7732409eacc49cb | /casamento/urls.py | e0a570acc97aa20d1b1943cf5d963c8d5241984c | [] | no_license | filipeassad/casamento | 35cc0f493178914ac67e5e8adc4d348f0b114daf | b88ba82c1f8d335f30971f87fc93c7b7ffe2bd34 | refs/heads/master | 2021-01-10T11:31:21.849539 | 2016-03-11T21:23:31 | 2016-03-11T21:23:31 | 53,696,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.conf.urls import include, url
from . import views
urlpatterns = [
url(r'^$', views.tela_inicial),
]
| [
"filipeassad@gmail.com"
] | filipeassad@gmail.com |
d1acd56522d7a94f141f9491839180d67d95d87e | f5bd414cb95b5304fb0a251cd8f87cd0e834cfc6 | /spaceship-simple/core/spaceship.py | 92297d76b1fcbcf6aed30c399e4ca136d0a2c24d | [] | no_license | lucaspal/python-backend | d1cf29f2da8a32958127024a2337f648c45f7c86 | 61a263c47331b21e36daa3d05702f76b08e5f644 | refs/heads/master | 2023-04-05T12:05:41.891178 | 2021-04-21T20:29:29 | 2021-04-21T20:29:29 | 294,220,663 | 1 | 5 | null | 2021-04-21T18:04:02 | 2020-09-09T20:21:05 | Python | UTF-8 | Python | false | false | 620 | py | class Spaceship:
def __init__(self, name, hp, armor, damage):
self.name = name
self.hp = hp
self.armor = armor
self.damage = damage
def is_destroyed(self):
return self.hp > 0
def can_attack(self):
return self.damage > 0
def process_damage(self, damage: ... | [
"spalierno@gmail.com"
] | spalierno@gmail.com |
fa475628bda98c7e55e1fa42725a6ee949b807ba | 86be97a1e3419830e0ac35b80ed1837f16d3a83c | /listing6-6.py | 52e35a0e2173177c964f8a7f6f4e534c373dbbe8 | [] | no_license | Warren-Brown/Mission_Python | c248a49526a4696de33d502aa2ea9d410fb9c214 | 68a950746a8d47ec95864089ff464fbdec00fb0d | refs/heads/master | 2022-02-11T16:36:02.452763 | 2022-01-25T23:01:42 | 2022-01-25T23:01:42 | 208,657,319 | 0 | 0 | null | 2022-01-25T23:01:42 | 2019-09-15T21:04:51 | Python | UTF-8 | Python | false | false | 19,080 | py | #Escape - A Python Adventure
#by Sean McManus / www.sean.co.uk
#Typed by Warren Brown
import time, random, math
#############
#VARIABLES##
#############
WIDTH = 800 #window size
HEIGHT = 800
#PLAYER variables
PLAYER_NAME = "Warren" #change to your name
FRIEND1_NAME = "James" #change to a friend's name
FRIEND2_NAME =... | [
"warrenlb123@gmail.com"
] | warrenlb123@gmail.com |
0e6f9e670c1caadc739c6b915099d357ae34cb6d | 3573f67b40700d80873b180a12647d5d9f73c23a | /color-test.py | 7fe7fb1b6336c88eb8f5f35b0b38e748b842990e | [] | no_license | afrechet/mypyutils | 1430c9447772a11ba0d5a5e3bfe68a3418c0bf2c | fc3ea81a8ff03ee77adaab13e6a7a50ed85b6269 | refs/heads/master | 2020-06-09T00:02:00.579503 | 2015-06-02T23:11:29 | 2015-06-02T23:11:29 | 29,337,808 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
"""
Script that loops through a series of color showing a plot
with that color and asking if it should be added to the list of colors.
The list of chosen color is then printed at the end.
"""
n = 1000
x = np.random.rand(n)
y = np.random.ran... | [
"afrechet@cs.ubc.ca"
] | afrechet@cs.ubc.ca |
4bc87a252f1b9e6b1df92eaa8cafb33b32222045 | d0448510262ddf761757d365a0d28e9f4d39b7bc | /django3/src/vote/views.py | 9c907983eb14632b47c3d4a0449b273455b21c90 | [] | no_license | admin0420/django3 | f128880a32e99a743419ea9c087aaeada3114a1f | ce75fabe0c419612a0a03e2f726eea10ba898644 | refs/heads/master | 2021-10-25T20:30:31.709644 | 2019-04-07T02:44:01 | 2019-04-07T02:44:01 | 179,909,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,644 | py | from django.shortcuts import render, get_object_or_404
from vote.models import Question,Choice
from django.http.response import HttpResponse, HttpResponseRedirect
from django.urls.base import reverse
# 질문 리스트
def index(request):
#DB에 저장된 Question 객체 추출
objs = Question.objects.all()
#index.html 파일에 Q... | [
"405-5@405-5-PC"
] | 405-5@405-5-PC |
8292fda2e492070230ce77190d01f8dcb108a778 | c4e63cea3b444a9da7f26d0e7afaa22149b0037e | /for-discussion/al0p8/ptc263/Rmub0.py | 3b69e4e3ac929fdb1e35e02762e5046748cdc5f3 | [] | no_license | yinshi2018/Chi8 | fbcf2d2d38842c699b2664055fbb6e9dc1de959a | 40e55f4418ff3c9a50610e157aba5bf7cb97ce54 | refs/heads/master | 2021-07-06T12:53:47.791058 | 2021-01-13T01:28:57 | 2021-01-13T01:28:57 | 222,906,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,167 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# sphinx_gallery_thumbnail_number = 3
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import NullFormatter # useful for `logit` scale
import matplotlib.ticker as ticker
import matplotlib as mpl
mpl.style.use('classic')
# Data for plotting
chi2... | [
"fu@thphys.uni-heidelberg.de"
] | fu@thphys.uni-heidelberg.de |
bd478ea781f080f4220281df12cc4fb9c2407b1b | efce5fd1d33c33a6b0f8ffeb6b2fdd9d85600eb2 | /imdb/saveToMongo.py | e9ea861cd2d0b792db40508643abb037b89622a0 | [] | no_license | GojiMiin/SeniorProject_Model | 3f307752be13368e78bb7839f621482a0608686a | 2f9d8e4d206355ddd2e681c44b6a4be0ddf0790c | refs/heads/master | 2023-04-12T16:42:41.962934 | 2021-05-02T16:01:33 | 2021-05-02T16:01:33 | 285,240,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from pymongo import MongoClient
import pandas as pd
data = pd.read_csv('18_19.csv')
client = MongoClient("mongodb+srv://GojiMiin:342510@movieweb.r4ob8.mongodb.net/test?retryWrites=true&w=majority")
db = client['MovieDetail']
collection = db['allMovie']
data.reset_index(inplace=True)
data_dict = data.to_dict("records... | [
"got.j@windowslive.com"
] | got.j@windowslive.com |
7598403f0aac7ff32c70afeb447eb0fadf9fd4ce | 6577f7a25d380ee2517ebddf464dc3987ef823b8 | /csSchoolYearsAndGroups.py | 81b1a4c9674096ea9f06f8b821b3a65c3a5c79c6 | [] | no_license | lex-marie790/python-problems | e1421addf3c9eec6b0cbe9a87f856299d7a9905f | a4b1bba69c65e48b4db7515cd767f7d15f7363b1 | refs/heads/main | 2023-02-13T11:47:51.582465 | 2021-01-15T05:57:14 | 2021-01-15T05:57:14 | 329,495,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # Imagine a school that children attend for years. In each year, there are a
# certain number of groups started, marked with the letters. So if years = 7 and
# groups = 4 For the first year, the groups are 1a, 1b, 1c, 1d, and for the last year,
# the groups are 7a, 7b, 7c, 7d.
# Write a function that returns the gr... | [
"lexi.marie790@gmail.com"
] | lexi.marie790@gmail.com |
60b1dc00c275f0d3106eac514a938afd43144d4f | c4a49ef62edb1e7f56b512bdc7192b255ebaf42e | /WindowsFindColors.pyw | c10f3467ffe9462294a54949f154274452d0d423 | [] | no_license | frc6956/LuckyVision | 1cddb367b3f1642c93ceb4c5e5bba384fb7e00c4 | 75f02ba2ea82263e1eedfba5c6d01b212d4f573a | refs/heads/master | 2021-01-09T18:56:27.542261 | 2020-02-22T22:21:22 | 2020-02-22T22:21:22 | 242,419,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | pyw | import cv2
import sys
import numpy as np
def nothing(x):
pass
useCamera=False
# Check if filename is passed
if (len(sys.argv) <= 1) :
print("'Usage: python FindColors.pyw <ImageFilePath>' to ignore camera and use a local image.")
useCamera = True
# Create a window
cv2.namedWindow('image')... | [
"noreply@github.com"
] | noreply@github.com |
d9d0c3f2104138e94a8d7c0221b82b98a2a94322 | 68f52d2effe95573ef84cfa670d9c8e672ae3101 | /plenario/celery_settings.py | 5c98a80652d9fd1ec076d3abafaa0b0a9ce95f5b | [
"MIT"
] | permissive | carhart/plenario | b695d743c17edfd1e47a28b7e44385d602a8c22a | 7631566568d36054ccb018659d44f5464bcf75a5 | refs/heads/master | 2021-01-14T12:47:00.327299 | 2016-06-15T16:47:45 | 2016-06-15T16:47:45 | 60,855,384 | 0 | 1 | null | 2016-06-10T14:51:11 | 2016-06-10T14:51:11 | null | UTF-8 | Python | false | false | 431 | py | from plenario.settings import DB_USER, DB_HOST, DB_PASSWORD, DB_PORT, DB_NAME, \
REDIS_HOST
BROKER_URL = 'redis://{}:6379/0'.format(REDIS_HOST)
CELERY_RESULT_BACKEND = 'db+postgresql://{}:{}@{}:{}/{}'.format(DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME)
CELERY_IMPORTS = ('plenario.tas... | [
"Engler.Will@gmail.com"
] | Engler.Will@gmail.com |
d485d10983ebf1257c6553add7157943636c63da | 9d51780b9e833adc295715f99f11f59750c7274c | /app/migrations/0006_auto_20190321_2014.py | db6c49ea24e7c61b28e89bb4890e8964508a37c8 | [] | no_license | dimerick/BOSProjectCMS | d835081aaad25070d00907d680ce3501e573f6be | b30b76aa797c526d21dbc172e0ed929358fd20e2 | refs/heads/master | 2022-12-12T18:21:42.124876 | 2019-05-18T16:51:12 | 2019-05-18T16:51:12 | 177,500,689 | 0 | 0 | null | 2022-12-08T01:42:54 | 2019-03-25T02:32:24 | CSS | UTF-8 | Python | false | false | 1,703 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-22 01:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0005_slide_position'),
]
operations = [
migrations.AlterField(
... | [
"ericksaenz@outlook.com"
] | ericksaenz@outlook.com |
d35492a1c8282debfabb12b8b1a4284b2db9d836 | e90c8fb25aabcd79171558aee384b59f74f35104 | /server.py | 66311d12dade8d31a0de0d62a1eab495de0f1a60 | [] | no_license | bigdatasciencegroup/ackeras | 2d42eb3078477d30a46be3a26852c220d2995f34 | fac51126ded77ea09ac8c26f0b4179a4d944ff79 | refs/heads/master | 2022-02-28T21:54:26.220978 | 2018-09-10T08:06:16 | 2018-09-10T08:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | import csv
import webbrowser
import pandas as pd
import json
import pdb
import asyncio
import time
from multiprocessing.pool import ThreadPool
import io
from flask_jsonpify import jsonpify
import zipfile
from datetime import datetime
import uuid
from flask import Flask, make_response, request, render_template, make_re... | [
"andrea.titton.ext@accurat.it"
] | andrea.titton.ext@accurat.it |
b03f581a46d5ad2bb280180304cbfdbf3d6d0a21 | ed867248cc831964d854b31f4d698a2e3bade6fb | /sorting_project.py | 55dccf760c445b29381dbf88b4d55c7d5dca0e69 | [] | no_license | Adtsw/Python_DS | 902f9dd9209757318379894532e1c8c1ace01477 | d290a79676f673118e0fef34d54f30db56ee679c | refs/heads/main | 2023-03-22T21:07:29.082260 | 2021-03-20T06:29:54 | 2021-03-20T06:29:54 | 349,646,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | name = input("Enter file:")
if len(name) < 1 : name = "mbox-short.txt"
handle = open(name)
hoursList = list()
hours = dict()
sortedHours = dict()
for line in handle:
if 'From ' in line:
words = line.split()
time = words[5].split(':')
hoursList.append(time[0])
#print(hoursList)
for hour i... | [
"noreply@github.com"
] | noreply@github.com |
21ec63ff2a89745ae1a651510e6548a20ee42905 | 91888f868d8f63ed9c8b3bb9f3453b1d7afdbc87 | /self.py/unit4/q4.2.2.py | 2aa9e7c67d751aa9978b529621a6d0cb42878418 | [] | no_license | Difepay/MagshimimYear1Answers | b4a48efde0691f34032acfc736de17cdffacbf62 | 9c7da3cc2209fa3665c932a8f1cd8bca40d31d0a | refs/heads/master | 2023-07-01T18:31:22.389281 | 2021-08-02T20:54:55 | 2021-08-02T20:54:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py |
word = input("Enter a word: ").lower().replace(" ", "")
if (word == word[::-1]):
print("OK")
else:
print("NOT") | [
"plonybenplony.anonymous@gmail.com"
] | plonybenplony.anonymous@gmail.com |
627c6a5451cabbe4196358de1a4cb1e67e428a7d | 11967055a6fd4a2c6690fa6e5949b89755deeb2e | /Environment.py | 9f4a4b2bf360873929bcfb8ec179ef7bdba8bede | [] | no_license | anurkalem/CS545-Assignment3 | 09cb2266492b01824375257c92692b4c4cdfee01 | 5362a4435b3af909476ebc36fe0dd74d7385888b | refs/heads/master | 2022-01-09T23:02:23.864661 | 2019-05-25T13:15:11 | 2019-05-25T13:15:11 | 187,263,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | from CollusionStrategies import *
import pygame
import parameters
import os
import pickle as pkl
import numpy as np
from Paddle import Paddle
from PaddleStrategies import *
import matplotlib.pyplot as plt
import datetime
from Ball import Ball
import parameters
import pygame
"""
Structure is a bit complex, so a quick t... | [
"anurkalem@gmail.com"
] | anurkalem@gmail.com |
75868ac09b7d6e4d8255e0b93f148a2f177471ec | 834adffac69dd006d5b449d5515c62a4315d09b0 | /oop/blackjack/game_loop.py | 80b20dacdafba39129a6d09faad009fcb7113692 | [] | no_license | gabsw/LearningOOP | 65427ea2c8bbfc25c534dd64a57cce3e5bff5ccb | e7470f22947a02f697f36c5fc5434b051e18a860 | refs/heads/master | 2020-04-07T03:09:56.724166 | 2018-11-18T11:04:31 | 2018-11-18T11:04:31 | 158,005,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,164 | py | from oop.blackjack.mechanics import GameMechanics
from oop.blackjack.messages import *
def play_blackjack():
# Ask player for their name and store it
player_name = player_name_prompt()
# Ask player for amount of money in the pool
player_pool = initial_pool_prompt()
# Create two instances for t... | [
"sw.gabrielasantos@gmail.com"
] | sw.gabrielasantos@gmail.com |
099d27d6d96e3f587f94c59d08c6ede9472002b3 | 41b7419badacb52555371d6b4643817de041fdb5 | /main.spec | 88b08a4ee7b31c30d7817a8c4fe04753d8edc5d6 | [] | no_license | MaximGulyaev/BlockChainKazan2017 | 6a7ddf9284240da33d19fc3e2860d7a992e13818 | 2791306dfbfaca7efd8dc0632a0b2a0d4f000826 | refs/heads/master | 2021-08-29T16:44:40.305280 | 2017-12-14T10:36:51 | 2017-12-14T10:36:51 | 113,784,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Proj\\BlockChainKazan2017'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_re... | [
"max_rusz@mail.ru"
] | max_rusz@mail.ru |
b925995fae4cc25ac79212efcf0f5995bb682ec3 | 1f5efa5e9429881e49e9a0997bf6ca50370c45e7 | /eticket/forms.py | f7273340d1d74e87b5891d2940763a4ae0a008c1 | [] | no_license | ahmedalhakeem/Ticketsystem | d20230cb7f3d40911c73772807fce82c6456430f | 4c7ec0210500431fb4f3a98befc29fd690058d15 | refs/heads/master | 2023-03-07T09:57:23.598803 | 2021-02-21T18:40:01 | 2021-02-21T18:40:01 | 339,843,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | from django import forms
from django.forms import ModelForm
from eticket.models import User, Department, Section, Tickets
class LoginForm(forms.Form):
username = forms.CharField(label="", required=True,widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Enter your username',}))
password = f... | [
"ahmkam2011@gmail.com"
] | ahmkam2011@gmail.com |
0d07714134ac6449e78e4d248375b431f66f16e0 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/kubernetes/client/models/v1_quobyte_volume_source.py | 52fef80de7b4ac6de368f6c4785f8c2a3414d71f | [
"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 | 6,587 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
143553a0d5269cfd74192a308a56e1156e85c34a | b8fe795d512ad478bcd38f10b4d2a4ca0aba6e4c | /commands/projectModel.py | a7ff2f5887676527c012f9f50b6e65d88c2ebad6 | [] | no_license | RenatoCesarF/twitchBot | 1dad550159b9148154dbfda8702338b858f810f0 | 76f6c9e136bfe012b6c4999cd16d6da68cef3b1b | refs/heads/main | 2023-07-16T20:35:53.204537 | 2021-08-25T11:44:22 | 2021-08-25T11:44:22 | 365,863,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | async def projectModel(self, ctx, name, link):
await ctx.send("➡ {} repository:{}".format(name,link))
| [
"re.fbarcellos@hotmail.com"
] | re.fbarcellos@hotmail.com |
cecbd97b7b4306729cada187f1c66a3d05522302 | e742bcc09163e418a189fab9a8d663c8f8326505 | /2/day2-2.py | cb0e60df1c9761a2baa53ef6c2f8383bc4569dc3 | [] | no_license | chase1745/AdventOfCode2019 | 618cf9f1a9e09584faa6fda2ad6300eaff4e9ad8 | 92f4d6aabd471efb89638baa7c8c874c576adf31 | refs/heads/master | 2020-11-29T18:06:22.792315 | 2020-01-05T04:03:55 | 2020-01-05T04:03:55 | 230,184,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from Intcode.Intcode import Intcode
intcode = Intcode('2/input.txt', False)
search = 19690720
for i in range(100):
for j in range(100):
val = intcode.run((i, j))
if val == search:
print("Vals: {}, {} = {}".format(i, j, 100*i+j))
exit()
| [
"chasemcd1745@tamu.edu"
] | chasemcd1745@tamu.edu |
76825a4eb5bf430502d73b74f84a5492df4cc0e0 | 8becf29509014971aa5c36478be5327126dd396f | /benchmarking/bench/common/dataset.py | bd8504ff92b759e6ab364c504178b713bec0c829 | [] | no_license | vla5924-practice/gpu-algorithms-optimization | afa0d82ba92606f12da80ecb381c02125f2e16b3 | 17b0838c4966ebfb8ba373da4bb0d6e49f1a07b7 | refs/heads/main | 2023-08-06T02:37:48.934323 | 2021-10-02T17:05:57 | 2021-10-02T17:05:57 | 397,330,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import numpy as np
import os
def open_arff(filename: str) -> np.ndarray:
import arff
arff_data = arff.load(filename)
data = np.array(list(arff_data))
# arff_data = arff.load(open(filename, "r"))
# data = np.array(arff_data["data"])
# from scipy.io import arff
# arff_data = arff.loadarff(fi... | [
"vla5924@gmail.com"
] | vla5924@gmail.com |
60ea3be9d99fc200bf41fe06b19b47a42f359607 | af69545e17dc107a037099b9546a6ec29d27abc0 | /type_map_gen_zip.py | da8628bc7a53122ba69ca518c5af55e69ba33d44 | [] | no_license | ankawm/NowyProjektSages | 2ebc54e4d81c5813144ec7c2cbbcc1425cce7189 | f721a619ce8c6b74de523fe7e8238e74a5b02d5d | refs/heads/master | 2023-08-14T04:57:57.551068 | 2021-09-12T09:26:26 | 2021-09-12T09:26:26 | 405,317,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | """
* Assignment: Mapping Generate Zip
* Required: yes
* Complexity: easy
* Lines of code: 1 lines
* Time: 3 min
English:
1. Define `result: dict`
2. Assign to `result` converted `DATA` to `dict`
3. Use `zip()`
4. Run doctests - all must succeed
Polish:
1. Zdefiniuj `result: dict`
2. Przypisz ... | [
"56233568+ankawm@users.noreply.github.com"
] | 56233568+ankawm@users.noreply.github.com |
3d9572d0fc2c5757ca4bd482a3f8d0ec37d672e4 | cecc126aabcd046007aa38b4385ecf628264bd40 | /uraeus/nmbd/cpp/codegen/printer.py | 9a1285a70aa12b6289ce8409cae91eb3d0a36b40 | [
"BSD-3-Clause"
] | permissive | zhanzhichao/uraeus_nmbd_cpp | 6af2a8a2bff86f78dc086e6b4e3c8478a3fa8691 | 09c4de0415e7eeb53268e2dbfc9349674305130f | refs/heads/master | 2023-08-15T07:42:14.678121 | 2021-01-29T14:26:36 | 2021-01-29T14:26:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,129 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 3 21:41:36 2019
@author: khaledghobashy
"""
# Third party imports
import sympy as sm
from sympy.printing.cxxcode import CXX11CodePrinter
class printer(CXX11CodePrinter):
def _print_ZeroMatrix(self, expr):
_expr = 'Eigen::MatrixXd... | [
"khaled.ghobashy@live.com"
] | khaled.ghobashy@live.com |
61073099016087b3db3e39326f0450adc38c2f07 | 3b0e17732f9b0e082f8e95cf36ee21930187907a | /examples/google-docs/google_docs_example.py | 71c74c899ac64149a742e2a5fa82de3fad0e0297 | [] | no_license | zenbe/pyshareflow | 8c4ade861c392057f47e214bfc09a0a8bf4b15cd | 1036a9cc188e67a84404675f601c2a6241cfa040 | refs/heads/master | 2020-05-30T21:15:59.628254 | 2009-10-26T17:40:40 | 2009-10-26T17:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | #!/usr/bin/env python
#
# Uses the GData API to post a document to Shareflow
#
##
from datetime import datetime
from optparse import OptionParser
from xml.utils import iso8601
import gdata.docs
import gdata.docs.service
import gdata.spreadsheet.service
import os.path
import pyshareflow
import sys
import tempfile
### C... | [
"tom@zenbe.com"
] | tom@zenbe.com |
acfaee88fd5930d05e23e2b881fb591112e14a8a | abaa004b41f63aa489be12a6e4be8f92ef2ef6d3 | /mcred/mcred/wsgi.py | 26961adf6a84faf2e27608df4342bc50a52c5ba2 | [] | no_license | vshaladhav97/django_practise_projects | 30dcc8dd909626c1d624d9c5895fc90ad55c79d0 | 83455c50e2ee910f03db47fbe1420d1cbd7eb292 | refs/heads/master | 2023-03-28T14:08:08.244694 | 2021-03-26T03:56:56 | 2021-03-26T03:56:56 | 351,655,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for mcred project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"adhavv0@gmail.com"
] | adhavv0@gmail.com |
a7f5239914d25e60fde6bf4ad74825ca1a302698 | 360ae1188ad79e71ccc72da0b9ae709bda678f91 | /ryu/lib/xflow/netflow.py | f41a9f57341ddbaf6c3a1e32928888653be34be0 | [
"Apache-2.0"
] | permissive | faucetsdn/ryu | 47b3523e7ccb381f3bdf2877a3f9f01cb1876054 | d6cda4f427ff8de82b94c58aa826824a106014c2 | refs/heads/master | 2023-09-05T06:37:21.991029 | 2022-06-09T23:09:40 | 2022-06-09T23:09:40 | 2,945,007 | 385 | 215 | Apache-2.0 | 2022-11-13T10:50:25 | 2011-12-09T03:43:50 | Python | UTF-8 | Python | false | false | 4,009 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
#
# 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... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
ec36122d453d9ce607461d1a1df5d104a3b69df0 | 16fbad13b8a422a7d5a50a8b4f12326a5313b7f5 | /week0/2-Python-harder-problems-set/problem34_test.py | db609ef1c2b686d90746f5bca673c82c7c4537ed | [] | no_license | dsspasov/HackBulgaria | 330346314ac50474547d552b5c277f2e05d198af | 90696b2ad1f08e9a746f1f31cd07fbee72863415 | refs/heads/master | 2016-09-03T07:23:20.615166 | 2015-02-24T19:00:17 | 2015-02-24T19:00:17 | 25,209,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #problem34_test.py
import unittest
from problem34 import simplify_fraction
#setUp(self):
#tearDown(self)
class TestSimplyfyFraction(unittest.TestCase):
def test_division_by_0(self):
self.assertFalse(simplify_fraction((1,0)))
def test_if_numerator_is_zero(self):
self.assertEqual((0,1),simplify_f... | [
"dsspasov94@gmail.com"
] | dsspasov94@gmail.com |
42c4f568485bd573e0053ef0229dd4f48ccf9d3a | 7bc7ec81613591568b7cf6a3054b11d072180e49 | /application/encrypter/randomkey.py | 43fde803062ce1ada887c2c3766f7629c22913a4 | [] | no_license | roklem314/distributed_app | 0ce54a050e793f5f9b00b64ec1ef4c2497085f8f | b8c3e2d86ee6a5dad4a0eeb033bfbe2a3f815c3c | refs/heads/main | 2023-02-20T22:22:41.742572 | 2021-01-22T11:44:57 | 2021-01-22T11:44:57 | 316,968,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py |
from application import app
import random
import string
import os
import binascii
def generator2():
gener_key = binascii.b2a_hex(os.urandom(32))
key = binascii.unhexlify((gener_key))
return key
def byte_to_binary(n):
return ''.join(str((n & (1 << i)) and 1) for i in reversed(range(8)))
def hex_to_bin... | [
"lab.galom@outlook.com"
] | lab.galom@outlook.com |
29c9079a9b7ebb7e1dbf22924c6d9187a3a89105 | 14b0dd70c4219414acde27d87137fba7890d2874 | /virtual/bin/symilar | a0dfad980ed02ef4c7a772a546e6ddc0c40cde6c | [] | no_license | cherucole/Twitter-Sentiment-Analysis | 99d23976646f8bd30fcb46b91dfa198c215cd076 | 026c75d772c7654e7fa043bb550e17ed3675df7b | refs/heads/master | 2022-12-19T01:42:48.835992 | 2018-11-15T12:17:29 | 2018-11-15T12:17:29 | 156,202,314 | 6 | 0 | null | 2022-12-08T01:16:36 | 2018-11-05T10:48:55 | Python | UTF-8 | Python | false | false | 279 | #!/Users/cherucole/Desktop/Django/DjangoIP/sentimental2/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"cheruyotcheruyot@gmail.com"
] | cheruyotcheruyot@gmail.com | |
2fea77c66e1c16d546476ad3c3e4c5872e11f33a | 6f28d021186c5abb1f35940d659db2e53e7a43b4 | /train_and_test.py | 9a54fb31ec6e509132ce6b5101e4d76884335563 | [] | no_license | mcai/PythonTraining | 88d81a83ca6b5bb2995d1d84c3049a0caefcdc62 | fbc1b7452858eb1713b93ae2b3a0323f1c9f1f00 | refs/heads/master | 2021-09-02T12:02:02.803198 | 2018-01-02T12:19:50 | 2018-01-02T12:19:50 | 111,534,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from neural_network import NeuralNetwork
import numpy as np
def train_and_test(train_data, test_data, num_inputs, num_hidden, num_outputs, learning_rate, num_epochs):
nn = NeuralNetwork(num_inputs, num_hidden, num_outputs, learning_rate)
print('Training..')
for epoch in range(int(num_epochs)):
f... | [
"min.cai.china@gmail.com"
] | min.cai.china@gmail.com |
92f1518267d637703c7a7e2205d182907358658a | a35d07b11f013a26901942f730d4b720f4e27355 | /warmup1/near_hundred.py | 5cb06a22dcabd67a5cd1a9ba4cf2f360c62fd633 | [] | no_license | PMiskew/codingbat_solutions_python | 7cbbf293fb6b230e274a8cee373a2222a5a27e8d | 6e62fd0080c2a9bcd59fd4f803cc7966a2cb88d1 | refs/heads/master | 2022-11-13T13:24:53.078833 | 2020-07-14T18:38:06 | 2020-07-14T18:38:06 | 255,197,455 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | '''
QUESTION:
Given an int n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number.
near_hundred(93) → True
near_hundred(90) → True
near_hundred(89) → False
'''
def near_hundred(n):
#Approach 1:
'''
if (n < 100):
if 100 - n <= 10:
return True
... | [
"paul.miskew@gmail.com"
] | paul.miskew@gmail.com |
3262a9aae0eca54f26f482a58a5c1b4c27d466ef | f39439548beba34b26f2e0cb40d9bcdfc5c85c71 | /runtag/bootcamp.py | ee077f8e2a9e0ac5ddee6ac10f77e65dfb76a5a6 | [] | no_license | willook/ape-x2 | 0a7b813c59efc572b3a5b0c3b63d738bbec2a8e1 | b299e75d20746f4d83ee7227fad9d8d3ef21a192 | refs/heads/master | 2023-02-21T15:41:27.241782 | 2021-01-21T06:37:01 | 2021-01-21T06:37:01 | 331,537,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from .entities import Commander, Subordinate, Squad
class Bootcamp:
def __init__(self, grid):
self.grid = grid
def recruit(self, name, number_of_subordinates=1):
squad = Squad(self.grid, name)
squad.assign(Commander(self.grid))
for index in range(number_of_subordinates):
... | [
"you@example.com"
] | you@example.com |
22c15be1586d632b333fa96826a4638948b75d8e | 8a102033a266d39128e4b64aa0780cf67055e196 | /15552.py | 0bfab577f1d44f67f2be860eabace0e46000ab0d | [] | no_license | yuseungwoo/baekjoon | 4dec0798b8689b9378121b9d178713c9cf14a53f | 099031e2c4401e27edcdc05bd6c9e6a558b09bb9 | refs/heads/master | 2020-09-03T15:25:40.764723 | 2018-10-08T02:35:27 | 2018-10-08T02:35:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # coding-utf-8
import sys
count = sys.stdin.readline().rstrip()
count = int(count)
for _ in range(count):
numbers = sys.stdin.readline().rstrip().split()
number = sum(list(map(int, numbers)))
number = str(number) + '\n'
sys.stdout.write(number)
| [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
97a6233e8b2f9e35906ff1f69eb5aaf35edee9c6 | 67fe3c42c198d092f92bd36dd5c42acacaab8888 | /tethysapp/waterwatch/public/v4.3.4/apidoc/ol.events.condition.html.py | 584ba4cc1cfdbc876314009945dcffa23c83fc1a | [] | no_license | ablaye/wendou | c69de45124e27a8238c880e0ca2ed91596e32dc7 | 10638700a2a416778407c2fe3f08ffe48da85cc2 | refs/heads/master | 2023-04-22T01:21:41.948075 | 2021-02-04T10:20:58 | 2021-02-04T10:20:58 | 335,915,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677,438 | py | XXXXXXXXX XXXXX
XXXXX XXXXXXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX XXXXXX XXX X XXXXXXXXXX XXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXX
XXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX... | [
"satigebelal@gmail.com"
] | satigebelal@gmail.com |
478c19b2bc96038e528fff2c4727fd3be00034ff | bb472816abc81206309bd2033857feb27f810cef | /app/utilities/utils.py | fae7e62957890e6c251f0d9f90895125de2d750c | [] | no_license | PatrickMugayaJoel/SendIt | 2c24480a251359bbba55359207767e30e975f37d | b58eba6929bada0376560fc33f8e367b4cd2cdc3 | refs/heads/develop | 2022-12-20T00:32:27.909641 | 2018-12-21T04:26:07 | 2018-12-21T04:26:07 | 155,570,081 | 0 | 0 | null | 2022-12-08T01:17:37 | 2018-10-31T14:22:07 | Python | UTF-8 | Python | false | false | 176 | py |
def serialize(objt):
return objt.__dict__
def serialize_list(mylist):
listtwo = []
for item in mylist:
listtwo.append(serialize(item))
return listtwo
| [
"43677190+PatrickMugayaJoel@users.noreply.github.com"
] | 43677190+PatrickMugayaJoel@users.noreply.github.com |
16c0b4399de4008fbc67c8bf89de251fd63bb3e6 | 43359431f206177f8e4c050d63e68f841340f3af | /player_class.py | 6728234895ee04286e9be93e6d16da6075f3dd54 | [] | no_license | Honchar007/PacPythonLab | 0ee02f3e71bd5a67b50debefeb8a08422b64e8c5 | 8f045beb52ebda0b07ab638d4db9344ef7575ff6 | refs/heads/main | 2023-07-19T13:13:49.145871 | 2021-09-15T10:52:21 | 2021-09-15T10:52:21 | 404,141,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | from settings import *
import pygame
class Player:
def __init__(self, app, pos):
self.app = app
self.grid_pos = pos
self.pix_pos = self.get_pix_pos()
self.direction = vec(1,0)
self.stored_direction = None
self.able_to_move = True
def update(self):
if self... | [
"54860596+Honchar007@users.noreply.github.com"
] | 54860596+Honchar007@users.noreply.github.com |
e64490212481c3ca819c1a21121b4e1a54c163d2 | 0d2cafa1ee5ca14d33b5010ae7ee087ad9eae6af | /scap1/scap1/doctype/todo1/test_todo1.py | 664d1dcd241a8dca8a992c917fb3dc7559bca0bc | [
"MIT"
] | permissive | komalk1992/scap1 | 81802fefcb46b864f5b8965bc65723e247395577 | 8b82c2dc39ec22ff8544d6668be517b76d24473a | refs/heads/master | 2023-04-01T13:45:18.544063 | 2021-04-10T13:31:05 | 2021-04-10T13:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, sprics and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestToDo1(unittest.TestCase):
pass
| [
"nishchay.garala@gmail.com"
] | nishchay.garala@gmail.com |
bca5fc2413a7fbbc23c9c9871f19b71b1e1b866b | 3ef051f38fc1f5c3ed78567a7f0e5f9130f35fcb | /rendezvous/core/views.py | ce89ee222526f5eeb0ece9334a7a486e35264f0a | [
"MIT"
] | permissive | danifss/sar-1516-proj-g1 | c6e122955421e52ae7233d7f5636561c0faedd00 | 173bbc7fe095260b9dde1a91e5fe1fab2e9b578c | refs/heads/master | 2020-12-29T02:32:38.689666 | 2017-01-23T02:00:03 | 2017-01-23T02:00:03 | 53,209,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,424 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext, loader
# from django.views.decorators.csrf import csrf_protect
from .models import User, Service # Broker
from .forms import loginForm # addBrokerForm
from CryptoModule import *
... | [
"daniel.silva@av.it.pt"
] | daniel.silva@av.it.pt |
92c04a3a2b997164ae62291b95496ef087302cee | 6340a5c32de34e91b3bd4cbbe9f3f770b076bee6 | /vectorizer.py | dc31eea86b990f1da1ad7c35d6b3b8e99910e13b | [
"MIT"
] | permissive | grahammorehead/chinese_segmentation | c520115e9df8df8f8ac3f067ebafc5d1753fcb90 | 126b48ddb7e9880280681a022c203a5f4eb86638 | refs/heads/master | 2022-12-19T05:53:12.693302 | 2019-03-24T18:13:16 | 2019-03-24T18:13:16 | 177,372,414 | 1 | 0 | MIT | 2022-06-21T21:48:51 | 2019-03-24T04:56:14 | Python | UTF-8 | Python | false | false | 9,920 | py | """ vectorizer.py
Objects to manage the vectorization of (mostly) chinese characters
"""
import sys
import os, re
import time
import numpy as np
import shutil
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import unicodedata
from gmutils import err
import gmutils as gm
from ... | [
"gm@pangeon.com"
] | gm@pangeon.com |
37cb5f11bdcd8f63dd000d2f706336c3c37ee0ec | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/sensu/sensu_go/tests/unit/modules/test_role_binding_info.py | 6dc780d18f9e93a04704512448a963a692889b1f | [
"GPL-3.0-only",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 1,977 | py | from __future__ import absolute_import, division, print_function
__metaclass__ = type
import pytest
from ansible_collections.sensu.sensu_go.plugins.module_utils import (
errors, utils,
)
from ansible_collections.sensu.sensu_go.plugins.modules import role_binding_info
from .common.utils import (
AnsibleExitJs... | [
"sifang@cisco.com"
] | sifang@cisco.com |
045edd1c218f527ab6ff454da5507798a547fdd8 | 32cb84dd41e4be24c065bb205f226f9b121a6db2 | /cconf/migrations/0001_initial.py | f89cbce98d36e32d7722b4cebcb2e3294a10711b | [] | no_license | InformatykaNaStart/staszic-sio2 | b38fda84bd8908472edb2097774838ceed08fcfa | 60a127e687ef8216d2ba53f9f03cfaa201c59e26 | refs/heads/master | 2022-06-29T11:09:28.765166 | 2022-06-13T21:56:19 | 2022-06-13T21:56:19 | 115,637,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2019-10-05 08:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contests', '0005_submission_auto_rejudg... | [
"hugo@staszic.waw.pl"
] | hugo@staszic.waw.pl |
4cd0f95a0aef194e96050b7c1456592085e156d5 | f3d2b8aef2e5b6ae5e5d64cc7e80d92a1160c16a | /q1overlapcourses.py | ff007b2792c85a8a10a8eb463d4d1ba2a0f7d1e5 | [] | no_license | johnnyhuang97/practice-problems | 2fcbb0929b5aae0e388f1b1b31776807109fbe81 | 7ffc76193b9ca897de2d55282683a2b871fc9ff4 | refs/heads/master | 2023-03-05T06:54:46.321685 | 2021-02-19T04:13:56 | 2021-02-19T04:13:56 | 337,901,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | from itertools import combinations
# PART1
# get common courses taken by all possible pairs of students
input1 = [["58", "A"], ["94", "B"], ["17", "A"], ["58", "B"], ["17", "B"], ["58", "C"]]
def findpair(input):
mp = {}
courses = set()
students = set()
for student, course in input:
mp.setdefault(student, ... | [
"johnny.h1997@berkeley.edu"
] | johnny.h1997@berkeley.edu |
8c0b7a66053ff8a78c350d3e918291d75673b78a | b11d97bf5731bf6faeef14814292d1aff6866e3a | /seq2annotation/server/tensorflow_inference.py | 9d6ce6042c4c74192440f99d7b707623aee40e82 | [
"Apache-2.0"
] | permissive | tyc1922/seq2annotation | 2e2193aff1281242c2b66da8cbe27571e2c7f3fc | c161099570be544881c14105f4392d764d6d8247 | refs/heads/master | 2022-04-21T19:14:03.117606 | 2020-04-25T09:24:02 | 2020-04-25T09:24:02 | 259,069,353 | 1 | 0 | Apache-2.0 | 2020-04-26T15:46:48 | 2020-04-26T15:46:48 | null | UTF-8 | Python | false | false | 2,370 | py | from typing import List
import keras
from tokenizer_tools.tagset.NER.BILUO import BILUOSequenceEncoderDecoder
from tokenizer_tools.tagset.offset.sequence import Sequence
from tensorflow.contrib import predictor
from tokenizer_tools.tagset.exceptions import TagSetDecodeError
decoder = BILUOSequenceEncoderDecoder()
... | [
"u1mail2me@gmail.com"
] | u1mail2me@gmail.com |
90060297c37f8438877900ed28743d74da252c12 | 70e77b4e49fa1be07a89aa9370aa8069f4dd17cc | /imb_manager/asgi.py | d88f76b423017178dd9fba08e2652cdcf0103e46 | [] | no_license | rosoba/imb_manager | 7a542da0fb032839dcabd3a7d9073f69616cfaeb | 13f277cb5170ef17deebb2e4305c99f73421e2a2 | refs/heads/master | 2023-01-31T04:16:56.526477 | 2020-12-12T14:52:03 | 2020-12-12T14:52:03 | 320,850,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for imb_manager project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
b1ad6df8c1fd9c67554b4f8f8f19ab2cc90e7283 | 5dd190725aaaeb7287d935b3c99c20480b208816 | /official/vision/keras_cv/metrics/iou.py | b6391a61c7d3cbf38407a26b17b068ba77b3fb66 | [
"Apache-2.0",
"MIT"
] | permissive | DemonDamon/mask-detection-based-on-tf2odapi | 32d947164fb54395b9e45368c0d4bcf3a6ea1c28 | 192ae544169c1230c21141c033800aa1bd94e9b6 | refs/heads/main | 2023-05-13T05:05:44.534885 | 2021-06-08T05:56:09 | 2021-06-08T05:56:09 | 369,463,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,723 | py | # Copyright 2021 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... | [
"noreply@github.com"
] | noreply@github.com |
f2ffd6daa81e716f2add6b18923af0c871bbbfee | 8486a8342312585227ced1505ef0ed09d5edb9fa | /2_Python/Week1/CompareLists.py | 83bb6ad7407358f236f2bb063378129a5fa6b07f | [] | no_license | nickchic/Coding_Dojo | acef3a8d33b4ab99f6b16738589c03699b58ea94 | 99c2047fe33862aa62b0c61875e5573b3149aaa4 | refs/heads/master | 2021-01-02T08:59:27.423365 | 2017-11-08T20:33:12 | 2017-11-08T20:33:12 | 99,114,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | list_one_a = [1,2,5,6,2]
list_two_a = [1,2,5,6,2]
list_one_b = [1,2,5,6,5]
list_two_b = [1,2,5,6,5,3]
list_one_c = ['celery','carrots','bread','milk']
list_two_c = ['celery','carrots','bread','cream']
def compareLists(x,y):
if not len(x) == len(y):
print "The lists are different"
else:
for id... | [
"chicirda2@gmail.com"
] | chicirda2@gmail.com |
df08f4b20d71c116a15ba496bdbeb05f4f889b2b | 0f7467f0bed31fd64bb4573a5a56f316621793ac | /cascade.py | f30fc8ec8b5e7aad7bd257f02578f5443318245c | [] | no_license | brian403502/HOGSVM | b7cfacc7810f4e48481bc7e79ea08c13662eb2f6 | 666c3507620eed4e6a6076df4e83989ef21bfc3f | refs/heads/main | 2023-06-17T09:00:47.077771 | 2021-06-19T11:25:42 | 2021-06-19T11:25:42 | 373,986,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,406 | py | from itertools import compress
from sklearn.svm import SVC
from skimage import img_as_ubyte
import numpy as np
import cv2 as cv
import random
class WeakClassifier:
def __init__(self, size, position):
# single classifier instance (1 size, position HOG)
self.size = size
self.posit... | [
"brian403502@naver.com"
] | brian403502@naver.com |
e93b9d92de059a9abc9d88dada60ade25e959edb | 3804ff9274fe62d92f7f1cb65a5e7ee572e30ada | /projects/serializers.py | 3042950e4bad1a34b5f6446d0983f1f1b01216a9 | [] | no_license | hebs87/PortfolioBackend | eb9450cbe87af478d9714482635d40e0dfb29798 | 27233353045c0f40cbd9de242a77ca0656f7327f | refs/heads/master | 2023-04-18T04:51:13.523443 | 2021-04-06T19:24:21 | 2021-04-06T19:24:21 | 353,143,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from rest_framework import serializers
from .models import *
class ProjectsSerializer(serializers.ModelSerializer):
"""
Serializes the Projects model and returns data as JSON
"""
class Meta:
model = Projects
fields = ('id', 'name', 'description', 'image', 'link')
class MessagesSerial... | [
"sunnyhebbar@hotmail.co.uk"
] | sunnyhebbar@hotmail.co.uk |
b264f57975c337acdf4e06988cd825d729dd38b5 | 72cee097005539f1860cd2381d12108236741a03 | /eagle-external/hadoop_jmx_collector/lib/kafka-python/test/service.py | dcd3e68bfe9f2fb655573be281650859e0e2f0bf | [
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | phenixmzy/apache-eagle-0.5.0 | f43247ff9c2aea85d2c066794ef5bb00a093f839 | 0598e55d027083838c013b9a7171c0d72a7072a1 | refs/heads/master | 2022-11-22T18:28:13.891207 | 2019-08-19T03:02:25 | 2019-08-19T03:02:25 | 182,820,976 | 0 | 1 | Apache-2.0 | 2022-11-15T02:57:01 | 2019-04-22T15:58:42 | Java | UTF-8 | Python | false | false | 3,249 | py | import logging
import re
import select
import subprocess
import threading
import time
__all__ = [
'ExternalService',
'SpawnedService',
]
class ExternalService(object):
def __init__(self, host, port):
logging.info("Using already running service at %s:%d", host, port)
self.host = host
... | [
"wingmazhiyong@gmail.com"
] | wingmazhiyong@gmail.com |
f8ee8e8388a2037bba9a3861de740e1dfea5c1aa | 95a6b5647cbdc2bf6ed1d188f0b05705a9505dc7 | /leetcode-py/leetcode063.py | 15046585dfef98d14c124f80458742adaf539b80 | [] | no_license | lyiker/leetcode | 6b51f751ff38dbae9185d159fe399badfb72c7f8 | ca1dbe39ff148d9de8511e609a5de908b97abc5a | refs/heads/master | 2022-02-08T06:31:32.815773 | 2019-07-03T15:30:45 | 2019-07-03T15:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #dynamic program & O(n) space
class Solution(object):
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
if not obstacleGrid:
return 0
m, n = len(obstacleGrid), len(obstacleGrid[0])
grid = [0 f... | [
"aki_yikang@163.com"
] | aki_yikang@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.