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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
87800225ea9a1a143e84f35cb8701766aa437ea1 | 8df248e3ee027e57cecfe38bdfda89924349cf04 | /bookstore/book/signals.py | f2bcf92ce0c61afa7e32ad1527ff684c43e15d9f | [] | no_license | abdelrahmany0/django_lab | 187cb9882fc22dea9af639bbcb0206c471d0cf95 | 7b801c2eaba8836d2aefa2b006f17cd23390f85e | refs/heads/master | 2023-05-02T02:56:46.819073 | 2021-04-24T15:21:14 | 2021-04-24T15:21:14 | 360,189,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.db.models.signals import post_save, pre_save, post_delete, pre_delete
from django.dispatch import receiver
from .models import Book, Isbn, User
@receiver(post_save, sender=Book)
def after_book_creation(sender, instance, created, *args, **kwargs):
if created:
isbn_instance = Isbn.objects.creat... | [
"abdelrhmanatta01@gmail.com"
] | abdelrhmanatta01@gmail.com |
33b5d9d75030c1e89f560514f82d4153ce2520fa | 74c28790fb0ad2a6cdf691adbe445b4bed5a05e9 | /test/test_RosTree.py | b8e9b7c38c6dad151e63ad41e70af732fc79bcf4 | [] | no_license | zdenekmaxa/a2d2 | 3ec9a28e381b6dcb115086d478670172727ba70c | 8ef13c192713b1577440321400d165bfe7889541 | refs/heads/master | 2021-01-21T18:50:39.070918 | 2017-05-22T18:52:03 | 2017-05-22T18:52:03 | 92,087,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | """
Testing of the application logic - app package
"""
execfile("../Config.py")
import pytest
from Config import Config as conf
from ros.RosDummyRetriever import RosDummyRetriever
from ros.RosTree import Tree
from util.Logger import Logger
"""
info (DataChannel items (ROBs) per system in testing data):
robs: TI... | [
"zdenek@endpoint.com"
] | zdenek@endpoint.com |
fd6c6f993ade359571a64eedbba53a47e7fb14ff | c6551fc92088db6d2a8481fd974994f1880ec198 | /evita/dom/components/highlights/scripts/tokens.py | 242a2ec517c875ffe135dbfa94583b9f9a761d5a | [] | no_license | eval1749/evita | dd2c40180b32fada64dce4aad1f597a6beeade8a | 4e9dd86009af091e213a208270ef9bd429fbb698 | refs/heads/master | 2022-10-16T23:10:07.605527 | 2022-10-04T07:35:37 | 2022-10-04T07:35:37 | 23,464,799 | 3 | 3 | null | 2015-09-19T20:33:38 | 2014-08-29T13:27:24 | C++ | UTF-8 | Python | false | false | 2,781 | py | # Copyright (c) 2016 Project Vogue. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class Token(object):
def __init__(self, start, end):
self._end = end
self._start = start
@property
def is_action(self):
r... | [
"eval1749@gmail.com"
] | eval1749@gmail.com |
cd5203957ca77e796af5e3c7d8eb273da968503a | cc4444056ee54cfcba7ff9e9bf1e4c041142e0be | /data/get_new_file.py | dc1b92d940faccac75c19a335b589a74b5baed95 | [] | no_license | soliashuptar/Course-project | 6fa3758ce3447a9dee590266c7a3232ab7aeeb7d | 8d77fc8139c8ea4337b1762d6ed332f575eacead | refs/heads/master | 2022-12-13T10:55:24.058638 | 2019-05-26T14:57:49 | 2019-05-26T14:57:49 | 172,096,101 | 0 | 0 | null | 2022-12-08T01:45:39 | 2019-02-22T16:13:16 | HTML | UTF-8 | Python | false | false | 1,466 | py | from urllib.request import urlopen # for Python 3: from urllib.request import urlopen
# from bs4 import BeautifulSoup
#
#
# def get_last():
# URL = 'http://web.mta.info/developers/turnstile.html'
# soup = BeautifulSoup(urlopen(URL), features="lxml")
# lst = []
# for link in soup.find_all('a'):
# ... | [
"s.shuptar8@gmail.com"
] | s.shuptar8@gmail.com |
2e41a438e6f0f5d8e75445868083ba47b994dca1 | 06f83a82b1eea7fc28ccbc2f4c966e06f5b4e82f | /2.76/scripts/addons/Preselection_faces.py | 86985538b1cc5b69f9f16cfe73d6c3ceaee33ef8 | [
"MIT"
] | permissive | himaghnam/BetterBlender | 3a67852d12ec6e7a46ff3e016c02457e5335d0d2 | cc4813cb2068fe77cbe7ae327c6fcf6c1eb344f8 | refs/heads/master | 2021-11-26T06:49:07.119716 | 2016-01-03T08:14:06 | 2016-01-03T08:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,183 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 3dview_edit_preselect.py
# Draw the mesh element under the cursor thicker in Edit Mode
# Copyright (C) 2015 Quentin Wenger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publish... | [
"gieson007@gmail.com"
] | gieson007@gmail.com |
3ebd7bc104862c4021cc3ff533d66593ab946ca1 | c967a3f00b38923379e3462f4d05b757f541805a | /Downloader/sentinel_1_downloader.py | 6813eb130be2de10c5ae75577b9cd3348c6d6a00 | [] | no_license | Hedsw/RemoteSensingFramework | 43e2402c4366c343359f1f82d816bd2488276556 | d3bf275ee99e71e06e95acb51e8b08a0e98688ae | refs/heads/main | 2023-08-14T14:28:22.051148 | 2021-09-27T00:27:30 | 2021-09-27T00:27:30 | 381,853,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | # connect to the API
import os
from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt
from datetime import date
from glob import glob
from xml.etree.ElementTree import parse
#from downloadmethod.sentinelAPI import API
from filechecker.zipreleaser import unzipper
class sentinel1:
def sentinel_1(jsondirec... | [
"yun.hyeok.lee@gmail.com"
] | yun.hyeok.lee@gmail.com |
6b6af12b1085b6a2610de6ae66c12d89572aa906 | 9d4bc87d693688ff898f25f2e58ceb0687935b5c | /vid_frames.py | adf98739aa3883587094aed2072f6c7bb539c597 | [] | no_license | Yashrajmotwani/TextfromImage | 46fdea3eac1b123a596c68f2b00c8c266eebe2bd | 863b6319d606cd0d3d6ee48340eb45b9b4f2a60f | refs/heads/master | 2022-10-20T14:09:29.216314 | 2020-07-06T06:41:38 | 2020-07-06T06:41:38 | 277,463,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import cv2
import os
from PIL import Image
import pytesseract
import re
import pandas as pd
# Include tesseract executable in your path
pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe"
# Read the video from specified path
cam = cv2.VideoCapture("C:\\Users\\YASH\\... | [
"noreply@github.com"
] | Yashrajmotwani.noreply@github.com |
8a8c83115058802253bdc23bf2c6e0f87b1dce74 | d134ab3ea473ed01c05d4be70734f2fdb6e257c6 | /tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 4460ad5182ac56ea7e7ccb6d5a134dc244200315 | [
"Apache-2.0"
] | permissive | tp46/tensorflow | 2ff6b3d3b09c65bf2a8b6ae33cbb5ff94bf5e74d | 2a050766bf0556d7d92eea62d40fd2bebbcb399f | refs/heads/master | 2020-04-10T07:29:49.244741 | 2018-12-07T22:18:35 | 2018-12-07T22:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,473 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
186b8b843fa10b939df0757d0d168f34b16899da | ce5a4b9ce48990163320da3ed9de21c163decfad | /gui_basic/12_frame.py | e51bcb399dcf7b20eec94f972e933c76f98fbe50 | [] | no_license | wjddn1892/PycharmProjects | 05cacb25658ba1360adf7d29eab72e9b01d6273c | 9166411102cb773e2f3159bfbea15f014688e840 | refs/heads/main | 2023-06-09T09:10:07.140920 | 2021-06-25T22:53:06 | 2021-06-25T22:53:06 | 380,072,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import tkinter.messagebox as msgbox
from tkinter import *
root = Tk()
root.title("My GUI")
root.geometry("640x480") # 가로 * 세로
Label(root, text="메뉴를 선택해주세요").pack(side="top")
Button(root, text="주문하기").pack(side="bottom")
# 메뉴 프레임
frame_burger = Frame(root, relief="solid", bd=1)
frame_burger.pack(side="left", fill... | [
"wjddn1892@yonsei.ac.kr"
] | wjddn1892@yonsei.ac.kr |
0d7184a80475f7a0641e24853ef565479c0e124d | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes2/64.py | 3f5c349b6d306976ab708a09143df5219a533f84 | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,746 | py | data = [
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ... | [
"lists@quernstone.com"
] | lists@quernstone.com |
efc8b177d2d35e7fa35af7c79d8759abeeae8a66 | 83f798c2f6041b5b290f8268094b6cb2fbb5ceb0 | /lab3/3-moving-target/attack_target_3.py | b44f6f8f963af06a425e7fa21472f26b96a86765 | [] | no_license | hanzheteng/Security | 482b5c9026d0b76e440b4a6cbf5455c735f4ece5 | 6babf177c64eb236ccd39c5e5165a070e6426b42 | refs/heads/master | 2021-04-12T09:03:02.537684 | 2018-03-26T18:29:05 | 2018-03-26T18:29:05 | 126,871,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | #!/usr/bin/env python2
import os
import struct
import subprocess as sp
def p32(n):
return struct.pack("<I", n) # < little-endian; I unsigned int
def p64(n):
return struct.pack("<Q", n) # Q unsigned long long
def ps(n,s):
return struct.pack(str(n)+'s', s) # s char[]
if __name__ == '__main__':
... | [
"hanzheteng@outlook.com"
] | hanzheteng@outlook.com |
0fa49fa56c48070a993878b291fcdc4f3d1e9b76 | 8e028724e32ca8f5de409eb8b47ade47838e04ef | /Session 6/bmi_calculator.py | 7de26a582075c28af4bc74530b030110dcaffe33 | [] | no_license | lmendez2/mis-3640 | 99883d06d8e071428a7d959113779b1e7cf196d2 | 604ba4b08f0e8e1232d8ddc0ff2a4f43b2ce92ec | refs/heads/master | 2021-01-25T16:53:47.224837 | 2017-12-02T03:20:25 | 2017-12-02T03:20:25 | 102,031,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | def calculate_bmi(weight, height):
bmi = (weight/(height**2)) * 703
"""print("your bmi is", bmi)"""
if bmi < 18.5:
print('your bmi is ' , bmi ,'you are underweight')
elif 18.5 <= bmi < 25:
print('your bmi is' , bmi , 'you are normal weight')
elif 25 <= bmi < 30:
print... | [
"lmendez2@babson.edu"
] | lmendez2@babson.edu |
2a3d8961563e89dcb757353135d672bbe965cc46 | 907c7a22a05aade47eb77c2dd5412a15d2daf337 | /traceroute/traceroute1/demo4.py | 00e5159d6dec15427cf375cdd9740c2e70468c67 | [
"MIT"
] | permissive | MinTimmy/TCP_IP_Protocol_Suite | 2948c936434fa8a3a95da21249e49ef811c32cae | d2d1475e9d587f2e7ebce3d0800e901d09759052 | refs/heads/main | 2023-02-10T04:15:13.175766 | 2021-01-06T15:29:06 | 2021-01-06T15:29:06 | 315,178,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Multi-source traceroute with geolocation information.
"""
import datetime
import json
import optparse
import os
import re
import signal
import sys
import urllib
import urllib2
from subprocess import Popen, PIPE
USER_AGENT = "traceroute/1.0 (+https://github.com/ayeowc... | [
"timmygood6590@gmail.com"
] | timmygood6590@gmail.com |
60e22be7f8c509907e04e928cd184da9fea7a204 | 7e36fe29ac620ca8670d8f8b2b51c3999dcf7b46 | /AOD_pi0/python/ConfFile_cfg_delme.py | 0b1d280fcabe968808026ebf897d04b7e9afea46 | [] | no_license | greyxray/AOD_pi0_study | 9ac8c2034b10b99a7a438d57c68c77422a5646a2 | 689032500479f61b06bf06727eadddcaef8d6aae | refs/heads/master | 2021-05-01T19:29:40.693030 | 2018-01-25T13:11:25 | 2018-01-25T13:11:25 | 71,875,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,744 | py | # Use the tracks_and_vertices.root file as input.
import FWCore.ParameterSet.Config as cms
#from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #from Configuration.AlCa.GlobalTag import GlobalTag
#from RecoVertex.V0Producer.generalV0Candidates_cfi import *
process = cms.Process("KSHORTS")
# Use the tracks_and... | [
"greyxray@gmail.com"
] | greyxray@gmail.com |
7d8682b642881c8c77975a915609b9d0271efe14 | cc5b1969668c629963c6c1364c716c0ed9fa8157 | /ACS502/ACS502_HW6/ACS502_HW6_Q1_PulsatingSphere.py | 52e86dc857cbd105bd401d2816ea502fe6f01225 | [] | no_license | jasseratops/PSUACS | 7ba32eb4f211f8a844c230348566779a9f351dee | 59afb25862ddeea91c172067942e9850fb088604 | refs/heads/master | 2020-03-07T16:24:34.799100 | 2020-01-06T20:50:19 | 2020-01-06T20:50:19 | 127,581,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import numpy as np
from numpy import sin, cos, tan, pi, exp, log10
import sys
def main(args):
pr = np.sqrt(2.)*2.
r = 5.
r0 = 0.01
rho0 = 1.21
c0 = 343.
'''
rho0 = 1026.
c0 = 1500.
'''
f = 500.
omega = 2*pi*f
A = (pr*r)/(omega*rho0*r0)
k = omega/c0
u0 = np.s... | [
"mhalshehri92@gmail.com"
] | mhalshehri92@gmail.com |
a720391e1a333720eee9a268e65ed79d9042c4d7 | 72aca4d643364c31718761540196c01505c4cfc0 | /exercise1/number_converter/scripts/listener.py | acf47d416816c1f5ce06e866a7a33a025301b42d | [] | no_license | viktorialinnjansson/kthfsdv | af2c06313f4d689c4be3d14f7c62b31aee0a43a4 | b95b205c600e13eb0e37a23df21b938952c123c2 | refs/heads/master | 2022-12-17T13:40:04.745849 | 2020-09-22T08:55:08 | 2020-09-22T08:55:08 | 297,290,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | #!/usr/bin/env python
## This code is based on the listener.py provided in the beginner_tutorial on ROS.
# listener.py contains a subscriber and a publisher. It subscribes to a topic and converts the recived data before publishing it to another topic.
# Subscribes to /jansson and publishes to /kthfs
import rospy ... | [
"noreply@github.com"
] | viktorialinnjansson.noreply@github.com |
c590af7d21818335657d6bf71f907582d1e8f66f | a7c9ff94c4cd21353172d2ba8e115817aa254e85 | /tracker.py | ee6905b9b1e36196c0744a30c3c3570525ec0c30 | [] | no_license | pedramha/ps5-price-tracker | 912a0734c2dff6e951041a01d837dcce970d8d4e | 8832bf33eaa616446e86c4523698345d54818b14 | refs/heads/master | 2023-03-25T00:29:07.229039 | 2021-03-18T21:17:06 | 2021-03-18T21:17:06 | 349,214,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | import selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import ElementNotInteractableException, NoSuchElementException, StaleElementReferenceException
from random import randint
impor... | [
"pedram.hamidehkhan@gmail.com"
] | pedram.hamidehkhan@gmail.com |
2b4dafb5eaa8bf9ea0c3add54780e18e4e2070a3 | 450b8673dd431f0e60acc3ff7c87ff611c8077aa | /utils.py | aeb4b5b8212085f9a6b5ce6249a13f53c8b01c6e | [
"MIT"
] | permissive | alexrios22/TradeBot | eaa999bcf427f691c99ca828e05c9a9cdee2d041 | 1eeeadf4f621d8cd09de6fc9748a230532ce707a | refs/heads/main | 2023-06-01T12:43:20.958092 | 2021-06-27T14:28:31 | 2021-06-27T14:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,406 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import math
import os
from datetime import timedelta, datetime
from dateutil import parser
import logging
import json
import config
log = logging.getLogger()
logging.basicConfig(level=logging.INFO)
binsizes = {"1m": 1,
"3m": 3,
... | [
"alexanderpieper@alexanders-imac.fritz.box"
] | alexanderpieper@alexanders-imac.fritz.box |
0e04e4150f2d60b98d247fda4808764e4ee67a52 | ac1434f4f8e029191410355ea3b88f0c4a5d1b98 | /speaker/model/speaker_diarization.py | d6e7451b972315bfed0613d06773cb7df3e31fb4 | [] | no_license | oukaja/ML-SpeakerDiarization | 9ac2ed2ade296f9ed439af20d890fc261a55a2b0 | 9e5ef6135bba7be5be665bc26eafa77f6e7685a3 | refs/heads/master | 2020-03-18T23:23:30.224112 | 2018-06-16T03:12:11 | 2018-06-16T03:12:11 | 135,399,476 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | """
unsupervised: process: feature extraction --> kmeans(silhouette)
"""
import os
import sys
sys.path.append('../')
import numpy
from scipy.spatial import distance
import scipy.signal
from speaker.utils.feature_extraction import *
from speaker.utils.utils import *
from speaker.utils.vad import *
from speaker.model.uns... | [
"oukaja.mehdi@gmail.com"
] | oukaja.mehdi@gmail.com |
544a7a2c7591eb9b2aa97f94f79c5cb8ab9b31da | f73a6b3bb027484b8f3a1007bbb3b50156f66357 | /search_service/milvus_2x/engine.py | d8be2c2d055497c8a9c5112f0f463456e9c155c0 | [] | no_license | lijiunderstand/face-rabbitmq | d55c0972505ba419fe8d566341a910b6cee94d67 | d244e160b9150458f83812e31ecdf142854add01 | refs/heads/master | 2023-08-08T00:59:22.891863 | 2021-08-28T05:15:48 | 2021-08-28T05:15:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,026 | py | import os
import sys
import time
from pymilvus_orm import connections, Collection, DataType, FieldSchema, CollectionSchema
class SearchEngine:
def __init__(self, milvus_config):
self.milvus_config = milvus_config
self.connect()
self.collection = self.create_collection()
def connect... | [
"minhdc@fabbi.io"
] | minhdc@fabbi.io |
cc4c2f20b1939c934d2cbe1ab8dbed8144b4bf14 | e319c617f69238d2e83a0c3e56f489d6bb1ec270 | /TweetyApp/wsgi.py | c691a06c49511a4f1f37786725f03293133f8138 | [] | no_license | goku00z/Tweezy | ed1af39909e375576a623046e46583545536fbbb | 6ac139dba7260dbe353adafd35939cb605cdecb9 | refs/heads/master | 2020-04-12T20:28:59.343569 | 2018-12-14T16:30:15 | 2018-12-14T16:30:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for TweetyApp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"aswanth9495@gmail.com"
] | aswanth9495@gmail.com |
7b23862ee9a50cd072b991a23d13e35a659f96a4 | 799cfbd2c6426ffa7ab5f188bd647d572051914c | /plusOne.py | 995938a479724e5833e9a8f58a820a586452986d | [] | no_license | van950105/leetcode | af8d2ded307afbfbf67df604a69406f9ab5ef1b0 | 7b6cbab37e13ff1d764b852bc1794ecbfd4feefe | refs/heads/master | 2016-09-03T06:22:43.451203 | 2015-11-12T18:49:38 | 2015-11-12T18:49:38 | 25,235,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | class Solution(object):
def plusOne(self, digits):
"""
:type digits: List[int]
:rtype: List[int]
"""
if digits==[]:return[1]
if digits[-1]<9:
digits[-1]+=1
return digits
else:
temp=self.plusOne(digits[:-1])
temp.append(0)
... | [
"ryan.gm.nb@gmail.com"
] | ryan.gm.nb@gmail.com |
75fa814e60eee68846809c4461f321aaddb9fd38 | 170fb25b53f0b2fac8e37a0997b867c1f912a9d9 | /treestories/blog/migrations/0004_auto_20190521_1246.py | c1cc388476d256e304d265c6af442848c08ca1a8 | [] | no_license | wobin1/treestory | bb7ac390cf4200caebbb4cd0e878156047807780 | 02557009a26d2b06a62e3ae8c92d2115b8655ca7 | refs/heads/master | 2023-04-30T19:54:07.810488 | 2019-09-19T10:33:33 | 2019-09-19T10:33:33 | 209,525,284 | 0 | 0 | null | 2023-04-21T20:37:58 | 2019-09-19T10:26:41 | CSS | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.2.1 on 2019-05-21 11:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_author_profie_picture'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name='profie_picture... | [
"nathanielmusa3@gmail.com"
] | nathanielmusa3@gmail.com |
f15d0dca92a918202cf43006bec11ac56ebcbf18 | 4a0ae3fa8ad99a09395121c1699104741d279465 | /Models/Oiseau.py | 4e7f3a5bb7b62d501c844e31d9092e5a3e6b37fe | [] | no_license | TuTuKLK/annimals | edd8fd62d96c279b74bc89193490b3c54faccf13 | 43d4dc0903d0eb77f9b3cb702f7f575748756358 | refs/heads/master | 2023-06-28T09:45:38.836392 | 2021-07-16T08:34:45 | 2021-07-16T08:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from Models.Beast import Beast
from datetime import date
class Oiseau(Beast):
def __init__(self, nom, poid, taille, sexe, dateNaiss, arrive,couleur:str,cage:bool):
super().__init__(nom, poid, taille, sexe, dateNaiss, arrive)
self.Couleur=couleur
self.Cage=cage
def __str__(self):
... | [
"geant.vert42@gmail.com"
] | geant.vert42@gmail.com |
b334ea3a2f976c7ebb9e52757e6edf9b89369ad6 | fca71c1226a9c0c8ca22b53bdcf1ba35765ab65a | /create_plists/singles/trance | 0ec76d22a86f317bacd3a4cf482cd91921f63415 | [] | no_license | ssem/passwords | a6b9587aa18eb98cbe24e36294f007ac6c5844d0 | f88280b3aeb022c4e496fd67f21fd29acbf4554d | refs/heads/master | 2016-09-05T16:11:16.602343 | 2015-08-21T06:15:16 | 2015-08-21T06:15:16 | 31,722,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/usr/bin/env python
import requests
http = requests.get('http://www.trancetop1000.com/TranceTop1000-2013.html')
for x in http.content.split('\n'):
if '.' in x and '<br />' in x:
print x.split('.')[1].split('-')[0].split(';')[0].rstrip(' ').lstrip(' ')
| [
"ssem30@gmail.com"
] | ssem30@gmail.com | |
71d5356e360be8c5c36a70148cb64f067cde5ead | 1518510f188ea81016a16ac6f0eb326cdf57b15c | /app_usage_api/views.py | 17e22b4caf15976a7b6d5c5b3ebbb276d8c07e9d | [] | no_license | anilsoni7/api | 24c6c74a349c703b24f64329bdc5416d7be5b051 | 35a2e133014aea36954b9011f320656c72e6751c | refs/heads/master | 2020-08-23T13:02:36.134095 | 2019-11-20T09:07:44 | 2019-11-20T09:07:44 | 216,622,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.http import HttpResponse
def index(request):
return HttpResponse('build the following url. api/predict/{application name}/{user_id}', )
| [
"anky.soni8460@gmail.com"
] | anky.soni8460@gmail.com |
4773ec289b9d46bdcfba4a3a5c993bd747310c3a | 165d2fd2552a765bdf12ad1b8977eaf2f2778f3d | /sendsms.py | 424e74a0306e5a800c26ad5baca4d11c78f3c18e | [] | no_license | dnlfdz/dashyn | c5a63998f0fedc71738b2ac787fbf1020dd032f5 | bba0bc456c8ad5afc60d639453bc44309863a9eb | refs/heads/master | 2021-05-29T04:02:13.370286 | 2015-08-24T03:18:08 | 2015-08-24T03:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "[YOUR TWILIO ACCOUNT ID]"
auth_token = "[YOUR TWILIO TOKEN]"
client = TwilioRestClient(account_sid, auth_token)
message = client.messages.create(body="Dashyn Alert Triggered",
to="+10000000000... | [
"dfernandezio@users.noreply.github.com"
] | dfernandezio@users.noreply.github.com |
aa6f5dbbf0276ea126518244a991ca3492142ea4 | d561d9d796398cff7a97d20ea308e1a4ce559982 | /data_analytics/models/neural_network.py | c5ef018c540ae7b01e397eeeb5c396f5517d1227 | [
"MIT"
] | permissive | Botazio/UCD-DublinBus | db8585dc3692b633152ca609bd17ed0fd5b8c405 | 35955cd9166b086f59157d23ed05a8ffcf82b617 | refs/heads/main | 2023-07-16T09:15:51.472348 | 2021-08-24T19:49:57 | 2021-08-24T19:49:57 | 375,993,567 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import argparse
from .utils import train_all_stop_pair_models
# Command line argument to turn on downloading of new data
parser = argparse.ArgumentParser()
parser.add_argument('--grid_search', help="Perform Grid Search", action="store_true")
parser.add_argument('--start_num', type=int)
parser.add_argument('--end_num'... | [
"noreply@github.com"
] | Botazio.noreply@github.com |
9e8ce0cf2f9b700f5de7e63609e525789dd3ce7a | 796ff82b74183e479d3a1cdaef14578af53d92b1 | /data_and_posterior/jolly_seber_model.py | 6dc30e17f302cf5bf02c383b3423a2c0ab6e824f | [] | no_license | chiroptera2008/discontinuous-hmc | d92b61a329b84a9d2d1fe9d0ac3d6abc2de369c1 | 9790a1874480eb2e6c106ef5253760de9cc0c522 | refs/heads/master | 2021-09-21T01:44:54.650920 | 2018-08-18T17:33:59 | 2018-08-18T17:33:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,891 | py | import numpy as np
import math
# Data (sufficient statistics) from the black-kneed capsid data in Seber (
# 1982).
n = np.array([54, 146, 169, 209, 220, 209, 250, 176, 172, 127, 123, 120, 142])
R = np.array([54, 143, 164, 202, 214, 207, 243, 175, 169, 126, 120, 120])
r = np.array([24, 80, 70, 71, 109, 101, 108, 99, 70... | [
"akihiko_nishimura@hotmail.com"
] | akihiko_nishimura@hotmail.com |
8a84f66dfe79a0bfd04b3d73743e2b0e928f5739 | 2f5418faba0d8687629790954e2681c6b7cc52d0 | /test.py | f3c0c5db82e28f72c2b966ecc8e02d39dca59188 | [] | no_license | enczilada88/test_Sylwia | 2b55cb9b4140867db1f5e6b840c306fd40396879 | 44a25152dcfd1feec461aa3cb4acdeb0be89768e | refs/heads/master | 2023-08-17T15:12:08.216028 | 2023-08-02T14:00:24 | 2023-08-02T14:00:24 | 360,966,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | #zadanie1
shopping_list={
"piekarnia": ["bagietka", "kajzerka", "grahamka","chałka"],
"warzywiak": ["marchewka", "cebula","sałata"],
"mięsny": ["schab", "szynka"]
}
number_of_products=[]
for shop, products in shopping_list.items():
for n in products:
Products=[]
for n in products:
... | [
"pacek.sylwia@gmail.com"
] | pacek.sylwia@gmail.com |
9f89cd804a35d8fb1df192bfec08abe49386513a | 3784495ba55d26e22302a803861c4ba197fd82c7 | /src/torch/legacy/nn/SpatialConvolutionMap.py | e901140a528bb3805879a4884c68b43e1afbd26d | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 4,384 | py | import random
import math
import torch
from .Module import Module
# TODO fix THNN...
class SpatialConvolutionMap(Module):
class maps(object):
@staticmethod
def full(nin, nout):
ft = torch.Tensor(nin * nout, 2)
p = 0
for j in range(nout):
for i... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
2e6f4aac1213e10fc80a3583004a9ba861baeaf4 | a1dc9b5030de30b50d36de690faa8ae76a0ab89d | /CursoEmVideo/pythonProject/ex076.py | e8e276f2c52a66e9846678ad58cd49e2bc0fb329 | [
"MIT"
] | permissive | lalapapauhuh/Python | 6c1816f822bf6a56806941fc49c8fdaa4282f175 | 1454263b46d66a0b19b7a2fd1b465800fe95a2c8 | refs/heads/main | 2023-02-21T07:07:42.853324 | 2021-01-25T23:05:15 | 2021-01-25T23:05:15 | 332,911,059 | 0 | 0 | MIT | 2021-01-25T23:15:35 | 2021-01-25T23:15:34 | null | UTF-8 | Python | false | false | 496 | py | #lista de preços com tupla
precos = ('Lápis', 1.75,
'Borracha', 2.00,
'Caderno', 15.90,
'Estojo', 5.00,
'Transferidor', 4.00,
'Compasso', 9.99,
'Canetas', 12.00,
'Mochila', 89.90,
'Livro', 54.90)
print('-'*40)
print(f'{"LISTA DE PREÇOS":^4... | [
"51422880+cassio645@users.noreply.github.com"
] | 51422880+cassio645@users.noreply.github.com |
709075625a1876a6074c6a94228fbb226ea52052 | 3ef79960a475d8297eed1e45f736311e7ceb7b52 | /components/formbuilder/formbase.py | 625c4628f41a85ccb80c630479b2a146f16acb04 | [] | no_license | crsmit1979/InvestorDeals_Python | 8ac98aa78e0a75e96ce1e8066fa113913b238c64 | adcab263da5c7ac56ab37de86ca4b28ce0fbfadf | refs/heads/master | 2022-12-13T17:19:18.404561 | 2019-03-28T07:08:34 | 2019-03-28T07:08:34 | 178,141,228 | 0 | 0 | null | 2022-03-21T22:16:53 | 2019-03-28T06:34:21 | CSS | UTF-8 | Python | false | false | 9,819 | py | from components.formbuilder.uicomponents import FormObject, FormSeperator, NonFieldObject, FormHeader
from flask import render_template, redirect
class CustomFormBase(object):
def __init__(self, request, endpoint_name, caption, method=None, action=None, sub_text=None):
self.errors = []
self.method ... | [
"crsmit1979@gmail.com"
] | crsmit1979@gmail.com |
6f4d7ba3cce0793b202eb91ca89412a78b296c3e | 787778879d68946cb053744278771b14541bd198 | /tensorflow/contrib/skflow/python/skflow/estimators/base.py | 30332a00c9a104821466b1a4ec7adbf92559f538 | [
"Apache-2.0"
] | permissive | yluo42/tensorflow | 82a8ea0267d040377c88bf90459a89bc9d18f41d | 30f3cdfc420d831e2591cce62fa51164cf8a700a | refs/heads/master | 2021-09-24T20:29:32.182046 | 2016-04-05T18:44:52 | 2016-04-05T18:44:52 | 55,558,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,945 | py | """Base estimator class."""
# Copyright 2015-present The Scikit Flow 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/LIC... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d4810533800d1129407933592c365b2f8e48419b | d08ce5c9b1fdd200b1d4de757d9d44f9acc0a54b | /MxOnline/apps/users/apps.py | 3680e180cafa9e04aabfed7a6c2d66e80d175436 | [] | no_license | smartwange/pygame | 82ae829f1448b877473428aa3b857d55af96588c | 75caf2cd360d4badfe57a6e4ff2a00c06f10d1f3 | refs/heads/master | 2022-05-24T14:13:37.825044 | 2020-05-11T03:48:11 | 2020-05-11T03:48:11 | 197,743,887 | 0 | 0 | null | 2022-04-22T23:18:02 | 2019-07-19T09:24:58 | Python | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'apps.users'
verbose_name = '用户'
# 设置后台管理名称
| [
"smartwange@gmail.com"
] | smartwange@gmail.com |
85e96660bb29446316226abba4855c1e26b4b831 | 926f18a3c29ea76f736bfa29da8cc4fe899b1032 | /dssp_api.py | aa8e6bd945c456d9e69565f1839f382c429863b4 | [] | no_license | SherlockedTxh/DGL_GAT | 39b0b733b933fff4f1646424f9b44951d8685f6f | 631c7a318699cb7e802f719d817b30c5568ed3e4 | refs/heads/master | 2020-09-29T09:38:47.663388 | 2019-12-10T02:38:11 | 2019-12-10T02:38:11 | 227,011,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
This example client takes a PDB file, sends it to the REST service, which
creates HSSP data. The HSSP data is then output to the console.
Example:
python pdb_to_hssp.py 1crn.pdb http://www.cmbi.umcn.nl/xssp/
"""
import argparse
import json
import requests
import time
def pdb_to_hssp(pdb_file... | [
"noreply@github.com"
] | SherlockedTxh.noreply@github.com |
bb5c7a70546fc29a2cb0d9a030c1d4e9556de711 | f3c39f8e6e532956f87506ee1cc8ab48feaa9207 | /src/hipikat/views/blog.py | 9d5e26a2310945b0e6fe723f5b8a45d94fcb6ef4 | [
"BSD-2-Clause"
] | permissive | hipikat/hipikat.org | 979dc4d1f29e40e843a56798f1036c22d2371660 | 836b703d3dded2398db524b8177fba3c41f2c80f | refs/heads/master | 2020-04-23T19:02:23.863013 | 2014-03-15T08:17:04 | 2014-03-15T08:17:04 | 12,207,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py |
from elephantblog import views as elephantblog_views
from elephantblog.models import Entry
class BlogIndexView(elephantblog_views.ArchiveIndexView):
paginate_by = None
def get_context_data(self, **kwargs):
context = super(BlogIndexView, self).get_context_data(**kwargs)
context['archive_title... | [
"adam@hipikat.org"
] | adam@hipikat.org |
7b490f80ae0998de959f9d75b7c9872a0e7c11ea | 72a3f41a94202d6d378c222c5cfa9e68155109bb | /uralbrick/tags/0.1/catalogapp/api/__init__.py | 65b560c47a39864c67faf72064810cdf4cf0f98f | [] | no_license | vakhov/python-django-projects | c312b8bcd94aa448a2678c156ff4936e4a68f668 | 6f296aa75d7692eb5dcb68ef4ce20cadee9dc9e6 | refs/heads/master | 2021-01-17T12:12:56.730072 | 2012-07-25T16:40:45 | 2012-07-25T16:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | import brands
import goods
import sections
import specfields | [
"succubi@succubi-Inspiron-1501.(none)"
] | succubi@succubi-Inspiron-1501.(none) |
e2a338049711a6ad6960e1c4ee5c4c2dfd2710f1 | 12c18d9d0b210698f61f70f458a46647fc99356c | /p57.py | 262e70bded90556b2b859ec765ea7307ee71e68f | [] | no_license | ddgvv/dd | 503a64b08e12de79b5812fd39a76c826aadbd06c | 2e07d92123960e9625198a454ad3973671761fda | refs/heads/master | 2021-07-04T16:40:01.904529 | 2019-05-17T08:10:30 | 2019-05-17T08:10:30 | 110,428,294 | 1 | 10 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | string,c=input().split(' ')
place=string.count(c)
print(place)
| [
"noreply@github.com"
] | ddgvv.noreply@github.com |
1fafa6db558c6073910962a1fd4bfd7d3019592a | a00ec9691cd5e56db93d290cb7a7b1edfef6437f | /eco/eco/asgi.py | 2059a74dc9da807b96848d839ceb20e1570e7a08 | [] | no_license | pronob1010/Ogani | 7e6dfd424a830bd3355cf07f7a01eb521d8716d4 | f6ff3dc8ed40ce46a993d1f83e122fbbc61836cf | refs/heads/master | 2022-10-24T06:22:44.044064 | 2020-06-21T22:01:08 | 2020-06-21T22:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
ASGI config for eco 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_SETTINGS_... | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
d8250130c9b27e5f20d0082636fa0685baae01c8 | 016747529a09dd12ef9979e778d0bd700c6e54c6 | /Primitve_Scrapers/Old Scrapers/EllimanCommercial_Scraper.py | 21de57852ef9eb102d4ec592555afb621518abdf | [] | no_license | goobyme/WebScrapers | c8cdc1627c73ea8f86a64d510f7816b89898e7c4 | 5e6bbdd0761236ee4886db991b40d202347eb22c | refs/heads/master | 2021-09-07T07:56:01.236791 | 2018-02-19T18:36:58 | 2018-02-19T18:36:58 | 116,184,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,597 | py | import requests
import bs4
import pandas
import re
import threading
import os
import vobject
import codecs
import logging
import shelve
THREADCOUNT = 4
SEARCHPAGE = ['https://www.elliman.com/retail-and-commercial-brokerage/team',
'https://thefaithconsoloteam.elliman.com/about',
'https://the... | [
"goobyme@gmail.com"
] | goobyme@gmail.com |
104322e5df9b48fb37ff88995b6a1e73cb6baafc | fab30a72ec07ff3a899fdc3af16462a3fc937a15 | /Primer_practica/suma1.py | aec55035f8fd5db9e779e0a3bf0d058d508b6632 | [] | no_license | pptscdia2021/pp12021grupo8_a1-practica-profesionalizante-g8-a1 | b7d78376fc5fa6778c08539981f22ee897a0b6e8 | 4845ae25c5d2b7f70e5431824350c7322d8ff187 | refs/heads/main | 2023-09-03T03:03:46.256248 | 2021-11-15T22:24:52 | 2021-11-15T22:24:52 | 403,770,790 | 1 | 0 | null | 2021-11-15T01:11:25 | 2021-09-06T22:14:31 | Jupyter Notebook | UTF-8 | Python | false | false | 151 | py |
# Suma, 3 parámetros, devuelve la suma de los 3.
parametro1 = 5
parametro2 = 4
parametro3 = 2
suma = parametro1 + parametro2 + parametro3
print(suma) | [
"eric92rodriguez@gmail.com"
] | eric92rodriguez@gmail.com |
684f41291c5649cc6d2f5bf67074bc4427f0428d | 52b3bb79b523d24a46e82bb950e3de9507992d50 | /1962(Há Muito, Muito Tempo Atrás).py | 06b8de7ae9225e9e4ba96efb245d1732d8a65f4b | [] | no_license | danielleal89/URI-Desafios | b70b51248c855ad0d65364c9015f2a030e7ce469 | c6f3e4b428ef11aa40cd70c873135bfa0ebb6e29 | refs/heads/master | 2020-12-19T08:13:14.042942 | 2020-05-08T01:21:38 | 2020-05-08T01:21:38 | 235,676,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | N = int(input())
for i in range(N):
ano = int(input())
if ano >= 0 and ano < 2015:
calc = 2015 - ano
print('{} D.C.'.format(calc))
else:
calc = ano - 2014
print('{} A.C.'.format(calc))
| [
"noreply@github.com"
] | danielleal89.noreply@github.com |
28b571d079469019f39c67f073e097e294b1368f | b29ea4257f3d843fe90f288c9d1f5b0294dd298b | /plane.py | 124b48e4e5f6a731e510dc3401d766f0da17b55b | [] | no_license | zqy628/pygame | 0a536cc915a7cc7e72a0c6b3c9d1bf42555053ec | dc8ddcf10ffd50a81e4337e574d734aa4e936579 | refs/heads/master | 2020-12-02T11:35:08.266060 | 2017-08-05T13:12:05 | 2017-08-05T13:12:05 | 96,657,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygame
class Plane(object):
def __init__(self):
self.image = pygame.image.load('plane.png').convert_alpha()
self.restart()
def move(self):
x, y = pygame.mouse.get_pos()
self.x1 = x - self.image.get_width() / 2
self.y1 ... | [
"191155395@qq.com"
] | 191155395@qq.com |
7fc5fc8829de1dcf123347fcd4404cc65ca1a795 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/privatedns/azext_privatedns/vendored_sdks/models/aaaa_record_py3.py | 2cd662761ff9da8073fe44d4aa1f2ee418445ab3 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 918 | py | # 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) AutoRest Code Generator.
# Changes ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
a3430eac0eaa4d27f75459b66543408ecd94e2cb | cb78e5fd4d172bf0aed6162eca4b46ae96a347f3 | /q2.py | 2aff3dd990065502af4e5459d25959b6c02b2a87 | [] | no_license | hamedzarei/nlp-min-edit-distance | b8cd5f9d255b0c333df5c49352f1b1f46333925d | 08851a2d2839e4da7c50833ad930e318f410e711 | refs/heads/master | 2020-03-15T13:22:16.529199 | 2018-05-04T16:43:13 | 2018-05-04T16:43:13 | 132,164,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,783 | py | import numpy
from nltk import RegexpTokenizer
def levenshtein(w1, w2, coef=2):
w1_len = len(w1) + 1
w2_len = len(w2) + 1
distance = numpy.zeros(shape=(w1_len, w2_len))
ptr = numpy.empty(shape=(w1_len, w2_len), dtype=numpy.str)
#initialize
for i in range(0, w1_len):
distance[i][0] = i
... | [
"hamedzarei.7232@gmail.com"
] | hamedzarei.7232@gmail.com |
58bfd34c1b2f9a9080584c478ec08520eec7a21a | c386dc879eaed7f2259252665dde91f7d3f79caa | /superlists/urls.py | 39a3c719812e6dc94a95c499380b03da3485f64f | [] | no_license | TrueMohsen/superlists_Django1.8 | 36ff87dd31219ceebcd6768e132cb5751656bb82 | d084e93083b23004be5ddfb566b08e12e0ddda73 | refs/heads/master | 2022-12-14T08:04:43.812119 | 2020-09-16T20:52:09 | 2020-09-16T20:52:09 | 295,984,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
# Examples:
url(r'^$', 'lists.views.home_page', name='home'),
# url(r'^blog/', include('blog.urls')),
#url(r'^admin/', include(admin.site.urls)),
]
| [
"seaoceania4@gmail.com"
] | seaoceania4@gmail.com |
fce765142eaf423639434d0ee0255320be03ebd1 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/11e23c18-1596.py | 3ca27f59f5378a6af4db567a8641f9832a2735e3 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
import re
def assign(service, arg):
if service=='tipask':
return True,arg
def audit(arg):
code,head,res,errcode, _=curl.curl2(arg+'?dfferfdsfe')
if code == 404 and res:
m=re.search(r'file "(.*)" not found',res)
if m:
... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
f50d8b38ac25dae735bc905b38b587c301cc50f2 | 60158458117d4ea9e1b232a6835c2eb0f945f6a5 | /deteccao_bordas3.py | e50dc2fcb46fafce1183f497a573df4a5c479859 | [] | no_license | Ap0c-dev/Trabalho-Final-Processamento-Digital-Imagens | 76b6761260bb3fb941b1dcd87cbcdca0ac28b30a | 3260dfd6bd4b2b49731ae76c72511ff19f996cd1 | refs/heads/master | 2023-06-09T10:15:50.025010 | 2021-06-27T07:00:28 | 2021-06-27T07:00:28 | 380,673,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import sys
from PIL import Image, ImageFilter
if __name__ == "__main__":
for i, arg in enumerate(sys.argv):
print(f'Argument: {i}: {arg}')
imagemOriginal = Image.open(sys.argv[1])
imagemComBorda = ImageFilter.imagemOriginal((3,3), (0, 1, 0, 1, -5, 1, 0, 1, 0), 1, 0 )
imagem = imagemOriginal.filter(image... | [
"tiago.barros@estudante.iftm.edu.br"
] | tiago.barros@estudante.iftm.edu.br |
a0666ae354f99f210c7f502530174ecfd0ea446d | 5ad869f2db5e392e7961f4a71fe337ee52e2c9d7 | /don't-change/lock.py | def8005a162414a799a29141f083a8d064622439 | [] | no_license | BranchManager/Cryptography | 1ebbe97adef61ef119ea105fa715a00f9b65aee7 | d920a6607d99e3e9b637accd1d6e63a7a29c9dd1 | refs/heads/master | 2022-03-31T06:34:57.578046 | 2019-12-15T06:03:45 | 2019-12-15T06:03:45 | 110,993,086 | 0 | 1 | null | 2019-12-15T02:00:55 | 2017-11-16T16:08:34 | Python | UTF-8 | Python | false | false | 3,049 | py | #!/usr/bin/env python3.7
import argparse
import sys
import os
from datetime import datetime,timedelta
from cryptography.hazmat.primitives import hashes
from cryptography import x509
from cryptography.x509.oid import NameOID
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives imp... | [
"benjamin.a.hawkins@gmail.com"
] | benjamin.a.hawkins@gmail.com |
a5542693066d30945f70883eb693b408c6cd9c94 | 5e5760f0abe59e5ba6ac5961696c1e452e6d9c3d | /app.py | 3e14cbead0f76966ea32e117702f51656c5d3f84 | [] | no_license | ragehegy/MyValidator | d920a1ba41199f2d631531e9a1d3a38bff82c11d | 196ef780d37d8f2e3df50fd7c7ec3d363b0c90d3 | refs/heads/master | 2023-05-30T04:50:30.008820 | 2021-06-11T14:12:25 | 2021-06-11T14:12:25 | 376,045,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from MyValidator import jsonValidator, xmlValidator
if __name__ == "__main__":
v = xmlValidator("trans/transaction.xml")
v.parse()
print(v.validate("amount", int))
print(v.validate_schema("schema.xsd"))
v2 = jsonValidator(path="trans/transaction.json")
v2.parse()
print(v2.validate("amount"... | [
"mhmdrgh@gmail.com"
] | mhmdrgh@gmail.com |
07da32bed5fa6755dec25e4353ab8c8f8417c67e | ce2b21cf6f4e36703bd24f9c3a5ab3358aa59bf6 | /week13/day5/todo/todoApp/__init__.py | 93a22c1d490f80e206d2390b32b35a299aee79aa | [] | no_license | irinaignatenok/Dev-Inst | ed29b69fe14e77b9798a9f8297e0b08542f50ecf | 5f7753b2ddb283fe3e36f67f4a4c4eeb42eff48d | refs/heads/master | 2022-12-11T00:17:48.254328 | 2020-09-02T13:55:41 | 2020-09-02T13:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import flask
import flask_sqlalchemy
import flask_migrate
import os
basedir = os.path.abspath(os.path.dirname(__file__))
app = flask.Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///"+os.path.join(basedir, 'learning_app.db')
app.config['SECRET_KEY'] = "secretKey"
db = flask_sqlalchemy.SQLAlchemy(app)
... | [
"arthurr.ie@gmail.com"
] | arthurr.ie@gmail.com |
87f6bb8e3294c67d42060c1ff6433704601ead83 | eea29195508ee7997bbf75d78758152976b6aea8 | /day3.py | 2d568851d3b0dc77d7a1fe8410eb453d5d30df8f | [] | no_license | shouvikbj/Daily-Python-Challenges | 85e928d395ae818793acf6c6f6dabdffde72dc0d | 762a5bdce59af29970453798db93a2c85b6f8e13 | refs/heads/master | 2023-07-26T10:27:10.697511 | 2021-08-29T04:34:54 | 2021-08-29T04:34:54 | 400,948,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | bigCup = 500
smallCup = 300
requiredAmount = bigCup - smallCup
print(requiredAmount, "ml")
| [
"bajpayeeshouvik@gmail.com"
] | bajpayeeshouvik@gmail.com |
0cda287bd11a7f9294f65c4817d60923febb5181 | df5f42e7e2f0d646a3b417ee6cd3788f3f740b5d | /test.py | 5a567df0cf8975cb9a5b42c8092be7c88b9152ba | [] | no_license | chen-min/python_mongodb | 7f9cf1c3081947a90a2db8e277e24e7b4116ae77 | 7123426cf99b2de86dc92713ad1f86bffe499c27 | refs/heads/master | 2020-04-11T06:57:38.945340 | 2019-01-06T13:34:55 | 2019-01-06T13:34:55 | 161,597,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # coding: utf-8
from pymongo import MongoClient
from datetime import datetime
from bson import ObjectId
class TestMongo(object):
def __init__(self):
self.client = MongoClient('localhost', 27017)
self.db = self.client['students']
def add_one(self):
''''add data'''
post = {
'name': 'bob',
... | [
"chenmin@hotmail.de"
] | chenmin@hotmail.de |
e798e0a1a5751794e2951f5827195179ad1b0c26 | 0aacfdcef43037ec2fd35c35977822f82afadbc7 | /Python/python.py | cfd45304794b8d6cb3cad6db6ce5a5e2fedb7474 | [
"MIT"
] | permissive | Vitamin-111/py-web-hack | 65ccd0868c984d64229d99ff2f9fc0e474bd92e9 | 5d879dbaa736ca43903a6ad9c44e7de995a45195 | refs/heads/master | 2023-04-30T23:42:23.231459 | 2020-05-13T09:05:53 | 2020-05-13T09:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | string = str(input());
list1 = list(string);
rp = list(input().split());
list1[int(rp[0])]=rp[1];
string = ''.join(list1);
print(string) | [
"marshtomp.1999@hotmail.com"
] | marshtomp.1999@hotmail.com |
273a796eb3e0d568fc83cd05aff1e374c4393f21 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/Stomper.py | f579b1ff2fd2e11404c53d4ef459346b72bf19ad | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | """Stomper module: contains the Stomper class"""
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.distributed.ClockDelta import *
from direct.showbase.PythonUtil import lerp
from direct.fsm import StateData
import math
class Stomper(StateData.StateData, NodePath):
SerialN... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
d7022a60e944960e9ba2fee6f503cc1b625f2fa1 | 8306ae322423fa28d7a23c9b0260596f09296547 | /node_count.py | 2dff5755c0fb85c1157223d599ea02162fc84daf | [
"Apache-2.0"
] | permissive | tjzxh/teamE | 219a5813426f31e990d3d6f4ddc2cb006d095191 | 57656c25be10dfe5670c222ae7bc7001c9489460 | refs/heads/master | 2021-07-07T11:20:36.962026 | 2017-10-06T03:52:51 | 2017-10-06T03:52:51 | 105,965,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | import networkx as nx
import scipy.io as sio
import plotly.plotly as py
import plotly
from plotly.graph_objs import *
import xlrd
import numpy as np
import plotly.graph_objs as go
plotly.tools.set_credentials_file(username='tjzxh', api_key='r2F9Tbql2xiZLWzFLRJ6')
f = r'C:\Users\小卉\Desktop\teamE\DATAA.mat'
... | [
"noreply@github.com"
] | tjzxh.noreply@github.com |
12769f9a834726649374d31c469d956ec8091f46 | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/build/chomp_motion_planner/catkin_generated/pkg.develspace.context.pc.py | 3a3076474a22a84958b84ab31ec82194d9ffd63e | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/acis/sim2real/simulations/kinova/src/moveit/moveit_planners/chomp/chomp_motion_planner/include".split(';') if "/home/acis/sim2real/simulations/kinova/src/moveit/moveit_planners/chomp/chomp_motion... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
81836a77393b703a7e69351661f816b5e0db1eb9 | 5f1c3a2930b20c3847496a249692dc8d98f87eee | /Pandas/Titanic_DataAnalysis/Question8.py | d6bea604e6b82e0b17af8e7a63fd757c6a04672e | [] | no_license | AmbyMbayi/CODE_py | c572e10673ba437d06ec0f2ae16022d7cbe21d1c | 5369abf21a8db1b54a5be6cbd49432c7d7775687 | refs/heads/master | 2020-04-24T05:01:46.277759 | 2019-02-22T08:26:04 | 2019-02-22T08:26:04 | 171,723,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | """write a pandas program tocreate a pivot table and count survival by gender,
categories wise age of various classes
"""
import pandas as pd
import numpy as np
df = pd.read_csv('titanic.csv')
age = pd.cut(df['age'], [0,10,30,60,80])
result = df.pivot_table('survived', index=['sex', age], columns='pclass', aggfunc='... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6498b94b892d481deb5814470257a43b2908256b | 534b8abb351e224a3176e00779a5200639a6bd6f | /pyvision/image/modeBlur.py | 827ece775b07c0c065d44775c6c195fb570bdac2 | [] | no_license | rajivalbino/PyVision | 7c5dfaa844032599d3451061019609a9460bc28d | 13ab7a7847ccd4c8a65ef22fd9249c1d8f6135c2 | refs/heads/master | 2023-03-22T21:33:01.017929 | 2021-03-17T20:22:12 | 2021-03-17T20:22:12 | 288,546,751 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import numpy as np
import cv2
from scipy import stats
def modeBlur(img, pad):
(h,w) = img.shape[:2]
ch = 1 if img.ndim == 2 else img.shape[2]
img = cv2.copyMakeBorder(img, pad, pad, pad, pad, cv2.BORDER_REPLICATE)
output = np.zeros((h,w,ch), dtype="uint8")
for k in np.arange(ch):
for j in ... | [
"rajivalbino@gmail.com"
] | rajivalbino@gmail.com |
0ce4f358fafb058b2cb332902bd620d22836e630 | a9eea089de2de1ff9c6a98fb4fc678c8753f7ed3 | /mashup/application.py | 43b7ab0a24751cd1c0b826150381671a73cabe5f | [
"CC-BY-3.0"
] | permissive | kevinwalsh23/CS50 | 4e8b9ff4035238d85946475f7e47b68361836d77 | bfbbd440594d766f73d9d532a65f24be6e072245 | refs/heads/master | 2021-04-26T21:53:13.202566 | 2018-03-07T04:09:05 | 2018-03-07T04:09:05 | 124,171,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | import os
import re
from flask import Flask, jsonify, render_template, request, url_for
from flask_jsglue import JSGlue
from cs50 import SQL
from helpers import lookup
# configure application
app = Flask(__name__)
JSGlue(app)
# ensure responses aren't cached
if app.config["DEBUG"]:
@app.after_request
def aft... | [
"kevinwalsh23@gmail.com"
] | kevinwalsh23@gmail.com |
cbea97b96fe9f77f64eaefc00148098bb31feed4 | 51d142709423c31bd4b733bc510ad018cb8b8877 | /venv/bin/django-admin | b72e2d917af622bf94694d82276174893623cdc5 | [] | no_license | m-dn/djangofirstapp | e5c9c196c6ba0da8d87f7bb5e7c6934c7d5a4362 | 892bf06d735cae3a2eb7cd2a6dfb17da67ec7d9d | refs/heads/master | 2022-11-08T12:44:11.120767 | 2020-06-19T07:18:56 | 2020-06-19T07:18:56 | 270,740,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | #!/home/damian/StockTrading/venv/bin/python
# -*- 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())
| [
"mazur_damian@wp.pl"
] | mazur_damian@wp.pl | |
4e4fd1bbf7961a31a03efbddac1f499cab543d11 | 0f25dc1797b7dbf42f02997b54d1b48036eaf365 | /Models/LenslessDataset.py | 600907c3b1cfcdcac1959c6154af3c525f6a2afe | [] | no_license | brod4910/LenslessCameraML | 83d0c80df4837eb18d8960013e84a846dba07e35 | 2f9ab4f74ae83673619f5b9c179a781fc9d77a8c | refs/heads/master | 2020-03-16T04:44:13.865097 | 2019-01-04T02:32:50 | 2019-01-04T02:32:50 | 132,518,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | from __future__ import print_function, division
import os
import torch
import pandas as pd
from skimage import io, transform
import numpy as np
from torch.utils.data import Dataset, DataLoader
from torchvision import transforms, utils
from PIL import Image
import random
'''
Dataset for the lensless images.
The... | [
"brod4910@gmail.com"
] | brod4910@gmail.com |
ec592a75128578c37fc8bfb643b4f514e23b4bc7 | 61d7fdd1cb6c1eec31ebf745e123cc938409005a | /ubuntu/voicetools/examples/raspi_assistant/assistant.py | 0faed9500e48c36cc0b06a38fa0a96bf2ce1e4bb | [
"Apache-2.0"
] | permissive | linjian128/hackster | a72d6973f6e738b9f3e98a4905fb8b3d4c1f0f28 | eec04b739d00aaedc60a7294aff92aec8471f9f2 | refs/heads/master | 2021-01-19T21:42:22.370585 | 2017-04-23T01:01:09 | 2017-04-23T01:01:09 | 88,693,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # coding: utf-8
import os
import sys
import time
import RPi.GPIO as GPIO
HOME = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(HOME)
from raspi_assistant.settings import GPIOConfig
from raspi_assistant.utils import init_logging_handler
from raspi_assistant.handler import BaseHandler
log... | [
"linjian128@gmail.com"
] | linjian128@gmail.com |
c7320cb197f0ac79fbfa8158270cba5ea0450a39 | 96d0d5d986f91b43f06d271429e8e9a326f11c3c | /GS/gaemsungapp/apps.py | 350217ae9ad2ead6f190d06af60adf7e87465edc | [] | no_license | kimsunkyung/gaemsung_server | 868a3cfb7ae076c4f218d6af4326b212a6ccbc7d | ca47197b6aceca0b923ddc0fb1a12f53c0122af0 | refs/heads/master | 2020-04-27T01:33:58.300776 | 2019-11-06T05:01:26 | 2019-11-06T05:01:26 | 173,969,395 | 0 | 0 | null | 2019-11-06T04:57:17 | 2019-03-05T15:12:32 | Python | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class GaemsungappConfig(AppConfig):
name = 'gaemsungapp'
| [
"skk095@naver.com"
] | skk095@naver.com |
8b00cb8d70c9d7a361ad920dddfbfdf75d237328 | e59e0bd3cdfc706105ee697cc6683554d3cdb371 | /utime/augmentation/elastic_deformation.py | 9c267b66b0bdb1de51ca1870c185892338355305 | [
"MIT"
] | permissive | jennynanap/U-Time | 02455307cd67abf975d659346d4a1f3acebd8eed | f7c8e3f1368f43226872a69b0fbb8c29990e4bd9 | refs/heads/master | 2023-07-10T16:26:23.648995 | 2021-08-24T12:09:30 | 2021-08-24T12:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | import numpy as np
from mpunet.interpolation import RegularGridInterpolator
from scipy.ndimage.filters import gaussian_filter
def elastic_transform(signal, labels, alpha, sigma, bg_value=0.0):
"""
Elastic deformation for 1D signals, modified from:
[Simard2003] Simard, Steinkraus and Platt, "Best Practices... | [
"mathias@perslev.com"
] | mathias@perslev.com |
b88928350dfe6e3feb9d514a50d69480a1a84562 | cac712a21d8a56dafff2790870f3aabcfaf1679b | /test/test_device_capabilities.py | 355386f341b59b59caa689f5179af5bcd45a533f | [] | no_license | dunaev-dmitry/wlan-cloud-ucentralgw-openapi-python | ed68b5675718cb372cfb8786ad510216896d23bf | 04cffece1844e6f41ce2e2879537f53e508f85f6 | refs/heads/main | 2023-06-04T00:09:10.889079 | 2021-06-28T11:19:40 | 2021-06-28T11:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """
uCentral gateway API
A process to manage configuration for devices. # noqa: E501
The version of the OpenAPI document: 0.0.8
Contact: ucentralsupport@arilia.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.device... | [
"dmitry@opsfleet.com"
] | dmitry@opsfleet.com |
e943af6096d9e6b3f04e22117f41da5ad935d71c | 0f9affcf86de7af00fe99d7a2889bde7a5857130 | /bin/easy_install-2.7 | 1248ae80f02c090a241bf70fe506168b71614b50 | [] | no_license | MaianaB/servico-email | 2beee98e2e12ee83daea569cfff8c77261a6a185 | efbefa0f4b42d1e45ed9d68358e6cd13052497e5 | refs/heads/master | 2020-04-04T00:32:00.669588 | 2018-11-01T03:39:04 | 2018-11-01T03:39:04 | 155,653,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | 7 | #!/home/maiana/Documents/servico-email/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dellyarruda@gmail.com"
] | dellyarruda@gmail.com |
84ec225f0c5aef65ff473b0bb720bc588a9e4252 | f2334b99855b301aada08f0b123d18a9f9314349 | /Hyunji/HW1_Fire/burn_matrix_display.py | 40eee61ba5e3ba6e59c44c263cb8bbceaa97a14b | [
"Apache-2.0"
] | permissive | omsktransmash/ScientificPythonTutorial | 034d54759ff3a2256cf15182c34ff1f935574a43 | 2d3cf8aacc9f0dd5cde499f0b30a23482835793a | refs/heads/master | 2021-01-06T20:36:58.334478 | 2014-08-30T10:14:19 | 2014-08-30T10:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | import random
class Tree:
grown = False
def grow(self):
self.grown = True
def burn(self, my_row, my_col, trees):
if self.grown == True:
self.grown = False
#Row Action
if my_row > 0:
left_tree = trees[my_row - 1... | [
"namjjong@business.kaist.ac.kr"
] | namjjong@business.kaist.ac.kr |
b640454f01f429bdd0a6ee8b1de39fbd1042b179 | be3b265dfdde149dd52e83dbd37bd71dceddc6ac | /squirrel/migrations/0003_auto_20201021_1713.py | 08c57b9428ebc9a9c7e60bbeca6be5f813867fda | [] | no_license | shg2131/squirrel-tracker | 54221def4e9e6aadb2714f67fcba5548ca0dd145 | f27694ffde07ad1dd1320717c05e7e8fe93bf0d4 | refs/heads/master | 2023-01-04T01:03:52.303208 | 2020-10-22T19:15:40 | 2020-10-22T19:15:40 | 302,225,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Generated by Django 3.1.2 on 2020-10-21 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('squirrel', '0002_auto_20201020_0246'),
]
operations = [
migrations.AlterField(
model_name='squirrelsighting',
name='... | [
"shg2131@columbia.edu"
] | shg2131@columbia.edu |
22eb5b98e6832c8891007ba5ac1221910ff617f5 | 615edd170e047ddde944768c8e31e7163e9458cb | /models/network.py | cb0a298e518749dba62eadcda8269365b0905294 | [] | no_license | gnydick/orch | fa03471cb8d40088354a8877f492500e0283e75e | 8db830a52d2bba52302c84d9637e6db775b8d40c | refs/heads/master | 2022-03-06T05:16:38.483245 | 2019-11-26T01:04:01 | 2019-11-26T01:04:01 | 224,071,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from sqlalchemy import *
from sqlalchemy.orm import relationship
from db import db
from sqlalchemy.dialects.postgresql.base import CIDR
import ipaddress as ip
class Network(db.Model):
__tablename__ = "network"
def __init__(self, **entries):
self.__dict__.update(entries)
id = Column(String, pri... | [
"gabe.nydick@automationanywhere.com"
] | gabe.nydick@automationanywhere.com |
280495db9a705ec23444c3d70b38ddb6c23049c6 | b3389ac9da5d2d72545c556ebc0c43b5517a06be | /pyMD/reporters/lammps_trajectory.py | 0401059e7953930aab3fcbdc1faaf25d0404e997 | [
"MIT"
] | permissive | king-michael/python_MD_engine | cefbcb95cd0b7e73547bc4b456501ea230fe6e84 | 4bbcb86722fc8eb071e7db9061d765f935f8990e | refs/heads/master | 2021-05-25T20:47:32.263264 | 2020-04-22T12:27:36 | 2020-04-22T12:27:36 | 253,913,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | from ..misc.lammps_dump_custom import DumpFileWriter
from .base import Reporter
import numpy as np
class LammpsTrajectoryReporter(Reporter):
default_fields = ['id', 'x', 'y', 'z', 'vx', 'vy', 'vz']
map_dtype = {'%d': np.int64, '%g': np.float64, '%f': np.float64, '*': np.float64}
def __init__(self, filenam... | [
"michael.king@uni-konstanz.de"
] | michael.king@uni-konstanz.de |
bee978bbe2b275523f751a62aa5ea9f7cb6db146 | 5e4114c21a0184c7d0d5ee0d208369f220e93001 | /DAO/FormularioDAO.py | 5b0f59e1c0f119178cc3ebec5d0f06d9a5fbd013 | [] | no_license | dev-ekleorf/BemPromotora_Desafio1 | 5543b7ede8d7776c93581e86b2b2431829e10a21 | bcc7d8594720e6988b044278a44326f8d6361aa7 | refs/heads/master | 2023-06-23T05:48:54.141053 | 2021-07-20T13:38:45 | 2021-07-20T13:38:45 | 387,803,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import psycopg2
from Model.Formulario import Formulario
from Model.Pergunta import Pergunta
class FormularioDAO:
def __init__(self):
pass
def retornaFormulario(self):
conn = psycopg2.connect("dbname=db_BemPromotora user=postgres password=postgres")
cur = conn.cursor()
query =... | [
"ekleorf@gmail.com"
] | ekleorf@gmail.com |
88f954cd4c147c22b62406dd9e1848a41d7bfac9 | 675d1ad3ebb58d6bf177430568bb35a7319ce30b | /plotters/limits.py | 0eab4cdcf3c08d0721d27c24e9679c39f23d5596 | [] | no_license | kdlong/InitialStateAnalysis | 30a0382098014087982059908c2f74ccaff0c3d9 | 2a1f7275de6bcbcf53127ad2e949b20d2443e8bc | refs/heads/master | 2021-01-18T07:02:12.114624 | 2015-04-14T16:27:52 | 2015-04-14T16:27:52 | 30,890,597 | 0 | 0 | null | 2015-02-16T22:02:24 | 2015-02-16T22:02:23 | Python | UTF-8 | Python | false | false | 4,461 | py | '''
Class for plotting limits.
'''
import sys
import os
import errno
import numpy as np
import CMS_lumi, tdrstyle
from plotUtils import _3L_MASSES, _4L_MASSES, python_mkdir
sys.argv.append('-b')
import ROOT
sys.argv.pop()
ROOT.PyConfig.IgnoreCommandLineOptions = True
ROOT.gROOT.SetBatch(ROOT.kTRUE)
ROOT.gROOT.Proces... | [
"dntaylor@wisc.edu"
] | dntaylor@wisc.edu |
cc512cae1ec2130c5d1c5eb1bbe7e7587dd83d92 | 853640f0000951c54075d7fc06eb8dd142baf488 | /Staff/JConley/Personal Tools/Scripts/ik_pv.py | 7f56f73a41dd1a22cf1c622e3ac05a1716f4ee46 | [] | no_license | creuter23/fs-tech-artist | fe666a61d7356bea45a23a27f9345733f696a2bc | ce3da679e3726baec7840156d6c6f6867b427383 | refs/heads/master | 2021-01-10T13:15:50.382194 | 2012-06-24T01:33:52 | 2012-06-24T01:33:52 | 45,221,516 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """Ik Pv Plane Creation"""
"""
Author: Jennifer Conley
Date Modified: 9/10/11
Description: A script used to quickly create a plane for the correct placement
of ik pv icons from a joint chain selection.
How to run:
import ik_pv
reload (ik_pv)
"""
import maya.cmds as cmds
cmds.select(hierarchy=True)
sel = cmds.ls... | [
"mclavan@mclavan.local"
] | mclavan@mclavan.local |
d8dfc7b0e48d899fa32241c8637c415ba586122d | 8caad7ace7ed931ed9cb961446c316a91ed37bcd | /file_preprocessing/file_preprocessing.py | d8fa362a70c9f5c2c095d1a6da075f6a08872be2 | [] | no_license | loginov-ra/HypernymyDetection | fe7d3060d757e9cd161c7824e11398f8aa3fcf0f | a0ca7bbf9bcb85140b7239ce250d01594ce7cc51 | refs/heads/master | 2021-04-02T19:16:32.379894 | 2020-05-07T08:03:36 | 2020-05-07T08:03:36 | 248,311,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,853 | py | import sys
sys.path.append("../")
import numpy as np
from deeppavlov import build_model, configs
from nltk import WordPunctTokenizer, MWETokenizer
from os import listdir
from os.path import join
from tqdm import tqdm_notebook as tqdm
import json
from thesaurus_parsing.thesaurus_parser import ThesaurusParser
from synta... | [
"logipamar@yandex.ru"
] | logipamar@yandex.ru |
e8197abbf04c8a1cfbab8b528f0670a222120aa9 | f002543b7f5b2c4b5361e7c7e5a7cb1db9be6d5e | /Messenger Application/MessengerServer.py | 0db0066efcf4bee6085ba8e029077a1f5b623478 | [] | no_license | NWilburn/Programming-Projects | 9705e5659e8d70e2234b5eafa16f8029fff56edd | f8193ef53f52fb8e44492bb61c01c6a591826b17 | refs/heads/main | 2023-08-12T08:51:00.834278 | 2021-09-28T16:34:44 | 2021-09-28T16:34:44 | 333,816,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | import socket, os, pickle, threading
def message_handler(conn_socket, server_directory):
while True:
service = conn_socket.recv(1024).decode("utf-8")
if service.split("~~~")[0]=="send":
send_message(service, server_directory, conn_socket)
elif service.split("~~~")[0]=="... | [
"noreply@github.com"
] | NWilburn.noreply@github.com |
25bb15a445ae231f13aeec2062c7869184b312dc | 6c0a38da8f2ce9ce4f5c986395aa8cfcfb2d936a | /tests/scheduler.py | d294c19bf2ae49bf972c6a1ed8495b54a98660b4 | [
"BSD-2-Clause"
] | permissive | robertblackwell/buph | d97a8888a97d7edd77f4ed9f3a4cb1ddcfd285df | accb6b780a632dffd0089cf74dbd15eb52da901f | refs/heads/master | 2023-02-21T07:04:49.824917 | 2021-01-23T00:26:49 | 2021-01-23T00:26:49 | 331,658,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | import typing
import sys
import subprocess
import pathlib
import os.path
from datetime import datetime
import math
import unittest
from enum import IntEnum
p = sys.path
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
p = sys.path
from buph.config import Config
from buph.d... | [
"rob@whiteacorn.com"
] | rob@whiteacorn.com |
fe8cff7611be6dd877bfc2f4eca09f5e38aecfcc | 78bbaf083b39cb72a35e23a4517a40a899f05ba0 | /cfn_lint/rules/assume_role_templates/has_condition_key.py | 49394bbb60daec7a874dace01d0941ae0ebc3b66 | [
"MIT-0"
] | permissive | esabitova/aws-digito-artifacts-gameday | c2babc284e68a00eca71d168a6a30bfdf293111c | 9aff43cc0551066ca78af06ad879556bcf04c5c6 | refs/heads/master | 2023-08-25T19:06:28.191717 | 2021-09-30T17:54:16 | 2021-09-30T17:54:16 | 406,305,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | from cfnlint.rules import CloudFormationLintRule
from cfnlint.rules import RuleMatch
class HasConditionKey(CloudFormationLintRule):
""" Validate only one IAM Policy resource """
id = 'E9006'
shortdesc = 'Validate condition key for IAM actions'
description = 'Validate condition key for IAM actions'
... | [
"shrur@amazon.com"
] | shrur@amazon.com |
15a2434b66ee9280cc1ad76e3c8ecbc1481abf0a | d08adfbc89d6c0faf400e4e6c21b8695595d82ea | /poisson-equation/main.py | 50db3c042c23e5eefad47fe62d26d8d31a932e06 | [] | no_license | sigorilla/computational-mathematics | c0c9973dbd4a004dab55e0b2f1c38c4f6f147589 | cb09773cbd2891455ce3a2da9f6c36ff50447d83 | refs/heads/master | 2021-01-21T00:47:34.902753 | 2015-05-15T11:37:38 | 2015-05-15T11:37:38 | 35,668,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,297 | py | from math import sqrt, fabs, ceil
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
import numpy as np
class PoissonEquation(object):
def __init__(self, step=0.1):
try:
self.step = float(step)
except Exception:
self.step = 0.1
self.eps = sel... | [
"sigorilla@gmail.com"
] | sigorilla@gmail.com |
5a6f86141e066fd4420973dca726befae40c1b0b | 487766fbd694ffd3a64392facbfd4dcfb6e35b64 | /hmmTrain.py | 0e972671a44908049a2201aa9ab5ed9d3258f1ac | [] | no_license | elitcenk/Comparative-Study-of-HMMs-and-LSTMs-on-Action-Classification-with-Limited-Training-Data | dd683798ca0ae72e832ca0cd1fa5dfa6fcaefcaa | 952d218451daa615d2e618b1ae9e0cf5c68221ea | refs/heads/master | 2020-04-28T06:01:35.056192 | 2019-07-22T08:26:40 | 2019-07-22T08:27:01 | 175,041,322 | 0 | 0 | null | 2019-05-25T06:57:51 | 2019-03-11T16:32:40 | null | UTF-8 | Python | false | false | 992 | py | __author__ = 'calp'
import argparse
import hmm_util
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Train human action with HMM')
parser.add_argument('-s', '--state-number', type=int, dest='state_number', default=5, help='Number of states in the model. (default: %(default)s)')
pa... | [
"calp@netas.com.tr"
] | calp@netas.com.tr |
6c030f10dc6d73917ca0d74c424bffaec54b4b55 | 2b4ce69dfe4413d18c4f9b0617b6db36301e1956 | /app/mails.py | e3ea2be0c82b2cd8157781fe1a1937d912e960a3 | [] | no_license | javier-lopez/microblogging | d174f77f33a4d4210c2c4bc29500f853edd3d234 | 44db29ee805430754c4f9a575e8f907700d9d6e6 | refs/heads/master | 2021-05-03T21:20:20.599559 | 2018-02-06T00:55:53 | 2018-02-06T00:55:53 | 120,381,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | from flask import render_template
from flask_mail import Message
from app import app, mail
from app.decorators import async
@async
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(subject, recipients, text_body, html_body):
msg = Message(subject, recipients=recipie... | [
"m@javier.io"
] | m@javier.io |
f2449d6e2e69fd27df778179a11afa5dca07369c | c38d2af82b2f35185412c079a166802292cde7fb | /boston-linear-regression.py | 3f8d3e430211277803ab7d2e16358d6e8f2f1649 | [
"MIT"
] | permissive | gniriki/ml-examples-from-blog | 9ed7a717f159e410b0995b13469f563a5bd3af7f | 2cc3e3b3bf45678b906f69c096e3d454b6be346a | refs/heads/master | 2020-03-17T17:44:34.908434 | 2018-05-17T15:47:13 | 2018-05-17T15:47:13 | 133,800,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import sklearn.datasets as ds
import sklearn.model_selection as md
from sklearn.preprocessing import PolynomialFeatures
data = ds.load_boston();
data.data = PolynomialFeatures(degree=3).fit_transform(data.data)
X_train, X_test, y_train, y_test = md.train_test_split(
data.data, data.target, random_state=1)
from... | [
"gniriki@gmail.com"
] | gniriki@gmail.com |
79fb26341111220560faf3f0d2273ac9b63fb1ef | 1abfddf1c22def93a4dda8e2b37703cb4c38b831 | /test_frequency.py | 2ea7c1baaa442bf54c91d767da8efadf72a943af | [
"MIT"
] | permissive | chenqiguo/EECS395_PHS_dataAnalysis | eff29bfa2171a86b88b8245f86f833cf9d5b9867 | d3340ee8becf922e7afb1e9e785dbc6baba2e023 | refs/heads/master | 2020-04-07T18:48:42.203134 | 2018-11-22T01:19:56 | 2018-11-22T01:19:56 | 158,624,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import csv
from timeDomain import timeDomain
from frequencyDomain import frequencyDomain
from DFA import dfa
from DFA import scalingExponent
from multiScaleEntropy import sampEn
#freqDomainFeats = frequencyDomain(rr)
#print(freqDomainFeats) | [
"noreply@github.com"
] | chenqiguo.noreply@github.com |
020f32d9fd3bbb951d65cc6aa260a2e88d0ab373 | 0a386cf06045e74435b8a26907cfd0ca45882f46 | /awards/migrations/0002_rating.py | 458270985c24e23d27e5b510513f68373c7845ed | [
"MIT"
] | permissive | mykeck/Awwards | 639a486c05cedd8880c0697dcc585ef03b3ecc59 | 1cf3164e02ec6b989c25e080b48217770aca7b91 | refs/heads/master | 2023-01-11T00:03:48.001391 | 2020-10-27T12:52:18 | 2020-10-27T12:52:18 | 306,563,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 3.1.2 on 2020-10-26 18:21
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"kiragumike@gmail.com"
] | kiragumike@gmail.com |
92b76b752470a55ba7f78afbcc494adf7e7776a9 | 06b35d2a4c7903df9d2ea63c5e8893ba4cabeb33 | /youtube/settings.py | 53430f6438f874c77e5cf8f5256e823d76160027 | [] | no_license | vaishnavi-kulasekaran/frontend-task | 4f83c9160771ee6be874a2c942779d6a2224a49d | 1af77e52db107f554ee03e6138ed9e0d87b2a535 | refs/heads/main | 2023-03-23T17:47:59.213483 | 2021-03-24T16:39:12 | 2021-03-24T16:39:12 | 351,075,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,513 | py | """
Django settings for youtube project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | [
"noreply@github.com"
] | vaishnavi-kulasekaran.noreply@github.com |
7f431a3637a2068db014ea1a84f48931ba082857 | ed466ade400e68a66d74c7c413f2c598dfd2f5dd | /venv/Scripts/pip3-script.py | 772db26e8e8a99d8f6a6215dacb5701392aa908e | [] | no_license | yinghuan123456/kanfan | dfae84bf80df45528aaefc587e753080510bc082 | 76a60bb6d4268fad521074befb71032baa4e0808 | refs/heads/master | 2020-04-08T10:29:38.801093 | 2018-11-27T04:04:40 | 2018-11-27T04:04:40 | 159,271,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!G:\private\workspace\orugurin\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"zhangyihao@yinghuan.com"
] | zhangyihao@yinghuan.com |
f9ffd1755be21be67013a23f4ea316150f7b5cdb | d14095fa2ceabcb79c75d4361da7d32976d52cc5 | /CodeTalks/settings.py | 46ff9420d26a3b98a1580776367760e169cfc522 | [] | no_license | AlankarSaxena2712/CodeTalks | bffb0b4ab727cee0992902e53bff794578b0bf97 | 679046d070798198c37ddb34a7c370bf4c870109 | refs/heads/master | 2023-07-08T04:25:20.589324 | 2021-08-01T14:40:41 | 2021-08-01T14:40:41 | 391,394,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | """
Django settings for CodeTalks project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"saxenaalankar42@gmail.com"
] | saxenaalankar42@gmail.com |
5d62a797b4a3f519b43018eabad118569b972104 | b68f42f31a7590fc8115accf86a100e8b816b613 | /twitteruser/models.py | 3fc7a4a68cbd8ff2ea54da80a130fae7090b1cad | [] | no_license | Triston-Reeves/twitter | 4698502acb2f6a596262c76279e6f074759bb26e | 8b119d12094abb3ae9ca088f4d154ce2825a25c8 | refs/heads/master | 2022-12-13T12:06:38.667442 | 2020-09-04T18:01:44 | 2020-09-04T18:01:44 | 291,734,251 | 0 | 0 | null | 2020-09-08T15:57:39 | 2020-08-31T14:15:05 | Python | UTF-8 | Python | false | false | 223 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class Twitter_user(AbstractUser):
follow = models.ManyToManyField("self", symmetrical=False)
def __str__(self):
return self.title
| [
"triston.reeves123@gmail.com"
] | triston.reeves123@gmail.com |
06f5f8d19ab54f5341d7aad56959427e5ab155c8 | 5a2c6681fcec8b1bfd6b302bc9b70d7686919a83 | /crontol/get_father_node.py | 56d5a3d483a055bcd5ccd608c7ed743071d5eec3 | [] | no_license | lingyunGH/shareCup | 48731b0164f7ae148ae3b488a713e7b57bee5ad4 | a481fb0916b935d6b065976f30fdc3c3a3f0eeb9 | refs/heads/master | 2021-01-19T12:15:31.095097 | 2017-03-10T12:51:06 | 2017-03-10T12:51:06 | 84,455,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from mysql_model.mysql_model import Mysql
def get_father_node(query_father_node_sql):
mysql = Mysql()
found_res = mysql.find_data(query_father_node_sql)
# print(found_res)
# print(type(found_res))
# for item in found_res:
# print(item)
# print(type(item))
return found_res
if ... | [
"lingyunligl@gmail.com"
] | lingyunligl@gmail.com |
1248feae2aeeac044030a11966289d685ee439a5 | 88d4b59b30fd56e7103bd11435850bd1ba7d77d8 | /tasks/admin.py | 1b28ea6d29905a97a529959dcba917b6ef379934 | [] | no_license | Esther-Ogundipe/To-Do-Django-App | 4673bee71ba54ea1121dc2f89dcbffada082c845 | 3cd0f0cc69efbc7b00fcb25f801ad11db673ed27 | refs/heads/main | 2023-01-12T19:01:59.082567 | 2020-10-15T19:11:49 | 2020-10-15T19:11:49 | 304,424,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Tasks)
| [
"mac@Esthers-MacBook-Pro.local"
] | mac@Esthers-MacBook-Pro.local |
c185e28d4429e05ba8e955433fb14493a142433d | 792764c382d955f81debfb0f46d50b61c7726f82 | /unlocode/models.py | bfac48fc6e555c4c7a28dace2772750c960719da | [
"BSD-3-Clause"
] | permissive | chadgates/locmaster | ec4cf894838e6eea0919d01d14f5077b74508cae | 2a607341d3444996e24b048bfb5245174aedd45d | refs/heads/master | 2021-01-10T13:34:27.878869 | 2016-03-11T15:36:44 | 2016-03-11T15:36:44 | 50,512,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,293 | py | #from django.db import models
from django.contrib.gis.db import models
from django.core.urlresolvers import reverse
class TimeStampedModel(models.Model):
# Abstract base class model that provides self-updating created and modified fields
created = models.DateTimeField(auto_now_add=True)
modified = models.... | [
"wl@wassilios-lytrass-macbook-pro.local"
] | wl@wassilios-lytrass-macbook-pro.local |
e573054d1029eb28a97feff41564064cbc94882e | b7f787608fd86ab9c4a4999db60b38be230742c9 | /protons/examples/calibrator_eval.py | a338ac661db642d20bff873e3bbc73490d916582 | [] | no_license | bas-rustenburg/constph-openmm | cb8511e53b71a596ee1916f4f52806af7e8b629f | 9e7cdbee66fd1ff6d2a5b6d64a326fce7ac2c228 | refs/heads/master | 2020-05-23T08:12:23.085602 | 2016-10-07T20:02:11 | 2016-10-07T20:02:11 | 69,598,785 | 0 | 0 | null | 2016-09-29T19:04:10 | 2016-09-29T19:04:10 | null | UTF-8 | Python | false | false | 1,393 | py | """Script to run the calibrator"""
from __future__ import print_function
from simtk import unit, openmm
from protons.calibration import CalibrationSystem
import logging
from protons import log
import numpy as np
log.setLevel(logging.INFO)
settings = dict()
settings["temperature"] = 300.0 * unit.kelvin
settings["times... | [
"bas.rustenburg@choderalab.org"
] | bas.rustenburg@choderalab.org |
9e3ec0c9a8d48eea40b2b512233c9968d2799756 | 2ef87c0a5ea5f85fafdc28c917c2ed8c9fa1a407 | /test_collections/test_sort_and_search_list.py | f72ca0ca32beb744971058152fad117faaaece34 | [] | no_license | KLKln/Module7 | be5b014a0e948ca667900f1a4b42c5d00ab3abda | cc70596a88d758a25fa5eba45618dd98690852a1 | refs/heads/master | 2022-11-14T09:32:44.430696 | 2020-06-25T04:52:47 | 2020-06-25T04:52:47 | 273,605,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import unittest
from unittest import mock
from unittest.mock import patch
from fun_with_collections import sort_and_search_list
user_list = [21, 31, 56, 78, 22, 4, 13, 42, 9]
class MyTestCase(unittest.TestCase):
def test_for_item_found(self):
with mock.patch('builtins.input', return_value="your number is... | [
"kmklein2@dmacc.edu"
] | kmklein2@dmacc.edu |
a10c7688c74553d976618af7cd0042decef6371c | e9b1f750b7b156566918089bbb0b2c9adcb75da1 | /Delete-list-elements.py | 15843969730807b708211555ecd89aef50f9d259 | [] | no_license | Jacobrodrigues/Introduction-to-python | df478002fce0d14ba44f9d9c6bd3659c274ac12f | 755fbe4198432365659317b63a849f0d81b62806 | refs/heads/main | 2023-03-31T19:10:58.667663 | 2021-04-07T02:34:47 | 2021-04-07T02:34:47 | 355,304,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # Exercise Extend a list
''' Finally, you can also remove elements from your list. You can do this with the del statement:
x = ["a","b","c","d"]
del(x[1])
Pay attention here: as soon as you remove an element from a list, the indexes of the elements that come after the deleted element all cha... | [
"noreply@github.com"
] | Jacobrodrigues.noreply@github.com |
dcd89bcefe84e12972b0e3a8ca90b10f408cf5ff | eb8c4c9378fa3a74fe63d705aadcc66f64447a87 | /l10n_ar_retentions_basic/tests/test_account_payment_order.py | 72967a4a43f01d5602db290ba130ceda85c5083d | [] | no_license | eynes/l10n-argentina | 347f5cbbd79ef50a7f9a1df32c02d4a5137bd56b | 64bb51cb7ba32d77bae31fd98b6fcb8169182217 | refs/heads/12.0 | 2023-02-18T18:37:28.480589 | 2022-12-23T14:53:07 | 2022-12-23T14:53:07 | 67,529,928 | 2 | 19 | null | 2023-02-16T13:20:22 | 2016-09-06T17:13:28 | Python | UTF-8 | Python | false | false | 3,825 | py | import random
import string
class TestRetentionTaxLine:
def name_generator(self):
chars = string.ascii_uppercase + string.digits
return ''.join(random.choice(chars) for _ in range(6))
def _create_retention(self, env, tax_id, type, name=False,
type_tax_use=False, sta... | [
"ignaciogoiteac@gmail.com"
] | ignaciogoiteac@gmail.com |
02ac5f346a3f7422e35b736eb4df85708aa1c568 | 9850884cbb050d6e915e2fba25e8d3a114c21e8b | /server.py | e5ce10ecab4fffce7ffde857fc5a481b855a4aab | [] | no_license | Guyac001/background-generator | 412764fec6fa371a62650b24b4f944ca6b6edead | ed88e7cf05059b8034f5f9b7fa488b9b2481fb6a | refs/heads/main | 2023-04-07T16:58:06.398901 | 2021-04-20T12:02:06 | 2021-04-20T12:02:06 | 359,282,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | #258. Building A Flask Server server.py
import os, csv
from flask import Flask, render_template, url_for, request, redirect
app = Flask(__name__)
@app.route('/')
def index_page():
return render_template('index4.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_template(page_nam... | [
"guya_c@hotmail.com"
] | guya_c@hotmail.com |
e2b1450177b08f725aefb02bcd0474340e128954 | 2fced350d1368476db8eb7a1577a8d737f716af3 | /src/tournament/migrations/0018_auto__add_field_tag_date_created__add_field_tag_date_modified__add_fie.py | 6543b88653865e4515d7264b636c525b0f992b57 | [] | no_license | demidov91/game-for-you | 48ac9c242fb9752f3c20cf43ea87fbaf943b9a08 | d9226244dd6bf8100f0aaa391ff0cf9a7343c7ef | refs/heads/master | 2021-01-19T09:02:03.807777 | 2016-09-19T14:18:45 | 2016-09-19T14:18:45 | 17,358,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,902 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Tag.date_created'
db.add_column('tournament_tag', 'date_c... | [
"demidov91@mail.ru"
] | demidov91@mail.ru |
74f3b2489f6ac67fde39384a5026e25b9b842c2f | f1c6dcb0f1bcd841a555886f8e7e43f360fecf43 | /arkstock/diversify/helper.py | 271f9a55acecfd1d20277b428571a2b8c7a89e3a | [
"MIT"
] | permissive | abhinavrk/arkstock | c12149d05eeab59760bf58b2c48ffcf4bbaedaff | 6cdda28c8534ec71ca3f19702b37764ad1256aa3 | refs/heads/master | 2021-01-17T18:43:37.908597 | 2016-12-11T01:46:16 | 2016-12-11T01:46:16 | 64,716,628 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,127 | py | '''
This module provides helper functions that extract information from stocks and diversify a portfolio
'''
from sklearn.decomposition import RandomizedPCA as PCA
from collections import namedtuple
from typing import List, Dict
import numpy as np
_ndarray = np.ndarray
'''type alias for improved code clarity'''
_neste... | [
"gkabhi2@gmail.com"
] | gkabhi2@gmail.com |
d3be52308fcd477a6f03f949b5520f23c26a4df5 | bf6d0c1403bc98b1a46dea3087197e7dd385e13b | /portabilidade/urls.py | 75aa7b6d5743731af72143a088386debc6e35750 | [] | no_license | eluizbr/portabilidade | 2abbf238d92e4f1b7a59b0fea75390e7e0133003 | 9ecefde18d9f9255a5df823cd4728136d84eaeec | refs/heads/master | 2021-01-19T10:12:22.898732 | 2015-08-08T14:51:42 | 2015-08-08T14:51:42 | 30,382,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """portabilidade URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Cla... | [
"eluizbr@gmail.com"
] | eluizbr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.