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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b952cfdba41a29ab3d40ca5b6912061c37405b0 | 6ba3bc9792e254e0452050425c1aa36d6b2a61f4 | /pow_test.py | dcfe053d57ed1e394d4e7194a058a5df749d9872 | [] | no_license | uncletong/COMP5311_IIPCion | b0afe062161a2ee11fe4a7661045c7487bce1cbb | 27ea7ccd2babcb257fc4cfc98b1dfbedf4b4a2d9 | refs/heads/master | 2020-04-04T02:06:30.470883 | 2018-12-04T06:32:40 | 2018-12-04T06:32:40 | 155,689,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from hashlib import sha256
import datetime
print('------start------')
start = datetime.datetime.now()
a = 0
while True:
b = sha256(str(a).encode()).hexdigest()[-6:]
if b == '000000':
break
a = a + 1
print(sha256(str(a).encode()).hexdigest())
print(a)
end = datetime.datetime.now()
print((end - star... | [
"tong@stumail.nwu.edu.cn"
] | tong@stumail.nwu.edu.cn |
0345cc899d7cdf7bfb3d3ab7997064d559bf8467 | b3d85ec6c62e4052f0034c778abd616befcb6f08 | /content/venue.py | cbbdd1607e9773d55514785ef9be01db72b67670 | [] | no_license | mikejmets/eventslist | de363451751311b730d0bea6fadbc01f0852f012 | 52717b572cd28ed962ba28b37ebb5efaa6b3df75 | refs/heads/master | 2020-05-31T01:08:43.801219 | 2012-02-08T10:15:11 | 2012-02-08T10:15:11 | 32,204,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,241 | py | # -*- coding: utf-8 -*-
#
# File: venue.py
#
# Copyright (c) 2010 by Webtide (C)2010
# Generator: ArchGenXML Version 2.5
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """Mike Metcalfe <mike@webtide.co.za>, Jurgen Blignaut <jurgen@webtide.co.za>"""
__docformat__ =... | [
"mikejmets@900cab63-ccd9-ce39-b999-59782dc24995"
] | mikejmets@900cab63-ccd9-ce39-b999-59782dc24995 |
75b2c47dd93ebd3ea74f92e4e6b85e046f821ab6 | 5a34cdf641aceef65a4bcd6a0d347527d978381f | /scratch.py | 4c57cb4159c1101dd5289f6a10c6a8cd6a2e1e6a | [] | no_license | grayjac/Controls | 2d1b11d624eb433c1a34dd7d547157dea79c31bd | 1e3cf8162ee775c43c041abd00c133c244a6567a | refs/heads/master | 2022-05-17T10:06:47.618226 | 2020-04-26T18:29:14 | 2020-04-26T18:29:14 | 258,014,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from analysis import T_s
from analysis import backwards_filter
heyo = [0, 1, 2, 3, 4, 5]
time_data = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
position_data = [0, 10, 11, 8, 6, 4, 3, 11, 3, 2, 3, 3, 3]
print(backwards_filter(heyo, 4))
| [
"grayjac@oregonstate.edu"
] | grayjac@oregonstate.edu |
68717c72dc0d4f2c33bd500983a9437f5e933a2b | b05b89e1f6378905bbb62e2a2bf2d4f8e3187932 | /reverseLinkedListRecursive.py | 99ef5fe1734f0dd94fb91ef0d068505c0e4d5a81 | [
"MIT"
] | permissive | anishmo99/Daily-Interview-Pro | c959cd336209132aebad67a409df685e654cfdfc | d8724e8feec558ab1882d22c9ca63b850b767753 | refs/heads/master | 2023-04-10T08:09:46.089227 | 2021-04-27T07:27:38 | 2021-04-27T07:27:38 | 269,157,996 | 1 | 1 | MIT | 2020-06-08T07:09:19 | 2020-06-03T17:57:21 | C++ | UTF-8 | Python | false | false | 471 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
else:
new_head =... | [
"ani10sh@gmail.com"
] | ani10sh@gmail.com |
14759d6d2f7a03405d7cb584195d3b3f93b8eeeb | 4b792af7df1b9444994bb9c08d96046ca826387f | /libs/etc/variable_sets.py | 74c8368b6e0ba527eef8d21730e865a7f60f7d42 | [] | no_license | JeerapatChula/TrafficControl_HDMPC | 83f5715d618916b4d36e8e3a5da41e9f75e53455 | e7bea4efe56c2801f0150841996d185bb5053c0f | refs/heads/master | 2021-07-07T21:03:49.282622 | 2020-10-20T11:12:32 | 2020-10-20T11:12:32 | 195,510,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py |
class VariableSet():
def __init__(self, key='', amount=1, values=[]):
if len(values) == amount:
for x, y in zip(range(1, amount+1), values):
name = '{}{}'.format(key, x)
exec("%s=%s" % (name, y))
else:
for x in range(1, amount+1):
... | [
"jeerapat.jitnuant@gmail.com"
] | jeerapat.jitnuant@gmail.com |
4d596629b3b0d191c5676c9dae17d7742f599003 | ca304debf183fec1f06286345e1b3309e7138810 | /tahoe-viz/setup.py | 67fe61cad3d4ba9cb73d2cf6a373da9af25459f9 | [
"Apache-2.0"
] | permissive | genolake/tahoe | 458af4b72586af2e1855386840595ae007ced73d | c9cab1848f7b2afc8055325f8076d2d60706ea23 | refs/heads/master | 2022-02-11T05:34:35.904690 | 2019-11-06T02:37:01 | 2019-11-06T02:37:01 | 219,651,510 | 0 | 1 | Apache-2.0 | 2022-01-21T20:06:53 | 2019-11-05T03:40:36 | Python | UTF-8 | Python | false | false | 6,095 | py |
from __future__ import print_function
from setuptools import setup, find_packages, Command
from setuptools.command.sdist import sdist
from setuptools.command.build_py import build_py
from setuptools.command.egg_info import egg_info
from subprocess import check_call
import os
import sys
# parse_requirements() returns... | [
"bwang@smsassist.com"
] | bwang@smsassist.com |
72e2fcfbb76d5a1d4fb73429bfb74f16b9b05390 | 30f15a184450d6e914ac16375e674cc2f993b9ce | /programming/language/dotnet/gnome-sharp/actions.py | 268d7860bace274099fb3b431100d003db3c60c0 | [] | no_license | Erick-Pardus/2013 | 9d0dd48e19400965476480a8e6826beb865bdb2e | 80943b26dbb4474f6e99f81752a0d963af565234 | refs/heads/master | 2021-01-18T16:57:58.233209 | 2012-10-30T20:35:42 | 2012-10-30T20:35:42 | 6,467,098 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
... | [
"gokmen@pardus.org.tr"
] | gokmen@pardus.org.tr |
81a2b3a660306d3ce8d1fc1bf3644db2c071812a | b06095216818978adc3f3b47b5d30e0d81393a62 | /test_odeintw.py | 610f72b15d0cb1a0f35b0d1d6a03be23f5033a3f | [
"LicenseRef-scancode-other-permissive"
] | permissive | ankitsahay02/NetworkSynchronization | f7e114df5bf77451ea794a2290e5250722a249f8 | 48f0c115626637363dbcd77bcbff977a475d06a8 | refs/heads/master | 2022-03-04T05:24:35.418966 | 2019-11-06T14:05:56 | 2019-11-06T14:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
*Copyright (c) 2015, Warren Weckesser*
All rights reserved.
See the LICENSE file for license information.
odeintw
=======
`odeintw` provides a wrapper of `scipy.integrate.odeint` that allows it to
handle complex and matrix differential equations. That is, it can so... | [
"noreply@github.com"
] | ankitsahay02.noreply@github.com |
fb0f05b18193096057a58f016c4df104e5553130 | b206aeeb99d27a18f1d5579d1944e3b7a9938194 | /utils.py | a30ccf61b7d84b2ed4a5292664adf3850e44db35 | [] | no_license | EmmanuelSchaan/cosmic_tunes | 2ee4d23649d85f6c9cfe4cd35e697dcb2904016d | 97c217c9e322f3bc323566ab96abf1652a220fdd | refs/heads/master | 2022-05-20T08:31:48.054029 | 2022-05-12T20:29:16 | 2022-05-12T20:29:16 | 139,657,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,332 | py | from headers import *
##################################################################################
# Mathematical functions
def W3d_sth(x):
"""Fourier transform of a 3d spherical top hat window function.
Use x = k*R as input,
where R is the tophat radius and k the wave vector.
Input and output ar... | [
"emmanuel.schaan@gmail.com"
] | emmanuel.schaan@gmail.com |
901fe8a813695c550d98496994751d21d9b19980 | c462fcabbc7b9c9e54883fbfb94ab8a86b966476 | /ps9/repops9.py | 189891a077be45e991bde1ef5701f3591567961f | [] | no_license | kendrarepo/SI106 | 1243ec21a7e7dd983bc6aeb608a172ecc195aae8 | 2224a7d9e2a57141f6949a689bb3f7be4170eb9e | refs/heads/master | 2020-12-24T11:52:43.633202 | 2016-11-07T18:32:42 | 2016-11-07T18:32:42 | 73,108,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,544 | py | __author__ = 'Sam Carton and Paul Resnick'
import pyglet
import random
import math
debug = True
## Starting with the basepong, make a Breakout game.
# 1) Make a 1-player Pong game where the right-most wall just relfects the ball back intead of scoring a point.
# We have already changed the ball's start... | [
"kjrepo@umich.edu"
] | kjrepo@umich.edu |
04779e5dbbb536fdd9358dad3fc17f436d3c2771 | 79b50d5fc3cf673ead3a5b33313504d638269df0 | /refSeqAlignment.py | 1e749fcfda15f7ec072081a426de6895172c689b | [] | no_license | elliekim312/Python_refSeqAlignment_NGS | af0888bfa69bc76ae9a347a8971abef3efb28b7b | efb3b2023515fbd2d726ce298f4c602ada329adc | refs/heads/master | 2023-05-23T13:20:11.340162 | 2021-06-13T23:47:38 | 2021-06-13T23:47:38 | 241,481,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,100 | py | #!/cm/shared/Tools/python/anaconda/bin/python
## RefFlat Mission
## Coding by Eunjung Kim
## Date: 2017. 08. 28
from __future__ import print_function
from sys import argv
from scipy import stats
from decimal import*
import os, operator
## Open hg19 data
cwd = os.getcwd() #start path from the current location
... | [
"noreply@github.com"
] | elliekim312.noreply@github.com |
2213beae53ae1268c27e07236a38326cee905a2b | 0654aee8886fa90c392199f033153e153762a4ba | /test_dataset_23June/medium/plot_sr_emh.py | ed33a0bd637a276b7ea138a6a3550367e5b5ff14 | [] | no_license | vernwalrahul/WorkSpace_RF_2D | 8da0fc43135345c45a5526a7ac3a0103937a30d3 | 89ec66edef2125ab4eef4680b0f7557b93d064e1 | refs/heads/master | 2021-09-18T12:02:06.284332 | 2018-07-13T22:21:25 | 2018-07-13T22:21:25 | 137,424,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | import matplotlib.pyplot as plt
import numpy as np
p5_rf_h_matrix = np.loadtxt("p5/RF_h_1_pl_matrix_lmbda1.txt")
p7_rf_e_matrix = np.loadtxt("RF_e_pl_matrix_lmbda1.txt")
p7_rf_m_matrix = np.loadtxt("RF_m_pl_matrix_lmbda1.txt")
p7_rf_h_matrix = np.loadtxt("p7/RF_h_3_pl_matrix_lmbda1.txt")
sp_e_matrix = np.loadtxt("SP... | [
"vernwalrahul@gmail.com"
] | vernwalrahul@gmail.com |
517bf2cc60166a4812ea13c9e3e2cc801ddb2d14 | 477bb406839cab47d1ea7f097279e38037a77997 | /solutions/day10.py | 23b4ef1d6abb78cf2ba1685bc3acac137c93f44f | [
"MIT"
] | permissive | rds504/AoC-2020 | 3de9d935456fd28e471f14f5894f4d49a3f3f344 | 3901a22863ed4479a8cd02f2fa5ea55d5f1f5739 | refs/heads/main | 2023-02-06T07:15:43.466008 | 2020-12-25T05:37:32 | 2020-12-25T05:37:32 | 318,745,233 | 0 | 0 | MIT | 2020-12-25T05:37:33 | 2020-12-05T09:05:50 | Python | UTF-8 | Python | false | false | 719 | py | from tools.general import load_input_ints
adaptors = sorted(load_input_ints("day10.txt"))
chain = [0] + adaptors + [adaptors[-1] + 3]
diff1, diff3 = 0, 0
for i, a in enumerate(chain[1:]):
diff = a - chain[i]
if diff == 1:
diff1 += 1
elif diff == 3:
diff3 += 1
print(f"Part 1 => {diff1 * d... | [
"8250802+rds504@users.noreply.github.com"
] | 8250802+rds504@users.noreply.github.com |
33de874652b73f8869662976b2648badc2c27863 | 8d7b408f990025860c1d5cd01db6f07edd72780a | /backend/scrapy_crawl/scrapy_crawl/items.py | 3382f4e02dbf9a335bf7135321b1ef8569719111 | [] | no_license | tyler-a-cox/recipe-app | 7cfcb4acae065e1bc5ffe82b5a869d47ce35c18e | e14de81dc7a51d3bcc6608ad9ffe0104a629ac65 | refs/heads/main | 2023-07-04T10:16:59.142134 | 2021-08-02T07:50:26 | 2021-08-02T07:50:26 | 388,912,241 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapyCrawlItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"tyler.a.cox@berkeley.edu"
] | tyler.a.cox@berkeley.edu |
d2925dd64958e0c6ac2de96bfa2888302fe822bc | 0722301f27bb20ab42400fa90a8a5254d20a421f | /lesson49.py | ac52423513a53d31016a113f98c0469837b668d5 | [] | no_license | poliarus/Stepik_Python_course | c21ffa6a9e7736adf824f8839715f3e629f2f8ac | c270d0968028f98455353cbf923883aa5313f7c6 | refs/heads/master | 2020-09-16T13:20:12.406254 | 2019-11-24T17:46:31 | 2019-11-24T17:46:31 | 223,782,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | n = int(input('Enter number:'))
count1 = 1
count2 = 0
num_print = ()
globul_count = 0
while globul_count != n:
num_print = count1
while count2 < count1:
count2 += 1
print(num_print, end=' ')
globul_count += 1
if globul_count == n:
break
continue
count1 += ... | [
"polyarus13@gmail.com"
] | polyarus13@gmail.com |
fdb7ad8a8e4ce79c248ae0daa484e40fe09319b1 | 737f84e7b6baad2a4c73db7887c8ceb8189dbeda | /utils/provider_shapenet.py | 806379bacce10f3e70f04b6e550487b526201801 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | azuki-miho/GeoSceneEncoder | fd0133d170e4cfaa5259b515dbec444af4cc891e | a7645d048bbb532e5116bad0ccb7883926357241 | refs/heads/master | 2022-12-09T13:26:19.691908 | 2020-08-29T04:31:41 | 2020-08-29T04:31:41 | 289,899,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,247 | py | """
Code from SpiderCNN: https://github.com/xyf513/SpiderCNN
"""
import os
import sys
import numpy as np
import h5py
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
# Download dataset for point cloud classification
DATA_DIR = os.path.join(BASE_DIR, 'data')
if not os.path.exists(DATA_DIR... | [
"gongjingyu@sjtu.edu.cn"
] | gongjingyu@sjtu.edu.cn |
7d9c3a846f0339b1848c83692e73bc99db08c445 | 93360fa3fe34e0765d6402e3183a8a5fa12022cf | /build/lib/pyqq/rest.py | eee7d3914214a2cfda7ab9f589dec303facd22d3 | [] | no_license | spaceone/pyqq | a983b753f907f97ebf082e8ed81f6e1157dcd4dd | 59b993969311b5deacc3a1f81126dd7d90d128e4 | refs/heads/master | 2021-01-16T19:10:01.951003 | 2015-09-18T08:03:41 | 2015-09-18T08:03:41 | 42,707,845 | 0 | 0 | null | 2015-09-18T08:00:56 | 2015-09-18T08:00:53 | Python | UTF-8 | Python | false | false | 490 | py | #coding:utf8
import httplib2
import urllib
def Get(url,params,headers):
h = httplib2.Http()
urlparams = urllib.urlencode(params)
url = url+'?'+urlparams
resp, content = h.request(url,method='GET',headers=headers)
return resp,content
def Post(url,params=None,body=None,headers={}):
h = httplib2.Http()
if param... | [
"kulasama@gmail.com"
] | kulasama@gmail.com |
5ebad108aa08b0df88d4179716441bb90bf38f5d | fe982725469f6b43be9f0774dab23f8e46b949a7 | /palak/logging_component.py | 6e0f7ae9e4a307c3deafec589d7ebf2a2f7e39b6 | [] | no_license | Lakshya-droid/Crypto_Trading-Bot | 9f4ff9e6b95aa1cfdcae5c39c82dc40ea6b3cb72 | 3d28a2d6814aa4e892d4c8b6753e75268e81d69a | refs/heads/main | 2023-05-09T21:08:35.725049 | 2021-06-11T14:42:46 | 2021-06-11T14:42:46 | 372,944,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | import tkinter as tk
from datetime import datetime
import pandas as pd
class Logging(tk.Frame):
def __init__(self,mod, *args, **kwargs):
super().__init__(*args, **kwargs)
if mod=="on":
self.BG_COLOR = "gray12"
self.BG_COLOR_2 = "#1c2c5c"
self.FG_C... | [
"noreply@github.com"
] | Lakshya-droid.noreply@github.com |
68ddb2bb40f0d0776ea854bba259a075495f7171 | ae1b589d63074b72507d776c7f35c01f6e38226a | /sum.py | 97e6f7bd99cbcc0b42490f2ab79b8a2a4b1e70d0 | [] | no_license | Evg3sha/lesson1 | c3b4bf2e0eaffb7929b52ac44f277df3966cd259 | 43abc12d8abd03cbc1fd8c1bcb171869e177bc95 | refs/heads/master | 2020-03-28T07:57:56.957760 | 2018-09-08T15:19:39 | 2018-09-08T15:19:39 | 147,937,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | def get_summ(one, two, delimeter='&'):
return str.upper(one) + str.upper(delimeter) + str.upper(two)
one1 = 'Learn'
two1 = 'python'
print(get_summ(one1, two1)) | [
"evgeshamsk92@gmail.com"
] | evgeshamsk92@gmail.com |
d4e26cc35c776c42325d073d231414623a4b0b84 | e3b05cf8f28fc96e73caa42d5ea986dcd782db00 | /src/mapGeneration/simpleByteFileCreator.py | 3d5895ebbbe026467a993a6c9f483e4e9477ac9a | [] | no_license | moritztiedje/lionfish | 5317e30b857ec72bee9572ca4a1c1df291bf35e3 | b16ba9786d4a03deef5b87f470302164e8e2b669 | refs/heads/master | 2021-01-11T15:29:39.896822 | 2019-05-24T20:43:55 | 2019-05-24T20:43:55 | 80,356,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | landSize = 4
area_map = []
coastline = []
for _ in range(landSize + 2):
coastline.append(0)
area_map.append(coastline)
landline = []
landline.append(0)
for _ in range(landSize):
landline.append(1)
landline.append(0)
for _ in range(landSize):
area_map.append(landline)
area_map.append(coastline)
dummyM... | [
"mtiedje@andrena.de"
] | mtiedje@andrena.de |
c4eb9faf74af67ebaabe3a6c2bc031f08b2670f0 | 48ca592b7072d37a7d3c8456540c017649e0deeb | /campnative/campnative/index_page.py | afd41c6cfb724f2de31659cc59cb0abc16a4f0e9 | [] | no_license | x10hassan/campnative | 0c5e12e12d6d01f872a87590bfd98d747cbb7909 | 717e481221396427387b3424391df986dc5f39bc | refs/heads/master | 2016-09-05T20:12:15.381947 | 2015-03-23T09:28:20 | 2015-03-23T09:28:20 | 32,630,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.views import generic
from campground.models import Activity, Amenity
class IndexPage(generic.TemplateView):
template_name = "index.html"
def get_context_data(self, **kwargs):
context = super(IndexPage, self).get_context_data(**kwargs)
context.update({
'activities': A... | [
"k1.hedayati93@gmail.com"
] | k1.hedayati93@gmail.com |
9e567a091572b54744008d9eb043669ee4cda949 | 2aebde5f6ad67fbfed26427b5463036cc752eee4 | /model/news_crawler/sina_news/sina_news_daily.py | 0176b67554b8f743be47ea51d239af7657f4437d | [] | no_license | L-S-G/duck_prophet | be46d4d8fc63eb9030f55947626ffe056415eb8c | 23decf840d1431f0df1bcc8bd647c1ae01adec4e | refs/heads/master | 2023-02-23T11:51:32.262971 | 2021-01-08T10:25:18 | 2021-01-08T10:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # -*- coding:utf-8 -*-
import sys
from config.news_crawler.sina_news.sina_news_conf import entrance_list
import requests
import re
import Queue
reload(sys)
sys.setdefaultencoding('utf-8')
class SinaNewsDaily():
# 每日抓取新浪新闻文章
pass
| [
"nankaizhl@gmail.com"
] | nankaizhl@gmail.com |
2c325d389c3c5b06a3ea6fbe9a4d35b797db24b5 | 323f67ef9e312c52c510768baa53b9fd0e7d727b | /ranobetest/applications/ranobe/models.py | 60155ba22febe51efdd3d39abece885629e5a695 | [] | no_license | unsopgg/django_5_pr | 8a78f4718f0d64a5f4b400d74016ae2bc7a94b82 | fb51e8795f73e3aa29279cb514ed4d95f0839055 | refs/heads/master | 2023-08-29T16:56:35.967873 | 2021-11-07T15:37:15 | 2021-11-07T15:37:15 | 425,541,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from django.db import models
class Genre(models.Model):
title = models.CharField(max_length=50)
def __str__(self):
return f'{self.title}'
class Tags(models.Model):
title = models.CharField(max_length=50)
def __str__(self):
return f'{self.title}'
class Type(models.Model):
titl... | [
"kimyunsopbi18@gmail.com"
] | kimyunsopbi18@gmail.com |
1db078657f0c711795ff840f39385b8af78a06d7 | 00e77b917e946bebdff1734fe2ce2347dc94a8e9 | /setup.py | 172035870d6b888ac31acf2f7abcfbecd6b8a8d8 | [
"Apache-2.0"
] | permissive | pcolmer/awsprocesscreds | 976ac6a9ee2e644886ae26dc36adc45864ab8e80 | d66a173925e9b2779ca21d0354756d086de93e8e | refs/heads/master | 2021-10-16T07:57:28.554788 | 2019-02-09T07:35:41 | 2019-02-09T07:35:41 | 115,099,222 | 1 | 1 | Apache-2.0 | 2019-02-09T07:17:39 | 2017-12-22T09:20:30 | Python | UTF-8 | Python | false | false | 1,818 | py | #!/usr/bin/env python
import codecs
import os.path
import re
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
return codecs.open(os.path.join(HERE, *parts), 'r').read()
def find_version(*file_paths):
version_file = read(*file_paths)
version... | [
"phjordon@amazon.com"
] | phjordon@amazon.com |
60d6111e08f3df5fb3831ace000ee1baf3841fb0 | 96b823fb79ccdde43e92bfd13e783e1dacb0fddf | /pygame_widgets/textbox.py | c4d255254989e2e76698fe0aaa7c0a268e72dde7 | [
"MIT"
] | permissive | doojinkang/PygameWidgets | 72c40cbcb3925d257d0a88925faad25679520a90 | ed5ef25014619e89d0c5c148b4f904cf7c55fdf3 | refs/heads/master | 2022-12-13T19:21:58.208949 | 2020-09-01T00:40:52 | 2020-09-01T00:40:52 | 292,205,558 | 0 | 0 | MIT | 2020-09-02T07:03:19 | 2020-09-02T07:03:18 | null | UTF-8 | Python | false | false | 9,866 | py | import pygame
import time
from pygame_widgets.widget import WidgetBase
class TextBox(WidgetBase):
# Times in ms
REPEAT_DELAY = 400
REPEAT_INTERVAL = 70
CURSOR_INTERVAL = 400
def __init__(self, win, x, y, width, height, **kwargs):
""" A customisable textbox for Pygame
:param win:... | [
"21chydra@gmail.com"
] | 21chydra@gmail.com |
3e887f8b0208aa13cfe0c9bd6b32aff3130e5636 | 9896386125553b98f33259e1ae2f94986e28a941 | /elementary.py | 33569a01be41b325ed0f2d06804b291aa3fd1e8f | [] | no_license | erdavids/Elementary-Automata | 8a24e2634bacddd5313bd75002ae2d64425f662f | ce398e58cf258e284ef402fe3866c1642da09860 | refs/heads/master | 2020-07-06T14:48:00.084832 | 2019-08-18T21:07:12 | 2019-08-18T21:07:12 | 203,056,380 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | import cairo, sys, argparse
import math, random, copy
float_gen = x = lambda a, b: random.uniform(a, b)
# Favorites: 73
rules = {
(1, 1, 1):0,
(1, 1, 0):1,
(1, 0, 1):0,
(1, 0, 0):0,
(0, 1, 1):1,
(0, 1, 0):0,
(0, 0, 1):0,
(0, 0, 0):1
}
pallete1 = [
(112, 181, 171),
(220, 109, 7... | [
"erdavids@ncsu.edu"
] | erdavids@ncsu.edu |
ad907b621e4556bb8bc2d10680994239155bdbab | 5910e0fb1bb18457e3486e723901bbe4a9e9723e | /alteration_stft.py | 316cc79467fd71f37181b401e866714b54a91694 | [] | no_license | thesujitroy/Audio-Signal-Processing | 12121ff01da7c8b91c9b180b26890b6419062b72 | f46241a7a0262fc10502d419879f39eab9354f0f | refs/heads/master | 2020-05-31T01:14:49.522256 | 2019-06-25T19:22:34 | 2019-06-25T19:22:34 | 190,046,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | # coding: utf-8
# import Python modules
from matplotlib.pyplot import *
from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
import scipy
from scipy.io import wavfile
from scipy.constants import pi
from scipy.signal import stft, istft, lfilter
from scipy.signal import freqz, convolve
from numpy.... | [
"noreply@github.com"
] | thesujitroy.noreply@github.com |
05a6dc50b44a0fa741f092b8ddad671c62f8a292 | 5ee05e771a97d465048c50a9f9490b8b0eb7c00d | /adminsavingcategory/urls.py | 06811381e6f63dddde32d3c2e9e21b9a74276420 | [] | no_license | ninsgosai/budget | 614bb01ef4a629d3a7e41205e653acadb23984fd | 722ae7f957913422f1b77247cec7d3b06156ad43 | refs/heads/master | 2023-03-26T14:52:30.242868 | 2021-03-21T07:33:49 | 2021-03-21T07:33:49 | 349,928,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.adminsavingcategory, name='adminsavingcategory'),
path('addsavingcategory', views.addsavingcategory, name='addsavingcategory'),
path('delete_saving_category', views.delete_saving_category, name='delete_saving_category'),
pa... | [
"69950933+ninad-goswamy@users.noreply.github.com"
] | 69950933+ninad-goswamy@users.noreply.github.com |
9b7d7ff0fef6c8d28943e6e8b4c7ba57787ce5a9 | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/implementation/백준_웰컴.py | 4ead3ab821977dbf627364ad7c5fb431c2ca1181 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 141 | py | # . . .
# | | _ | _. _ ._ _ _
# |/\|(/.|(_.(_)[ | )(/.
print('. . .')
print('| | _ | _. _ ._ _ _')
print('|/\|(/.|(_.(_)[ | )(/.') | [
"galid1@naver.com"
] | galid1@naver.com |
041fdadfc0f82c1828a1f8516e41fa0410f8185a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /4me7LifXBwj5rhL4n_2.py | 65b6056baa34628bd261b66044b68f8b16ed99ad | [] | 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 | 45 | py |
circle_or_square=lambda r,a:a**.5*4<6.28*r
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1145f96ffedfd8233a52066da714b0bbebe7766a | fde7ebf3bdf7679bbae65f8b07e05ed3a72582c9 | /Lessons/M3/M3/ex_modulo_03_1.py | 61e7400ba2d46562f37a26db0955df100838bdbb | [] | no_license | helenamagaldi/dataScientist_Mentorama | 7c3a0ef7cfec8b938758abd9d307a9e1460d7794 | 67051d47853cc993757235328283964902f11ee3 | refs/heads/main | 2023-02-20T01:18:19.968090 | 2021-01-25T14:06:53 | 2021-01-25T14:06:53 | 323,619,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | def formata_valor(v_in):
s_out = '{:,.2f}'.format(v_in)
s_out = s_out.replace(',', '_')
s_out = s_out.replace('.', ',')
s_out = s_out.replace('_', '.')
return s_out
nome_arq = 'lista_temp.txt'
with open(nome_arq) as farq:
# pula o cabecalho
linha = farq.readline()
saida = ... | [
"helenamagaldi@gmail.com"
] | helenamagaldi@gmail.com |
0a6c916136fb08225b6df7f75b9a89960aa89725 | 4c3b5492701676f9e0a770b2d7752c7cd49bbfcc | /Documents/10Jan2021/HRCN49CABG.py | db7140875702f2987c2fe759033d73519a087b85 | [] | no_license | Official21A/CommiterTestBench | 834ca5c85fb24f9e883d10ba07b030c346779318 | 60be1ba72131542a597218446dcd98641067f9ed | refs/heads/master | 2023-02-14T15:10:47.378508 | 2021-01-10T05:43:10 | 2021-01-10T05:43:10 | 324,303,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | """
LR8YN5LZ831L97E52ZTIZMN681QBGQQO3LILH8MA2P0MOJT154ZRT0HVL2QDQ9GJ86BAQDZ3T9FC9F4H
B5QMNN0V9LVWM0HH9598AGL870BL45D2Q106IV0W0YFA3TFFKST3VBNSSX8WAS26J008XAJMKZTOFCC1
6RVA6TA573RPF6RRVU9IWFU98RPOGNXPN24VTE47YVOQEKEPZY1TOSCVAXI6GAF70QYTOXTESKN3E41W
3JVM2ZJ8TOJC4EJSDW9GTG1DZWSJ36LZOWUE7P95J3E0GFDJ4XA8FRK2IEYXW8T7OWCFM0VXA... | [
"officialamirhossein21@gmail.com"
] | officialamirhossein21@gmail.com |
30fc81e3450db9c9effaf08cd8ee119875de164a | f5627a74bb6b8923b639fad71033b18c047cd32e | /telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent.py | d973bb13b2066ad7063a3f8a711ebea404827206 | [
"BSD-3-Clause"
] | permissive | fanarm/catapult | 49c02ffede981ef07b13069f5ce7483e17e4c3e8 | 26750ce5fe46882abb4e72dd488a1a08a2352b0f | refs/heads/master | 2021-01-15T13:14:38.301954 | 2016-09-20T10:28:20 | 2016-09-20T10:28:20 | 66,614,707 | 0 | 0 | null | 2016-08-26T03:48:41 | 2016-08-26T03:48:40 | null | UTF-8 | Python | false | false | 3,845 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
from battor import battor_error
from battor import battor_wrapper
from catapult_base import cloud_storage
from devil.android import battery_u... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7ae9ce9017302597444d3774d38e13236be0394d | 75a3a5a3a5f1ac02feae2d9d83028c11e69f105b | /Tugas_ProjeckPCD/percobaan3.py | 92a02ce072692f6a38c8141350387f5eff2fae76 | [] | no_license | zidanlagaronda/Zidane | adebf3cce27af819c9f20ec1b4089da1d04a6233 | 01f2b007159a973ad2c87d358caa424b64493dcd | refs/heads/main | 2023-08-23T15:23:30.185898 | 2021-10-07T15:29:00 | 2021-10-07T15:29:00 | 414,654,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import numpy
import matplotlib.pyplot as plt
from copy import deepcopy
from PIL import Image
def getGrayColor(rgb):
return rgb[0]
def setGrayColor(color):
return [color, color, color]
img = Image.open('Dane.jpg')
img = numpy.asarray(img)
# copy list not references
ct = deepcopy(img)
r1 = 1... | [
"noreply@github.com"
] | zidanlagaronda.noreply@github.com |
f747a0b7858d07b330da964aa0cf66cdf9dc93f0 | 7282f160950c08730f955a3f153b05ff73530a07 | /Code/OneHiddenLayer/test.py | 31c5b5d64eb31359279e31d97dedeb8e6a60ee8a | [] | no_license | phvietan/Traffic-Sign-Recognition | 64ba3cc6c28a052d7ad1036b14694f868f383874 | 957ea7a6f721bd2cc695b5bb823c367beadaa43a | refs/heads/master | 2021-09-08T22:31:57.444628 | 2018-03-12T13:23:28 | 2018-03-12T13:23:28 | 119,474,216 | 1 | 0 | null | 2018-03-02T12:23:49 | 2018-01-30T03:01:46 | null | UTF-8 | Python | false | false | 630 | py | # import class for test_dataset and train_dataset
from test_dataset import *
from train_dataset import *
# import the neural network
from neural_network import *
# method for testing
from evaluate import *
# retrieve test set and train set
test_set = TrafficSignTest()
train_set = TrafficSignTrain()
print("Size of tes... | [
"phvietan@gmail.com"
] | phvietan@gmail.com |
09b8350283db25c7645cbfa0057a0986cd1eb775 | f458506eb20170e99b7f33add730921ee3ed4bdd | /manage.py | a5bf144c84cf56883dd91fca28eb55479f8138d7 | [] | no_license | Brogrammer98/IITB-Portal | afd58b9f57f37aabec87ef097972268e3a3a180b | 6fddb44697719a6232ab1cea7bb56593cdac7130 | refs/heads/master | 2022-03-25T07:00:58.638261 | 2019-10-07T14:45:02 | 2019-10-07T14:45:02 | 112,474,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "IITBPortal.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"noreply@github.com"
] | Brogrammer98.noreply@github.com |
2f824c916623204ef58696d0ca1d4a850c29a1fe | 780bcd3cd379da193af8ca70ebe24e56622aa1d2 | /home/migrations/0002_auto_20200525_0806.py | 7e3c508c36ba0ea7f92556a4e07354d2f9044e6b | [] | no_license | himanshu-singh14/Hospital-Management-System | c038f892851f4b2d36884b08d2f44ad2206206a1 | 5d5a18da5c982323409966173d987ce0a3640051 | refs/heads/master | 2022-09-03T09:16:04.558109 | 2020-05-28T20:38:22 | 2020-05-28T20:38:22 | 266,850,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # Generated by Django 2.2.2 on 2020-05-25 02:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='roles',
fiel... | [
"himanshusingh1471998@gmail.com"
] | himanshusingh1471998@gmail.com |
d335e8ebc38e765fc6771cbf64c0c0dfd9c8c353 | b7dd07413c05a13207988535b755b7d28dbc5663 | /Chapter_7/7-3_multiples_10.py | 895c7529af5c2a587ee9e35165d9f19b3504417c | [] | no_license | GrnTeaLatte/AlienInvasion | b671a87cd730c3d4b31a8e8d760d2d02d576cfb3 | d60e8e65adb79e54a1e1c579825827355a7e85ea | refs/heads/main | 2023-02-26T03:55:26.799446 | 2020-11-03T00:42:06 | 2020-11-03T00:42:06 | 336,111,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | number = input("Pick a number from 1 to 100.")
number = int(number)
if number %10 == 0:
print("This number is a multiple of ten.")
else:
print("This number is not a multiple of ten.") | [
"audreyfu14@gmail.com"
] | audreyfu14@gmail.com |
c65261eda261da0ee9d0e0336a39721e4442d872 | 938191dd1feb12b771a448a00135f9fb6abca4e3 | /example_bptt.py | ea710f5a7fe03a3691420aa6eac1419320d31784 | [
"Apache-2.0"
] | permissive | devnag/tensorflow-bptt | df09c0a910c9b7552b3b756eb2b03feacacdf8fb | 18b5e0c5ccd5108922feab5ef43d74989e2c08a6 | refs/heads/master | 2021-01-24T10:52:40.706019 | 2018-03-21T02:27:47 | 2018-03-21T02:27:47 | 70,291,227 | 32 | 8 | null | null | null | null | UTF-8 | Python | false | false | 8,701 | py | #!/usr/bin/env python
import math
import numpy as np
import random
import sys
import tensorflow as tf
import bptt
# See https://medium.com/@devnag/
# Data parameters: simple one-number-at-a-time for now
input_dimensions = 1
output_dimensions = 1
batch_size = 1
# Model parameters
lstm_width = 5
m = 0.0
s = 0.5
init... | [
"devnag@gmail.com"
] | devnag@gmail.com |
fce7f376efcf641f46e9b4e929833f0671a79b2d | b9d6b163f1ce5f681047dc08ab136d4d43c1a740 | /src/samples/sample_consumer.py | d8c6caae9b5d82cc87a10b8ac1c5d1277d83eeca | [
"BSD-3-Clause"
] | permissive | Nadi-Data/dataprocessor | 0c05d74d4e1297d277fb0653e21b57eaca4da8c6 | ea665cef27ede5dbab8f00e8918975333677486e | refs/heads/master | 2023-02-19T15:42:01.718231 | 2021-01-18T22:26:43 | 2021-01-18T22:26:43 | 268,939,861 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,937 | py | from kafka import KafkaConsumer, KafkaProducer, TopicPartition
import json
import pandas as pd
from dask.distributed import Client
bootstrap_servers_list = "localhost:9092"
topic = "sample_csv_file"
topic_group_id = "sample_read"
client = Client(processes=False)
class ConsumeEvents():
def __init__(self, ip_top... | [
"sriyan@Srikanths-MBP.T-mobile.com"
] | sriyan@Srikanths-MBP.T-mobile.com |
1a135cb428d9d41dbfada818546a0d07f51aa1da | 0e79327a15065c02009721b6fe03d4da34d6fd16 | /CxtAppium/test_case/conftest.py | 46d3fe65cdfef6e27776e5083d34d3e85b87fb42 | [] | no_license | chenwei481/TestSquid | 31d4a48fa13223c5b975ed9c88fc5a6316a42f4c | b32ad4c2ae2dfbb1c0b17b005518e387633d1f95 | refs/heads/master | 2020-09-15T02:48:03.116825 | 2020-08-26T08:37:51 | 2020-08-26T08:37:51 | 223,329,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #Author:chen
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import pytest
import logging
@pytest.fixture(scope='function',autouse=True)
def logRecord():
logging.info('-----开始执行用例-----')
yield
logging.info('-----用例执行结束-----')
| [
"1131982165@qq.com"
] | 1131982165@qq.com |
9c940622a9a5a6d6ef7d394bf145e76cebfa314f | ead0c144f5e6aaec724835d6bb58634a70867b8a | /blogproject/blogapp/views.py | 4a4b13c95af7c828730fe171508670d2bbd5e518 | [] | no_license | jafargithub/repositorylive | 3a3086de8a5f7705f81620818b45764bf5bef25c | b79cdc071ccf3aea3d85ff0928651ca36e43056b | refs/heads/master | 2022-09-05T11:36:26.716193 | 2020-06-04T10:07:53 | 2020-06-04T10:07:53 | 269,325,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | from django.shortcuts import render,get_object_or_404
from blogapp.models import Post
from django.core.paginator import Paginator,PageNotAnInteger,EmptyPage
from blogapp.forms import *
from django.core.mail import send_mail
from taggit.models import Tag
# Create your views here.
def Postview(request,tag_slug=None):
... | [
"shaikjafar960@gmail.com"
] | shaikjafar960@gmail.com |
a1892745b7cb69da63280b445817b1721df660c4 | d1590021cb64d76623c5804d36cab12c24f1cb1a | /2016/aoc2016/day07.py | 4aed0f295f70fa85ba4687886af57835deabec90 | [] | no_license | evroon/adventofcode | 697bff2650cfef2cc96e02aa303a539bfc74e4bd | ceffd754b2723dd3f7141eb754ab4384590e8a14 | refs/heads/master | 2022-12-13T12:53:45.298040 | 2022-12-06T21:32:09 | 2022-12-06T21:32:09 | 159,942,333 | 1 | 0 | null | 2022-11-09T18:13:25 | 2018-12-01T12:28:25 | C++ | UTF-8 | Python | false | false | 1,528 | py | from typing import List
from .utils import get_part_in_string
def check_abba(sequence: str) -> bool:
for i in range(len(sequence) - 3):
first = sequence[i:i+2]
second = sequence[i+2:i+4]
if first == second[::-1] and first != second:
return True
return False
def check_ss... | [
"erik.vroon22@gmail.com"
] | erik.vroon22@gmail.com |
bb8daa28856dc458f6d38f1bcbd37fc43fee7731 | 43cbff554a9b7d06a761cb8e62276b6aaa5e7754 | /src/old/numeric_info_inserting_4.py | aa41bfc0cc6cdbb86cea934ff5a26e0e52890b01 | [] | no_license | an-seunghwan/vrae | 7d0022ec31d2acd267ec38b99072574d60fe7690 | 6a8b7f7e65b439f89dd9317da3b3ee485bcc4b33 | refs/heads/master | 2023-01-09T11:52:01.201800 | 2020-11-09T11:50:18 | 2020-11-09T11:50:18 | 281,103,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,006 | py | #%%
'''
- X token <- replacing with numeric info
- template + x = message
'''
#%%
import tensorflow as tf
import tensorflow.keras as K
from tensorflow.keras import layers
from tensorflow.keras import preprocessing
print('TensorFlow version:', tf.__version__)
print('즉시 실행 모드:', tf.executing_eagerly())
print('available G... | [
"dpeltms79@gmail.com"
] | dpeltms79@gmail.com |
03432933f40125fba98a10caa76b8817f552cba1 | 48a1c21f3b1596acb1e987b73677af65e9f9416a | /packagehashtable.py | 8030cf73f09e9a08a4d646c5ba71761d9687cc63 | [] | no_license | earthafire/c950 | fe982685d91453b157461e2eec385a6b16aeb990 | af1116d6ab834a63c9496fa054385970f33b4c1f | refs/heads/master | 2023-06-04T07:03:18.427522 | 2021-06-21T02:54:07 | 2021-06-21T02:54:07 | 354,667,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | class PackageHashTable:
# big O: O(1)
def __init__(self):
self.current_size = 25
self.filled_slots = 0
self.data = [None] * self.current_size # list of packages
def get_filled_slots(self):
return self.filled_slots
def get_hash(self, value):
return value % self... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
219dc4c4f6d41723ed69b6c4cf9f5fedb7187881 | e5c87f75d2ff8d70ff3cd7757e95259b728cfbf8 | /assignment05.py | ba671633807e4c54c99446d9a8add46575928cea | [] | no_license | luisv052/LVintroclassfolder | 77dd18669b84bc3388bfaa616230d0b9e147bfda | a7fdb6097a081f53572bf8da1d0ea09b1197f4fb | refs/heads/main | 2023-03-06T03:59:24.473039 | 2021-02-19T04:53:03 | 2021-02-19T04:53:03 | 340,259,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | # --------------------------------------------------------------------------------------- #
# Title: Assignment 05
# Description: Working with Dictionaries and Files
# This script helps the user create a text file with tasks and
# their priorities, it also gives the user the ability to add... | [
"noreply@github.com"
] | luisv052.noreply@github.com |
1d3ce470259821bf35869c694651829ffdfd58b5 | 029637643a5d526f59876e3fac6903ded0037f66 | /etc/old/duo2/col.py | 5a3dfe152d994521f2b6bead944255c39c0f059d | [
"MIT",
"Unlicense"
] | permissive | timm/duo | aa331e5e153236046a8d23f23f3ddce77279be10 | c09a43608d4b38b32ea0da3f97b3ec62cbadac73 | refs/heads/master | 2022-11-03T17:59:30.055920 | 2022-10-02T17:43:44 | 2022-10-02T17:43:44 | 239,056,903 | 0 | 0 | Unlicense | 2022-09-16T18:43:25 | 2020-02-08T02:24:13 | HTML | UTF-8 | Python | false | false | 3,066 | py | #!/usr/bin/env python3
# vim: ts=2 sw=2 sts=2 et tw=81 fdm=indent:
"""
col.py : summarize streams of data
(c) 2021, Tim Menzies, MIT license.
https://choosealicense.com/licenses/mit/
USAGE ./col.py [OPTIONS]
-t S run demo functions matching S
-T run all demo functions
-L list all demo... | [
"timm@ieee.org"
] | timm@ieee.org |
a37f9e0105444012358a39913a62c40a1b658de8 | fe565da74dad061256513c319ee5e46cf9604ee5 | /pyDungeon/dungeon.py | 18aad19807266bc01699d8829b7dfbf4d1ab49f5 | [] | no_license | alangenfeld/netcave | 917b64be1103e02f31dcbd2f4121a0bab68b63af | 0cdd3b48b770c69f38c3540bde627a0c57abe465 | refs/heads/master | 2021-01-15T13:18:22.718462 | 2011-05-07T03:07:24 | 2011-05-07T03:07:24 | 1,542,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,410 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import random, numpy
import pyDungeon.cellular as cellular
# 0 - floor
# 1 - wall
# 2 - unpassable wall
# 3 - open door
# 4 - closed door
# 5 - trapped door
# 6 - inner wall
# 7 - stairs up
# 8 - stairs down
# 9 - spawn
def angDungeon(depth,width=128,heigh... | [
"nmitchel@cs.wisc.edu"
] | nmitchel@cs.wisc.edu |
eccc0851425db9c7c58050c30830560536f1b21f | 8f98929aa6c5f50b8c84ecc8dcae965616acb06f | /infra/cifuzz/workspace_utils.py | d6a6866524f0ecaf63e701abc80632c53b03a0d7 | [
"Apache-2.0"
] | permissive | tstruk/oss-fuzz | 44c55fb510c1879b88a525652829e3a4989ee786 | e407f54e61a134de43019d69947a72a471bdd7c6 | refs/heads/master | 2021-08-29T02:21:49.811410 | 2021-08-10T17:48:16 | 2021-08-10T17:48:16 | 250,107,056 | 0 | 0 | Apache-2.0 | 2021-08-10T18:57:27 | 2020-03-25T22:36:46 | Shell | UTF-8 | Python | false | false | 2,315 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | tstruk.noreply@github.com |
cdc568f6f8b729c0cb3256a847415ecb9daf8769 | 78e60a7d8a67ed76244004e8a3ed573fbf396e41 | /samples/del_admin_role.py | ad52a172a1488dd2d1f632616ef30fbe40844ca8 | [
"MIT"
] | permissive | Crivez/apiclient-python | 837a9f7cc0453ccd3121311adc7920b5fe6b3e33 | 860fc054f546152a101e29b1af388c381075ac47 | refs/heads/master | 2023-06-08T13:24:09.249704 | 2021-06-17T12:16:35 | 2021-06-17T12:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Delete the admin role.
ADMIN_ROLE_ID = 10
try:
res = voxapi.del_admin_role(admin_role_id=ADMIN_ROLE_ID)
print(res)
except Voximplant... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
cbc7ebf03b9a0991ba13aecf655b2c825b52f62a | b47b67268e6f005abd65c4517de438e287d3256a | /src/lexf.py | 4b1c1c96e6c2a10c201aaa798e09d1bcc152c30a | [
"Unlicense"
] | permissive | kinow/rosalind-exercises | e9ebafb2f706d46f0e6241b153c6cf7c6fc78622 | 5984f10226e41a3fffbc7f947e397b0cd84ea5cf | refs/heads/master | 2021-01-25T12:07:27.652724 | 2015-07-13T10:04:21 | 2015-07-13T10:04:21 | 13,915,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import itertools
data = 'V F K P B O'
n = 3
order = [x for x in data.split()]
def get_order(char):
for i in len(order):
if (order[i]) == char:
return i
return -1
if __name__ == '__main__':
combs = [''.join(entry) for entry in list(itertools.product(order, repeat=n))]
total = 0
... | [
"brunodepaulak@yahoo.com.br"
] | brunodepaulak@yahoo.com.br |
4feefa869c899ab972e4fad181aba25039f5191d | 4514789a57728692b64394deddd787f26363f1fd | /ncbi_wgs_downloader.py | a028be981323809dc33af0340032f0a49b59d102 | [] | no_license | duceppemo/ncbi | 969b34f7c00acb3d14d092e4aa15debd0efb3dba | 41b9e0620ca9f8b4f75d440a2f985f70d9adc63b | refs/heads/master | 2023-08-17T15:26:41.178729 | 2023-08-15T00:45:55 | 2023-08-15T00:45:55 | 107,134,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | #!/usr/local/env python3
from sys import argv
from Bio import Entrez
from Bio import SeqIO
import re
import http
import urllib
from time import sleep
input_list = argv[1]
output_folder = argv[2]
email = argv[3]
error_acc = output_folder + '/acc_errors.txt'
error_acc_handle = open(error_acc, 'w')
# Parse accession ... | [
"noreply@github.com"
] | duceppemo.noreply@github.com |
00f3d017fc33f0dd4f1488fc9569ea6cf67de1ec | 885aeea68df73052bc9e9df8efb58ac713f42e29 | /InfonetVaccine/normfile.py | f259d660859f850e72e5c782846f4c0556ced2c6 | [] | no_license | hyeonjun/InfoVaccine | 8bfa1af56d5b8f1508cf218864e41a4ad6f44cf0 | 17e9cf0761d3d898d2e03e02ba6cc70f0fcc3fa5 | refs/heads/master | 2023-03-03T10:53:34.105220 | 2021-02-10T17:13:28 | 2021-02-10T17:13:28 | 337,788,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | # -*- coding:utf-8 -*-
# sigtool 옵션에 의해 생성된 파일을 악성코드 검사를 위한 버퍼 형태를 만든다.
# 사용방법 : normfile.py [sigtool.log]
import sys
import re
import hashlib
# 주석문 및 공백 제거를 위한 정규표현식
p_http = re.compile(r'https?://')
p_script_cmt1 = re.compile(r'//.*|/\*[\d\D]*?\*/')
p_script_cmt2 = re.compile(r'(#|\bREM\b).*', re.IGNORECASE)
p_spa... | [
"zlel175@naver.com"
] | zlel175@naver.com |
6475170c003315bd497a138e3f06d898ef9b2be9 | 131241f87f822e5ed95d83495725e4238049a5cb | /python1.py | 61949506e4eebc83eec63aa431ca40372cc56005 | [] | no_license | romisaakhaled454611/-coursera-capstone | 46c6322e62daa79dc7dcdef668af93951b436fdb | 6d0a673e358dad0494d9a51412f1131d642122fb | refs/heads/master | 2022-11-23T17:39:00.685836 | 2020-07-19T09:38:41 | 2020-07-19T09:38:41 | 280,832,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,569 | py | !pip install geocoder
!pip install folium
import pandas as pd
import requests
import numpy as np
import geocoder
import folium
import requests
import matplotlib.cm as cm
import matplotlib.colors as colors
import json
import xml
import matplotlib.pyplot as plt
%matplotlib inline
import warnings
warnings.... | [
"noreply@github.com"
] | romisaakhaled454611.noreply@github.com |
f68095eab644ceacab3bd51bacd96189f616524a | 2d78a3bf411981f6228a000fab02031a1699f628 | /puma/tests/test_puma.py | d00b630ba7d44c13cf83566aa3c3d1e5f9c33919 | [] | permissive | sqreen/integrations-extras | e892551b79ca18769e4886467ad86fac50cc2909 | 8bf143448ee483d673e34787a2019851c9fe817b | refs/heads/master | 2023-04-24T16:57:03.813971 | 2021-05-10T09:49:45 | 2021-05-10T09:49:45 | 350,674,264 | 2 | 3 | BSD-3-Clause | 2021-05-04T21:47:44 | 2021-03-23T10:44:36 | null | UTF-8 | Python | false | false | 2,785 | py | import time
import pytest
import requests
import simplejson as json
from mock import MagicMock, Mock
from datadog_checks.base import ConfigurationError
from datadog_checks.puma import PumaCheck
@pytest.mark.unit
def test_config(aggregator, instance):
headers = {
'server': 'FakeServer',
'content-... | [
"noreply@github.com"
] | sqreen.noreply@github.com |
9c75ba546c6e58dadfa3efda6d5def2966c6f8c1 | 2fb0b9123bbeb62bdfb0ec37fb70c2f4c6bdd652 | /Grade 4 1st term/0901-1.py | b62ce00badb05059428a0547c2ccbbbdf3b228e7 | [] | no_license | Zhijun213/About-Digital-Tech-Architecture | 679dade5a949b622c3ebb198d7cc77a0f9f4185e | f94546c831a768c5dc2dda1fc11a77f9a98375c8 | refs/heads/master | 2023-06-22T14:00:13.590624 | 2020-02-17T11:10:45 | 2020-02-17T11:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | import rhinoscriptsyntax as rs
import math
import random
import Rhino.Geometry as rg
result=rs.GetCurveObject()
curveid=result[0]
rail=rs.GetCurveObject()
def TransformProfile(object,pt1,pt2):
normal=rs.VectorSubtract(pt1,pt2)
normal=rs.VectorUnitize(normal)
plane=rs.PlaneFromNormal(pt1,... | [
"noreply@github.com"
] | Zhijun213.noreply@github.com |
47eb91749a631a8839cbadb2b1ae5950f56d3da1 | 2834e05cfb56e16fb4a20a46d713ee3e7393a30a | /mzitu_spider.py | 0716848d851bd48611516e87812f40ec2161a5b2 | [] | no_license | jayhebe/Python_Data_Analysis | 29680f1a13ca5756b8fed96c75f7bf4ee432851e | 2bd39ce2688ef7fe4340810529f35799eff7de7a | refs/heads/master | 2020-07-04T16:29:59.470195 | 2020-01-14T15:12:42 | 2020-01-14T15:12:42 | 202,339,479 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | from bs4 import BeautifulSoup
import requests
import os
import time
mzitu_folder_name = "mzitu_images"
mzitu_base_url = "https://www.mzitu.com"
mzitu_headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) \
Chrome/77.0.3865.120 Safari/537.36",
"Request"... | [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
631df4c0f6e1b265b9f3f730196cd1ec0c7ee39d | a7b3501e0cdf2af9a6794a83bb9c446dc275dfe0 | /catalog/urls.py | 64b612278d716dbeba66e92a11df1b0715ed2112 | [] | no_license | Mary230/UniMo | 972f5fd331362a1280a6a04d13351ec11c715517 | 95e9b78f9a5119bde265dfd7909b92fe2d3b1293 | refs/heads/master | 2023-06-02T09:05:40.402969 | 2021-06-18T12:29:35 | 2021-06-18T12:29:35 | 378,142,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | from django.urls import include, path
from .views import home, students, main, teachers, to_competition
# urlpatterns = [
# path('', index, name='home'),
# path('students/', include((
# [path('', students.CompetitionView.as_view(), name='competition_list'),
# ]
# , 'catalog'), namespac... | [
"bmacha@Marias-MacBook-Pro.local"
] | bmacha@Marias-MacBook-Pro.local |
ec7689f3217a4147f21ee420d07203c33fba89f7 | fe0d96234dc905010e0a6819c63a4d18e4468f80 | /bulk/migrations/0005_auto__del_field_customer_name__add_field_customer_firstname__add_field.py | a3ab50d84c21fe683c6dc5db0f0577f138a2be24 | [] | no_license | aiti-ghana-2012/AlertBunny | cf2e497b8525af683c4b69a595d1d5e3b5715622 | 02f56b5e541568d55efbede2facf6c1e2001bdb6 | refs/heads/master | 2021-01-22T18:28:16.133980 | 2012-08-14T22:17:11 | 2012-08-14T22:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,769 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Customer.name'
db.delete_column('bulk_customer', 'name')
# Adding field 'Customer... | [
"obeng@obeng-Presario-CQ62-Notebook-PC.(none)"
] | obeng@obeng-Presario-CQ62-Notebook-PC.(none) |
8c760c82575c89117f1bb062fe648deb7598a7c1 | 8e54239a04dd382847bc7edf2fb1ec1a67e3052c | /venv/bin/sqlformat | c5176a45642a5ec0e192c7b45e4c10bdc02187e9 | [] | no_license | hadcode09/f112_cr | 4bed932435e28243f7f69241b55b259308b75e94 | 3a7e9c5b2c4e4d80366e91dee283029aa83f7aa4 | refs/heads/main | 2023-05-05T06:21:35.529103 | 2021-05-22T22:40:32 | 2021-05-22T22:40:32 | 366,224,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/mahadley/Code/SDGKU/blog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mark.hadley1@hotmail.com"
] | mark.hadley1@hotmail.com | |
843955a7354b5a25b939be660a5d92c0cb9dd070 | 9b85ff2bd80edb93e8d1919c80e80fc18cb1d35a | /src/acmpy/debug/debug_rwc_alam.py | 837de53048321a405d383d3b5d429c3414bdf0f1 | [
"MIT"
] | permissive | agryman/acmpy | 3cea318c50f2a65298654f5784da4e47e26c0368 | e94fdd7be99c645b3538a01102fb38791e3c7f95 | refs/heads/master | 2022-10-15T23:29:28.710777 | 2022-06-12T02:05:33 | 2022-06-12T02:05:33 | 214,318,038 | 0 | 0 | MIT | 2022-06-12T01:42:59 | 2019-10-11T01:34:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,515 | py | """This module debugs the RWC_alam() function."""
from sympy import S, Symbol, Expr, solveset, sqrt, Set, EmptySet, simplify, nsolve
def RWC_alam_simplified(B: float) -> None:
c1: float = -3.0
c2: float = 2.0
# set up the equation
A: Symbol = Symbol('A', real=True)
mu: Expr = sqrt(9 + (A * c1 /... | [
"arthur.ryman@gmail.com"
] | arthur.ryman@gmail.com |
1db866966f679559ca0efc84ff2d698ba6a16ddb | b88a34b9f96f180c9106be8e8a215c07856d1a39 | /constants.py | 5a8f764c039f1dc0bb9020bae2955bca11ee06a8 | [] | no_license | leongold/moovit-yad2 | ad6cf9d08e7b5920fd2eceb49ffe89cb02066301 | 0b4aec201ac17c883e31a90f8d8f362bc2d55bfa | refs/heads/master | 2023-05-10T17:09:45.762485 | 2018-11-22T10:29:49 | 2018-11-22T10:30:46 | 153,251,695 | 0 | 0 | null | 2023-05-03T17:54:46 | 2018-10-16T08:38:33 | Python | UTF-8 | Python | false | false | 67 | py |
import os
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
| [
"lgoldber@redhat.com"
] | lgoldber@redhat.com |
8aa592e8467b111863e6a42150f12f9a82f89846 | 81e573cf5d3455899e1699dd74175946d8df0d6e | /dashboard.py | 065e1eb31cb6bac7c2b1079ce16b051793b7cbac | [] | no_license | awoziji/sheriffs | 13c8346993b9dec7bb985c0951077faceb840965 | 2e837a5c73917165b6ba1a1feafdbb8c2ca4913f | refs/heads/master | 2021-04-20T16:28:04.426843 | 2018-07-06T05:22:56 | 2018-07-06T05:22:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | #!/~/venvs/dash/bin/activate python
# usr/bin/env python
#
# @Author: Brian Austin <austinbrian>
# @Date: 2018-01-11T21:22:08-05:00
# @Email: austin.brian@gmail.com
# @Filename: dashboard.py
# @Last modified: 2018-01-13T17:01:31-05:00
'''
Experiments with using dash (by plotly) to build dashboards from data.
Here, I... | [
"austin.brian@gmail.com"
] | austin.brian@gmail.com |
24dfe7e4a657a00443f621c402db7ded1b87587f | fa19df33728779d9a662542a674be6554af1feba | /src/main/java/nl/Ipsen5Server/Service/kik-bot-api-unofficial/examples/kik_unofficial/protobuf/common_model_pb2.py | 506bee5f0858395bf327e368e4a0e6b70adfe651 | [
"Apache-2.0",
"MIT"
] | permissive | anthonyscheeres/Ipen5BackendGroep11 | 3abfe0e07ec1d240a8e0b2db79a4f8d2f26bd59f | e2675c2ac6580f0a6f1d9e5f755f19405d17e514 | refs/heads/master | 2022-11-15T07:08:22.619268 | 2020-06-23T09:10:33 | 2020-06-23T09:10:33 | 263,292,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,989 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: common_model.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflecti... | [
"info@anthonyscheeres.nl"
] | info@anthonyscheeres.nl |
31356e0d99a19ee522cda865378a49b0ec1c5187 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1623.py | debc4e59f6ac2116d11df4140a57d981a774db94 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=60
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
7565fccefc1f94b90892e24e8bc4c59ad706f8ce | 601c2b26b115e59002fd0d105daef714aa6803a2 | /Problem68.py | de6e4c370c5364a8f9fd371e752b2672507cabb7 | [] | no_license | madrury/euler | 4be0f28edbfdf5a10de1b3f68336f73dcc73455d | 04ad94fe67af09e48bd795a2cc9f229f7c752397 | refs/heads/master | 2021-01-17T07:40:46.930178 | 2018-01-21T23:49:21 | 2018-01-21T23:49:21 | 15,242,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from itertools import permutations, chain
def magic_3_ring():
S = set([1, 2, 3, 4, 5, 6])
for a_0, a_1, a_2 in permutations(S, 3):
b_0 = b_1 = b_2 = c_0 = c_1 = c_2 = None
s = a_0 + a_1 + a_2
b_1 = a_2
for b_0 in S - set([a_0, a_1, a_2]):
b_2 = c_1 = s - b_1 - b_0
if b_2 in S - set(... | [
"matthew.drury.83@gmail.com"
] | matthew.drury.83@gmail.com |
0e042a6a418f78275e29bb9fe263d90fa38a2b3c | cf59d92614a3505aeed9455482ef327572578228 | /venv/lib/python3.6/site-packages/djoser/urls/authtoken.py | 87ed8962570463caffb44de8795bf7e87591014d | [
"MIT"
] | permissive | slarkjm0803/autobets | e1d1a3b00cf94ee90fd1fed7464431677b4f9e11 | f92a5d999acaf5d7c83ca2768a260c2282eabbee | refs/heads/master | 2020-09-23T21:40:46.057648 | 2019-11-29T11:42:37 | 2019-11-29T11:42:37 | 225,591,526 | 1 | 0 | MIT | 2019-12-03T10:22:21 | 2019-12-03T10:22:20 | null | UTF-8 | Python | false | false | 308 | py | from django.conf.urls import url
from djoser import views
urlpatterns = [
url(
r'^token/create/$',
views.TokenCreateView.as_view(),
name='token-create'
),
url(
r'^token/destroy/$',
views.TokenDestroyView.as_view(),
name='token-destroy'
),
]
| [
"mac@macs-MacBook-Pro.local"
] | mac@macs-MacBook-Pro.local |
31015086cb3c4c905af5db3e7c2ca5c376ff75d5 | cc90f5bd11ef51ef7733c420d41a0aebde922278 | /HandleIt/Handle_It.py | 368a61ad02ee6124789dfcaf8be708af1a7a4eda | [] | no_license | Akavov/PythonDss | 1098fc89b0feec941968d96b9331b13ea7d43dd4 | 36b12e31f9fc02038822af33ad1c91adaa975c29 | refs/heads/master | 2021-04-27T17:54:03.930919 | 2018-03-20T16:55:26 | 2018-03-20T16:55:26 | 122,330,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #demonstrate handling exceptions
try:
num=float(input("Type the number:"))
except ValueError:
print("Seems like not a number!")
#handling different kinds of exceptions
print()
for value in (None,"Hello!"):
try:
print("Trying transform into the the number:",value,"-->",end="")
print(float(va... | [
"arsakavov@gmail.com"
] | arsakavov@gmail.com |
3659e3647c37d4571dcfa292ef3cc834f0566eee | 7b72a2caf389ac152dbd28d35d70b20bcd5a2ef4 | /misc/sets_Lesson.py | 49cd456a222b43e9964bf116ba1638fd4fcb56d3 | [] | no_license | benwilson96/group21 | ef6c1af9d7b98a6a36c186e27464f03bccd235f1 | 263df616378e75060dd96f12c64ac82c16edaa6b | refs/heads/master | 2021-01-10T14:11:35.679348 | 2016-04-15T00:30:29 | 2016-04-15T00:30:29 | 53,666,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,162 | py | from tkinter import*
class sets_Lesson(Frame):
def __init__(self, master):
Frame.__init__(self, master)
self.grid()
self.lTitle()
self.LessonDescription()
self.LOutline()
self.Content()
self.TakeTest()
self.Objectives()
self.GoToTest
def lTitle(self):
Title = Label(self, text='"Sets"', fon... | [
"benwilson96@hotmail.com"
] | benwilson96@hotmail.com |
ee80f003615f1943cc0c93612686b83872586dc6 | d52ee2f7ec5dcd8825f4e221a7f084d488d35634 | /new_scripts/baselines/dmass/tensor2tensor_old/models/aligned.py | a6eca3bab94b43e8af18bd325c617f3e1d66d3f7 | [] | no_license | rekriz11/sockeye-recipes | 9dbf96140e4d9d546210dd1c29801132e1b9201c | 644363b92e2f38311cc2b7e926b6558aa41900f3 | refs/heads/master | 2020-03-29T16:52:52.542574 | 2020-03-13T18:18:25 | 2020-03-13T18:18:25 | 150,131,769 | 5 | 3 | null | 2018-09-24T16:15:47 | 2018-09-24T16:15:46 | null | UTF-8 | Python | false | false | 17,800 | py | # coding=utf-8
# Copyright 2017 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"rekriz@seas.upenn.edu"
] | rekriz@seas.upenn.edu |
ca9fd7db7af76cf7e25b5898992310a5733c1001 | 88e06bab1989c81a2dd649bb09b144fa7c958f89 | /leet_simplify_path.py | 4bcdad7a72949aab1ed4bd7e8b422c4511b91450 | [] | no_license | VaibhavD143/Coding | 4499526b22ee4ef13f66c3abcea671c80a8f748a | 5de3bae8891c7d174cbc847a37c3afb00dd28f0e | refs/heads/master | 2023-08-06T21:56:44.934954 | 2021-10-09T18:31:29 | 2021-10-09T18:31:29 | 263,890,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | class Solution:
def simplifyPath(self, path: str) -> str:
ss = []
for s in path.split('/') :
if s and s != '.' :
if s == ".." :
if ss :
ss.pop()
else :
ss.append(s)
return '/' + '/'.jo... | [
"vaibhav.dodiya143vd@gmail.com"
] | vaibhav.dodiya143vd@gmail.com |
7693475115923f7a3fd879c679cf8a92b8bc1129 | d73bb501d0ea21e1d42e24bc1a2f79924ede664f | /PQueue.py | fd0b3ff4179d621a392e0d88f285ec38f85c50fe | [] | no_license | ahurka/UOttaHack-SmartLine | a5398e525a593786af8665427e0f32a005ba9324 | 7950e3b229f0bff80259456d261b1587a987b3a5 | refs/heads/master | 2021-09-07T06:13:07.708395 | 2018-02-18T16:59:36 | 2018-02-18T16:59:36 | 121,888,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | import numpy
class ArrayDeque:
def __init__(self):
self._buffer = numpy.array([None])
self._in_buf = 0
self._head = 0
self._tail = 0
def is_empty(self):
return self._in_buf == 0
def _set_length(self, length):
new_buf = []
for item in self:
... | [
"hurka.alex@gmail.com"
] | hurka.alex@gmail.com |
e91a03d34a7893b570c1523d246b152253033ba9 | 164b4271e6baeb2bd911c8e431c0b2be6fb363b2 | /euler/page1/problem12.py | 2635345ba2fd39010460462f11890cafdbb94519 | [] | no_license | mc4/algo | 89a8bde1fb1cb82ce17b45f7a9907dd75af186f8 | 3cdbc60e4bb4e6a07c5edab9451b6caee5d95470 | refs/heads/master | 2020-04-09T13:35:15.676416 | 2016-06-14T03:07:37 | 2016-06-14T03:07:37 | 20,665,235 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | i, s = 1, 0
while True:
s += i
c = 0
for j in xrange(1,s+1):
if s % j == 0:
c += 1
if c > 500:
break
i += 1
print s
# solution: 76576500 | [
"mark.conley@rutgers.edu"
] | mark.conley@rutgers.edu |
f448b03af30aed1ac228a52b4a9de7f7647dd612 | ef84f142ce3cbc9de8dad3bcdeb26c762e3dc824 | /modules/app/view.py | 8cf4d2110a246c864242b5044d1eb4c3b02914c8 | [] | no_license | johnbomba/lecture-nov-19 | eeca28202298c23a0f693b4654717af42ae878dc | 8e0875cf924f12aefaba9ec82f7bd0992b1e1e5d | refs/heads/master | 2020-09-13T13:07:10.970091 | 2019-11-19T21:17:21 | 2019-11-19T21:17:21 | 222,791,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | def sayhello():
print("Hello") | [
"bomba.john@gmail.com"
] | bomba.john@gmail.com |
2abf00043fb7fb143f8dbc2a4f2dd2048cedc296 | 259b4099658c878f24babcad1f3dd71b0bd06608 | /web_thrift/thrift_builder/thrift_application.py | 2952bf8c7fe8431ef116da882ce0726d29db935a | [] | no_license | wangleimvp/python-project-components | 42161a8b27456a071523e6622033d2b1f5be7e39 | bf1ff4fa5b82e6a34669a16f34f3aec5e9c4d09d | refs/heads/master | 2021-01-10T01:33:36.033476 | 2015-12-29T07:55:50 | 2015-12-29T07:55:50 | 48,683,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# thrift 服务注册 启动
#
import logging
import sys
import tornado
from thrift.TMultiplexedProcessor import TMultiplexedProcessor
from tornado.options import define
from web_thrift.gen_py.test import ThriftTestService
from web_thrift.thrift_builder.thrift_builder import Thrift... | [
"wanglei@eking.mobi"
] | wanglei@eking.mobi |
804d443c38b24401f277f07d2be29ae31988630b | dd7924ddad83836811c39bc843785d08b7fe7697 | /stock/tests.py | eb9008571da1115b225b092141757737fef6e456 | [] | no_license | mainixfn/mainix_server | 537ba5428306205dc0cd6db6b4bc4451e89079c6 | 56ba4120a00a53cddd8eae47d6b1b510740254ce | refs/heads/master | 2022-12-11T00:25:54.662350 | 2019-12-09T11:33:01 | 2019-12-09T11:33:01 | 226,854,727 | 0 | 1 | null | 2022-12-08T03:16:58 | 2019-12-09T11:25:37 | Python | UTF-8 | Python | false | false | 1,307 | py | from django.test import TestCase
import requests
import pandas as pd
def read_stock_price(code,page_num):
url=('https://finance.naver.com/item/sise_day.nhn?code='+code+'&page='+str(page_num)+'')
data=pd.read_html(url)
data=data[0]
data.columns=['날짜','당일종가','전일비','시가','고가','저가','거래량']
price_data=... | [
"mainixfn@naver.com"
] | mainixfn@naver.com |
95205781cf62e93ad3b0b25c8c12a11ba6a87ce3 | 462c56e7454c97e0541588b9be66a4e216ea20fd | /337.house-robber-iii.py | b7df910aa92e9bed203055651ced6ea30bbb2e43 | [] | no_license | LouisYLWang/leetcode_python | d5ac6289e33c5d027f248aa3e7dd66291354941c | 2ecaeed38178819480388b5742bc2ea12009ae16 | refs/heads/master | 2020-05-27T08:38:48.532000 | 2019-12-28T07:08:57 | 2019-12-28T07:08:57 | 188,549,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | #
# @lc app=leetcode id=337 lang=python3
#
# [337] House Robber III
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#
class Solution:
def rob(self, root: TreeNode) -> int:
def rob_sub(root):
... | [
"louis.yl.wang@outlook.com"
] | louis.yl.wang@outlook.com |
2bd53cdf3cf4e912f272d060d6e07a9650c5bf45 | 7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1 | /src/559.py | f063866e484fd03a1aa4d26b5e7b19a1d8e94cd2 | [] | no_license | ecurtin2/Project-Euler | 71f79ee90a9abd0943421677d78a6c087419e500 | 79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3 | refs/heads/master | 2021-03-19T14:52:57.045443 | 2018-04-12T22:05:37 | 2018-04-12T22:05:37 | 100,059,180 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | """
An ascent of a column j in a matrix occurs if the value of column j is smaller than the value of column j+1 in all rows.
Let P(k, r, n) be the number of r x n matrices with the following properties:
The rows are permutations of {1, 2, 3, ... , n}.
Numbering the first column as 1, a column ascent occurs at column... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
5083c70b62155d28e238ca6bd714236ac7170634 | 3abc88ee3c20507c3739af5434b2099961bba388 | /posts/admin.py | 694a63d0cab2ff12564d02f7292ed8f200b5bf8b | [] | no_license | franky88/django_template | d13a2a727b673e28f229e5ed2e8ec96057dc6e1c | 451990d2c21a486d5d19dd9681f714104afda081 | refs/heads/master | 2021-07-09T22:46:56.696921 | 2017-10-05T13:39:15 | 2017-10-05T13:39:15 | 105,893,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.contrib import admin
from .models import Post
# Register your models here.
class PostAdmin(admin.ModelAdmin):
list_display=["title", "timestamp", "updated"]
list_filter=["timestamp", "updated"]
admin.site.register(Post, PostAdmin) | [
"ramosfp99@gmail.com"
] | ramosfp99@gmail.com |
3a96c152b3ca1dd953764453f657954fe4c7edb9 | c5ba1666e45d872bd431d30cc0698bb6ca515d09 | /vis/diagnostics/urls.py | dccda443db0b31aaaf031b6d3ce03d1097c4af9e | [] | no_license | ZokirPro/VIS-back | 21a167eb2c4c151c4c26ce3eed94e093cc457113 | 8e204cedd735ae5cc0d35283d6d1c99af04df884 | refs/heads/master | 2023-07-02T16:22:37.585808 | 2021-08-09T05:31:59 | 2021-08-09T05:31:59 | 386,545,281 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.contrib import admin
from django.urls import path,re_path,include
from . import views
app_name='diagnostics'
urlpatterns = [
path('registration_vaccinated_animals',views.registration_vaccinated_animalsIndex,name='registration_vaccinated_animals'),
path('test_results',views.test_resultsIndex,name='te... | [
"zuckerberg3771@gmail.com"
] | zuckerberg3771@gmail.com |
2970d8227cccf50e65da0dda71c84de76531c099 | e510a82771967d8677ccb77be7d8fe199970ec39 | /setup.py | 94c41706ab048c6d1b4f753918410c242eff4509 | [] | no_license | mbr/ragstoriches | 4c1a7501a05f40aad13aa796105df5ce57beb9b9 | aa11405673dfd307915e38110145cede72892804 | refs/heads/master | 2023-06-06T20:49:07.700820 | 2015-12-23T10:53:40 | 2015-12-23T10:53:40 | 8,688,096 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='ragstoriches',
version='0.4.1dev',
description='Develop highly-concurrent web scrapers, easily.',
... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
541678af921c5cb3fd5445e9ad1687d86061f153 | 45703db7d8c7a93c3a75df5d1f70972ed00cd426 | /gen_pass_by_web.py | a99d590b0cd6854c47e9489a462ae018b5d55df5 | [] | no_license | junmoxiao/gen_pass_by_website | 748aae00c4652f8b2a5b7df07ef8ab477376a317 | b6308fe637ad322a272ad269c89f2b9df3ebcbd8 | refs/heads/master | 2021-01-11T18:48:32.340184 | 2017-01-21T07:53:32 | 2017-01-21T07:53:32 | 79,632,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# modified from gen_pass_by_web(author:Peter Kim)
# author:junmoxiao
import urllib2
import re
site_list_file = 'site_list.txt'
words_file_name = 'words.txt'
def _remove_html_tags(html):
text = html
rules = [
{r'>\s+': u'>'}, # Remove spaces after a tag opens... | [
"53991338@163.com"
] | 53991338@163.com |
dd4233f9877fc797e7015caf2f2eea6ec7f0105b | 149baa65329d0e13ae3189b8127d2eff5f5fdf77 | /bot_ws/build/ur5_pkg/ur5/catkin_generated/pkg.installspace.context.pc.py | 285472e4a9fe5b9bac59158a6b63e020bc6e13d7 | [] | no_license | mtbthebest/imitation_learning | 20b990aa7396fecbe5433c7703f353bf99fa5f2c | 4c08192e31062f69056cc36efffb7a2ce0264244 | refs/heads/master | 2020-05-21T17:05:26.567273 | 2019-09-16T12:20:19 | 2019-09-16T12:20:19 | 186,111,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ur5"
PROJECT_SPACE_DIR = "/home/mtb/s... | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
fd23ca198ff0aaae52acdb44f396bf645636ef2a | 996175acb3e414f804c2a59bd266d80e2f411cee | /Learning Django2.0/Blog/myblog_env/myblog/blog/migrations/0001_initial.py | b74033bfc3ea789ef43d1c90797dae82b8a25058 | [] | no_license | hanxuwu/Learning-Django | 4f0af30e4ad9e296f2c948c0c652e3d93b342e27 | dfd857e0c5f74e3cbb3d66c83022375779a41cb0 | refs/heads/master | 2022-11-12T18:18:38.554207 | 2018-08-07T01:47:24 | 2018-08-07T01:47:24 | 118,908,708 | 0 | 1 | null | 2022-10-29T19:47:56 | 2018-01-25T12:13:41 | Python | UTF-8 | Python | false | false | 1,426 | py | # Generated by Django 2.0 on 2018-01-27 04:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"skunder301@gmail.com"
] | skunder301@gmail.com |
92772226a0298308386e78d5dc309ea41c259473 | 53e0e35f58dc169d5b4e293ff073f46948fbe278 | /pytorch_projects/fine-grained-image-recognition/Mutual_channel_loss/CUB200.py | eade1d5ac5c44b65f44033420cc718eb966eda63 | [] | no_license | Hoodythree/DeepLearningCode | 25097227d512e80b233352ce2cc58b023591b165 | 3e2d30198956c9f01c5fc8f9df4667eef43c51e9 | refs/heads/master | 2022-08-30T09:08:09.760487 | 2020-05-17T13:35:05 | 2020-05-17T13:35:05 | 262,494,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | import os
import pandas as pd
from torchvision.datasets.folder import default_loader
from torch.utils.data import Dataset
base_folder = '../../data/CUB_200_2011/'
class CUB200(Dataset):
def __init__(self, base_folder=base_folder, transform=None, train=True):
self.base_folder = base_folder
self.tr... | [
"luoqiuhongthree@gmail.com"
] | luoqiuhongthree@gmail.com |
20a734e7d5bf5bf82e3d2f6fe725cd58d825fd16 | 5aa10c1998594f31005eac56acb34f7a59cac58b | /mysite/hello/migrations/0001_initial.py | a35d740d75216791bb06221e9ab128a90875a6cc | [] | no_license | KeiyaTomizawa/wasepa | f784b1c9127a0ec77b9d7e349baf52f1238c3275 | 2ab33e2e8ba86bce2243db1124250cc4a570dc09 | refs/heads/master | 2021-01-01T05:06:53.397968 | 2016-06-09T08:44:20 | 2016-06-09T08:44:20 | 59,650,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-05-25 06:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hello',... | [
"k.tommy75.japan@gmail.com"
] | k.tommy75.japan@gmail.com |
5ceea86ad6d888dabfc108c51820cc086e861934 | 43f316b151bc5d7e66b3358ae5e64f5e717e5c72 | /bookstore/urls.py | b62a5441cebb9bf7de7872c85166b5e53cceb656 | [] | no_license | xfde/django-vue-bookapp | 357be3ae1c66b6f0c33bff94293d257f203c0230 | 9e168ea49cf32a62814207e9042a285c5f7ac5ec | refs/heads/main | 2023-04-04T22:58:42.738334 | 2021-04-07T10:26:51 | 2021-04-07T10:26:51 | 354,943,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # bookstore/urls.py
from django.urls import include, path
from rest_framework import routers
from django.conf.urls import url
from . import views
from django.views.static import serve
from .views import signup, isLoggedin, signout, signin, add_favourites, list_favourites, remove_favourite_book, add_book
router = router... | [
"alex.constantin432@gmail.com"
] | alex.constantin432@gmail.com |
ac4def1bf86f27d9e8c5fe96696a99c2a864681d | cce0052a5fa943240ffb87aff5dfb83c448b42fa | /pythonBot/test-cli.py | 35cfb7e65398073e0e2835d1c0d6dedfd653c65c | [
"Apache-2.0"
] | permissive | tabacha/WoIstDerWagen | 58c8020bab85360e452b70ea272483b4e1be3120 | feddaedbde494e9e0983f6a2c34b6b5c65a6ed23 | refs/heads/master | 2021-01-17T11:40:56.516936 | 2016-11-08T13:10:13 | 2016-11-08T13:10:13 | 61,426,764 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import time, sys, pprint, config
from mysql.connector import (connection)
import msgParse
cnx = connection.MySQLConnection(user=config.MYSQL_USER, password=config.MYSQL_PASSWORD, host= config.MYSQL_HOST, database=config.MYSQL_DB)
inTxt=' '.join(sys.argv[1:])
outTxt= msgParse... | [
"sven@anders-hamburg.de"
] | sven@anders-hamburg.de |
22b9ed14d8089221fb1ab337022db9069915973c | 2aa5d879e68434bf6f421fe04509025dfa454ec0 | /03_tblog/app.py | 3c1a0d79bee8a76d5d354b18e757f0d52b4a8547 | [] | no_license | vl-flask/mongoflask | 0c78c2b79648ac6a5412f76cb77982870b5acff9 | 79f10b58c72d0d2090b02e91b455d132a899e6ef | refs/heads/master | 2020-03-19T05:07:58.855123 | 2018-06-08T05:53:55 | 2018-06-08T05:53:55 | 135,903,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import pymongo
uri = "mongodb://127.0.0.1:27017"
client = pymongo.MongoClient(uri)
database = client['fullstack']
collection = database['students']
students = [(student['name'], student['mark']) for student in collection.find({}) if student['mark']==99.0]
print(students)
| [
"valasema@yahoo.com"
] | valasema@yahoo.com |
1ed2df321002914cdd3a4ee1a29fc9e886584572 | 0c2dd621ce1bfd21b0dccb9e189c1fbce1ac2457 | /autoclick.py | 94ce27343b0cf1ee939bb0102a3d515eb7a14887 | [] | no_license | andy94077/autoclick_zuvio | d82f698e512f6b3fa5bad7da52373dfbc003ff9d | aac166493fbb1db40bfe89cc59c254f54339f319 | refs/heads/master | 2021-12-15T15:00:10.709944 | 2021-12-08T03:53:52 | 2021-12-08T03:53:52 | 174,682,505 | 0 | 1 | null | 2021-12-08T03:53:53 | 2019-03-09T10:56:24 | Python | UTF-8 | Python | false | false | 7,496 | py | #!/usr/bin/env python3
import argparse
import getpass
import os
import random
import re
import signal
import time
from dotenv import load_dotenv
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from modules.mail import Mail
load_dotenv()
def sig_int(sig... | [
"andy94077@gmail.com"
] | andy94077@gmail.com |
fc02d86f01110b65c7e2f2a1e7b809f2188ee4f3 | c603e00f13957e726f2e94a53a19b268ea0f60d7 | /dist/python2.7_plantool/plantool/Cont_FF.py | 8d9d3acbc839f739ebb094c8640abfb537961a2f | [] | no_license | xuanjianwu/plantool | 97015351670732297b5fbe742395c228b7e5ddba | 4fe56c6ff8897690cc2a3f185901dfe3faeb819a | refs/heads/master | 2021-01-21T20:39:03.688983 | 2017-05-30T00:57:44 | 2017-05-30T00:57:44 | 91,229,802 | 2 | 0 | null | 2017-05-14T08:24:03 | 2017-05-14T08:24:03 | null | UTF-8 | Python | false | false | 3,027 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swi... | [
"tianhan_4@aliyun.com"
] | tianhan_4@aliyun.com |
75aa6901d1a170000bddbec4f1128620ace9611a | 1e5026118b9777f2274dc4fe9e7ff459a61430c4 | /redit/wsgi.py | d77c2f2ca8fe7560f62bf5191d2f0e9c54e7d36f | [] | no_license | Rubyroy12/reddit | 70a50980d02f1b10e8bae3b034327f73ab38be94 | 4d0e29bfa813c5ee42cc8b38647b3c5538e3c376 | refs/heads/master | 2023-06-18T06:58:02.900692 | 2021-07-16T00:09:06 | 2021-07-16T00:09:06 | 386,455,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for redit project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"you@example.com"
] | you@example.com |
9928270eeb751942f12e0e14cd29f340028dcc49 | 60f4ec351660c484d5c729abeef1ab34c1d1272b | /Python scripts/K_CPM.py | 8ee4a8881e286e6537ae96fae801a5ac41c87c97 | [] | no_license | annatjohansson/complex_dynamics | b216edd01fbed9e24813543b265e156aabb27c33 | f6404fe155e8876379e639be15088e98e5fedab2 | refs/heads/main | 2023-03-29T02:44:48.287507 | 2021-04-05T21:31:01 | 2021-04-05T21:31:01 | 354,282,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | def K_Pot(x, y, cx, cy, max_it, R):
"""Computes the continuous potential of a point z = x + iy under p(z) = z^2 + c"""
"""Inputs:
z = x + iy: starting point
c = cx + cy: translation
max_it: maximum number of iterations
R: escape radius (squared)"""
x2 = 0.0
y2 = 0.0
it = 0
... | [
"anna.johansson1998@gmail.com"
] | anna.johansson1998@gmail.com |
47b43742000d26acea1f7d05b42308cf5ce9457c | 22a361040914fbff8403835fc979b5ecb450245e | /settings.py | 3213b8ae386090b9ad1e64df14f4a8570ce58ec5 | [] | no_license | osantana-archive/Startupedia | 0ba05a13bfcb858d37b7f560fc77954b13a4b894 | 1496ff2f3ee4426bd78ef911f470dc7f192ddd80 | refs/heads/master | 2021-05-27T04:33:07.124400 | 2010-08-09T03:35:02 | 2010-08-09T03:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | #!/usr/bin/env python
# -*- encoding: utf-8; tab-width: 4; indent-tabs-mode: nil; -*-
#
# Utility
# =======
import os
ROOTDIR = os.path.dirname(os.path.realpath(__file__))
# Administration
# ==============
ADMINS = (
('Osvaldo Santana Neto', 'osantana@triveos.com'),
)
MANAGERS = ADMINS
# Databases
# =========... | [
"osantana@triveos.com"
] | osantana@triveos.com |
83a6953918467e65e32947f0f87d8400c47f4c5f | 8ebdad54d78966e8dce53b0724589eb0a511064b | /articles_metadata/src/journals/journals/spiders/abort_mission_jahrbuch_spider.py | 0b6b73182a3652e5cdcde0b3ee5d36cff2790d41 | [] | no_license | mangiafrangette/MAthesis | 2b6bea77a442ebf486ea642da0fdf9c92f0485ce | b3c9a66435337bb0582dc9e1ebc81770d19dba4d | refs/heads/master | 2023-03-18T12:42:28.139989 | 2021-03-13T12:14:17 | 2021-03-13T12:14:17 | 300,236,934 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | import scrapy
import csv
import os
import json
# abort mission...........
class ArticlesSpider(scrapy.Spider):
name = "jahrbuch"
def start_requests(self):
filename = "../../../../data/json_files/full_list_of_ids.json"
with open(filename, "r", encoding="utf-8") as f:
journals ... | [
"mangiafrangette@gmail.com"
] | mangiafrangette@gmail.com |
f405a4a8a6d33020a95d9d66579464910c04057b | 5b385c1f8424fa1b6409aa9fdf38bf9de450b318 | /md5(v2).py | 1fd0d209e621aa0a94315a9184535fdc456e810d | [] | no_license | GuillermoBenitoBarrios/Comparar-archivos-con-python | 527d0240a642e77f5a776d95737eb432fed590fe | 9cd53cdb4a98c391c395ce770523d22d8ad7147f | refs/heads/master | 2020-08-29T12:02:35.359461 | 2019-10-28T10:59:34 | 2019-10-28T10:59:34 | 218,026,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Comparar si dos archivos son iguales mediante MD5 Checksum
# librerias
#import hashlib
import hashlib, sys
# paso de ficheros por argumento de shell
files = [sys.argv[1], sys.argv[2]]
def md5(fname):
md5hash = hashlib.md5()
# Abriremos el fichero linea a linea, por cuestiones de memoria.
... | [
"noreply@github.com"
] | GuillermoBenitoBarrios.noreply@github.com |
ddb0ea53d2047cc45e356825542dfdf1c327117c | 2161fca83f91721c897545e5e102b75a965d7795 | /Raspberry-Pi/Python/Adafruit/rgbColor.py | 990f1f15446d8ab887621532710c3ae71dfbfa83 | [] | no_license | hybotics/SingleBoardComputers | d6b2761da0855b81ff5bd87dc1ca71400dc9ffcc | 6cbef3e460e45a3b939d97499040fc00f4aef774 | refs/heads/master | 2020-03-10T16:15:14.805129 | 2014-07-05T15:52:33 | 2014-07-05T15:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin//env python
from time import sleep
from Adafruit_TCS34725 import TCS34725
# ===========================================================================
# Example Code
# ===========================================================================
# Initialize the TCS34725 and use default integration time and... | [
"hybotics.pdx@gmail.com"
] | hybotics.pdx@gmail.com |
c2b7c3e83aa1a84d81e0f8c306cf2cbb399b517e | ec276a5c01968932d83df0b01bd4c9e013fdebe5 | /ass_week_2-3/assignment-week-02 day-3.py | 74d06b14135d7573d4fd22f8699952924a711cfb | [] | no_license | raj-sekhar-au9/assignments | 9751965551947ec4aea0ea293e41e5819a89fa00 | 3fa6544e8951f13aa030bb1b58a98aa8fe5dd292 | refs/heads/master | 2022-11-26T18:10:45.661209 | 2020-07-24T16:35:59 | 2020-07-24T16:35:59 | 278,550,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | number = int(input("Enter any number: "))
if number > 1:
for i in range(2, number):
if (number % i) == 0:
print(number, "is not a prime number")
break
else:
print(number, "is a prime number")
else:
print(number, "is not a prime number") | [
"noreply@github.com"
] | raj-sekhar-au9.noreply@github.com |
448d240cac3a1caba7534ece90ad949bfc2df05b | 2342b8737b9ffeb9715158b8ec74a33c7a4947f6 | /koku/providers/test/azure/test_client.py | c77e19be39011df1ea5a3260c8323920ed3ce2e7 | [
"Apache-2.0"
] | permissive | project-koku/koku | 444d8df05da5416c9cee606c42481c99be45f13d | 0416e5216eb1ec4b41c8dd4999adde218b1ab2e1 | refs/heads/main | 2023-08-20T11:30:17.510182 | 2023-08-17T18:27:30 | 2023-08-17T18:27:30 | 126,496,611 | 225 | 94 | Apache-2.0 | 2023-09-14T17:38:08 | 2018-03-23T14:29:23 | Python | UTF-8 | Python | false | false | 5,298 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Test Azure Client Class."""
import random
from unittest.mock import patch
from azure.identity import ClientSecretCredential
from azure.mgmt.costmanagement import CostManagementClient
from azure.mgmt.resource import ResourceManagementClient
from... | [
"noreply@github.com"
] | project-koku.noreply@github.com |
847e7826459e7dffae6d5bcde0376c4b7086d6d5 | 186f694b65b43cd56e746ce8538e4f1edad6129e | /1on1/BFS/547-friendcircle.py | 373d30f3c54ec2cd1aa12674be315d70fc5f22f8 | [] | no_license | zionhjs/algorithm_repo | 287486e0173e68cfa9e535490004c952192a54db | 26b4a770d5335abd738ae26c68d91f6af7b13749 | refs/heads/master | 2022-12-17T15:59:17.932490 | 2020-09-23T04:12:38 | 2020-09-23T04:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution:
def findCircleNum(self, M: List[List[int]]) -> int:
if not M:
return 0
for i in range(len(M)):
for j in range(len(M):
if j > i:
| [
"hjszion@gmail.com"
] | hjszion@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.