blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c40abb6da405f4631f1f3f521c7a9f033eb2e383 | 9dbd22e3f7836f28bf9b2d91d8982561e008399f | /Introduction/Super Easy/12279 - Emoogle Balance.py | 9193b39e45fee60d4a6e7fb651af40a11accdf34 | [] | no_license | prachi-ag/UVa-Online | 052a657c85eeed23bce65ca9a8490d08af76d13d | 07fc942309083b8825f03ae861555d64ba6507a9 | refs/heads/master | 2020-05-25T13:41:41.120534 | 2019-05-28T08:15:28 | 2019-05-28T08:15:28 | 187,827,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | k=1
while(True):
s=int(input())
if s==0:
break
l=list(map(int,input().split()))
z=l.count(0)
n=s-z
print("Case",str(k)+":",n-z)
k=k+1
| [
"noreply@github.com"
] | prachi-ag.noreply@github.com |
f010a63cca828d51370d53cd40ce5640189aabbb | 018a1d8d59c00f69b0489ce05567a2972c335ff7 | /2017_May23/coroutines/cycle.py | 65df6450f1827e96c6f22582f24f301dd2ce357e | [] | no_license | singhujjwal/python | f0127b604e2204a02836c95d89ee4903f760d48c | 4fb4b34a318f093bd944cd70d7f0d69dd7dfef6e | refs/heads/master | 2021-09-20T15:35:13.389400 | 2021-09-03T06:39:58 | 2021-09-03T06:39:58 | 92,157,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py |
a = [11, 22, 33, 44, 55, 66, 77]
def cycle(l):
length = len(l)
i = 0
while True:
yield l[i]
i += 1
if i >= length: i = 0
from itertools import cycle
for n in cycle(a):
print n
| [
"ujjsingh@cisco.com"
] | ujjsingh@cisco.com |
fe19cec56fb5cace25d84c81e1d32162f06bdab3 | 57eaed4fa7967af8db6ba5966a49ab5cd6b24019 | /src/client.py | 577901ceba70b4e5071c587eb32310ae8e91e2bf | [] | no_license | Liad31/Ex4_AP_Tester | a7b37a30b344a44b2c7b302e12067b56a059d6bf | 221075afc7b63dd8b4bc0e0ad4aa8857387c78df | refs/heads/master | 2022-12-21T03:43:43.768290 | 2020-09-23T08:13:51 | 2020-09-23T08:13:51 | 296,881,623 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py | import socket
import argparse as ap
def coords(s):
try:
x, y = map(int, s.split(","))
return x, y
except:
print("error in coords")
endl = '\r\n'
parser = ap.ArgumentParser(description="Client To Test Ex4 in Advanced programming")
parser.add_argument("-p", default=8081, ... | [
"Liad3131@gmail.com"
] | Liad3131@gmail.com |
0b251fa7063c54416e2f6a4973c47ec70257923e | 935eb39f48458e2616556bd532b4107bf9e7fe81 | /Working with Templates/assignment 2/check.py | 60275ef0cd55907b01f5b7a61df5f7f200315cc0 | [] | no_license | monishostwal/Flask | fadab49372acff3fc50be48767203b289776e166 | 868e80b46f6318b4bd3eaad16b08ea88150b0b47 | refs/heads/master | 2022-09-30T17:14:55.962632 | 2020-06-05T11:15:21 | 2020-06-05T11:15:21 | 269,092,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from flask import Flask,render_template,request
app=Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/check')
def check():
lower_case_letter=False
upper_case_letter=False
number_end=False
username=request.args.get('username')
upper_case_letter=any(... | [
"monishostwal@gmail.com"
] | monishostwal@gmail.com |
14caffa8be6071c9505cebe5e9099c72e412d5d5 | 09b65d9a3fc2558ec510456d62d7a69cf1f84a13 | /fb_vitbot/models.py | e7135c1a0cfb692db279603d3f0f8576c7af559b | [
"MIT"
] | permissive | rohanchopra/VIT-Chat-Bot | 52a795f34c121b38f7fba797a1a84359f479524f | 76a6d3f83c4f1dcf4beb4a1471fa6272f3d22610 | refs/heads/master | 2021-06-11T00:28:39.317115 | 2017-01-16T11:50:29 | 2017-01-16T11:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django.db import models
# Create your models here.
class Student(models.Model):
regno = models.CharField(max_length=9)
dob = models.CharField(max_length=8)
number = models.CharField(max_length=10)
fb_id = models.CharField(max_length=50,unique=True)
data = models.CharField(max_length=1024)
| [
"09rohanchopra@gmail.com"
] | 09rohanchopra@gmail.com |
e3fdaf03fa65c9d54217dcf32ada50a9726fbe87 | b2ff7365dda9fa9290c2eae04988e3bda9cae23a | /9_two_heap/3.py | b6c07c7f217ae531acf2988c6d11471b6201f86f | [] | no_license | terrifyzhao/educative3 | cd6ccdb0fc4b9ba7f5058fe2e3d2707f022d8b16 | 5c7db9ef6cf58ca5e68bb5aec8ed95af1d5c0f47 | refs/heads/master | 2022-12-26T23:53:30.645339 | 2020-10-10T00:48:22 | 2020-10-10T00:48:22 | 298,991,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from heapq import *
def find_maximum_capital(capital, profits, numberOfProjects, initialCapital):
min_heap = []
for i, c in enumerate(capital):
heappush(min_heap, [c, i])
while numberOfProjects:
numberOfProjects -= 1
while min_heap and initialCapital >= min_heap[0][0]:
... | [
"zjiuzhou@gmail.com"
] | zjiuzhou@gmail.com |
87dc7a0f9f99cbdcd9a0d2caeca2fef857d3fd8e | 2f36422c4e41aeaf1a14e5a32cc50cc54c4da855 | /src/FeatureAnalysis2D.py | 300403505f93487175ec90eb4e894d45020a5552 | [] | no_license | canfkoyuncu/3D_Prostate | 3d99285350a91c4957982014ceb45d027a389b4c | 3128c29a5d042f81681d1421ea78c4ec2dacc8d2 | refs/heads/master | 2023-01-10T21:12:55.219294 | 2020-11-09T22:00:30 | 2020-11-09T22:00:30 | 223,474,545 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | import os
import numpy as np
from scipy.ndimage import label
from skimage.measure import regionprops
from src.OTLS_Options import OTLS_Options
from src.VolumeProcessor import load_volume_from_np
import matplotlib.pyplot as plt
def extractAreaFt4OneSample(datapath):
numberOfSlices = 10
tissue_slic = load_vol... | [
"canfkoyuncu@gmail.com"
] | canfkoyuncu@gmail.com |
4bb0cfac1292cf40d6b9f0e56a8510f7468c46b8 | fa796e894fa1cf234d06012d4f25ca69e07ae9be | /PythonLab2/PythonLab2/PythonLab2Zad1.py | 9d8227d73424b8a79f3bc085720368f16b1b7940 | [
"MIT"
] | permissive | matbocz/kurs-python-pwsz-elblag | 4371b7b6826bfe8bda58927a9824e9df86bd13ab | 47a6f02691dfcffe8de346923099d13ffac4ffa4 | refs/heads/main | 2023-06-26T01:48:08.914440 | 2021-07-26T12:05:07 | 2021-07-26T12:05:07 | 345,121,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import numpy as np
def save_to_file(n, s, k):
x = np.linspace(start=s, stop=k, num=n)
y = np.cos(x)
np.savetxt('zad1.csv', y)
return x, y
x, y = save_to_file(10, 0, np.pi)
print("X array:\n{0}\n".format(x))
print("Y array:\n{0}\n".format(y)) | [
"matbocz@outlook.com"
] | matbocz@outlook.com |
073289b15546aee09302758b8b1f7ccec80f9cae | 65cd41bdfd5afdfc752e26b1f401b8f5f6dedc01 | /forSHB/convert_m2w.py | ba4573926fe990d1eda70b3c8bce002f552c9e73 | [] | no_license | mizun524/research_pfiles | 397d17c6e9f690e7abdf274a8ab007c74d56fcc2 | 75c10a9ad72e300a4607a603a235320e34c8ce3c | refs/heads/master | 2020-03-25T07:18:26.489691 | 2018-08-31T08:52:07 | 2018-08-31T08:52:07 | 143,553,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # convert from .dat files to .wav file
# 04-101, 05-B1, 06-EntranceHall
import numpy as np
from scipy import io
import soundfile as sf
# values
pnum = 9
Fs = 48000
ch_num = 64
ir_len = 50000
ir_start = 5000
mic_in = np.zeros((131072, ch_num))
# import binary data
fname_in = "/Users/mizun524/research/20180822_Hard... | [
"mizun524@gmail.com"
] | mizun524@gmail.com |
6c87285fc54bf7ca84855302dce543b4730e0f41 | f5b3fb1c9f89f38b3d29871a97f72a114640df2b | /utils.py | 56ec225ea0faafdbea6f4fa7effa88b1ff7a93eb | [
"MIT"
] | permissive | ArthurWuTW/yolov2 | 301b6d2e702e6157099d0acda6c0e814772288cb | a48e69aaa958d82fc29d4a406d86e2a026b29500 | refs/heads/master | 2020-04-02T01:39:07.932496 | 2018-10-20T07:45:58 | 2018-10-20T07:45:58 | 153,867,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,693 | py | import numpy as np
import os
import xml.etree.ElementTree as ET
import tensorflow as tf
import copy
import cv2
class BoundBox:
def __init__(self, xmin, ymin, xmax, ymax, c = None, classes = None):
self.xmin = xmin
self.ymin = ymin
self.xmax = xmax
self.ymax = ymax
s... | [
"lion811004@gmail.com"
] | lion811004@gmail.com |
702c7b2cae8da5066e5b09d499718e4ef98e39dd | e7f48e3e775404f204d4a2423a47ee577397ede6 | /model/scaling/ProactiveSLAScaling.py | 320f98c5b21f403c445f8648cb85dacae2891a2d | [
"Apache-2.0"
] | permissive | chasebk/code_FLNN | 6e3e315ed91ef8f3455dac90360d2797fa83eb33 | a561d4c697d1aa545a677f9e7d126ace7bb40068 | refs/heads/master | 2021-07-14T22:36:30.752454 | 2021-06-25T14:53:46 | 2021-06-25T14:53:46 | 185,661,408 | 47 | 17 | Apache-2.0 | 2020-07-08T15:33:06 | 2019-05-08T18:42:48 | Python | UTF-8 | Python | false | false | 5,639 | py | from model.scaling.BaseStrategy import BaseStrategy
import numpy as np
from utils.IOUtil import load_prediction_results
class SLABasedOnResources(BaseStrategy):
"""
Allocate VMs based on resource metric usage
"""
def __init__(self, max_vms=10, scaling_coefficient=2.0, adaptation_len=3, capacity_VM ... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
9e4dcf558542a6315fca9042ccb65956cb7e5f8b | 8dd6045c95478f4cea3385fa643fa8cb8f44886b | /facialrecognition/models.py | e45d5deaad4c04ee84b14f52774bbbf390c6992c | [] | no_license | blaine-d-smith/FacialRecognitionApp_Project | d0fb8538bcdf5965bafaf9f7623d4724887929d1 | 7cdeb02c3aaa6411bb678f4fe69eaf0a3a4e3ab2 | refs/heads/main | 2023-07-03T16:51:22.408734 | 2021-08-09T16:58:01 | 2021-08-09T16:58:33 | 393,159,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.db import models
class FacialRecognition(models.Model):
record_date = models.DateTimeField(auto_now_add=True)
image = models.ImageField(upload_to='images/')
def __str__(self):
return str(self.record_date)
| [
"blaine@thesmithstx.com"
] | blaine@thesmithstx.com |
8f5c4d8494bc1b348fde42c7ce0963bf270317fe | d357bb632ea0050a408c96f8a80a8a35945f6cbd | /bar/alg_gen/Invidual.py | 028a16ad85dec043e8c3eb2338594a82230bd249 | [] | no_license | I-am-ai-programmer123/AI-hakaton-best | 7a85d67aec8c21c48eb5caadbe914c6027928e7d | 54c54ea8c52db9271ecef3576af23a478f26f5cc | refs/heads/main | 2023-03-29T00:36:21.771771 | 2021-03-28T02:21:28 | 2021-03-28T02:21:28 | 352,164,959 | 0 | 0 | null | 2021-03-27T20:47:22 | 2021-03-27T19:58:32 | Python | UTF-8 | Python | false | false | 1,800 | py | """
Author: Bartłomiej Baran
"""
import numpy as np
class Invidual():
"""
Class representing invidual.
"""
def __init__(self, fit_function, dimension, low, up):
"""
Constructor of Invidual class.
:param fit_function: fitness function
:type fit_function: float
... | [
"hackathon"
] | hackathon |
6d9bfa2042357824d47942cd9157fe8621056f38 | bd3b7ff0a9605a5e8e5d217b3fc8e1084db36423 | /swift_cloud_py/validate_safety_restrictions/test/test_violation_of_bounds.py | 1cd4f8381583f3ec8140e44f71f0058914d3a585 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | stijnfleuren/SwiftCloudApi | 44ccda2e01868ae2b305564e9f2cf13e99e76823 | 30f3b6c1fd80e5cfa5ce11e1daa08a09ab1e4e9b | refs/heads/master | 2023-07-03T05:41:02.276613 | 2021-08-03T17:13:49 | 2021-08-03T17:13:49 | 295,122,441 | 3 | 0 | NOASSERTION | 2021-07-28T06:30:52 | 2020-09-13T09:54:26 | Python | UTF-8 | Python | false | false | 10,047 | py | import unittest
from copy import deepcopy
from typing import Optional, List
from swift_cloud_py.common.errors import SafetyViolation
from swift_cloud_py.entities.control_output.fixed_time_schedule import FixedTimeSchedule, GreenYellowInterval
from swift_cloud_py.entities.intersection.intersection import Intersection
f... | [
"stijnfleuren20@hotmail.com"
] | stijnfleuren20@hotmail.com |
2c8a87de0bc4b81b796088c544e02a03d484d90c | 829e9ec121969bd7f8a453ba16d5a54eb6266c28 | /weekly-contest-183/2.py | 84598cf2a86b8c0133263b6d0298cf4a2cbf60bf | [] | no_license | Azjargal13/lc-notes-codes | 23993802d20a7ff0f6a260c6dc412aa631945957 | c2d115753b21280e034f75fd102a79d1803274fd | refs/heads/master | 2021-05-23T10:12:00.940910 | 2021-03-25T06:54:19 | 2021-03-25T06:54:19 | 253,237,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | # second task
# https://leetcode.com/contest/weekly-contest-183/problems/number-of-steps-to-reduce-a-number-in-binary-representation-to-one/.
def numSteps(s: str) -> int:
integ = 0
#dec = int(s, 2)
leng = len(s)
for i in range(leng):
integ += int(s[leng-1-i])*pow(2, i)
print(integ)
co... | [
"azjargal.gankhuyag@konicaminolta.com"
] | azjargal.gankhuyag@konicaminolta.com |
657e8102a310bc6f584cee0aba68e5cb9ee1eed6 | b5bde703700ccf5b575f2382d357c0d2f5bd306c | /code/code_for_submission/.metadata/.plugins/org.eclipse.core.resources/.history/db/202a70a25ff3001416d696721b5bd529 | b9a0bb7e26a8bc710687aaa33fd909466d8f8401 | [] | no_license | lordwarlock/IRFinalProj | 6a4a4a8d880f27fcd38054125c5e695c179863d6 | cc2b3003fb41a63cb85c84bbdf13c20d8a7e1cba | refs/heads/master | 2016-08-07T08:52:46.564262 | 2015-05-06T21:48:42 | 2015-05-06T21:48:42 | 33,019,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,569 | #!/usr/bin/python
from elasticsearch import Elasticsearch
import matplotlib.pylab as P
class HistogramQuery():
def __init__(self,index_name = 'soccer',doc_type = 'match'):
self.index_name = index_name
self.doc_type = doc_type
self.es = Elasticsearch()
def get_histo_by_team_name(self,te... | [
"apple@Junchao.local"
] | apple@Junchao.local | |
085d2c9b90e4b3a915d33cf8ed7ecd9179ea9c98 | 0383956e205f0237088aa38c86a2b1b64dcf32d3 | /coding_practice/leetcode/code/python_learn/closures.py | 96a469e77f857065247ec23cedfd39ed60add90c | [] | no_license | idlelearner/interview_qns | 73650af5251aaca31334f72b067df890aea139f2 | 02043a6f07dcea31915facdb97c186f7f0efe359 | refs/heads/master | 2020-03-16T09:50:48.687367 | 2018-08-14T05:10:24 | 2018-08-14T05:10:24 | 132,623,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # Python program to illustrate
# closures
import logging
logging.basicConfig(filename='example.log', level=logging.INFO)
def logger(func):
def log_func(*args):
logging.info(
'Running "{}" with arguments {}'.format(func.__name__, args))
print(func(*args))
# Necessary for closure t... | [
"t.bhags21@gmail.com"
] | t.bhags21@gmail.com |
3856f7755fc38ff847713e45fcb80f5948b8161a | f571590e3c1787d183e00b81c408362e65671f76 | /learn2.py | b34cfe6d67f7548212691ddaecd17cc063bdf481 | [] | no_license | neymarthan/project1 | 0b3d108dd8eb4b6fa5093525d469d978faf88b88 | 5e07f9dff181bb310f3ce2c7818a8c6787d4b116 | refs/heads/master | 2022-12-26T08:44:53.464398 | 2020-10-06T09:14:29 | 2020-10-06T09:14:29 | 279,528,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | def main():
texas()
california()
def texas():
birds = 5000
print('texas has',birds,'birds.')
def california():
birds = 8000
print('california has',birds,'birds.')
main() | [
"INE-02@Admins-iMac-5.local"
] | INE-02@Admins-iMac-5.local |
22a7bb7c29984bcbf69fa82e231bea8fa5b95d77 | 1088128df8fbafa3431d4edb43c74cf2bee62581 | /getFitness.py | a44425e3b1f8e9d9a86081b0162413352a7ba542 | [] | no_license | aim123/LEAF-ESP-Training-V2 | 24f70ec04b20ccda7864c43aef594abc2eb4bb3d | e34921d61235d0f95e95a77ac034793ac85b4792 | refs/heads/master | 2022-02-21T22:37:03.234397 | 2019-09-03T13:29:44 | 2019-09-03T13:29:44 | 205,389,881 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | import numpy as np
import pandas as pd
from esp_sdk.v1_0.esp_evaluator import EspNNWeightsEvaluator
from xde.data_set_encoder import DataSetEncoder
from xde.surrogate_model import XDESurrogateModel
class Fitness_Evaluator(EspNNWeightsEvaluator):
"""
A class that computes a fitness for Prescriptor candidates... | [
"aim123"
] | aim123 |
c6259bd086768594c1ce117bdb583a6694e05682 | 9133928769c774975f764f38a4347e4d3fe9b33b | /2017029452-5-1.py | 448964786dd12975d36f3d1595c6e38de3976cbe | [] | no_license | YongSeong-Kim/ComputerGraphics_HW | ed81e33374d2e1f7e11cd902d2f8ff9b745a7bbd | 51b3f472ad70c50de8146f5814ba8a014522df7f | refs/heads/master | 2023-07-02T00:55:52.499436 | 2021-08-12T16:42:45 | 2021-08-12T16:42:45 | 395,230,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | import glfw
from OpenGL.GL import *
from OpenGL.GLU import *
import numpy as np
# R=np.identity(3)
# P=np.identity(3)
def drawFrame():
glBegin(GL_LINES)
glColor3ub(255, 0, 0)
glVertex3fv(np.array([0.,0.,0.]))
glVertex3fv(np.array([1.,0.,0.]))
glColor3ub(0, 255, 0)
glVertex3fv(np.array([0.,... | [
"yongseong97@naver.com"
] | yongseong97@naver.com |
2d03dffbb49ab9b1eb34d358d22818db1f6bc7a8 | 3cacebc132ec6b1cd9ba448730f2780317f75b3f | /combinations.py | 60f808a614d62cccbaed63fbaca5b7b394220516 | [] | no_license | bhasredd/pythoncode-algos | fce78846bf44c35edf3d1d49e654153c63e17ab2 | b918c34a21ef6cd04d580d017d9f6616779ef296 | refs/heads/master | 2021-01-12T12:18:37.703512 | 2016-10-31T15:10:44 | 2016-10-31T15:10:44 | 72,428,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | def combinations_inner(index, choices, number, selection):
""" give index as zero, a list, number of selections and
an empty list to get the combinations """
if number > len(choices) or number < 0:
raise InputError()
if len(selection) == number:
print selection
return
start ... | [
"Bhaskar Reddy"
] | Bhaskar Reddy |
9330526dc952ff167e30bcaa70ae64938c518adc | d0e9c6fd5e6535d0f714abbfd17a1d23f756d172 | /AgeSeconds/ageseconds.py | 37d908d05a43d3337841e9554c0f32a157eca6a9 | [] | no_license | utumno86/8PythonProjects | e4686f30f2ef707d06a35c7a9a1bea842c6e07cb | f3269ba8c936686dbac6ed09385ede339e6b0fd0 | refs/heads/master | 2022-12-09T23:44:56.855878 | 2019-08-15T20:29:17 | 2019-08-15T20:29:17 | 177,027,709 | 0 | 0 | null | 2022-12-08T05:47:19 | 2019-03-21T21:40:05 | Python | UTF-8 | Python | false | false | 531 | py | def age_program():
seconds_or_years = input("Give me seconds (s) or years (y) :")
if seconds_or_years == "s":
user_value = input("Enter the number of seconds you've lived for: ")
print ("You've lived for {} years".format(int(user_value) / 60 / 60 / 24 / 365))
elif seconds_or_years == "y":
user_value =... | [
"michael@spatialnetworks.com"
] | michael@spatialnetworks.com |
8e754a996b7f6f15a8a2e82eba3b14b6b8b9a478 | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/custom/SalesManageModifyRequest.py | 8990168107994c7a900255d64b6d6fab91a3190f | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # -*- coding: utf-8 -*-
'''
Created on 2016-8-24
@author: suning
'''
from suning.api.abstract import AbstractApi
class SalesManageModifyRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.activityCode = None
self.operateType = None
... | [
"945090896@qq.com"
] | 945090896@qq.com |
5b1e203e19287f46c54344aa9c8244e08b27c50c | da1920ce18eabf289f3a23815011af252d649fcf | /sizeyunsuan_new.py | 6fd6783b62d6b0c708e540cec8380e9662b3fd5b | [] | no_license | mibadasheng/sizeyunsuan | c140586be14350592372c3613407206c73c283eb | e178f4fecb0e29dfd9ead13ff6c5781ea501a170 | refs/heads/master | 2022-12-23T01:25:39.413492 | 2020-09-26T04:29:13 | 2020-09-26T04:29:13 | 297,061,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | import random
from fractions import Fraction
def newint():
opr = ['+', '-', '×', '÷']
fh = random.randint(0, 3)
n1 = random.randint(1, 20)
n2 = random.randint(1, 20)
rjg = 0
if fh == 0:
rjg = n1 + n2
elif fh == 1:
n1, n2 = max(n1, n2), min(n1, n2)
rjg = n1... | [
"noreply@github.com"
] | mibadasheng.noreply@github.com |
09fac2bb27464a3ef9205fc325ec6e31125c38dc | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/others/DeCLIP_for_PyTorch/DeCLIP/prototype/data/metrics/base_evaluator.py | 9ddb19f8a4d95683a6c9f38b9a71e621e3de2ddd | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 994 | py | try:
from SpringCommonInterface import Metric as SCIMetric
except ImportError:
SCIMetric = object
class Metric(SCIMetric):
def __init__(self, metric={}, cmp_key=''):
if SCIMetric != object:
super(Metric, self).__init__(metric.get(cmp_key, -1))
self.metric = metric
self.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
bc038c667ea352d7ad3872233b8c865b1707ec06 | a794e7404a2430fb69f69bcf39c4d7ed80979696 | /course/forms.py | 16c872219cf4705b0113841b9d85e937c5359fe2 | [] | no_license | hancockling/my_blog_site | b9af1472b125791e4ebe0d75d01ecae0d70f35f5 | ff5668235c2dc29a4586cae11274e8fb82a0d69e | refs/heads/master | 2020-06-12T07:40:52.679133 | 2019-06-28T08:19:41 | 2019-06-28T08:19:41 | 194,234,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from django import forms
from .models import Course, Lesson
class CreateCourseForm(forms.ModelForm):
class Meta:
model = Course
fields = ['title', 'overview']
class CreateLessonForm(forms.ModelForm):
class Meta:
model = Lesson
fields = ['course', 'title', 'video', 'descriptio... | [
"hancockling@126.com"
] | hancockling@126.com |
a25889cba07159297e616b5138b4acbe2a88823b | 57bdef42a3093647aafde93031fc22be02e56be0 | /2014/entry15/cmPong.py | c723b92d1381511dd4cf7d1dc0ecee8921262d5a | [] | no_license | jhepc/jhepc | c49550f0a1238d2da2489b5435692e865b43b3cd | 1f83bf98b0ea670a138d731176c36ae8766d50be | refs/heads/master | 2021-01-21T06:25:21.989465 | 2020-09-22T14:43:18 | 2020-09-22T14:43:18 | 82,865,980 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | '''
PONG colormaps.
'''
import numpy as np
from matplotlib import cm, colors
import matplotlib.pyplot as plt
def salinity(cmap='YlGnBu_r', levels=(37-np.exp(np.linspace(0,np.log(36.), 10)))[::-1]-1):
'''
Colormap for salinity for river plumes, with bigger chunks of salinity per color
section at lower sali... | [
"nelle.varoquaux@gmail.com"
] | nelle.varoquaux@gmail.com |
ab9068b54c24371fe5ec5d4c0bb6b1aa853ae6fb | 752cdeaec83216bb68b2cad4880c7543696edddf | /tools/datatools.py | 58bb39ad6cbfe38cd744bc0cc7fa3f3a9583d9a6 | [] | no_license | lfl-main/measurement-code | 98ddc6d07319d57ce4975fe7be55f23fa6fc42e9 | 8cb77286a0e7b27040fad435e942a84eb6e27028 | refs/heads/master | 2020-06-28T03:36:32.001652 | 2019-08-02T00:51:09 | 2019-08-02T00:51:09 | 200,133,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,622 | py | '''Collection of tools for processing and analyzing data.
Contributors: James Farmer
'''
import numpy as np
import struct
import os
from time import strftime
from pandas import DataFrame
def bin2csv(filename, saveto = "E:/rawData/"):
'''Converts the binary data file as input and returns a .csv file with usable ... | [
"jtfarmer@usc.edu"
] | jtfarmer@usc.edu |
488bc819564c7a0dbe710df1576f809aea6e184e | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/google_translate/config_flow.py | 3996d41df35e05226b4a62ca5f7643836d0dd59e | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 1,712 | py | """Config flow for Google Translate text-to-speech integration."""
from __future__ import annotations
from typing import Any
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components.tts import CONF_LANG
from homeassistant.data_entry_flow import FlowResult
from .const import (
... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
42d7f5b722b61555a2b7914a7cd5d345404babc3 | ea96dabaa83adcf884be7b91b9ff8720528c209c | /projects/models.py | 0995377f03a62ea6a38ae153c863775af79273d0 | [] | no_license | loganasherjones/docbot | 7b3270a6f4f53a9072f7f27f9b8815a439984c9b | 0af8084a6489e0b49aacc6bec318467036fd9903 | refs/heads/master | 2020-05-16T08:14:43.392425 | 2019-04-23T01:59:15 | 2019-04-23T01:59:15 | 182,902,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | from django.contrib.postgres.fields import JSONField
from django.db import models
from pkg_resources import parse_version, safe_version
class Project(models.Model):
name = models.CharField(unique=True, max_length=100)
num_stars = models.IntegerField(default=0)
git_url = models.URLField(unique=True)
d... | [
"loganasherjones@gmail.com"
] | loganasherjones@gmail.com |
867308147fa42efae1291667fdc97e97e5671a82 | 37ca4e22b376193a16fbf0f6140262f1318ca73f | /openapi_client/model/api_v2010_account_usage_usage_record_usage_record_yesterday.py | 8018d1d66fcf3128951466345bfa7fda5f629db2 | [] | no_license | garethpaul/tmp-twilio-oai-python | de07b7d8e9234a6d6be1e8406afd7ab5e2be4fb4 | 4ae86d8b41fd8d03930d921284f30600290a1d39 | refs/heads/master | 2023-02-26T18:10:55.351844 | 2021-01-29T00:33:30 | 2021-01-29T00:33:30 | 333,993,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,449 | py | """
Twilio - Api
This is the public Twilio REST API. # noqa: E501
The version of the OpenAPI document: 1.8.0
Contact: support@twilio.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from openapi_client.model_ut... | [
"gareth@garethpaul.com"
] | gareth@garethpaul.com |
103651dba47b1c2727e8278d3743675d707082c3 | 655e14decebee33e213bfb6a6f8d7091df76469a | /sessions/5/pavel_shchegolevatykh/github.py | ff069c22a17a6ab427c020df96bf57c3c1b57aad | [] | no_license | bestchanges/hello_python | 44eacdb082d1616a4298c79543f8f9afb755cffe | 75e416d892b333eaa1ff8420fb98673f9f70de22 | refs/heads/master | 2021-10-06T12:59:38.178226 | 2021-09-26T16:35:43 | 2021-09-26T16:35:43 | 179,949,302 | 17 | 18 | null | 2019-09-03T09:52:47 | 2019-04-07T10:23:18 | Jupyter Notebook | UTF-8 | Python | false | false | 904 | py | #!/usr/bin/env python3
import requests
# ideally we can use set but we don't want to lose the original order because it's important
def remove_duplicates(dup_list):
unique_list = []
for elem in dup_list:
if elem not in unique_list:
unique_list.append(elem)
return unique_lis... | [
"pshchegolevatykh@dataart.com"
] | pshchegolevatykh@dataart.com |
418a2952386d3f6a555f4a2b6b74776e7b93209b | e0d50c336fce4332b117432dc4bf5f98257bf0a4 | /mac_address.py | 01cb5f5e624c58a8b6eb9ecce1d86c41381a2e53 | [] | no_license | vnejindal/mqtt_load_gen | 4641537c7dc78fb5a55541f5d201757533d744ce | bf02e5e3ff0580fc1781e72eaf7d05a93f9c44e4 | refs/heads/master | 2020-03-13T21:31:49.038197 | 2019-04-01T11:47:47 | 2019-04-01T11:47:47 | 131,298,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py |
'''
It generates list of unique mac address prefixed by 'prefix' param. Just a set of loops with string concats
'''
def get_mac_address():
nentries = 125000;
# prefix = 'AB:78:8B';
prefix = 'E8:5B:5A';
#Samsung: 00:23:C2
#Apple: 84:78:8B
#LG: E8:5B:5B
#file_name = 'mac_list_' + prefix + '.... | [
"vinay.jindal@83incs.com"
] | vinay.jindal@83incs.com |
0e4eb4398533938e8c3ae6688acb3417c26ed7a3 | b0f5e15ceb7751713c137beb137b832978d9167e | /dongjae/mycode/retrieval.py | 8f0a83ff85ed7eb7b1c3e1164d237d1db354fa39 | [] | no_license | wonbae/p3-mrc-jobplz | 83e0fd6c3a765ea70e347cfad7d2d16b2155531d | 3106fdbd1fafcae5fa86803edf846c8f80fc427b | refs/heads/main | 2023-05-11T05:43:10.878121 | 2021-06-03T13:15:11 | 2021-06-03T13:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,105 | py | import faiss
from sklearn.feature_extraction.text import TfidfVectorizer
import re
from tqdm.auto import tqdm
import pandas as pd
import pickle
import json
import os
import numpy as np
from utils_qa import BM25
from datasets import (
Dataset,
load_from_disk,
concatenate_datasets,
)
from konlpy.tag import M... | [
"jangdj001234@gmail.com"
] | jangdj001234@gmail.com |
c73a59b7ec85437073edc87731c28e5a994fe162 | e7cda761ff052fba042407966da869dbbfce32c4 | /autotest_web/autotest_web/asgi.py | 590961f6ec44cf6ef2ee5c376eb8c71102a575d3 | [] | no_license | zengln/script | e95e28fd2cf4d6df0ce9789bbf14480fd7a18142 | b965b5e634172ecde7c23320ded047919a4d692e | refs/heads/master | 2021-09-10T22:07:33.404059 | 2021-09-06T08:21:34 | 2021-09-06T08:21:34 | 123,128,472 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for autotest_web 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"zengln@zln.com"
] | zengln@zln.com |
e1e9b2ed0731834ed030f9d35edb82a307e9f057 | eb90e8ff70d0f8a152bba1e8f137034bff16dc84 | /origin/pencil.py | ee226d376fec928b7305a12657979821d656b801 | [] | no_license | analoganddigital/Say-Hi | c83abc229d8597983805fa2e804f2ed6ae55dcb8 | d968dbdbefc78eb0db9207849cfce12f11eadb10 | refs/heads/master | 2020-05-25T14:16:09.998567 | 2019-05-21T13:36:22 | 2019-05-21T13:36:22 | 187,840,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import cv2
def dodgeV2(image, mask):
return cv2.divide(image, 255 - mask, scale=256)
def rgb_to_sketch(src_image_name):
img_rgb = cv2.imread(src_image_name)
img_gray = cv2.cvtColor(img_rgb,cv2.COLOR_BGR2GRAY)
# 读取图片时直接转换操... | [
"pangxu9@163.com"
] | pangxu9@163.com |
787b86243cd0073a565b84ff83d737f8517b777b | e7297c54a95fb2cc475d9d4eb3d66978e442cbd5 | /run.py | a6c0379cb8a26208738ec3f5c632fbfe55ea694c | [] | no_license | ddyke/flasktaskr | e2836de91d7e0e10128d29fa7743b8e6dec35d58 | edd4eecf83529374f5b9ab383abc923ff6f05c21 | refs/heads/master | 2020-06-21T14:56:23.354146 | 2016-12-30T23:40:28 | 2016-12-30T23:40:28 | 74,783,000 | 0 | 0 | null | 2016-12-12T18:59:48 | 2016-11-25T19:20:05 | Python | UTF-8 | Python | false | false | 123 | py | from project import app
import os
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=False) | [
"kosaka6540@gmail.com"
] | kosaka6540@gmail.com |
6f5eac68c7475772c8c2f6586824df977ff02f27 | b8e5ac17df3b11b2e69119816c3e499f513f284b | /dailyfresh_13/apps/orders/management/commands/release_order.py | 529f65420dbc0d1e558033f0b81f9976218bbbbe | [] | no_license | 1071183139/only-one | f2fa63d0b7228fc4e35423aeab6cd99a55bcd826 | bf67db02c829b49f61710478e35fdb0e1f2d845d | refs/heads/master | 2020-08-28T13:06:37.795745 | 2019-10-26T13:00:24 | 2019-10-26T13:00:24 | 217,708,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | from django.core.management.base import BaseCommand
from orders.models import OrderInfo, OrderGoods
import datetime
from djcelery.management.commands.celery import Command
class Command(BaseCommand):
help = '超过一天没下单释放订单'
def handle(self, *args, **options):
now = datetime.datetime.now()
date_b... | [
"1071183139@qq.com"
] | 1071183139@qq.com |
77497e23db6c24b096efb68d939de4c1e38d1395 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/compute/v20200601/__init__.py | 08b8095213d398a6db3bee171b6987c444442eb7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 1,639 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .availability_set import *
from .dedica... | [
"noreply@github.com"
] | morrell.noreply@github.com |
426cde56694decf621b3ad4faddf0f08453f922b | a83adbc73cba87ec62a85a353b85edb736466b68 | /files/shelf.py | 6cf3eebd95b55d84cfdf64fba8e6616d0e80d608 | [] | no_license | phifertoo/python_basics | 72a5d95e0c0efcc8b9fdd5eb465e307173fb2808 | 510047a279bd8a9fd25dc2ac1f008899f328d430 | refs/heads/master | 2022-12-01T13:13:40.718716 | 2020-08-19T01:05:43 | 2020-08-19T01:05:43 | 288,598,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # you can store lists and dicionaries in shelf files.
import shelve
# it will create binary files that stores dictionaries
shelfFile = shelve.open('mydata')
shelfFile['cats'] = ['Zophie', 'Pooka', 'Simon', 'Fat-tail', 'Cleo']
shelfFile.close()
shelfFile = shelve.open('mydata')
value = shelfFile['cats']
pr... | [
"phiferthree@gmail.com"
] | phiferthree@gmail.com |
896f47ed263e14e046474493fba584fbdc88417c | df79eacf4991034154d2c0698d709abb7a2ae3a8 | /reference/devices.py | 1a7f5d5316890fc205c65f2325843199e18c75ca | [
"CC0-1.0"
] | permissive | prjemian/2DMotorXY | 1257bca268b330e6d16ad8b69a252fd4ddeb1c0d | 5eca0839f47e361ea1f37ea3497dad7791ea7145 | refs/heads/main | 2023-04-10T10:52:11.033795 | 2021-05-04T03:01:51 | 2021-05-04T03:01:51 | 363,493,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,075 | py | """
abstraction of devices
References:
1. https://nsls-ii.github.io/ophyd/architecture.html#uniform-high-level-interface
2. https://github.com/SEBv15/GSD192-tools
"""
import threading
import time
from collections import OrderedDict
from typing import Any, Dict, List, Tuple, TypeVar
import numpy as np
from ophyd.sta... | [
"prjemian@gmail.com"
] | prjemian@gmail.com |
e4ad730868b553aee2f655d6de15ed72800f5302 | e19fa3f3c80532ccf1c78648cfde7b69325f943d | /HillClimb.py | 014c20dedd589cb6bda279449abb018df4e85599 | [] | no_license | mahmoudgamal0/8-queens | ecd0a64c3eb463272d15907243482bf6e223b6e9 | 056de238924e12a31557fe838e8caa3e15ef6416 | refs/heads/master | 2020-09-28T01:25:01.988467 | 2019-12-14T00:05:13 | 2019-12-14T00:05:13 | 226,655,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import copy
import random
from Algorithm import Algorithm
class HillClimb(Algorithm):
def __init__(self):
super().__init__()
def solve(self, config):
board = config
conflicts_count = board.conflicts_count
path = []
explored_nodes = 0
while conflicts_count > 0:... | [
"mahmoud.gamal.15497@gmail.com"
] | mahmoud.gamal.15497@gmail.com |
8fea287140ccc548de8d1aca1da8fb1bd9eeff3b | 6e7d22eea6279b5a6e317b2caa699bd40b4e0c17 | /examples/training/nli/training_nli.py | 8f4ce891aceec66f62469ba40bd0fdf61df36286 | [
"Apache-2.0"
] | permissive | AlexeyVatolin/sentence-transformers | ad36488ecd673c9b80a33f4b310aa9dc15bdcc3b | 084b80cd351b135a1d48211ec4f4aea37f01a641 | refs/heads/master | 2023-03-20T03:56:26.487351 | 2021-03-06T16:59:37 | 2021-03-06T16:59:37 | 340,154,162 | 0 | 0 | Apache-2.0 | 2021-02-18T19:21:25 | 2021-02-18T19:21:24 | null | UTF-8 | Python | false | false | 5,041 | py | """
The system trains BERT (or any other transformer model like RoBERTa, DistilBERT etc.) on the SNLI + MultiNLI (AllNLI) dataset
with softmax loss function. At every 1000 training steps, the model is evaluated on the
STS benchmark dataset
Usage:
python training_nli.py
OR
python training_nli.py pretrained_transformer... | [
"rnils@web.de"
] | rnils@web.de |
308309ba246cd2b8ed2c2caa73196834ab9951e4 | 80376068e746730d5b4e565d60d270321b314e4c | /shk.py | ee7327c199f94b3f58276cbcbdcdd8cb9955c3a4 | [
"MIT"
] | permissive | megbedell/harps_tools | 106a237fc6402d2a370e762315dc21b1c15d6ccb | 44d67049d22dc01f2bb94cac6fcd7d22adf8a47d | refs/heads/master | 2021-07-12T19:19:22.359550 | 2020-07-13T14:45:48 | 2020-07-13T14:45:48 | 75,770,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | import numpy as np
from numpy import sqrt
def filter(wave, center, fwhm):
# make a triangular filter
f = 1. - (1./fwhm) * abs(wave - center)
f[f < 0.0] = 0.0
return f
def calc_shk(wave, flux, rv):
# calculate the (Mount Wilson) S_HK value for a given spectrum
# inputs:
# wave : wavelength ... | [
"megbedell@gmail.com"
] | megbedell@gmail.com |
fce72866470e8ff912f47aeca6e4dca77ac1f76a | cb8498c19ca5304ba76d482351463c6d3efd92d5 | /computeBill.py | 5a0d28f7c32131ed7303e2f3540d8c630fd8d142 | [] | no_license | aeocista/pythonPractice | 4cece4fc19dda2dfc96571fa173192c754019f4f | f0079b66149f041fa8a56dd3e2758d3bf3fc4ff0 | refs/heads/master | 2023-02-19T05:01:26.249354 | 2020-01-29T21:42:52 | 2020-01-29T21:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | shopping_list = ["banana", "orange", "apple"]
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}
# Write your code below!
def compute_bill(food):
total = 0
for item in food:
total += prices[item]
return total
n =... | [
"wesley.applequist@icloud.com"
] | wesley.applequist@icloud.com |
91bef9260f0353720afcc3bef8ecb25da6a8956a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/paulbradshaw/excel_sitreps_fromlinks.py | 2f920cee5be8c23e44ccdf1429cd25e8f60deb17 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,524 | py | #This is the second pass at a scraper of Excel files.
#Currently it scrapes all sheets of one spreadsheet, identified by one direct xls URL
#NEED TO ADD:
#More than one spreadsheet, linked from one webpage URL = 'http://transparency.dh.gov.uk/2012/10/26/winter-pressures-daily-situation-reports-2012-13/'
#useful guid... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
022c731d1e359c6209f6a660661a61da1541aa6f | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/v2022_03_01_preview/aio/operations/_replicas_operations.py | 42e42c242a3ee2d4b155e1104711e8e6d752a7d5 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 22,810 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
0758b38fa56cb521f63f39f48864da97e0233e34 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /fDfh3WJPPiiJwgTrW_4.py | 00e36705851c774604a2b8e54ca0e3a0716c8d51 | [] | 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 | 50 | py |
num_of_sublists=lambda l:sum(s*0==[]for s in l)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9d12c6813d54f10cbae8cbf753f8d80c77667407 | 210083b59daafd71ff62a25ce9fbe3328cecaf62 | /run_api.py | f7083156b5f93c5bb992ac2a1c56221d38c71660 | [] | no_license | pkeeper/rest-test | 9d0bc9b2cea3a58b041932b25a5b769dbbbebcd6 | d25ef1f8a11f8e54335b3f4cd21ff264a5937647 | refs/heads/master | 2021-01-22T12:36:26.218043 | 2017-09-04T11:01:45 | 2017-09-04T11:01:45 | 102,351,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from eve import Eve
from db import *
app = Eve()
if __name__ == '__main__':
app.run() | [
"pensivekeeper@gmail.com"
] | pensivekeeper@gmail.com |
811c3c30d6647d582770fa926dfd6c60f72d60d2 | cbdf42eaf2f3ee908999fb1317d3fe90fa255f42 | /kusinwolf/PylonsApps/iman/iman/controllers/todo.py | 8ff2828d23d29739907b8304d2a7a6c44b66c058 | [] | no_license | tdyhacker/pythonexploration | 47c4e8a96d541428d4cf1d6c558a29e48f5fc22c | 4b360ef2b61fb565c7e2f82ff31e848776cd649a | refs/heads/master | 2021-01-10T02:51:34.245002 | 2010-11-28T02:31:36 | 2010-11-28T02:31:36 | 47,951,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,868 | py | import logging
from re import compile
from datetime import datetime
from pylons import request, response, session, tmpl_context as c, app_globals as g
from pylons.controllers.util import abort, redirect_to
from iman.config import environment
from iman.lib.base import BaseController, render
from iman.model import meta... | [
"kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca"
] | kusinwolf@c446d5ca-c62c-11dd-92e3-e3085bfe42ca |
07e6653e7b2ca2aa7b68444a6ebcbeb2766f903d | 9b3ab4ba4ef278799daae824d60aff1d95cd2403 | /models_cfg.py | 88456e19c945dbdfcfa60e404bf6b508b7de4523 | [] | no_license | dungdinhanh/yolo_compression | 0007efa86ecff7c4d581e39cd8b97da7f3aaca24 | 27a32ad81c3212f4d8bdf045442a9ff7b8d6a56a | refs/heads/master | 2023-06-07T18:40:39.177449 | 2021-06-20T19:46:08 | 2021-06-20T19:46:08 | 376,232,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,499 | py | from utils_cfg.google_utils import *
from utils_cfg.parse_config import *
from utils_cfg.quantized.quantized_google import *
from utils_cfg.quantized.quantized_dorefa import *
from utils_cfg.quantized.quantized_ptq import *
from utils_cfg.quantized.quantized_ptq_cos import *
from utils_cfg.quantized.quantized_TPSQ impo... | [
"dinhanhdung1996@gmail.com"
] | dinhanhdung1996@gmail.com |
621038aa11a1c772fb5403adef11f4c08b6199d9 | fb5da7955ebfd0a9124093f03613e0c190da556a | /website/migrations/0002_project_img_logo.py | a7a6162c0da330d917966ef3d0ccf3b6c1231faa | [] | no_license | amirg101/portfolio2.0 | b228ea8b10cdeb169e3a6bcc7167b062b329ae79 | 4f4378de62a546bca49b232cad42885de2286d15 | refs/heads/master | 2023-03-31T10:10:03.756799 | 2021-04-05T12:19:27 | 2021-04-05T12:19:27 | 354,810,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # Generated by Django 3.1.2 on 2021-04-05 04:59
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('website', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='project',
... | [
"amirgazi101@gmail.com"
] | amirgazi101@gmail.com |
3a9475a217027c1e86f4f26ceff673ee8578010a | 86021055d540ead40583ff2645d0e36152451e28 | /scrap.py | e030671234eb2f29782d96dc27b36814204d1200 | [] | no_license | EricERodriguez/Scrapping-Bolsa-de-valores | d73f1d3df48a00502f16e6ec324932e1e75585ac | 9f4a0e6a538c77799d14a78e637dd8ab75b3ee25 | refs/heads/main | 2023-08-06T16:11:20.662258 | 2021-09-24T04:26:02 | 2021-09-24T04:26:02 | 409,830,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # Importamos la librería para hacer peticiones http
import requests
# Importamos la librería para "enterder" el html
from bs4 import BeautifulSoup
import csv
from datetime import datetime
# Definimos la url que queremos pedir
url_page = 'http://www.bolsamadrid.es/esp/aspx/Indices/Resumen.aspx'
# tarda 480 milisegun... | [
"eric92rodriguez@gmail.com"
] | eric92rodriguez@gmail.com |
f895d9eb03439c73741d9d784e6394d08169a68b | 6d941b37d8571cfda76e597f107afec161dc604f | /preprocess.py | 2b39b00fc77444e1b4268d74b67b631be78608be | [
"Apache-2.0"
] | permissive | bellamkondaprakash/mprc | ba660c29c153c9d8ce4cdfcd01a4ad4138b7d063 | 56e3547e157dfa849b7c9f563a579b5f2f3d1af6 | refs/heads/master | 2021-08-12T04:53:06.694309 | 2017-11-14T12:46:50 | 2017-11-14T12:46:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,288 | py | # -*- coding: utf-8 -*
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import gzip
import json
import pdb
import operator
import string
import re
def normalize_answer(s):
"""Lower text and remove punctuation, articles and extra whitespace."""
def remove_articles(text):
return re.sub(r'\b(a|an|t... | [
"shwang@shwang-mac.local"
] | shwang@shwang-mac.local |
46546d0ccb14092702e6f124b4f074f82e179f1a | 09d25cc5111d4a998794c56f152d3403d96a9be3 | /svm/feature_extraction_methods.py | 5ff8a88117906499647b5be046e95e7367f3650e | [] | no_license | mindew/SCOPEVALVE | 6643da91c769f296f6c10b2bb5e0b77616b719e9 | 8c5088cc0f61affe621c346d8b5d7ead0be6f816 | refs/heads/master | 2020-09-14T02:27:37.871099 | 2020-05-07T20:47:54 | 2020-05-07T20:47:54 | 222,985,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | def waveform_length(wavelet):
| [
"bryan.werth@students.olin.edu"
] | bryan.werth@students.olin.edu |
b06a753c0fcca63eb5c30360a39e747a29ea94cf | 05c82bc3da9c2ba9c4e5bedda1394f9f6859e882 | /git_chat_example/ma_reminder.py | 5fa26f0f2067534a68f6b4eec112403253e5dac6 | [] | no_license | MarvinChen003/trading_system | 192edda12397a2b3c615a6f695fefaec9bcdcafa | 58866d6d7861eaa8a24f43725a457001d555ba83 | refs/heads/master | 2023-01-18T19:47:25.716747 | 2020-11-22T05:26:42 | 2020-11-22T05:26:42 | 263,772,567 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | # Given a stock pool
# cal MA100/MA20
# Reminder if able to buy
import tushare as ts
import requests
import json
import pandas as pd
TOKEN = "PLEASE_USE_YOUR_OWN_TOKEN_TO_TUSHARE"
URL = "http://api.tushare.pro"
API_NAME = "daily"
MA100 = 100
MA20 = 20
LAST_TRADE_DATES = 20
def _get_daily_trades_f... | [
"chenxu003@vip.qq.com"
] | chenxu003@vip.qq.com |
fc39e48e8f63c40e94ef30ec09ce38c3997db941 | 73db384b096c184e3d1ac36ec50f8ddc06687dba | /run.py | 17822caa576f33bb1a0e0871d348c2037f39eda3 | [] | no_license | alexxsanya/python-game-challeneges | 4f40e2f90250dcb1dfcd90ae89361fad0c525f2f | 36cdba557c7267f3aac5f58309ecfcb1eea8f96b | refs/heads/master | 2020-04-14T16:10:22.777169 | 2019-01-03T08:27:44 | 2019-01-03T08:27:44 | 163,944,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import lib
import testLib
ass = lib.AndelaAssign()
print("Select from the menu below to run my attempted questions :".title())
print("> 1. Rolling Dice Game\n> 2. Magic 8 Ball Game")
try:
option = int(raw_input())
if option == 1:
ass.rollingDice()
elif option == 2:
ass.magicBall()
else:
print("E... | [
"alexxsanya@gmail.com"
] | alexxsanya@gmail.com |
36790cf435c80a1138659f279be555a36c2336fd | 7619aed8a311e2832634379762c373886f4354fb | /trace_floodlight_firewall-MeshTopology4-steps200/orig_config.py | 360025acacb83638fb7064f7d963aedcc97b5a82 | [] | no_license | jmiserez/sdnracer-traces | b60f8588277c4dc2dad9fe270c05418c47d229b3 | 8991eee19103c8ebffd6ffe15d88dd8c25e1aad5 | refs/heads/master | 2021-01-21T18:21:32.040221 | 2015-12-15T14:34:46 | 2015-12-15T14:34:46 | 39,391,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,578 | py | from config.experiment_config_lib import ControllerConfig
from sts.topology import StarTopology, BufferedPatchPanel, MeshTopology, GridTopology, BinaryLeafTreeTopology
from sts.controller_manager import UserSpaceControllerPatchPanel
from sts.control_flow.fuzzer import Fuzzer
from sts.control_flow.interactive import Int... | [
"jeremie@miserez.org"
] | jeremie@miserez.org |
8b7802cec66697af5bc32569ab65928fd03d6b7a | 132e251957e89aab944a7a7c3831812b977c0ef5 | /learning.py | 0b64810590dcc438497811155d77fe15fe624d15 | [] | no_license | gzeno/coc-base-learner | 6e9f0c2abfcf890d1326d98f7b19f0aa3f355ce9 | 4af38463875bd8e376ceb8e20b418e3cfc620818 | refs/heads/master | 2021-01-15T17:42:12.152064 | 2015-07-07T21:10:45 | 2015-07-07T21:10:45 | 38,714,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,497 | py | '''
Python
SVM with implemented Bag of words
Raymond Tse
Jonathan Beekman
'''
import numpy as np
import cv2
import sys
import os
import pickle
from scipy.spatial import cKDTree as sp
import time
from sklearn import svm
def getFeatures(image,desc):
# Use sift to extract features
kp, des = desc.detectAndCompute... | [
"tser@rpi.edu"
] | tser@rpi.edu |
1d258089bb00321561c72c6598f14e83f0e4f14f | e4ac390272609d28d06e9db4ecc020f9bb5dde69 | /lib/make_download.py | fe770ecf9ff3568e53372a72ad114d2d4f26939a | [] | no_license | velezd/simple-web-generator | e3a6665285877b729496ae8efeb6ecbddeea12ec | 8452ec3fbdf85d8871f9fbfa9740fc2157e949cb | refs/heads/master | 2021-06-03T07:24:21.598187 | 2020-11-08T11:45:38 | 2020-11-08T11:45:38 | 135,077,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os
from os.path import join
from lib.misc import load_json
from lib.settings import Settings as S
def make_download(data):
'''
Creates html for file download
:param data: string @download:filename:license_name(optional):license_path(optional)
:return: download html
'''
# Get filename ... | [
"velezd.tux@gmail.com"
] | velezd.tux@gmail.com |
8c2a42bbca4b666caec678c3fe9f7a8144009f70 | a531771a4f2812898a5b54044d6d8c3ca4a249f6 | /Visualization-for-Company-Stakeholder/code.py | 48e921a3b889aedaa447d4e2e804fbe7d3a60be4 | [
"MIT"
] | permissive | manjunathvihaan5/ga-learner-dst-repo | 57f44e8dacc3bf4f242f94748f56852d22acf3f5 | 5ff5649f604eb89a7f4cab4b0315a3dadea2ba95 | refs/heads/main | 2023-08-25T07:01:40.920224 | 2021-10-19T20:25:05 | 2021-10-19T20:25:05 | 355,458,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | # --------------
#Importing header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Reading the file
data=pd.read_csv(path)
#Code starts here
# Step 1
#Reading the file
#Creating a new variable to store the value counts
loan_status=data['Loan_Status'].value_counts()
#Plotting bar pl... | [
"79388801+manjunathvihaan5@users.noreply.github.com"
] | 79388801+manjunathvihaan5@users.noreply.github.com |
122ce6efb68720b1271a3d9920189d14036d8729 | 4b42f9fe3055886761d9063b6deee7f393407c9a | /Fibonacci series.py | 179c86b11d76f4beec4458f9d6786b7118d12644 | [] | no_license | YadneshRane/fibonacci.py | c2ecb177543453d0b4b84ee658c249712ccad351 | 5b12cb6458b25b7f3d76a7702ba6602bb490a702 | refs/heads/master | 2022-11-20T08:33:22.118658 | 2020-07-28T06:40:48 | 2020-07-28T06:40:48 | 283,124,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | nterms = int(input("How many terms? "))
n1, n2 = 0, 1
count = 0
if nterms <= 0:
print("Please enter a positive integer")
elif nterms == 1:
print("Fibonacci sequence upto",nterms,":")
print(n1)
else:
print("Fibonacci sequence:")
while count < nterms:
print(n1)
nth = n1 + n2
... | [
"noreply@github.com"
] | YadneshRane.noreply@github.com |
896746871eff213202ea21605650a906ab6eacef | 7b408fde64237a163079584fb9a591707c95ced3 | /tests/test_main.py | 2eca74e75e1c7bb93158588f88ed5438f37f6d69 | [] | no_license | erral/fideparser | fe9c2c350c72b1f38e79789e82361bb8cb0efa7f | 69e914c59598540f579d08a1c20be7bca1c3cc59 | refs/heads/master | 2021-01-22T06:45:22.275677 | 2020-01-20T06:50:17 | 2020-01-20T06:50:17 | 7,460,257 | 7 | 1 | null | 2019-01-10T08:58:16 | 2013-01-05T21:32:12 | HTML | UTF-8 | Python | false | false | 4,528 | py | from .utils import get_path_to_store_export_files
from .utils import get_test_file_contents
from fideparser.main import main
from fideparser.main import parse_args
import os
import re
import responses
import sys
import unittest
try:
# python 3.4+ should use builtin unittest.mock not mock package
from unittes... | [
"mlarreategi@codesyntax.com"
] | mlarreategi@codesyntax.com |
442a56da80ff0643ea759f4fdda0cb25f7b097de | 9b78027117978d3eed3c63659d5ea3b92d3b0909 | /config/database.py | 5df0ecdce3ca8c0385bb2e43f5ab5d73fe0505d9 | [] | no_license | ShinjiroMoriya/flask-demoapp | 11a576ebe171b2603b30ec1a8a1f24939c9b4835 | 2d6d41ae6469dd3b3bd27c7f8d5739d094e894b3 | refs/heads/master | 2022-12-09T23:15:38.970559 | 2020-03-27T18:59:28 | 2020-03-27T18:59:28 | 99,887,050 | 0 | 0 | null | 2022-09-16T17:46:40 | 2017-08-10T06:02:25 | Python | UTF-8 | Python | false | false | 228 | py | from app import app
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.orm import relationship, backref
# db = Database()
db = SQLAlchemy(app)
# Database Create
@app.before_first_request
def init():
db.create_all()
| [
"moriya@tam-tam.co.jp"
] | moriya@tam-tam.co.jp |
0bf6aba08ead3fb34e7e2aba8b53de20b52973e7 | 83468316dfc8abf8d53e6fd5c7306dc9d46fc10b | /tests/src/reshape_test.py | 3c120ae2dd244e701738405c3f0dd8e10aefde6a | [] | no_license | hoangp/cs3431-18s2-project | f628f9c37f0200806dbce4be4f6ccdf6afd20fc3 | 16317023625dd911f69c28d6e68cad06ad5c142c | refs/heads/master | 2020-03-27T12:15:56.670812 | 2018-10-24T08:20:33 | 2018-10-24T08:20:33 | 146,535,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import numpy as np
a = np.array([[ [1,2,3,4],[3,4,5,6],[0,0,0,0] ],
[[1,2,3,4],[3,4,5,6],[1,1,1,1]],
[[1,2,3,4],[3,4,5,6],[2,2,2,2]] ])
print(a.shape)
print(a)
s = a.shape
b=np.reshape(a.flatten(),s)
print("reshape")
print(b.shape)
print(b)
| [
"debelhussein@gmail.com"
] | debelhussein@gmail.com |
c86642d7a6bb2f88ec8f6fd8d694097deeb7daf2 | ef997aac50f42cbb73df42f366e1d18d420c3063 | /simple_sim.py | 410284d52e6ad96912ec147aa9f69d7dfe0c1906 | [] | no_license | mcscope/Breeding_Pool | 7ace4be1e8c147accf22de8cf40fdafe2aaa769c | e2a9943667132c8a3efc7d1c2a6fb572f15f401c | refs/heads/master | 2016-09-05T11:15:08.290077 | 2014-09-29T16:33:31 | 2014-09-29T16:33:31 | 23,983,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | import pygame
from options import options
from simple_sim.simutils import canvas_to_cell, kill
from simple_sim.simlife import SimPlant, SimHerbivore, SimWall
from functools import partial
from globals import g
class SimpleSim():
def __init__(self):
pygame.init()
self.RUN = False
... | [
"mcscope@gmail.com"
] | mcscope@gmail.com |
f5682b44796008035f69641a776df7473a5e6b55 | b49f9525b509e6d71ffa67aa854966f0c30f8a17 | /mail_alias_manager/db/db.py | 5dc05ad18d7725a242e2fc15b43101c7c375ca9a | [
"Python-2.0",
"MIT"
] | permissive | stuvusIT/mail_alias_manager | 916a2c1d2638e0f2f6df5f7b9a93af8bf4e67b1e | 260b6d1da4db03079afee159c23c3f83f4e75937 | refs/heads/main | 2023-02-21T08:25:17.251889 | 2021-01-25T19:04:18 | 2021-01-25T19:04:18 | 331,421,183 | 1 | 0 | MIT | 2021-01-25T19:04:19 | 2021-01-20T20:17:37 | Python | UTF-8 | Python | false | false | 647 | py | """Module to hold DB constant to avoid circular imports."""
from sqlalchemy.schema import MetaData
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
DB: SQLAlchemy = SQLAlchemy(
metadata=MetaData(
naming_convention={
"pk": "pk_%(table_name)s",
"fk": "fk_%(t... | [
"neumantm@fius.informatik.uni-stuttgart.de"
] | neumantm@fius.informatik.uni-stuttgart.de |
169d00ad53076c04eab328b26cc65d66f04cdb79 | 6fbb3afc8281e0fda5fd65aa11e3c00e022561f5 | /contact_form/signals.py | 886b1df0efea27efded5bfd30dcc9a55ccd6f009 | [] | no_license | dlancer/django-crispy-contact-form | 14a7f690958a8833e26af1b0b67f1168cc5463fd | 3d422556add5aea3607344a034779c214f84da04 | refs/heads/master | 2021-01-20T11:13:10.629202 | 2018-09-17T21:29:07 | 2018-09-17T21:29:07 | 21,026,325 | 2 | 6 | null | 2015-08-22T14:17:30 | 2014-06-20T05:20:47 | Python | UTF-8 | Python | false | false | 280 | py | from django.dispatch import Signal
contact_form_valid = Signal(
providing_args=['event', 'ip', 'site', 'sender_name', 'sender_email', 'email', 'subject', 'message']
)
contact_form_invalid = Signal(
providing_args=['event', 'ip', 'site', 'sender_name', 'sender_email']
)
| [
"dmdpost@gmail.com"
] | dmdpost@gmail.com |
8cfad8bcbda9bbaeb38932bd8bb0e3bb3de5545d | f89d70fc8bf370ef4e2aa54c7ee0de3b4a053624 | /scripts/patches/macie.py | 57c76666abe721504c246383876e2723488d4221 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yks0000/troposphere | a7622bff01c31f10dcb296d2ca353144e1d7f793 | 9a94a8fafd8b4da1cd1f4239be0e7aa0681fd8d4 | refs/heads/main | 2022-04-28T03:51:42.770881 | 2022-04-15T15:15:01 | 2022-04-15T15:15:01 | 482,753,190 | 1 | 0 | BSD-2-Clause | 2022-04-18T07:20:42 | 2022-04-18T07:20:42 | null | UTF-8 | Python | false | false | 355 | py | patches = [
{
"op": "replace",
"path": "/PropertyTypes/AWS::Macie::FindingsFilter.FindingCriteria/Properties/Criterion/Type",
"value": "Map",
},
# Remove FindingsFilterListItem attribute property
{
"op": "remove",
"path": "/PropertyTypes/AWS::Macie::FindingsFilter... | [
"mark@peek.org"
] | mark@peek.org |
054a2abcc39b26fc281439c1257cadbe5b7678c1 | 431d55d97f0e77546ad1bb6ebef8959ac37c4568 | /venv/lib/python3.7/site-packages/jenkinsapi_tests/unittests/test_executors.py | 9e50125f97ff76b4e5c824d4279436f6c0e7785b | [
"MIT"
] | permissive | DhanyaAB/new | 11b1a75eb9950dc6fdb7f5c17d788935b73cd7ff | 52610ff43d385a065dac43f52c8b1cfe5e407651 | refs/heads/master | 2023-01-06T11:45:51.918410 | 2020-01-15T09:59:41 | 2020-01-15T09:59:41 | 231,069,960 | 0 | 0 | MIT | 2023-01-06T01:00:17 | 2019-12-31T10:15:52 | Python | UTF-8 | Python | false | false | 8,864 | py | import pytest
import mock
from jenkinsapi.jenkins import Jenkins
from jenkinsapi.executors import Executors
from jenkinsapi.executor import Executor
DATAM = {
'assignedLabels': [{}],
'description': None,
'jobs': [],
'mode': 'NORMAL',
'nodeDescription': 'the master Jenkins node',
'nodeName': ''... | [
"dhanuab15@gmail.com"
] | dhanuab15@gmail.com |
ba1542f3cb3bcdaa89e0d59cd6c2a92a3561474c | ef3488a0ccd554873ee6c68a89f50beb8d9a85e4 | /picam_websocket_streamer/picamstreamer.py | 66e6a8aa5b35d75ead2378bf2a9a2f2e95f8c30d | [] | no_license | Zomth/raspberrypi | 59632c07941fd1e90af4954b9e458acc9b379fb3 | dd1a5c5e703ff6421fc2935ef666cd3a49923e61 | refs/heads/master | 2020-03-25T22:00:44.706527 | 2017-02-10T05:10:45 | 2017-02-10T05:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | import sys,json
from time import sleep
import picamera,threading
from twisted.internet import reactor
from twisted.python import log
from twisted.web.server import Site
from fractions import Fraction
from twisted.web.static import File
from autobahn.twisted.websocket import WebSocketServerFactory, \
... | [
"nextabyte@gmail.com"
] | nextabyte@gmail.com |
e55ca1e35e3941da868feff36fbc12b592c70a7b | be39753cbecc62d264b357e2e11dd6f7c50fdcfd | /orders/migrations/0006_auto_20200531_1103.py | 83de024c108454c2543efe3eba8489b428ebe650 | [] | no_license | mahdiguliyev/qiymetlendirme | b74322a9332675345bdd29e835eb11870b73712e | ab362bece5d944972cb74256f1cef300ff5307aa | refs/heads/master | 2023-08-11T16:08:13.351361 | 2020-06-30T07:23:13 | 2020-06-30T07:23:13 | 270,547,054 | 0 | 0 | null | 2021-09-22T19:11:17 | 2020-06-08T05:54:27 | JavaScript | UTF-8 | Python | false | false | 874 | py | # Generated by Django 3.0.4 on 2020-05-31 07:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0005_order_subcategory_name'),
]
operations = [
migrations.AddField(
model_name='order',
name='price_one',... | [
"quliyev.mehdi.1997@gmail.com"
] | quliyev.mehdi.1997@gmail.com |
a84256a491047773ef874dc04d299b5f3422ac95 | 97b13cecde33b9da1e06670249b822414d2db327 | /06_encapsulate_variable.py | 3a74bc10e36dc5e8f05b3703f47d1296ee67e54c | [] | no_license | varununayak/refactoring | 46714aa52598e5880838f1d2a8e7d1e9ddcf1185 | 2d8749815d5f96298db6e0bb0bb592afdb32c8af | refs/heads/main | 2023-08-30T12:57:54.119628 | 2021-11-16T06:07:11 | 2021-11-16T06:07:11 | 423,011,068 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # Encapsulate Variable
from typing import Dict
default_owner_ = {"FirstName": "Varun", "LastName": "Nayak"}
"""
Refactoring data can be challenging when compared to refactoring functions since all the
references to the data must be changed in a single cycle to keep the code working.
As the scope of access of the ... | [
"varunnayak3101@gmail.com"
] | varunnayak3101@gmail.com |
cd2ac405553975680c6ce5de69249545d7c0bd23 | c66197bc5d4245a6974c33a31ff81d26495e8181 | /app.py | 7ca7708ef0bb79a047b9042091a49ef3418d980f | [] | no_license | linzmacd/Mission-to-Mars | a0e7e420355de1d70e3ba5d4ff8337f7a1ce0e27 | 883e47993bbdbe662b2d59a53a9620b5ab615c6f | refs/heads/main | 2023-03-28T16:02:18.660379 | 2021-04-05T07:20:10 | 2021-04-05T07:20:10 | 352,887,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Import Dependencies
from flask import Flask, render_template, redirect, url_for
from flask_pymongo import PyMongo
import Mission_to_Mars_Challenge
app = Flask(__name__)
# Use flask_pymongo to set up mongo connection
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
@app.route("/")... | [
"linzmacd@gmail.com"
] | linzmacd@gmail.com |
ddc41974425925e5c8b9b33196dadabf641bed4a | 27f5efe94111a4d9b25e8b2f15dc5f7ae7269ea7 | /workflows/reference_files/2.2/reference_files.smk | b152464b7aefb5415a4b3d7d34aa3004c296e9b3 | [
"MIT"
] | permissive | mannycruz/lcr-modules | c84aaf7cbd02199128aa8704091e43d14206cb63 | 7eece0031157366fe82ceb2caf33b47d85adf87e | refs/heads/master | 2023-07-02T03:38:32.492938 | 2021-06-17T01:05:24 | 2021-06-17T01:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | smk | ##### HEADER #####
include: "reference_files_header.smk"
##### SEQUENCE AND INDICES #####
rule get_genome_fasta_download:
input:
fasta = rules.download_genome_fasta.output.fasta
output:
fasta = "genomes/{genome_build}/genome_fasta/genome.fa"
conda: CONDA_ENVS["coreutils"]
shell:
... | [
"bgrande@sfu.ca"
] | bgrande@sfu.ca |
bf7e4ae67840412a6c3b7728936d8e8333b0c8bc | 39c856218aabb0c0913033e7f8e3e66b855cde96 | /src/ggrc/models/technology_environment.py | 40061802a058e051a42b0ee01c5b30b9174d2e22 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | keohaneindustries/ggrc-core | 27b70423937ffd565b885854a2c16dd1d99f977f | fca7689eefe6dd899a944dbb9771af1f9ce47009 | refs/heads/master | 2020-03-25T14:37:13.936135 | 2018-07-31T16:27:12 | 2018-07-31T16:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""TechnologyEnvironment model."""
from ggrc import db
from ggrc.access_control.roleable import Roleable
from ggrc.fulltext.mixin import Indexed
from ggrc.models.comment import Commentable
from ggrc.models.... | [
"kzabelova@gmail.com"
] | kzabelova@gmail.com |
c015aac90a9bfc2897fe090d1fa0e77d487c9dae | dd6f126d13b23e999b974f2dc59294d72b17435d | /vis_cnn_activation/halfway.py | 1017c2a5e0005ecf1ec89b11042c0a52c9041169 | [] | no_license | sudachi0114/cnn | 96be6333ef9fe838ec101a7e24bc5703aa2e98a2 | c6ff965581c1d81b28239dab704c836b7096e615 | refs/heads/master | 2021-08-16T15:53:41.896815 | 2020-07-25T00:29:37 | 2020-07-25T00:29:37 | 206,193,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py |
import os
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
from keras.applications import VGG16
from keras.models import Sequential
from keras.layers import Flatten, Dense, Dropout
# define
img_size = 224
channel = 3
input_shape = (img_size, img_size, channel)
# lim = 4
def dataLoader(selec... | [
"jnevariste@gmail.com"
] | jnevariste@gmail.com |
e97c4a336750875eeee09b674602a21b9a0da9a2 | e4ace1dd108abd370c630beaf27fb105e31cfacb | /TomeRater/populate.py | 736ea7a79f24fc5c8586040ecfe48c9e874b07c0 | [] | no_license | redirksen/python_personal_projects | 1d6460fe6bab03067760dc5055eab664176ad326 | 2bca5e4432aebdac4a259a86ca4ee17a90819787 | refs/heads/master | 2020-04-13T00:41:12.864588 | 2019-07-14T12:18:57 | 2019-07-14T12:18:57 | 162,852,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from TomeRater import *
Tome_Rater = TomeRater()
#Create some books:
book1 = Tome_Rater.create_book("Society of Mind", 12345678)
novel1 = Tome_Rater.create_novel("Alice In Wonderland", "Lewis Carroll", 12345)
novel1.set_isbn(9781536831139)
nonfiction1 = Tome_Rater.create_non_fiction("Automate the Boring Stuff", "Pyth... | [
"44168425+redirksen@users.noreply.github.com"
] | 44168425+redirksen@users.noreply.github.com |
d49a7b7b9d69345021ee310477bfac02bb923e27 | f340b9f47aaf11d95911074efd16e2878b4608c5 | /200117/Decode_Ways.py | e901980c1dab0c5ae6920470a3324f8c8e5f603d | [] | no_license | Jsonghh/leetcode | 150020d1250a7e13e7387a545b4eb7df0de8f90b | 3a83c0b0bcc43f458f7fc54764f60e1104fcc12e | refs/heads/master | 2020-11-25T03:12:48.842151 | 2020-02-11T02:56:58 | 2020-02-11T02:56:58 | 228,475,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Solution:
def numDecodings(self, s: str) -> int:
if not s:
return 0
memo = {}
self.helper(0, s, memo)
return memo[0]
def helper(self, start, s, memo):
if start in memo:
return memo[start]
if start == len(s):
... | [
"jiesonghe@outlook.com"
] | jiesonghe@outlook.com |
f3b467920dad8432530d949f3a5ec8d058bfc15b | 9c5a1257bd922d69845a179548836402193a022d | /weather ui windows/app_data/weather_ui_2.py | e4f442926b4189e871fd9fea2a2c1aba4bef3dad | [] | no_license | michiganaerospace/Eco-Kit | 3128b2eb4c374d1232b705f89ffe5aed9b314c5f | abfa59ea8eba74423a00a2f64c41926c05a69656 | refs/heads/master | 2023-07-20T20:09:48.134462 | 2020-07-10T19:02:41 | 2020-07-10T19:02:41 | 226,401,689 | 0 | 0 | null | 2023-07-06T22:01:13 | 2019-12-06T20:08:58 | Python | UTF-8 | Python | false | false | 20,993 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'weather_ui_2.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | [
"noreply@github.com"
] | michiganaerospace.noreply@github.com |
9739d78ad45d2d10f1e89f167b1cb1c57d6f915d | 66c18be8a449a43f2fd0e50a58d653adad8deac7 | /DiscordRoleBot/main.py | f3dda0150ab3d751c6b7496b6b0847d1743ed2ea | [] | no_license | ramen-7/DiscordRoleBot | 42850196d94b06d9301d40403cb7b11dd6de4f0a | 26a3759d2b00d088a9425e21707ad3ae5f4cb582 | refs/heads/main | 2023-07-18T02:35:30.469040 | 2021-08-19T17:05:09 | 2021-08-19T17:05:09 | 398,016,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,813 | py | import discord
from discord.ext import commands
from discord.utils import get
import pandas as pd
from helper_functions import make_embed
df = pd.read_csv('teams2.csv')
df2 = pd.read_csv('individual.csv')
r = len(df)
c = len(df.columns)
r2 = len(df2)
intents = discord.Intents(messages=True, guilds=True, reactions=Tru... | [
"shvmtnja9@gmail.com"
] | shvmtnja9@gmail.com |
78278c72485f909540c693803dd0ff144e9ea131 | 6f9862e6105e00edaaa75cf269c6f205f13478c8 | /ff/urls.py | 62d0bef472edbcc06865e5adecdea7f57faafe5f | [] | no_license | Kunaal14/finalblog | 3a7797acf018038ef449e0e9bee10cc1c124b48a | bd4445455c7f6e0a28b0680af68fd2a7f39e7693 | refs/heads/master | 2020-03-22T18:08:06.129309 | 2018-07-11T20:09:40 | 2018-07-11T20:09:40 | 140,439,111 | 0 | 3 | null | 2018-07-11T19:58:50 | 2018-07-10T13:49:23 | HTML | UTF-8 | Python | false | false | 800 | py | """ff URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based vi... | [
"kunal.dhawan14@gmail.com"
] | kunal.dhawan14@gmail.com |
d6f571bc3e6075618b309937fbec6eb17adc6e12 | f4f1aefc32072b15c573651bca7928490ef78d6b | /billingsite/billingsite/urls.py | 9f29f57796df7af1340eef9c8bbfd6322d91efaf | [] | no_license | MarcStocker/Billing-Site | f32cabaa5d14b829f94818b81d3706fa695380d6 | dcd23391f153092cd775885515ede1d856614dba | refs/heads/master | 2021-01-11T12:18:39.660902 | 2017-01-24T17:50:19 | 2017-01-24T17:50:19 | 76,473,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | """billingsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"mstocker.gbit@gmail.com"
] | mstocker.gbit@gmail.com |
0cf34fe744b58451c6188c716221aaa73e36643e | 955c0ba074e95deeedda8bc85b82a643692aef9b | /백준 1981. 배열이동.py | b9e647bb5de178ac32fcf9133c198df9a83583fe | [] | no_license | joo-jj/codeStudy | 1fc87c64b9224bca604c66da5cafd44242411940 | 7020d7219719609ae7435a53575dad3d27504257 | refs/heads/main | 2023-08-25T00:01:47.375610 | 2021-10-14T16:44:26 | 2021-10-14T16:44:26 | 409,164,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | from collections import deque
n = int(input())
m = [list(map(int, input().split())) for i in range(n)]
mL = set()
for i in range(n):
for j in range(n):
mL.add(m[i][j])
mL = list(mL)
mL.sort()
dx = [0, 0, -1, 1]
dy = [1, -1, 0, 0]
a, b = 0, 0
q = deque()
ans = float('inf')
while a < l... | [
"noreply@github.com"
] | joo-jj.noreply@github.com |
e05074441f061be263edea951ec9c96c4cb6ac64 | e25f60024385aa723570f41b73a32af5f9697936 | /prngmgr/policy/autnums.py | 1d2b2fec41553f3c338c6050644277c1b0c07693 | [
"Apache-2.0"
] | permissive | wolcomm/prngmgr | 57f7fe5dc3a002fdaef9e322c982d51f811b526b | 5c0d2058ffa56ddce69a715c0aafedb95c8dd5be | refs/heads/master | 2020-04-05T18:56:27.917075 | 2017-10-07T16:59:03 | 2017-10-07T16:59:03 | 63,446,776 | 4 | 3 | null | 2017-09-13T17:07:36 | 2016-07-15T19:41:34 | Python | UTF-8 | Python | false | false | 1,810 | py | # Copyright 2016-2017 Workonline Communications (Pty) Ltd. All rights reserved.
#
# The contents of this file are 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/license... | [
"benm@workonline.co.za"
] | benm@workonline.co.za |
67081fa2ce883efde756e7f15523311474b5bcdc | f42b76ea706b0785fcce07308558b5be092c6e52 | /sandbox/grist/csv_patch.py | ef04f1965ebd7e8e015b2602927f347c56693346 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | combinatorist/grist-core | 9e3710e0803e3619a793d228e72d2b80c8e2bdf2 | 9a6369a4ff2ebe9f0ad477cd43b90fb2b8341b36 | refs/heads/main | 2023-04-21T06:54:01.314177 | 2021-05-05T15:15:15 | 2021-05-07T16:08:05 | 367,675,202 | 0 | 0 | Apache-2.0 | 2021-05-15T16:07:06 | 2021-05-15T16:07:06 | null | UTF-8 | Python | false | false | 2,742 | py | import re
import csv
# Monkey-patch csv.Sniffer class, in which the quote/delimiter detection has silly bugs in the
# regexp that it uses. It also seems poorly-implemented in other ways. We can probably do better
# by not using csv.Sniffer at all.
# The method below is a modified copy of the same-named method in the s... | [
"paulfitz@alum.mit.edu"
] | paulfitz@alum.mit.edu |
8e9b106d3d6377b5bdb9ff4201ba1caca7efeba4 | 46ba62b221baf115d596558f04eef3c4c018e5c5 | /apps/goods/migrations/0001_initial.py | f83134f62d0fccebf57f44714c6236d6c81b611e | [] | no_license | witcherwjl/Django_web | cf533e00973d1e8866fa112ff4fa96c955ec64e4 | 9865ad88c11f797a8a52e14cda9b7c136489206b | refs/heads/master | 2023-07-19T17:48:24.562866 | 2023-07-16T08:04:03 | 2023-07-16T08:04:03 | 257,210,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,246 | py | # Generated by Django 3.0.5 on 2020-04-15 01:18
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Goods',
... | [
"836691447@qq.com"
] | 836691447@qq.com |
d4b1846f6d9138bdc862466606f221b1cb860d22 | 1cc953969ff018bca87f7b12a5f8666fc7a6db97 | /mnist.py | 726c5991536fcf82b419a71c49bf16e73a5a3fcf | [] | no_license | Timehsw/tf2.0-learning | 1c6c5368217e54f29950aaeda026458b9fdec7ed | f640140e2df8ca083002ad80dfcd959d22937704 | refs/heads/master | 2020-08-10T13:30:41.096226 | 2019-10-11T07:59:30 | 2019-10-11T07:59:30 | 214,352,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | # -*- coding: utf-8 -*-
'''
Created by hushiwei on 2019/10/11
Desc :
Note :
'''
import tensorflow as tf
import numpy as np
class MNISTLoader():
def __init__(self):
mnist = tf.keras.datasets.mnist
(self.train_data, self.train_label), (self.test_data, self.test_label) = mnist.load_data... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
118cdbde76c3e63ae24cd5d9f47a73642d201cf2 | d9fe23a7d58ec747fe0bb7a935a3a9d1d52b278f | /website/wheelappeal/views.py | bd45ed0b2ce8a4304f21c05a48fe7cf34d46343d | [] | no_license | tomplarge/wheelappeal_backend | 08c79cb784f8da8c6de9a7a3d0d08de832002eb5 | 792ae1787b3828fecf170180ac3eb2ddf79dd0df | refs/heads/master | 2021-03-27T12:31:41.540936 | 2017-08-27T02:33:19 | 2017-08-27T02:33:19 | 96,696,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,865 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import messages
from django.shortcuts import render, render_to_response, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.template import loader
from django.forms.formsets import formset_factory
from .for... | [
"tomlarge@Toms-MacBook-Pro.local"
] | tomlarge@Toms-MacBook-Pro.local |
aed9f848fb8b0288a52e2436b7906be8aa48e51c | 68df4052826f4857db09642fb8ae2e22f1c40e40 | /LCDtest.py | d5d341911d083bb3d33f42339f30467f44f09bbf | [] | no_license | kamaljain/LLDP-scanner | 3df8910410578a472fb1ca5f31f0d6e6ee473952 | ae83ab1b34a9719818e90d782d8e9921c7654731 | refs/heads/master | 2021-01-25T10:06:47.577500 | 2014-03-10T16:59:36 | 2014-03-10T16:59:36 | 17,600,122 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | #!/usr/bin/python
from time import sleep
from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate
# Initialize the LCD plate. Should auto-detect correct I2C bus. If not,
# pass '0' for early 256 MB Model B boards or '1' for all later versions
lcd = Adafruit_CharLCDPlate()
# Clear display and show greeting, pause 1 ... | [
"root@lldpscan.(none)"
] | root@lldpscan.(none) |
e1f67129c30ab167cbf9c6790236f04d20eaaab1 | adf76b6855bf614a977e77521e343b0af0743c1a | /src/tools/projects/TLS-Evaluationsszenarien/plotter.py | 4a0888c090dbecb195ca9482977411388f04bd79 | [] | no_license | tbinetruy/CIL4SYS | 0d5a01478087500279c5c6f522049c30d91f3c13 | ee41343aaea4fdd5662388a0ee07c46d51101ca9 | refs/heads/master | 2022-12-11T13:00:27.456518 | 2020-01-19T22:12:45 | 2020-01-19T22:12:51 | 157,378,216 | 9 | 2 | null | 2022-11-21T21:48:39 | 2018-11-13T12:39:38 | Python | UTF-8 | Python | false | false | 8,296 | py | # -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2009-2017 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distributi... | [
"tbinetruy@gmail.com"
] | tbinetruy@gmail.com |
57265d76b05e2b087e4f2c8d779c555b44665d55 | dd877edc1bc1f8eb811da4bb2e46670fb1705d44 | /book/migrations/0022_auto_20191113_1226.py | b274ed01754e0e68c41d38022fd4581ec89207d3 | [] | no_license | kushshah99/IRCTC-main | b41855c80cf8f0d66aa0eae3e45e761ebb461894 | 733eaf772fbfd83ab9e677c06c737bf1c319c677 | refs/heads/master | 2020-09-22T10:38:35.078134 | 2019-12-01T12:34:36 | 2019-12-01T12:34:36 | 225,158,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # Generated by Django 2.2.7 on 2019-11-13 06:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('book', '0021_auto_20191113_1225'),
]
operations = [
migrations.AlterField(
model_name='ticket',... | [
"36732575+kushshah99@users.noreply.github.com"
] | 36732575+kushshah99@users.noreply.github.com |
b25b223197707aa1d7833751f8255f5f27c9208e | 2230ad238ff3ee1b2055f5c55e053e3940fa5530 | /tags/migrations/0001_initial.py | 0d0bc425962680ebbdd21014495305e69d43ab77 | [] | no_license | mahmoudabuelnaga/U-Ecommerce | c04347409705b8ae58f5f4a900c1aa08c9f7b86a | 6a7922b343980ab0d5ba09e0176f20339fe768f2 | refs/heads/master | 2020-12-07T09:55:28.786052 | 2020-01-18T02:24:04 | 2020-01-18T02:24:04 | 232,697,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # Generated by Django 2.2.7 on 2019-12-11 23:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('product', '0003_auto_20191203_2255'),
]
operations = [
migrations.CreateModel(
name='Tag',
field... | [
"mahmoudaboelnaga392@gmail.com"
] | mahmoudaboelnaga392@gmail.com |
d434f8119a89c0bf40861172540448fa7119701d | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/resource_performance_get_response.py | dc622b49f3c50e799dc4a35eb7d10df8ce7c4287 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,075 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
cfc16cf3e21baa59d123dd363f25722eee0f3b27 | e343ddefe99048c7d7b09609b3d540adab24956c | /contoh3/app.py | b68bb7fdb626f2ae0425f36d91a6c45884db0c2e | [] | no_license | ulwan/docker-intro | bae0147c4be5a19f7eb3af943437adbf8ff52554 | 202a83aa0fccf19a9ac957286c99d0b2312bd494 | refs/heads/master | 2023-05-14T22:48:35.043351 | 2020-12-19T11:58:53 | 2020-12-19T11:58:53 | 225,844,141 | 0 | 0 | null | 2023-05-01T21:56:20 | 2019-12-04T10:50:09 | Jupyter Notebook | UTF-8 | Python | false | false | 1,182 | py | import os
import pickle
from flask import Flask, request, jsonify
from google.cloud import storage
from mongo_connector import save_to_mongo
MODEL_NAME = os.environ["MODEL_NAME"]
BUCKET_NAME = os.environ["BUCKET_NAME"]
BUCKET_DEST = os.environ["BUCKET_DEST"]
MODEL_NAME = os.environ["MODEL_NAME"]
app = Flask(__name__... | [
"m.ulwan@tiket.com"
] | m.ulwan@tiket.com |
fe4246b890976f4fe5b7fc97683929ec84ba5763 | 9499769b201d3297c31d82420f27f037e3ff75ce | /buildindex.py | 357e6b5b9ee0d9c7c25c76b1b380b32cc6c43763 | [] | no_license | nw127/SearchEngine | 3a61f26d2cf8ffb6801d266ae02f59e06e199409 | 0e9165a692677aade1a305a5d1d5259d7d89d491 | refs/heads/master | 2021-01-20T05:41:09.611720 | 2017-08-26T05:23:15 | 2017-08-26T05:23:15 | 101,464,282 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,239 | py | import re, os, time
from html.parser import HTMLParser
from collections import defaultdict, OrderedDict
import json, math
from nltk.stem import PorterStemmer
from nltk.tokenize import sent_tokenize, word_tokenize
docCount = 0
uniqueWords = 0
class MyHTMLParser(HTMLParser):
def __init__(self):
HTMLParser.__init__(s... | [
"noreply@github.com"
] | nw127.noreply@github.com |
73964d28eb4ee06542e8498ca1999f2603dac844 | 5851b34f42fd6eccc74e78a62e5a201987ddd919 | /Canadadrives.py | 8608b6a7d94406cc44286b75db31df44fa47cc46 | [] | no_license | pramodbojja/SalesForceProject | 9e8409a78707ce212cd2264abdb853be310fff1c | af3edbc174018cf80eb714b25882aa9b3fb2e788 | refs/heads/main | 2023-08-11T20:40:00.130093 | 2021-09-20T22:29:37 | 2021-09-20T22:29:37 | 408,617,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from selenium.webdriver.chrome.options import Options
option = Options()
option.add_argument("--disable-infobars")
option.add_argument("start-maximized")
option.add_argument("--disable-extensions")
# Pass the argument 1 to allow and 2 to block
option.add_experimental_option("prefs", {
"profile.default_content_se... | [
"noreply@github.com"
] | pramodbojja.noreply@github.com |
db6a97471103399b4acbaa9dc171340112e0a465 | ce389da7ee803b8db4aefc97bc6f8edc6453adc9 | /DBproject/mysite/artcenter/migrations/0037_employee_gender.py | 8a9ab9c03f5d0b56b4e2513a6bde67a3044b1526 | [] | no_license | AndreChang85/DBARTCentre | 3c7defa2d5910f03486d0eb1b61423413cff8cf0 | 422bc9fea44002b9d6e0264688a989092dccc944 | refs/heads/master | 2020-05-25T07:52:54.783998 | 2017-03-14T09:36:16 | 2017-03-14T09:36:16 | 84,923,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-15 03:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('artcenter', '0036_auto_20170115_1121'),
]
operations = [
migrations.AddFiel... | [
"ianchang0815@gmail.com"
] | ianchang0815@gmail.com |
01a96b736299d2a5f279992088ca94c7a661d3d6 | 802e218350c0cfeea2836c7887aa35e3f7a79720 | /default/bin/wheel | 97ada0e80ed0c682e52707328af8903fa374fa50 | [] | no_license | jpemberthy/dotemacs | 9b4a9ea4d407e3a6a640bdd0574bcf537b1acb4b | b2b02eb6d02a9dee7217248f5585689eb64bb98c | refs/heads/master | 2023-05-10T18:58:13.807380 | 2023-05-09T21:12:03 | 2023-05-09T21:12:03 | 26,259,474 | 2 | 0 | null | 2023-05-09T21:12:04 | 2014-11-06T07:46:41 | Python | UTF-8 | Python | false | false | 261 | #!/Users/juanp/.emacs.d/.python-environments/default/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"juanp@uber.com"
] | juanp@uber.com | |
62b1a4eaa64c96395c4fdc8876360c7700780af7 | 6899cc4498bfea11f8fc4850d2608693a9b6026a | /s3_service.py | 22c96b926e5bd2447a6d6cff51343cef5e932936 | [] | no_license | jubrowon/export-summary-of-aws-resources-to-excel | 6c7fadf3e60208798cb2b984cbeacfb6239fa045 | 4f71e1efb8630b34564e0d640f1bcf1c408bb9dd | refs/heads/master | 2020-03-10T18:06:49.862379 | 2018-04-14T13:13:14 | 2018-04-14T13:13:14 | 129,517,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | class s3s:
def __init__(self, s3_service):
self.s3_service = s3_service
def describe_s3s(self):
response = self.s3_service.list_buckets()
result = []
bucket_names = []
bucket_name = ''
bucket_location = ''
use = 'Manual needed'
user = 'Manual ne... | [
"jsung@mz.co.kr"
] | jsung@mz.co.kr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.