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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
865969b8d3d2edcbf84ae4aacf778ed65aedfbbe | 54495b3d41ff1a08ce6d786c8c0304b9850dffeb | /Iterator.py | bfde76530fc5a732c3a03668c1ed9326f76e3f3f | [] | no_license | Sakshi1504/Python-OOPS | d2324b923adcfed1179a709b9f9c21695e82753e | 9c8ffe900131319737f5f5ee3c4e74adeb3f351e | refs/heads/main | 2023-03-11T19:53:05.142711 | 2021-02-28T03:35:00 | 2021-02-28T03:35:00 | 343,012,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | '''
num=[5,1,2,3]
print(num[2])
it = iter(num)
print(it.__next__())
print(it.__next__())
#iterator takes forward further values, and don't repeat the same value again
for i in it:
print(i)
'''
class TopTen:
def __init__(self):
self.num=1
def __iter__(self):
return... | [
"noreply@github.com"
] | Sakshi1504.noreply@github.com |
774d7f3f9294171b6783ee1dfd78785c51cde38f | e531605ed73a42af958143e2f80f4f721d2ac810 | /tf2cv.py | 332a9a325e5a55bd736ac0e36f6f290439889616 | [
"MIT"
] | permissive | markgordon/keras-yolo3 | 2fadf44c872cc911afeea710d89830f7b05b39fc | 53fb083523d1c728b3a5bbf4b5801fb2bfe842fa | refs/heads/master | 2020-12-15T02:46:53.808418 | 2020-02-13T22:44:59 | 2020-02-13T22:44:59 | 234,970,107 | 0 | 0 | MIT | 2020-01-19T21:23:09 | 2020-01-19T21:23:08 | null | UTF-8 | Python | false | false | 947 | py | #! /usr/bin/env python
import tensorflow as tf
from numpy import loadtxt
from tensorflow.keras.models import load_model
import argparse
import configparser
import io
import os
from collections import defaultdict
import tensorflow_model_optimization as tmot
parser = argparse.ArgumentParser(description='Darknet To Keras... | [
"x@y.z"
] | x@y.z |
99f94f0fc3ee9a38ec3c34db968e6e99a9ea7e86 | f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2 | /2016/AST2/Bili/letnji/ponovo/konacno1.py | 7482940ccb3f15b8866efb9be0b7760bf88d483d | [] | no_license | ispastlibrary/Titan | a4a7e4bb56544d28b884a336db488488e81402e0 | f60e5c6dc43876415b36ad76ab0322a1f709b14d | refs/heads/master | 2021-01-17T19:23:32.839966 | 2016-06-03T13:47:44 | 2016-06-03T13:47:44 | 60,350,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | from scipy.special import wofz
import numpy as np
import matplotlib.pyplot as plt
import math
from scipy import interpolate
e=1.60217657e-19 #elementarno naelektrisanje [C]
eV=1.60217657e-19 #eV u J
AU=149597871000 #Astronomska jedinica [m]
Na=6.02*1e+23 #Avogadrov broj
M=23*1e-3 #molarna masa Na [kg/mol]
m... | [
"ispast.library@gmail.com"
] | ispast.library@gmail.com |
a8a8399bfa809d696c5a030a9946a0d1162f8291 | ee05d8196d40e2e59885f639150cc318be189986 | /website.py | 1de4d31c0e24aed095685cd85fbbfc2aa86fe08b | [] | no_license | isakson/Endangered-Species-API | d83dd5b74cf5d76c65d0750f6e844861f6ed13ee | 68ae3f97a4b82d9a56cf0cdfe7eda23c847d8a9c | refs/heads/master | 2020-03-24T22:24:17.246659 | 2018-08-01T00:24:39 | 2018-08-01T00:24:39 | 143,083,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | #!/usr/bin/env python3
'''
website.py
'''
import sys
import flask
app = flask.Flask(__name__, static_folder='static', template_folder='templates')
@app.route('/')
def get_main_page():
''' This is the only route intended for human users '''
global api_port
return flask.render_template('index.html', ap... | [
"saksoni@carleton.edu"
] | saksoni@carleton.edu |
6991166ac2811bf5b5871d798c5766c22ed204be | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/HotelRoomImgUploadRequest.py | ff545c17c529a9cad6b04e9031dcf6168e228996 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class HotelRoomImgUploadRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.gid = None
self.pic = None
self.position = None
def getapiname(self):
ret... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
55092738abbf74b5764225191343917f20bb273f | b9c2d9bc099ebae0b9e7b1e9c538701ba41a235e | /experiments/tiered-ImageNet_DeepEMD/FRN/ResNet-12_pretrain/train.py | e4dbf15991344986fd6192a0f8d8ae0c08891c2b | [
"MIT"
] | permissive | Jf-Chen/FRN-main | 9e3eeba4ec23e450f05f37e69db766ec5ce7f805 | 5b57b9e0d7368058a8e3ba41a53c460b54ab9b91 | refs/heads/main | 2023-08-30T12:29:03.178309 | 2021-10-26T08:25:38 | 2021-10-26T08:25:38 | 419,918,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import os
import sys
import torch
import yaml
from functools import partial
sys.path.append('../../../../')
from trainers import trainer, frn_train
from datasets import dataloaders
from models.FRN import FRN
args = trainer.train_parser()
with open('../../../../config.yml', 'r') as f:
temp = yaml.safe_load(f)
data... | [
"485133380@qq.com"
] | 485133380@qq.com |
47794b95a5259461f6546bb731ff6ad706f6ddc8 | 1ee4b9f9cbe6c55e88b055e0200d4c9704b125cf | /server.py | 282782f87eadfc5a8cf25ef0d7f1ff93f8c67655 | [] | no_license | VagishM6/web_server_system | 2d339dc937166903a736fef202fdf97dac347f4b | f6be5146576082d7c1146b9a80ecdea0534d414b | refs/heads/main | 2023-08-01T20:13:29.453543 | 2021-09-10T16:32:24 | 2021-09-10T16:32:24 | 402,270,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from flask import Flask, render_template, url_for, request, redirect
import csv
app = Flask(__name__)
@app.route('/')
def my_home():
return render_template('index.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_template(page_name)
# write the data to csv file
def write_to_c... | [
"iamvagish6@gmail.com"
] | iamvagish6@gmail.com |
51fa600b4dc27c99a0e12ee0492e363f5ac329ce | e3f427476df64d80e284ba234788fda12abc7876 | /Remove Duplicates from Sorted Array [ 96.27 %].py | f7d669679625e3d08a19fb28c8765d4c58e80ccf | [] | no_license | ankitrana1256/LeetcodeSolutions | 217c525894974caa1794aba64bd322374a2b1943 | 3c7256a6bead3fb345ca8ab45bf0603e36ee523d | refs/heads/master | 2023-08-27T05:10:28.433072 | 2021-11-04T06:56:09 | 2021-11-04T06:56:09 | 397,987,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def removeDuplicates(nums) -> int:
new_list = list(set(nums))
nums.clear()
nums.extend(new_list)
nums.sort()
return len(nums)
nums = [1,1,2]
k = Solution.removeDuplicates(nums)
print(k, nums) | [
"76605774+ankitrana1256@users.noreply.github.com"
] | 76605774+ankitrana1256@users.noreply.github.com |
ae6057dbb0fae441881aef45ecbbe8e1312170af | 9673686edc2ffefdb076fa2b688fdf3364a342dc | /BOJ_4673.py | 91cbf1013a075e210ae201718daac3dc43a4c3c9 | [] | no_license | D7DonKIM7E/Python | f23ded6b3353bb5f675c1dfbaee554a58894fa53 | b40d14f342f40819a4fbabb336248bfa26ad527f | refs/heads/main | 2023-04-22T20:29:36.208879 | 2021-05-09T09:49:56 | 2021-05-09T09:49:56 | 349,476,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | originalNumber = set(range(1,10001))
generatorEx = set()
for n in range(1,10001) :
for i in str(n):
n += int(i)
generatorEx.add(n)
selfNumber = sorted(originalNumber - generatorEx)
for n in selfNumber:
print(n)
| [
"puppy031894@gmail.com"
] | puppy031894@gmail.com |
728b4497309cb53507d8324b36ea8bd2d0693130 | aaa07613c41fed96fb6d7fe5dc292975e17fb107 | /isovar/genetic_code.py | c703b7f00116baad44d36508c1c4167141a87eb6 | [
"Apache-2.0"
] | permissive | openvax/isovar | 2fa89f88525e72d94b974d5a20f038e3bdc15bf4 | e43e2574dc783a5dfc65b055f977bd0f11df015b | refs/heads/master | 2023-08-18T20:14:39.338144 | 2023-08-01T17:56:23 | 2023-08-01T17:56:23 | 51,102,454 | 17 | 10 | Apache-2.0 | 2020-08-19T18:48:54 | 2016-02-04T20:14:48 | Python | UTF-8 | Python | false | false | 8,454 | py | # 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, software
# distributed under th... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
3f7e20835a7fd86fe8ba02db4fc07183a8847b8a | ac1a67e95027d0ac4642cb809a9cf73782b12341 | /preprocessing.py | e8463280b190d0f394b86562256180f5fa34304e | [] | no_license | cpgaffney1/cs231n | 79cbc5a6c030f1e3428aac1d972b318b80ed1cf7 | e230753dcdf266f4c06b1d63e665ca36dea3add5 | refs/heads/master | 2021-06-04T02:27:02.069525 | 2019-11-27T19:43:11 | 2019-11-27T19:43:11 | 130,610,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,582 | py | import os
from PIL import Image
import numpy as np
import util
import sys
def process_data_batch_and_write(batchnum, filenames, text_data, numeric_data):
i = 0
img_arrays = []
x_shapes = []
y_shapes = []
zpid_list = {}
for file in filenames:
if i % 100 == 0:
sys.stdout.write... | [
"cgaffney@stanford.edu"
] | cgaffney@stanford.edu |
43d061b4c4472d4324336ec30c70f872f8e872b6 | ce4d8e005d68a48d091f28351729d8f5e902de2e | /lib/PageNotFoundException.py | ed919f82b36320ab17ecee78dfaddc24f617ee6e | [] | no_license | alexgf/document-similarity | cc1c0e80a1383dda897b5e1b75e9e366754dd8c7 | c4674d6af792e9b2e4efcad500dcacebbbad47de | refs/heads/main | 2023-08-25T02:31:37.260524 | 2021-09-16T15:55:21 | 2021-09-16T15:55:21 | 406,755,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | class PageNotFoundException(Exception):
""" Exception raised when URL is not found
Attributes:
url - url not possible to be loaded
"""
def __init__(self, url):
self.url = url
self.message = f'Enable to load {self.url}' | [
"agferreira.rj@gmail.com"
] | agferreira.rj@gmail.com |
803c19c6fe0f39db11b5ed2b0443c09df5ef0e85 | 48ca34f5666e8ce7e7777acf599a302317ad907d | /2-vervolg datatypes/taak02 -dicts/antwoorden.py | 2411aa77fbe56f3c915c39f641b704cd5688004a | [] | no_license | DaantjeDaantje/Python-Basic | 8645121327d1ae8e891ec193add4642d5f86b813 | f09c12fac98767e927607b4a0bfbef08ef2a14b3 | refs/heads/master | 2023-02-25T11:04:46.228327 | 2021-02-02T12:40:04 | 2021-02-02T12:40:04 | 293,811,687 | 0 | 0 | null | 2020-09-08T13:01:04 | 2020-09-08T13:01:04 | null | UTF-8 | Python | false | false | 538 | py | #%%
Provinciehoofdsteden = dict([
('Noord_Holland' , 'Amsterdam'),
('Zuid_Holland', 'Den_Haag'),
('Utrecht', 'Utrecht'),
])
type(Provinciehoofdsteden)
print(Provinciehoofdsteden)
Provinciehoofdsteden['Zeeland'] = 'Middelburg'
Provinciehoofdsteden['Limburg'] = 'Maastricht'
Provinciehoofdsteden['Gelderland'] = 'ert'
pri... | [
"danielleroelofsma@gmail.com"
] | danielleroelofsma@gmail.com |
4a08d92165fcd2b39439dfe0582d81ab8427ed10 | 9464f910f81cc5363c76f1b9e4a9290e89115812 | /Problems/Lucky ticket/task.py | 4e6912390a2dc3e0225543c6f2687614a0d94972 | [] | no_license | sanqit/simply_chatty_bot | 8bfb4052e2a4dbcac6cd782f0b2fedaea69ca52f | 3ed5de7503fe8994d9e99313cb627fb0d4bf8621 | refs/heads/master | 2022-11-11T06:19:50.713198 | 2020-07-04T20:56:40 | 2020-07-04T20:56:40 | 277,183,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Save the input in this variable
ticket = int(input())
# Add up the digits for each half
first = ticket % 10
ticket //= 10
second = ticket % 10
ticket //= 10
third = ticket % 10
ticket //= 10
half1 = first + second + third
first = ticket % 10
ticket //= 10
second = ticket % 10
ticket //= 10
third = ticket % 10
hal... | [
"admin@sanqit.ru"
] | admin@sanqit.ru |
780002a82af4cd9867b9c666fdee43af9b33a52a | 2a12bedd69dbc4632b321dd40037df36b5e7bc76 | /hospital/migrations/0009_auto_20201122_0139.py | 7751eb005dc78242e9d1db918efeddc5efc96363 | [] | no_license | mbharti321/covidms | 1a70392a2ad02b5cd08592566b082ca76efdabda | 3e1e2ec4fc997b88bcea184ffde69a74e1f32692 | refs/heads/main | 2023-01-21T01:04:42.181821 | 2020-11-22T01:45:16 | 2020-11-22T01:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 3.1.3 on 2020-11-21 20:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hospital', '0008_patient_severity'),
]
operations = [
migrations.AddField(
model_name='patient',
name='recovery_date... | [
"ericmiranda7@gmail.com"
] | ericmiranda7@gmail.com |
09e4f93dfe0a7dbf721add15e86b819a1a93c6b9 | d475a6cf49c0b2d40895ff6d48ca9b0298643a87 | /pyleecan/Classes/SlotW24.py | 984f0065ae9048217d93f3adee011ed7f89dd645 | [
"Apache-2.0"
] | permissive | lyhehehe/pyleecan | 6c4a52b17a083fe29fdc8dcd989a3d20feb844d9 | 421e9a843bf30d796415c77dc934546adffd1cd7 | refs/heads/master | 2021-07-05T17:42:02.813128 | 2020-09-03T14:27:03 | 2020-09-03T14:27:03 | 176,678,325 | 2 | 0 | null | 2019-03-20T07:28:06 | 2019-03-20T07:28:06 | null | UTF-8 | Python | false | false | 9,973 | py | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Slot/SlotW24.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Slot/SlotW24
"""
from os import linesep
from logging import getLogger
from ._chec... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
bcb8bf4c3d80cd5e54a047f3b9db444bb171f47e | 753532ab35fc3d83b750b1b79603cc1613408523 | /liqian/UCSD/research/research/spiders/UCSDSpider.py | da674e1f7a544f8d15dfbacd832fc5443d9d41d1 | [
"Unlicense"
] | permissive | doge-search/webdoge | 4e9435f2ba744201adca1bfe2288994e1f284f00 | 443e758b5c1f962d5c2fe792cdbed01e1208b1cb | refs/heads/master | 2021-01-15T08:16:34.357284 | 2016-06-15T17:22:43 | 2016-06-15T17:22:43 | 54,782,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import scrapy
from scrapy.http import FormRequest
import re
from research.items import ResearchItem
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
postname = "abc"
class CaltechSpider(scrapy.Spider):
name = "ucsd"
allowed_domains = ["jacobsschool.ucsd.edu"]
start_urls = ["http://jacobsschool.ucsd.edu/faculty... | [
"liqian.cs@gmail.com"
] | liqian.cs@gmail.com |
6680de51002ea138c0edcb346732ab17cab16b1a | efc7433020b404f19bd46372000032797d361a0c | /apps/account/enums.py | 9164b76980a275512b305acbeea9dbd65b5ada36 | [] | no_license | dimitrisamp/joinflyline | 2819571c867434ec7b7e859a21cd278bb2bde501 | dff0ab38244e6e2876443995fe99ad9959fc3db4 | refs/heads/develop | 2022-12-21T13:11:19.364128 | 2020-02-14T13:37:30 | 2020-02-14T13:37:30 | 242,969,405 | 0 | 0 | null | 2022-12-12T03:15:37 | 2020-02-25T10:12:46 | Vue | UTF-8 | Python | false | false | 226 | py | from django_enumfield import enum
class CompanionInviteStatus(enum.Enum):
created = 0
email_sent = 1
active = 2
class DWGKind(enum.Enum):
unknown = -1
domestic = 0
international = 1
private = 2
| [
"bladeofdima@gmail.com"
] | bladeofdima@gmail.com |
3af61ccc05ac107e2d8dc13ce31678bf1379ca5c | 894f35e683119469b85768bcd7fe95658fd3d900 | /1-Python101/variables/mutable_and_unmmutable.py | cc87976987ce4a5cc199c7605bc90c3556831af9 | [] | no_license | sltm-14/Python_Course | 8af91b75563e3b0129d225e51b18f39567547491 | 58f8e78902e78abc13367274bb224de56fb5cb0c | refs/heads/master | 2020-12-21T21:23:58.254837 | 2020-11-19T18:03:09 | 2020-11-19T18:03:09 | 236,566,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | """ -------------------------------------------------------------------------------------------------------------------------------------
UNMMUTABLE
In python integers are unmmutable, that means that the value will be allocated in a different space of memory everythime it changes,
and X will reference this new memory ... | [
"ie693242@iteso.mx"
] | ie693242@iteso.mx |
f3bf4efd08ac73f061fd67e8806df8cc2163f5d6 | 0c9bc1db20e8f88a366839c32c0662a681d80379 | /src/skymusic/renderers/instrument_renderers/instrument_renderer.py | 98edca3561c549dbe0cd793bd09e395b9ae3094d | [
"MIT"
] | permissive | TrendingTechnology/sky-python-music-sheet-maker | d1074399b2d92059ea64c6c84871655cfc9cc270 | d749c7163c01686350cf77a9740c814f763140cb | refs/heads/master | 2023-05-19T17:40:39.751401 | 2021-06-13T01:25:30 | 2021-06-13T01:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from skymusic import Lang
from skymusic.instruments import Voice
class InstrumentRenderer():
def __init__(self, locale=None):
if locale is None:
self.locale = Lang.guess_locale()
print(f"**ERROR: Song self.maker has no locale. Reverting to: {self.locale}")
else:
... | [
"jmmelko@gmail.com"
] | jmmelko@gmail.com |
1693ec93727b0777d4566244afdac149272f172e | 471c56fc617994cb22dd1463d8ff413fdcf5aaa9 | /24.py | d2ea7e2d356ecb0e57ef91624dfbdc000305db3f | [] | no_license | blanchg/aoc202 | e112597a1b4538096fa84c24293641465aa4115d | e14c6d16879b83178a585df0babd9be172cf2556 | refs/heads/main | 2023-02-05T11:57:56.953209 | 2020-12-27T13:09:39 | 2020-12-27T13:09:39 | 319,165,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,096 | py | from hex import Hex, Layout, Point, hex_add, hex_direction, hex_distance, hex_neighbor, hex_scale, layout_pointy, polygon_corners
import time
from collections import deque, defaultdict
ms = time.time() * 1000
class HexValue:
def __init__(self, q, r=None, s=None) -> None:
if isinstance(q, str):
... | [
"glen.blanchard@adgile.media"
] | glen.blanchard@adgile.media |
ace782b57ad01f2d7acf5a6f3a1fa578a001f116 | 801f4a6a58515c0d658dc3a5ebff50fa048819f4 | /service-flask/manage.py | a0b0ef7af6327197089d8a7139d9db4e53c1148b | [] | no_license | omdv/crypto-git-tracker | 5456eb627d671087fa874faa10782d14a1a678b8 | ee7a7109e3a598de26cc192a3bcfaadc55701dbe | refs/heads/master | 2021-04-06T07:33:21.466435 | 2018-04-12T01:01:57 | 2018-04-12T01:01:57 | 124,619,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | import unittest
import coverage
from flask_script import Manager
from project import create_app, db
from project.api.models import RepoControlRecord
from project.tests.custom_test_runner import TimeLoggingTest
COV = coverage.coverage(
branch=True,
include='project/*',
omit=[
'project/tests/*'
]... | [
"omdv@fastmail.com"
] | omdv@fastmail.com |
3058f9b477b8a173f082bf87d9701e0d5998c875 | ce0ed63440993396190ddd6878880ab3652bc657 | /comments/urls.py | c50b75c7a0d73d6f2e736b0e9fc39490142a7024 | [] | no_license | daduoduo123/project1 | 762b208c27cde71c44c8c95a0422c9de08f4f794 | b6d25183b7d703d9bd4cc6a051b22ed6e1f48411 | refs/heads/master | 2021-06-20T21:21:24.063288 | 2019-06-30T03:48:06 | 2019-06-30T03:48:06 | 194,406,916 | 0 | 0 | null | 2021-06-10T21:39:30 | 2019-06-29T13:08:32 | CSS | UTF-8 | Python | false | false | 195 | py | from django.conf.urls import url
from .import views
app_name='comments'
urlpatterns=[
url(r'^comments/post/(?P<post_pk>[0-9]+)/$', views.post_comment, name='post_comment'), # 文章评论
] | [
"785216423@qq.com"
] | 785216423@qq.com |
2245cd251ad202e770f21c9460b99be910f1aa89 | ba34c60da52d847a7a6b6030db5afe1fb3e4c432 | /python/tornado/com.py | d43302ac834c933b301f4e8ad9ecb705172bb17a | [] | no_license | yurnerola/Script | 533eb3bca45b69498e6e6a5e5c07ea37fcef5df9 | 6d887fddf44098df72f7d581d82f13375d2720b9 | refs/heads/master | 2016-09-05T17:08:35.239295 | 2014-05-27T02:46:43 | 2014-05-27T02:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import re;
def usage():
return '''
Usage:<br/>
logger [options]<br/>
Options:<br/>
-h Print this usage.<br/>
-i <hallid><br/>
Example:<br/>
logger -i 447283
'''
if __name__=="__main__":
m=re.match(r'(\w+) (\w+)(?P<sign>.*)','hello world!')
print "m.string:",m.string
p... | [
"yurnerola@gmail.com"
] | yurnerola@gmail.com |
217b18fed616cde55be1ebb5f4f04e0e3fd399a9 | 3f171049906579115ae02e046374a62805893935 | /mesh/geometry.py | a123f5846b9da7bf5fa6cf9e506e21b3440c0c61 | [] | no_license | piyushagru/smart-match | 9fac3e170988d2c36209bdcf361756d02640d1ea | 96e2c6f4ad4b0c124bc375b411ac4326c401d66d | refs/heads/main | 2023-04-16T05:24:54.789025 | 2023-04-01T11:52:42 | 2023-04-01T11:52:42 | 309,167,267 | 1 | 0 | null | 2023-04-01T08:43:09 | 2020-11-01T19:03:07 | Jupyter Notebook | UTF-8 | Python | false | false | 7,452 | py | import numpy as np
import tensorflow as tf
import scipy.sparse as sp
def sparse_to_tensor(x):
coo = x.tocoo()
indices = np.mat([coo.row, coo.col]).transpose()
return tf.sparse.reorder(tf.SparseTensor(indices, coo.data, coo.shape))
def sparse_dense_matmul_batch(a, b):
num_b = tf.shape(b)[0]
shape... | [
"khushgrover16@gmail.com"
] | khushgrover16@gmail.com |
647d7e5364848034896ddc8bb3b7b7f3c0eb4671 | eb73d4fa1a6f62f6406ca230699397925856b013 | /src/transformers/models/poolformer/image_processing_poolformer.py | 99ac07c510a516b45a0a7f0ad67fdda67ce89499 | [
"Apache-2.0"
] | permissive | MerHS/transformers | f3ece97926e8883fb43f321937c5b5af7731fe70 | d447c460b16626c656e4d7a9425f648fe69517b3 | refs/heads/main | 2023-02-20T13:38:31.756752 | 2022-11-03T16:56:22 | 2022-11-03T16:56:22 | 561,655,525 | 0 | 0 | Apache-2.0 | 2022-11-04T07:21:06 | 2022-11-04T07:21:04 | null | UTF-8 | Python | false | false | 18,311 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | MerHS.noreply@github.com |
3a74b3ab2a1cc28993c4ea0595eb0e7747c7cdf1 | fede8e979d4297a8bfca8ef2f7ed84de68dfb373 | /14_exceptions.py | b7da4d089a471723ba4db92e1b8750144f0dc571 | [] | no_license | atrukhanov/routine_python | 8d17d5998d270348fecd766b77e7cd21cc6d0f76 | da1eec5d9e7344449c8eb26b3a2c445834f9513e | refs/heads/master | 2022-12-17T09:44:38.642554 | 2020-09-18T09:54:39 | 2020-09-18T09:54:39 | 294,264,454 | 0 | 0 | null | 2020-09-10T00:51:19 | 2020-09-10T00:51:18 | null | UTF-8 | Python | false | false | 39 | py | import xml
import lxml
import requests
| [
"iampopovich@gmail.com"
] | iampopovich@gmail.com |
553c7caf000c233ba51244d4df4ff97ba86e93c4 | 5201bb9ea835f8cce502690d25b67868000140ff | /Desafios/Aula 020/ex098.py | f4765fdfddd25bde19cddc292869ee4887217eb6 | [] | no_license | vitorsemidio-dev/curso-python-guanabara | 4eccb05f17fc4cf84361eb499ab0113bf25901f7 | fcd656abb0faf7a36ff70e2544c4cbbd12db3a8a | refs/heads/master | 2021-01-05T12:32:02.619140 | 2020-02-17T05:10:58 | 2020-02-17T05:10:58 | 241,024,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from time import sleep
from random import randint
pausa = 0.5
def imprime(inicio, fim, passo):
ultimo = 1
if not passo:
passo = 1
if inicio > fim:
passo = -abs(passo)
ultimo = -1
for i in range(inicio, fim+ultimo, passo):
print(f"{i}", end=" ")
s... | [
"vitorsemidio.96@gmail.com"
] | vitorsemidio.96@gmail.com |
7b73c090cdc64e94afc687def5a36b63a87a369b | 03f36f36f2ae165d08d3c75a9873ef1d13f6ffa6 | /Ćwiczenia_5/Zadanie_4.py | c41227848273ef3e62fdde02a2dce4297ba58dd4 | [] | no_license | KrzysiekMiskowicz/WDI | c1e7bb9ff8991afbdad6da779c32f48b0519c6be | 33a791ede8b30f3be5ea40bddd6aa17c618dc257 | refs/heads/master | 2023-04-05T15:23:39.445843 | 2021-04-10T14:20:43 | 2021-04-10T14:20:43 | 304,461,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import random
class ulamek:
def __init__(self, l = 1, m = 1):
self.l = l
self.m = m
def wczytanie(self):
l = int(input("Podaj licznik -> "))
m = int(input("Podaj mianownik -> "))
self. l = l
self.m = m
def wypisywanie(self):
print("(", self.l, "/", ... | [
"miskowicz@student.agh.edu.pl"
] | miskowicz@student.agh.edu.pl |
28f27209663b924166d6625334c52add25361c31 | a6509a854dfb0d7ce32a61edd4c380c7f066947e | /ui/appPopUpSecurity.py | 27174f20727fe2ab7f610df84540ba6be9cec3f6 | [
"MIT"
] | permissive | Penmast/Chameleon | 70d81bd4dd1e4fa3c77fbdc4edf7f0c5493e5ba8 | 91f79a4640dede099f6e2a4757053f04cdc186f0 | refs/heads/master | 2021-05-03T04:58:44.931277 | 2018-02-08T21:21:55 | 2018-02-08T21:21:55 | 120,628,478 | 21 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | # -*- coding: utf-8 -*-
# self implementation generated from reading ui file 'appPopUpSecurity.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
### The form for the duration of a... | [
"deray@edu.ece.fr"
] | deray@edu.ece.fr |
79721e05ee944e87e9420fe7e05baa78184b0db0 | 16b03199949be9d18e4487419667180cb2c232ca | /testLocation.py | 9d751858a43bbc599bba07dfdfb30837961b0162 | [] | no_license | hellokathy/MarketSim | 30b115967b66cf43fb57fc52b28235abd04d7d42 | e2dfbc3f8912badc7987e806887eb9f3c338d28a | refs/heads/master | 2021-01-23T02:59:36.273443 | 2014-09-05T19:13:03 | 2014-09-05T19:13:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from location import *
from exchange import Exchange
from agent import Agent
import unittest
class TestLocation(unittest.TestCase):
def setUp(self):
exchange1 = Exchange()
exchange2 = Exchange()
self.location1 = Location(exchange1)
self.location2 = Location(exchange2)
self... | [
"delbalso@gmail.com"
] | delbalso@gmail.com |
90e8d38ca104a9333d1b862e16bbc7ebd1820480 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02747/s534963942.py | e59afea127c18cba4bb7f22ef8a7070d00c3b7dd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | S = str(input())
S_size = len(S)
hi_size = S.count('hi')
if S_size == hi_size * 2:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b091982c00c4c87893ece4161b1b801fddc4ed4 | d5acc40e766857c2399013c5228fc4f02b2f5210 | /python/41 - pandigital prime.py | b012c97c2db6ce1baba569f8be217f62d4f573a7 | [] | no_license | celvro/euler | a79dec92620fedfaaa5789a29d964395488fc1d8 | f76d6f00efd9db26b9caad72e94110d5ef972b37 | refs/heads/master | 2016-09-10T03:21:41.417156 | 2015-04-30T21:27:38 | 2015-04-30T21:27:38 | 20,080,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from util import prime
import itertools
x = []
for i in itertools.permutations('1234567'):
num = (''.join(i))[::-1]
if prime(int(num)):
x.append(num)
print max(x)
| [
"dwlfk2@mst.edu"
] | dwlfk2@mst.edu |
3ddb4e47db5a0d30bc1e38c5d8c3e051f3906458 | 9543bcb3abe1adab6b2e9bfedcd3651e36173fa5 | /jobs/models.py | b90048df0fe010220c6554b239981f4294167bae | [] | no_license | nothing2aKING/my_portfolio | b5394b15f196276373fa469066d0514e7cde5dab | 51c23bb1d146a47464923397489bb47541f07226 | refs/heads/master | 2020-09-17T07:12:41.107023 | 2019-11-25T20:14:13 | 2019-11-25T20:14:13 | 223,784,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | from django.db import models
# Create your models here.
#DB table
class Job(models.Model):
#upload a image
image = models.ImageField(upload_to='images/')
#input summary of job
summary = models.CharField(max_length=200)
#input github link
github = models.URLField(max_length=100, def... | [
"amking15@gmail.com"
] | amking15@gmail.com |
b7524f91f759d248026093ecf9ca391fb5b8aa99 | d0fbfd9448033e76239141e6ce05b6a92d662f42 | /others/cannibals.py | 70c0a75d1585f0ddf60340ead0d72420e7b84b8b | [
"MIT"
] | permissive | Mifour/Algorithms | 7d01d8a83de927ba41d7a7c03f3ad71616da282a | 77cfafc49bc0130da0f6041b169a15053f81af87 | refs/heads/master | 2020-09-29T21:33:40.235011 | 2020-02-25T14:34:22 | 2020-02-25T14:34:22 | 227,127,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """
This is just a fun play with classes and recursion
'We are what we eat'
Then only cannibals that eat humans are human?
Only if the human himself ate another cannibal
that ate another cannibal that ate another...
This create such class and try to get a Human object
that is human according to this criteria... | [
"dufour.thomas@hotmail.fr"
] | dufour.thomas@hotmail.fr |
8064b003bf8f32b09274eb5f0e59a4fb83ace17d | eeddca8c1041c3abbf39698d0da79cf63a210fff | /hello.py | f258045f4f064636cb0f4193dd5b0401f8162b49 | [] | no_license | aftana/st-web51 | f4917eaa72720ad79e901bab0be0e30ebc9df549 | 270b34d71e7995ce3d611012f12f60e98f2d54c8 | refs/heads/master | 2020-12-02T21:00:25.734887 | 2017-07-04T18:53:56 | 2017-07-04T18:53:56 | 96,243,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | def app(environ, start_response):
raw_uri = str(environ.get('RAW_URI'))
raw_uri = raw_uri[2:]
params = raw_uri.split('&')
data = ''
for param in params:
data += param + '\r\n'
start_response("200 OK", [
("Content-Type", "text/plain"),
("Content-Length", str(len(data)))
])
ret... | [
"art-mint@mint.com"
] | art-mint@mint.com |
d65dd43c9764aa5c4b8e093dd79520e1a748eb71 | 7b0f9a984dca4ad3fa536cf6ecd8f6654db02420 | /tencentcloud/live/v20180801/models.py | 15eaac07bf2987d54808c969fbf9decd6cab2b38 | [
"Apache-2.0"
] | permissive | SpencerHoGD/tencentcloud-sdk-python | 8cb6756722ec571f140a2dd8d2ade897f8bbd0c5 | c90e7719a253ea7928d4a510987df3ea6f3c23ac | refs/heads/master | 2020-06-27T13:24:31.736521 | 2019-07-26T10:31:52 | 2019-07-26T10:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212,493 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
0ec055a25cc8a0344ce78bd9d4773178113d80f6 | 77ec9edf40b34b48477a627d149b6c2054b98a93 | /abc_179_d.py | 7b6ac7b449986dfe9275cb4f4fd8e0cb8b57219c | [] | no_license | junkhp/atcorder | fa4eeb204e3a4ac713001ab89c205039703abc88 | 028ddf7a39534d5907232c4576a03af79feb6073 | refs/heads/main | 2023-04-11T02:15:10.088883 | 2021-04-22T07:06:06 | 2021-04-22T07:06:06 | 313,284,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | def main():
n, k = map(int, input().split())
move_set = set([])
for i in range(k):
a, b = map(int, input().split())
for j in range(a, b + 1):
move_set.add(j)
sorted_set = sorted(move_set)
# print(sorted_set)
dp = [0] * (n + 1)
dp[1] = 1
for i in range(2, n+1)... | [
"oshiba@m.cs.osakafu-u.ac.jp"
] | oshiba@m.cs.osakafu-u.ac.jp |
22985f2d819e9b6edb91e3975998fac5bee4bad6 | fad526f1c2ecda4d57343f597cef327f26f6ab35 | /setup.py | 1e5f442e70eb4c64c157e274919fad05f0475483 | [
"Apache-2.0"
] | permissive | lofoyet/SchoolDigger-Scraper | 53651aad7a11d531dfc06c9a2b08fe0222a170a2 | 98b329bad99534ef0f234ffb11ec1e19fdd875b2 | refs/heads/master | 2022-12-09T16:32:11.752836 | 2019-01-21T17:14:25 | 2019-01-21T17:14:25 | 166,749,962 | 1 | 1 | Apache-2.0 | 2022-12-08T01:33:38 | 2019-01-21T04:48:23 | Python | UTF-8 | Python | false | false | 606 | py | """Install and setup."""
from distutils.core import setup
setup(
name="SchoolDigger-Scraper",
version="1.0.0",
python_requires=">=3.6",
packages=[ # this will put these dirs into site-packges/
"schooldiggerscraper",
],
install_requires=[
"beautifulsoup4==4.7.1",
"click=... | [
"tonylove5251@gmail.com"
] | tonylove5251@gmail.com |
78f4cff367c9710e80472df1cc9098fe72783fbe | 7082709e5734a8d6034efac6865208baf53f5ae7 | /chuckNorris/lib/python3.7/re.py | f504328aa7b7e02f376f72231abb05dccc3d7adf | [
"BSD-3-Clause"
] | permissive | KevinFerin/chuck-norris-facts-api | 0c092dbc9f0a371a51cda36324fff69cdf3346c7 | 3520a4e23c8fbfda782ad31c9970361d6abb36df | refs/heads/development | 2020-09-10T14:36:04.480028 | 2019-11-14T14:57:59 | 2019-11-14T14:57:59 | 221,721,752 | 0 | 0 | null | 2019-11-21T13:00:21 | 2019-11-14T14:52:27 | Python | UTF-8 | Python | false | false | 41 | py | /home/kevin/anaconda3/lib/python3.7/re.py | [
"kevin.ferin.3@gmail.com"
] | kevin.ferin.3@gmail.com |
c54e9e33e7d6fda10fa9d5b3a9099374742748b8 | 6b0d165bad59b1af4a20b469d8a222370b9b5354 | /beer_warehouse/Scripts/django-admin.py | 498f0fa4364d5904d8fbd4e22e8e5fdbf8915409 | [] | no_license | juansanluq/DjangoTest | 2a2df82f8ea42e18f869bf66084e4998739e57a6 | b8998caa382cef4d22c2a601207bd483b43ab9d4 | refs/heads/master | 2022-11-01T08:07:23.301570 | 2019-01-22T14:48:03 | 2019-01-22T14:48:03 | 164,463,799 | 0 | 1 | null | 2022-10-28T10:32:28 | 2019-01-07T16:59:30 | Python | UTF-8 | Python | false | false | 156 | py | #!C:\DjangoTest\beer_warehouse\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"juansanluq@gmail.com"
] | juansanluq@gmail.com |
281ad853afa50f156cc560eb9efde70e9130b00e | 40e09fc848fac3bc523802e353c4e8bef9e3cf5e | /pyvore/pyvore/managers/sessions.py | 9f5d60dbae366a036b85d684f0aee266d2320f5c | [] | no_license | sontek/pycon2012 | 8ff24ce51770e0fb6a40ec9a510e958b9b9f309b | 79d417d185030c0af247506b49903744088abe65 | refs/heads/master | 2016-09-05T19:56:18.702274 | 2012-03-17T05:53:46 | 2012-03-17T05:53:46 | 3,627,137 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from pyvore.managers import BaseManager
from pyvore.models.sessions import Session
from pyvore.models.sessions import Chat
class SessionManager(BaseManager):
def get_sessions(self):
return self.session.query(Session).all()
def get_chatlog(self, pk):
return self.session.query(Chat).filter(Chat.... | [
"sontek@gmail.com"
] | sontek@gmail.com |
5f4e1fee590a9fadc29ea5ac318730f216eca1c0 | 9752c5fad298864a3328170aa6017bc4b6db9d18 | /ref/importing_data/sanity_check.py | 5ceaebcee328057ea8c6de3aa12631e0d9cd5759 | [
"MIT"
] | permissive | dli-invest/investing-experiments | 69dfa3e4adfbb8d1074732eb4aa82be3b660470f | ed5ec66b6151e6eb0b560bca3485af77985fecfd | refs/heads/master | 2023-04-07T23:37:49.166285 | 2021-04-19T16:47:22 | 2021-04-19T16:47:22 | 295,036,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import os
from zipline.utils.run_algo import load_extensions
load_extensions(
default=True,
extensions=[],
strict=True,
environ=os.environ,
)
from zipline.data import bundles
bundle = bundles.load('eu_stocks')
data = bundle.asset_finder.retrieve_all(bundle.asset_finder.sids)
print(data) | [
"noreply@github.com"
] | dli-invest.noreply@github.com |
8df10d67c0578696c321b29a4292c832ffce104d | 3955734e46e6b6ecc2713d5edb02507d15a329af | /sifter/grammar/comparator.py | 554c112bbed88675dd045a7fd37d392ba37f68d7 | [
"BSD-2-Clause"
] | permissive | python-sifter/sifter | 987de046c1fa29cf4fdfbc6ff37cb142fa6a001b | cb2656ac47125e9e06c9bdda56193da41cc340a8 | refs/heads/master | 2022-12-20T21:52:48.935455 | 2020-09-07T05:27:01 | 2020-09-07T05:27:01 | 1,018,454 | 0 | 0 | BSD-2-Clause | 2020-10-16T17:19:53 | 2010-10-23T21:43:26 | Python | UTF-8 | Python | false | false | 1,503 | py | import re
import sifter.comparator
__all__ = ('Comparator',)
# The official definition of comparators is in RFC 4790
class Comparator(object):
@classmethod
def register(cls):
try:
sifter.comparator.register(cls.COMPARATOR_ID, cls)
except AttributeError:
# this method ... | [
"gary@realify.com"
] | gary@realify.com |
01c90cf3b10ff564d8bd1c1485a176a7793c5f09 | b3cb4015ca65774c670165c49a8e6069114cce8d | /preprocessing_old.py | 2fe1bfc305d3f7dba22aa7b0a38f490e2b92a716 | [] | no_license | pynlpteam/PySupport | b1477038b9fea2873efa627d2d40bcd0f57dc79e | cca3ad21758ab4d43a865b94a0949eb5ffa2efa4 | refs/heads/master | 2021-05-10T14:23:04.914865 | 2018-01-27T08:50:31 | 2018-01-27T08:50:31 | 118,516,520 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | # general
import os
import re
import inspect
import itertools
import dill as pickle
import string
from collections import Counter
# NLP tools
import enchant
import nltk
from nltk.corpus import stopwords
from nltk.probability import FreqDist
from pymystem3 import Mystem
import pymorphy2
# from Preprocessing.Dicts impo... | [
"tonko22x@gmail.com"
] | tonko22x@gmail.com |
71b0e1044d36d090db6eb4f4f05206c2821b9c58 | 50886163b2e74287654574527ffb9eb48d5e100e | /Tech Documents/设计模式(python版)/工厂模式/abstract_factory.py | 603863303dd7487eb2d7127558ac90953a85d9dc | [] | no_license | 13241308289/Documents | 56222b45a38875bb7e53e302dfc0c23fd156e790 | cd7cf3f2d51e1bfcea79bb58839bab582e48c8a6 | refs/heads/master | 2020-05-24T01:18:56.690083 | 2019-05-18T03:33:07 | 2019-05-18T03:33:07 | 187,030,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | # -*- encoding: utf-8 -*-
# ##################抽象工厂#####################
class Frog:
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
def interact_with(self, obstacle):
print('{} the Frog encounters {} and {}!'.format(self,
obstacle, obstacle.action()))
cl... | [
"2519960931@qq.com"
] | 2519960931@qq.com |
863b3f65db53956a88d15a3bb3febfdfc115acf3 | 61ad6d40c68c178dceeb4505a33864d20a6696dc | /rx/venv/bin/wheel | ad6c597162dea86ac41a6956686972ec87b70d14 | [] | no_license | cobain/ipython | e63329462c22d2751e8958164bd019821c12981b | 1d4f6f559a729adb9e916518398ae44037bd4995 | refs/heads/master | 2020-05-21T18:12:34.060671 | 2018-04-27T04:32:13 | 2018-04-27T04:32:13 | 62,492,904 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/htzheng/Documents/python/ipython/rx/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"zhtsuc@gmail.com"
] | zhtsuc@gmail.com | |
6238087954696c8b3ef8a9e8a1d63d31f9315dbc | d0346b154f34fb18f311ab0265da8b5a81f1d984 | /Server/train_model.py | b0ff715af655e6da3eb5dd7e2c860754e2fc1669 | [] | no_license | NikolasBurzynski/HackBU2020 | 229cdb6e663b2228ef0a34790bd4fea59db5f578 | ff33b188434303df5a831d481757e56e72112e5c | refs/heads/master | 2022-12-26T05:02:05.362891 | 2020-02-11T04:52:47 | 2020-02-11T04:52:47 | 301,014,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | # USAGE
# python train_model.py --embeddings output/embeddings.pickle
# --recognizer output/recognizer.pickle --le output/le.pickle
# import the necessary packages
from sklearn.preprocessing import LabelEncoder
from sklearn.svm import SVC
import argparse
import pickle
# construct the argument parser and parse the ar... | [
"jujubuscus@gmail.com"
] | jujubuscus@gmail.com |
359bcec8a0f6c63dc3d1930f122275371211dbc2 | ed41c5ea889a0f3490480842700f6cd6f192bbe2 | /pdfWeights/limit_ratio/limit_ratio.py | 92175af634b571bfb12257b384323f47249a263e | [] | no_license | yeshaq/RA1 | 210a4f10fb821ec2f7677c06a2d78424b2593dee | f624dcf96e75ad15bffd497e4e404566ce4d3e9d | refs/heads/master | 2020-03-29T12:25:43.640322 | 2014-07-19T23:04:29 | 2014-07-19T23:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | import ROOT as r
import os, math, re
canvas = r.TCanvas()
canvas.SetRightMargin(0.16)
#canvas.SetLeftMargin(.13)
canvas.SetTickx()
canvas.SetTicky()
r.gStyle.SetNumberContours(40)
models = ["T2bb","T1bbbb"][0:1]
pdfSets = ["ct61","ct10","ct66","ms08","nn21"][0:6]
histos = ["ExpectedUpperLimit", "UpperLimit"]
dirs = ["... | [
"yeshaq@yossof-UX31E.(none)"
] | yeshaq@yossof-UX31E.(none) |
44e898de8b26e5a201cf475e7ab019e44ead146d | 67379c2ae929266f303edc783c8c62edb521174b | /exception/TransactionException.py | 255a542bbd984278db4669c881c1ac6ca58f723b | [] | no_license | bbb11808/seata-python | d20be83093d6d084ad36d9292a8ee18ad3bfc8c6 | c53b605be423c781d38e599e5bade8df8c81c2d9 | refs/heads/master | 2023-02-11T01:22:18.488881 | 2021-01-05T10:10:08 | 2021-01-05T10:10:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @author jsbxyyx
# @since 1.0
class TransactionException(Exception):
def __init__(self, code, message=None, cause=None):
self.code = code
self.message = message
self.cause = cause
| [
"jsbxyyx@163.com"
] | jsbxyyx@163.com |
aa9b63a239b9f54f9432e9d9b26b9cc92fb1fa36 | 52691f6d8a16b2c4ac7ae100c901a327e778f87c | /deniallist.py | ac67f79a1178fd3cf1a04af574684ddcb03225f6 | [] | no_license | C4st3ll4n/hotel_flask | 7e4b0780ee24bae5099fe9a9fa200792a9926a41 | 3840a092b85e51f9356408f41c46fcc5fee621e5 | refs/heads/master | 2023-01-22T07:13:19.743084 | 2020-11-28T20:02:57 | 2020-11-28T20:02:57 | 312,084,163 | 0 | 0 | null | 2020-11-17T22:04:53 | 2020-11-11T20:38:42 | Python | UTF-8 | Python | false | false | 21 | py | DENIALLIST = set()
| [
"henrique.souza@elostecnologia.com.br"
] | henrique.souza@elostecnologia.com.br |
840f4bbfbecf36b0fca0ba5c41b0fcca167ee681 | 4d8c7a0b760abb796ea3ce6160ec9cd88faa62ea | /src/coordsim/reader/reader.py | f029d534275ff7d5032b5f304f7444b2089a6203 | [] | no_license | DatLQ95/simulation_network | cd1d3efe1720e9c45cc832641f746f924245d532 | 06a439579ebf5bb47aef79f5c47a8f756381fd17 | refs/heads/master | 2023-07-19T07:42:25.358624 | 2021-09-04T15:41:47 | 2021-09-04T15:41:47 | 403,074,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,377 | py | import networkx as nx
from geopy.distance import distance as dist
import numpy as np
import logging
import yaml
import math
from collections import defaultdict
import importlib
import csv
log = logging.getLogger(__name__)
# Disclaimer: Some snippets of the following file were imported/modified from B-JointSP on GitHu... | [
"luongquocdat.hust@gmail.com"
] | luongquocdat.hust@gmail.com |
ef9a7c367bd1087b092f78ee9feb34f8fb220822 | 0e667a493715932d3dd45f6a59bd31c391c05b6a | /bin/pygmentize | 9e0974abc30dcc7b01ffff006b0e612e8a1e5f35 | [] | no_license | Anubhav722/QR-Code-Scanner | 84908069d6dc4082e94ce01c62085ce1ac380a62 | 455d28d5654bed3c9d3161897f7cead21d4c7f8e | refs/heads/master | 2021-04-30T16:13:46.769315 | 2017-01-26T17:28:45 | 2017-01-26T17:28:45 | 79,985,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/home/paras/Desktop/QR-Code-Scanner/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com | |
b734ae887f040770988e1aeddbeed4bf976f5f8f | 3858624710870b088e44abbc92a13be5ac449636 | /myntradb/build/lib/myntradb/user/migrations/0001_initial.py | faa8c53e04bb2c514589e30b973dfeca93b24acc | [] | no_license | nehashewale/myntradb | 733a6088717a2bab9c2a7fcc5cb601d9d7d3ae44 | 230b5bbdf91deaec6c88ad4f217db41370ba60f2 | refs/heads/master | 2023-06-24T10:30:26.804560 | 2021-07-29T07:09:17 | 2021-07-29T07:09:17 | 387,231,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | # Generated by Django 2.1 on 2021-07-20 16:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
... | [
"nehashewale3010@gmail.com"
] | nehashewale3010@gmail.com |
24fdfca44f0e6b00c7b37ca6c0d310609d5f2966 | c6a0a1d40733a5de1831f66449c32a874fe58c06 | /headteacher/migrations/0001_initial.py | f7ffaeea5ed52eb13ae8dc6b1621eeff36ecc8e3 | [] | no_license | ZhibekSolp/School | 6acc26184a2f7e6b7bcd2fdf55736f196514bf57 | aedec7d9ddf6e3d55f047229c7d8fadbae6fc57c | refs/heads/master | 2023-07-19T00:37:51.001181 | 2021-09-11T16:21:54 | 2021-09-11T16:21:54 | 405,304,849 | 0 | 0 | null | 2021-09-11T14:25:29 | 2021-09-11T06:42:18 | Python | UTF-8 | Python | false | false | 810 | py | # Generated by Django 3.2.7 on 2021-09-11 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='HeadTeacher',
fields=[
('id', models.BigAut... | [
"ZhibekSolp.solpieva.zhibek@gmail.com"
] | ZhibekSolp.solpieva.zhibek@gmail.com |
5d9258a3469e2eae18d22eee1f4a8ea2a215497b | 4e3b279d4c014b904373a402c78a26e8ce281d4c | /Candidato.py | 834719b7a6ddbd1a41dc0f5f3b7b6456a3c08409 | [] | no_license | renanzinho/trabalhogio | 01bad9da6afa471f1e0e75546ccf9acb7902282f | a98cee5600ef7b30969fe958fb3832fd4a8d8a4a | refs/heads/master | 2020-03-08T18:12:35.016613 | 2018-04-11T02:13:56 | 2018-04-11T02:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,702 | py | import Bem
class Candidato:
def __init__(self,
anoEleicao,
uf,
codigoCargo,
descricaoCargo,
nomeCandidato,
idCandidato,
numeroUrna,
cpf,
nomeNaUrna,
numeroPartido,
nomePartido,
... | [
"rfl3@cin.ufpe.br"
] | rfl3@cin.ufpe.br |
2e98cf7b13c0ef50f478875dc45266c668e6ed04 | 1e07ebba0d691a53ed9859c4514fa0fa26096948 | /fund5/settings.py | 12baf04fdb20e9fddd3607b137e9d5cc75cc914e | [] | no_license | frankbriones/fundacion | bf52a9be94348306b55506677c173428cc626fc1 | 9742d244526374aa4bbcb6c338b33a698c751a1d | refs/heads/master | 2022-12-22T12:29:39.106710 | 2019-11-08T00:25:04 | 2019-11-08T00:25:04 | 191,661,945 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,337 | py | """
Django settings for fund5 project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
impo... | [
"frankbriones90@gmail.com"
] | frankbriones90@gmail.com |
82517b45e33e99c6728eea5ef933042d18891240 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/instructionsearch/ui/SearchDirectionWidget.pyi | 68398a7321fe0e264877ec23688efac4696bbacd | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,511 | pyi | from typing import List
import ghidra.app.plugin.core.instructionsearch.ui
import java.awt
import java.awt.dnd
import java.awt.event
import java.awt.im
import java.awt.image
import java.beans
import java.io
import java.lang
import java.util
import javax.accessibility
import javax.swing
import javax.swing.border
import ... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
ceb3047ae6a58c65e8f35948042fcd27b2054788 | c4b6f8e3b8b22300525d6a8d232aef7c5d3d9b97 | /codpy/detector.py | 3890325d2b580d71103e3bd280b885092dd44c93 | [
"MIT"
] | permissive | GNiklas/codpy | b8f8707d422537021621697a7553cee22453c544 | ad955f1567f4d0c93731a08eda49ad5123ed1204 | refs/heads/master | 2023-07-04T02:16:33.453472 | 2021-08-14T10:50:45 | 2021-08-14T10:50:45 | 393,007,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 5 13:32:09 2021
@author: niklas
"""
import os
import sys
import numpy as np
import cv2
import codpy.file_handling as fh
from codpy.selector import Selector
class Detector(Selector):
"""
Class of basic object detector. Inherits from Se... | [
"gnthrn@gmail.com"
] | gnthrn@gmail.com |
4c5fbb4c60927c29d095f78824b181e96bb176ad | 05289b644f72da70d6c1fa14f8ac44ee46eff42c | /day_translator_ina_eng_vice_versa.py | 4f2c55fab8422de84778587195e4f60703f54722 | [] | no_license | ridhoaryo/for_loops_project | bdc28d94ada504cf5c4d0783a83a48dfec0b4e70 | a5c18d392c124830fc4dfe14682c050e8f98add1 | refs/heads/master | 2020-09-07T14:32:34.077062 | 2019-11-10T15:43:31 | 2019-11-10T15:43:31 | 220,811,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | days = {
'senin': 'monday', 'selasa': 'tuesday', 'rabu': 'wednesday', 'kamis': 'thursday', 'jumat': 'friday', 'sabtu': 'saturday',
'ahad': 'sunday'
}
day = input('Input hari: ').lower()
for ind, eng in days.items():
if day == eng:
print(f'Bahasa Indonesia dari {day.upper()} adalah {ind.uppe... | [
"noreply@github.com"
] | ridhoaryo.noreply@github.com |
36551e18a8c2beca2f9d1d8520f858a6384900e1 | a9d6114af0f5d622d74f62f402bc252e7f7742c4 | /card_img.py | fe5d79c95716bda85ca2ed209f6e00702bccc64c | [
"Apache-2.0"
] | permissive | ajayjain/OpenCV-Projects | 705a1d5efce9556aee67e12c53d6cfe130a06d89 | 4ef8e21794665e69bfb169b72e1fe5cfc22ac737 | refs/heads/master | 2021-01-11T04:15:25.491492 | 2014-06-28T18:53:59 | 2014-06-28T18:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | from __future__ import print_function
import numpy as np
import cv2
import random
FILENAME = "./img/cards.png"
WINDOW_NAME = "Cards"
NUMCARDS = 4
def centroid(moment):
x = moment['m10'] // moment['m00']
y = moment['m01'] // moment['m00']
return (x, y)
def draw_centroid(c, im):
max_rows = im.shape[0]
max_cols = ... | [
"ajayjain318@gmail.com"
] | ajayjain318@gmail.com |
53f2c0fd2544fc96d1a60fedeedab9df30233b87 | 2b50fcffa9803fe2090629c3dad5dd946f70a4af | /db/run_sql.py | 1659cb88a1ccbae52dc8c2d71fde2285b02ec9e8 | [] | no_license | Skivlin1991/task_manager | 607b35d7ada1de00c3285b76b6487173bf012aab | 980a40762062ecd4f31634186ef6e5d44e200cb4 | refs/heads/main | 2023-05-08T02:26:05.963700 | 2021-05-27T11:59:49 | 2021-05-27T11:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import psycopg2
import psycopg2.extras as ext
def run_sql(sql, values = None):
conn = None
results = []
try:
conn = psycopg2.connect("dbname='task_manager'")
cur = conn.cursor(cursor_factory=ext.DictCursor)
cur.execute(sql, values)
conn.commit()
results = cur.fetch... | [
"garrymhall@gmail.com"
] | garrymhall@gmail.com |
7571d6a9631ad006e432dc159f89bde447fbbd5a | f9833fa4e11060e0bc824fb26499a49b26d04584 | /pagerank/pagerank.py | 814f6888343ab0412655df42b8071b0f757384e4 | [] | no_license | konstantingl/CS50AI | dc3de70c5a8bfa812537bfd83783311adeffeaf9 | 181ab793b2d3c10800b55d76fb8e8c02b08eb722 | refs/heads/master | 2022-11-05T09:30:11.686979 | 2020-06-20T12:11:46 | 2020-06-20T12:11:46 | 263,000,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,484 | py | import os
import random
import re
import sys
import numpy as np
DAMPING = 0.85
SAMPLES = 100
def main():
if len(sys.argv) != 2:
sys.exit("Usage: python pagerank.py corpus")
corpus = crawl(sys.argv[1])
ranks = sample_pagerank(corpus, DAMPING, SAMPLES)
print(f"PageRank Results from Sampling (n ... | [
"konstantingl156@gmail.com"
] | konstantingl156@gmail.com |
3cc3b9b73a51bfc77678166cea769356ea41b111 | 26c4cf72a18464c6b38b0e499806e846eb130d83 | /run_experiments.py | b7b6a2b17776d0684ec40e9a573fb18a7eea2d80 | [] | no_license | arnupretorius/noisyNNGPs_2019 | 694d6aec1ec538c66aa491f29d4871d8c4b4f0bd | 8c765f7b942653cdc147323974a5c2ae4d839518 | refs/heads/master | 2020-04-28T03:28:26.530870 | 2019-08-12T08:49:52 | 2019-08-12T08:49:52 | 174,938,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,074 | py | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"arnupretorius@gmail.com"
] | arnupretorius@gmail.com |
85398c9153e63b9b53d9985b044400b6227c505f | 6806bd3e24d2ec3382cce6964e817e279052f121 | /sentry/plugins/sentry_sites/models.py | 4e294b463ec6ef4e47deb100f73b3e68c629019e | [
"BSD-2-Clause"
] | permissive | magicaltrevor/sentry | af70427a6930f555715362e8899e4269f844e57f | 8c11b2db7f09844aa860bfe7f1c3ff23c0d30f94 | refs/heads/master | 2021-01-18T11:53:55.770327 | 2012-07-29T22:00:35 | 2012-07-29T22:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | """
sentry.plugins.sentry_sites.models
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import sentry
from django.utils.translation import ugettext_lazy as _
from sentry.plugins import register
from sentry.... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
d3692e6852c8e1739ff1b63fce5cd41faa9aa4db | 554e363152619134fc3cbbbe6116e8acfb3682d4 | /src/utils/process_and_split.py | 3f7b6272877aef7563753a59fc2a38e5f7364e77 | [] | no_license | kinjaljain/QA_SDP | c191b30f7996843c927997e30c86231181b789de | 35456a4688290825e7427aa50583c4492b27c298 | refs/heads/master | 2022-11-30T07:18:41.563449 | 2020-04-25T00:16:06 | 2020-04-25T00:16:06 | 241,164,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | import re
import nltk
nltk.download('stopwords')
from dataloaders.load_and_parse import load_all
from similarity_metrics.jaccard import get_similarity_score as j
# from similarity_metrics.dice import get_similarity_score as dc
# from similarity_metrics.word2vec import get_similarity_score as w
from tqdm import tqdm
DAT... | [
"kinjal@Kinjals-MacBook-Pro.local"
] | kinjal@Kinjals-MacBook-Pro.local |
456c590d5d9b7436ae5408d60532e45bf5df7d77 | b761c9c8775d5a08b3b9be6d8300131a4f6a249f | /spring1819_assignment1/assignment1/cs231n/classifiers/neural_net.py | ea28f209bbe508af15877b227b81933dd0badea5 | [] | no_license | DizzyYunxuan/CS231n | 2599c68ccfcae1ba7dc244440eb30abc9f9340df | 3684b83639c49a1060437901da242d8cccadef34 | refs/heads/master | 2020-09-13T16:40:30.364281 | 2019-11-20T03:49:50 | 2019-11-20T03:49:50 | 222,844,025 | 1 | 0 | null | 2019-11-20T03:45:07 | 2019-11-20T03:36:22 | Jupyter Notebook | UTF-8 | Python | false | false | 9,832 | py | from __future__ import print_function
from builtins import range
from builtins import object
import numpy as np
import matplotlib.pyplot as plt
# from past.builtins import xrange
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer ... | [
"516488199@qq.com"
] | 516488199@qq.com |
9a35602e246a3b5ec780162d71ffce8af4f28b65 | bbe32e34c0ff194411df58e73606eb723c2fe53d | /Expense_Input/userinput/views.py | 60c0c54e9a9e8c406754b27b83f31de66685436b | [] | no_license | Azirly/Expenses-Input | 3acf3f0a539f8b88cb506df394af5904bec54334 | 8f75aa69083c6f5f951b535241315bc42613abdf | refs/heads/master | 2022-11-10T19:48:12.526929 | 2018-04-19T21:01:42 | 2018-04-19T21:01:42 | 130,256,716 | 0 | 1 | null | 2022-10-22T09:17:14 | 2018-04-19T18:30:51 | Python | UTF-8 | Python | false | false | 450 | py | from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the userindex.")
def detail(request, value):
return HttpResponse("You're looking at question %s." % value)
def results(request, value):
response = "You're looking at the results of question %s."
... | [
"justonl@uci.edu"
] | justonl@uci.edu |
dcbb7d2c6c118a3060c64cfee2dae6fd5aa40e9d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2453486_1/Python/dvolgyes/solution.py | 3336b278088a91573eff663adc3c60e306e631a1 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | #!/usr/bin/python
#
# Google codejam solution
# David Volgyes
#
#
import sys, math, os
#import mpmath as mp # see https://code.google.com/p/mpmath/
import numpy as np # see http://www.numpy.org/
#import sympy as sp # see https://code.google.com/p/sympy/
import networkx as nx # see http://networkx.github.... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1e382ff1d7dc2a25325cc82e0775d8691c3da5dc | cc1e583a527588ee4a3a95d64603a16cf62f84a9 | /project2/q2.py | 222cbbc034efb4d3ac53ee9e07b2b496b4b343e6 | [] | no_license | LordNecromancer/computer_vision_course_projects | ff12a677edf556e68639cb5916c1e8f15d4543c8 | fe15e6617be3cf05f565581fd3d4bea20ec81ced | refs/heads/master | 2023-06-26T22:55:40.986518 | 2021-07-19T01:23:58 | 2021-07-19T01:23:58 | 387,146,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | import cv2
import numpy as np
def getObjectGrid(w,h,dimension):
grid=np.empty((w*h,3),dtype=np.float32)
c=0
for j in range(h):
for i in range(w):
grid[c]=(i*dimension,j*dimension,0)
c+=1
return grid
def getParameters(images,greys):
worldObjPoints=[]
imagePoint... | [
"mmdp313@gmail.com"
] | mmdp313@gmail.com |
c6a647a7f1b4bd9c459dfe271e8c98e684869d58 | 9dacc94f2f6819536286c1e6e17196d1edaa980e | /ocr.py | c2613bb627ca3a87d53755a155ef1653e25af25c | [] | no_license | aaminu/OCR | 505f0807958ce428dc4ed483420abefda21a635c | 06211f74f74f394c5304361005588aca18ebfae6 | refs/heads/master | 2023-02-19T00:43:12.360620 | 2021-01-14T12:37:15 | 2021-01-14T12:37:15 | 265,620,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,895 | py | """
performs OCR and returns Text from File
"""
# import libraries
import os
import sys
import requests
from pathlib import Path
from auth import auth_env
def ocr(file_name=None, file_url=None):
""" post to API for response"""
endpoint, subscription_key = auth_env()
# OCR link and parameters
ocr_li... | [
"24601677+aaminu@users.noreply.github.com"
] | 24601677+aaminu@users.noreply.github.com |
68a41b87ce93babc8cc9ff31ee191ed3942d9e11 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/afabricextconnp.py | 6c8a4c7ee71ed4b11370d170b02722427f256c7d | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,912 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
1bf5009a1190a9c57239a41e7bf9e3f4a691325d | 0784c4f48ee2e25e95259f35de36f69e7bf3184f | /wypok_auth.py | f0743e14879723b5d7a393209f065f80695f3c17 | [] | no_license | a000b/ZombieBot | 277b0d6d807a0d0332c16428ff3c9f4ac8b1f234 | c74028bf5bf9bb64488a5efa717a1f6e8e44e765 | refs/heads/master | 2020-07-31T13:37:58.524740 | 2020-06-07T09:33:20 | 2020-06-07T09:33:20 | 210,620,100 | 3 | 1 | null | 2019-10-20T06:33:47 | 2019-09-24T14:14:27 | Python | UTF-8 | Python | false | false | 3,004 | py | import pickle
import requests
import hashlib
import logging
target_path = ""
logging.basicConfig(filename=target_path + 'logs.log', level=logging.INFO,
format='%(asctime)s|%(levelname)s|%(filename)s|%(funcName)s|%(message)s')
def check_usrkey_isvalid(kwargs):
check = get_pm_conversation(kwargs... | [
"46565897+a000b@users.noreply.github.com"
] | 46565897+a000b@users.noreply.github.com |
e01c3b9e135e6767e80e69e93678a8c30583d54b | a797793842f433251d2ab0bafb0ebe800b89a076 | /z7.3.py | 04495ae9dfa0056a6b01a8be77740c3a7360d223 | [] | no_license | irhadSaric/Instrukcije | b2f576bceb7e75f5fa65bfef99c9cde53d597b32 | 9ac8979b824babdeef3712ab9d23c764536d57b0 | refs/heads/master | 2020-09-28T09:00:08.389651 | 2020-02-01T20:33:59 | 2020-02-01T20:33:59 | 226,740,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | lista = []
for i in range(5):
broj = int(input())
lista.append(broj)
lista = sorted(lista)
print(lista[2]) | [
"irhad.saric@hotmail.com"
] | irhad.saric@hotmail.com |
2eed65682858de5a475169c5a87692ea1fe981ec | b66ff47bf4b24682663933a9169008616d5cc840 | /conceitos/12_break.py | 800727b5b948b927b8e6306cd467fbdedeb573cb | [] | no_license | joseney/python_structural_engineers | 3bf68dfd29bcfabc748b7d756e9cf27b5bb93c91 | 7c45c411f5db66a5f4543c186e27940c419a880d | refs/heads/master | 2023-09-03T17:45:10.154392 | 2021-09-27T18:45:48 | 2021-09-27T18:45:48 | 407,128,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | for i in range (5):
if i ==3:
break
print(i) | [
"joseney_moro@yahoo.com.br"
] | joseney_moro@yahoo.com.br |
686705a2f26164659e8b02756037a88a40e2e1de | d76fda42dd6178537618091fc2ac8b82d7d5b7d8 | /trainer_preid.py | 8c864397cec0126ee3adcbf3f7172a5e4f010b6e | [] | no_license | oneysmall/CVTC | 35bf788f7a765111fce3678cbc4c3f5d0b0d471d | 5fbfdc3ab139db67bc95732c26213f567cf74377 | refs/heads/master | 2020-06-25T01:47:11.742722 | 2019-07-23T06:57:13 | 2019-07-23T06:57:13 | 199,160,110 | 6 | 3 | null | 2019-07-27T12:08:37 | 2019-07-27T12:08:37 | null | UTF-8 | Python | false | false | 5,041 | py | import argparse
import os
import tensorflow as tf
from tensorflow.contrib.learn import RunConfig
from datasets.DatasetFactory import DatasetFactory
from helper.model_helper import get_model_function, get_input_function
from nets import nets_factory
CUDA_VISIBLE_DEVICES=0
config = tf.ConfigProto()
config.gpu_options.... | [
"xmlin1995@163.com"
] | xmlin1995@163.com |
0897d325bbb50a683aa7d27391d7d351351b1a3d | aa5d710a177fa4e8554cd99911472148004169ba | /sample-menu/test.py | a15912b7215a569f6a11a5a918a79478f20d5513 | [] | no_license | haxmanster/scripts | 4965adb120b0bd92a31ae08a17952d312718d378 | 11ac0b9eb64bad0c744384f5a11b46ec3ce0fc1b | refs/heads/master | 2020-03-19T09:24:11.893321 | 2019-02-20T14:06:42 | 2019-02-20T14:06:42 | 136,285,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | import os
import sys
def menu():
print(" Welcome in initiation script ")
print("""
**************************************************************
*============================================================*
*| Master control unit xD |*
*=====================================... | [
"grzegorz.wolyniec@tieto.com"
] | grzegorz.wolyniec@tieto.com |
59b86e124976b088f7ebf9dc8fc1e8a4efe667d5 | e1308eb60ec76b7548936f5e66aeb9975bfc2710 | /hello20.py | 612bb8efed8871fb917836c99f3f04162d46e56c | [] | no_license | DasomJung24/pythonpractice1 | ac2f5b81748202d0b141de0ce48e3741984d1049 | f166bba1a9ae1d2d77fc93f256feb0e0e92f3b6a | refs/heads/master | 2022-11-15T21:17:42.311364 | 2020-07-16T22:08:58 | 2020-07-16T22:08:58 | 280,268,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import random
print ('첫 번째 숫자를 입력하세요.')
a = input()
a = int(a)
print ('두 번째 숫자를 입력하세요.')
b = input()
b = int(b)
c = random.randint(a, b)
print (str(a) + '부터 ' + str(b) + '까지에서 무작위로 선택된 숫자는 ' + str(c) + '입니다.')
| [
"noreply@github.com"
] | DasomJung24.noreply@github.com |
f262ce49a1b63243520cfc38fef089e4926dcf7f | 5552481b05fb515c25cf86ce224cc4a25e296c41 | /src/_old/comm_listener.py | feca642ace6635dd3213e502cc3fd5bb73f06746 | [] | no_license | theodorekoutros/comm_sender | dac64cdbbd81fee874fdf340907816a312f755ed | 58e0fb53543c9305ee93a360c0c3166e898cb80b | refs/heads/master | 2020-04-11T22:24:43.456608 | 2019-07-10T21:21:03 | 2019-07-10T21:21:03 | 162,135,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
class ListenerNode:
def __init__(self):
self.node_name = rospy.get_name()
rospy.loginfo("[%s] Initialzing." %(self.node_name))
self.sub_key = rospy.Subscriber("/key", String, self.callback, queue_size=1)
def callback(... | [
"koutrost@student.ethz.ch"
] | koutrost@student.ethz.ch |
767fbacecdf58994beab196a4d0a717ed5894287 | 20b00bc62644aa242c723c1a0bd37aa098b4926e | /e/map_vacc_eligible.py | 17d436889cf7cccd5e1078805ad42365cd773dab | [] | no_license | devdatalab/covid | 0d7e82f0ff40746e2cb3bcf87fc803d1db60bb5b | a86c2d00d81eee6d26c343e05ae9ba1087fad47f | refs/heads/master | 2023-04-16T14:20:55.060708 | 2022-10-26T15:42:23 | 2022-10-26T15:42:23 | 253,523,397 | 47 | 21 | null | 2020-06-19T16:00:29 | 2020-04-06T14:33:14 | Jupyter Notebook | UTF-8 | Python | false | false | 10,862 | py | import geopandas as gpd
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import time
import rasterio
from rasterio.plot import show
from collections import Counter
from shapely.geometry import Point, LineString, box, Polygon
from IPython.core.display import display, HTML
f... | [
"ab738@cornell.edu"
] | ab738@cornell.edu |
cc3039604583f0e10d6a227e330a3757e870c8ba | a7a30fae1e0fd4e199a365738f3f89d1fcab68eb | /git guide.py | c8db64d80198da9838adbe3b1a65c0627f1832b2 | [] | no_license | Chigzzer/Libraryguides | 7d6cf4ac435b0161827b0476e7c0140446ae3b17 | f0ba5a6a2f2d1beac2f1f2413ae4efa33aca4e97 | refs/heads/master | 2022-11-03T06:09:35.395599 | 2022-10-21T22:43:40 | 2022-10-21T22:43:40 | 144,333,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | git init # creates a git in the folder where you entered bash
git touch xxxx.zz # Creates a file in the folder with xxxx.zz being the file name and extension
git add filename # adds the file to be committed
git add *.extension # addds all filenames to be committed
git add . # adds all files in folder to be com... | [
"chiraag.chandarana@gmail.com"
] | chiraag.chandarana@gmail.com |
02d48bd2c223636e35624a38576f0a5412d9f2f8 | 2e06c0df26e3fbccc2af052301e8b486fd17d84c | /Line3D/line3d_rectangular_projection.py | 66b986387a063fbb644ba6817cebe039bc9a5c45 | [
"MIT"
] | permissive | d8ye/pyecharts-gallery | 54f44c0a78d88608ae83a678c105424113866f25 | 07995a7f2600983282eb37b1e94da9af2f1a25b5 | refs/heads/master | 2020-07-03T13:04:42.093830 | 2019-08-13T04:14:13 | 2019-08-13T04:14:13 | 201,913,794 | 0 | 0 | MIT | 2019-08-12T11:04:10 | 2019-08-12T11:04:09 | null | UTF-8 | Python | false | false | 1,458 | py | import math
import pyecharts.options as opts
from pyecharts.charts import Line3D
"""
Gallery 使用 pyecharts 1.1.0
参考地址: https://echarts.baidu.com/examples/editor.html?c=line3d-orthographic&gl=1
目前无法实现的功能:
1、
"""
week_en = "Saturday Friday Thursday Wednesday Tuesday Monday Sunday".split()
clock = (
"12a 1a 2a 3a 4a... | [
"379978424@qq.com"
] | 379978424@qq.com |
5c24262b5869bb78d600241b7e07ecfb429f2b32 | bd0b80bc66033c6a19a849e884cdb09988c1f3d2 | /JejuCCAI.py | 20a64f8a316e2fb3a860bb8caef3702076692f3a | [] | no_license | schiaLab/JejuCC_AI | de062cd650f36130f29e6fcef444e8a2b87609b5 | 73cd043606754e1802d425707a58d730c5e05539 | refs/heads/master | 2022-12-07T16:43:10.642513 | 2020-09-04T09:21:19 | 2020-09-04T09:21:19 | 291,448,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,637 | py | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from scipy.stats import norm
import statistics
import sys
import math
print("Initiating Program.")
#데이터를 가공하여 분석하기 쉽도록 만드는 클래스입니다.
class dataGenerator:
#필요한 애트리뷰트를 미리 선언해 놓겠습니다.
data = None #클래스의 pandas 데이터 원문을 담는 애... | [
"hyeonjunacademic@gmail.com"
] | hyeonjunacademic@gmail.com |
87f0a93a17aa1fea5cf6a1d04ff68dfea61626a8 | d7e97f6b1d12c4f9080439c933136b7e5caa874b | /js/sdk-1.0b4-modified/python-lib/cuddlefish/templates.py | f2a364a916f27043ca7ff289c530d935455565d8 | [] | no_license | paulrouget/htmlmediakeys | 96806b8fa38f25fe045c142ff7e517706a2ec3f8 | 49e405bc2691aef3127ac9c13b58aa07982d7ebe | refs/heads/master | 2020-05-18T11:04:43.770001 | 2011-04-22T18:32:45 | 2011-04-22T18:32:45 | 1,650,817 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | #Template used by main.js
MAIN_JS = '''\
const widgets = require("widget");
const tabs = require("tabs");
var widget = widgets.Widget({
id: "mozilla-link",
label: "Mozilla website",
contentURL: "http://www.mozilla.org/favicon.ico",
onClick: function() {
tabs.open("http://www.mozilla.org/");
}
});
consol... | [
"paul.rouget@gmail.com"
] | paul.rouget@gmail.com |
d536defe9b0153859e93dfe79e1890719bb316f7 | 8ff148371adb02a171c974e6bea4e6609fb72f04 | /app/__init__.py | 3c5a958ead1e5f4a6156bb84acd62984c6778dfa | [
"MIT"
] | permissive | rmarshall10/Insight_App | 0c20f00965c6317e8ffbb592a36e0f9f170381c5 | f0276e79d0ceaf2787762a1602d62a19db1c1800 | refs/heads/master | 2023-02-22T17:49:44.064648 | 2020-06-22T23:39:42 | 2020-06-22T23:39:42 | 269,232,641 | 0 | 0 | MIT | 2023-02-15T23:45:48 | 2020-06-04T01:31:19 | Python | UTF-8 | Python | false | false | 274 | py | from flask import Flask
app = Flask(__name__)
#This is wrong, needs FULL path. Right now will save in app folder
#app.config['UPLOAD_FOLDER'] = 'app/uploads'
app.config['MAX_CONTENT_PATH'] = 10 * 1024 * 1024
app.config['ALLOWED_EXTENSIONS'] = {"MP4"}
from app import routes | [
"ryanmarshall@Ryans-MacBook-Air.local"
] | ryanmarshall@Ryans-MacBook-Air.local |
80a886b3cc887cdf1aefb3525eaa35f1f6528e29 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/volume/volume_attributes.py | 94f52a5e553ca733b3138d1b081bb226e35c66cc | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,794 | py | from netapp.volume.volume_hybrid_cache_attributes import VolumeHybridCacheAttributes
from netapp.volume.volume_mirror_attributes import VolumeMirrorAttributes
from netapp.volume.volume_space_attributes import VolumeSpaceAttributes
from netapp.volume.volume_directory_attributes import VolumeDirectoryAttributes
from neta... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
8555a9983267a8997ab3d10b7b8719a8858dc2bd | f518a44abf00aefbd6de048ccff9203aac3eef24 | /code/exploratory_analysis.py | 0c2e4702f587ef8f065ef744a11731cc52513dfc | [] | no_license | vfulco/mining_the_common_app | f510d403b075218c953fb58ccffe346f0baabb52 | 46354664596959e38879a1c51a03ffa40b2eb27e | refs/heads/master | 2021-06-24T05:49:57.944449 | 2017-06-21T05:26:15 | 2017-06-21T05:26:15 | 105,898,177 | 1 | 0 | null | 2017-10-05T14:12:53 | 2017-10-05T14:12:53 | null | UTF-8 | Python | false | false | 6,715 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from collections import Counter
import re
def histogramSAT(df, year=None, before_after = 'before', lim_min=100, lim_max=2400):
'''
Plots a histogram showing the SAT scores of those students who graduated before a specified year.
'''
... | [
"yungmsh@gmail.com"
] | yungmsh@gmail.com |
a35b19e6d1369853d8c70ee127b6d3dee278778a | 70a0cf4d95ea70e9f24af69fa1a012f272f23330 | /BOJ/02178-미로_탐색-yeonhee.py | 17c3feef295e35d2cae6cc434ec35698967aed8c | [] | no_license | devpla/algorithm | 6ee75f0f4cf162674ac626766ce016de843f2fbb | b1d9bf9b9f79e4d7295784a6f63de0c0b07963ca | refs/heads/master | 2023-08-28T14:09:30.706665 | 2021-10-13T14:36:27 | 2021-10-13T14:36:27 | 398,161,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from collections import deque
DIRECTION = ((0, 1), (0, -1), (1, 0), (-1, 0))
def bfs():
q = deque([(0, 0)])
graph[0][0] = 1
while q:
r, c = q.popleft()
for dr, dc in DIRECTION:
nr = r + dr
nc = c + dc
if 0 <= nr < n and 0 <= nc < m and graph[nr][nc] ==... | [
"chaeyeonhee@kakao.com"
] | chaeyeonhee@kakao.com |
7140bca0b1e84c19e6a69277ccdfc52ae883fbdf | 7ce07395e1b5ace33c68a2755a956bafddd3adb9 | /contribstats_apis/apps.py | a1e5a36819d55d23c4f25d551b48046d087f5f14 | [] | no_license | Discovery-VSTS/codemetric | 8014b75e7fddf86490cc29a72a297c913e2037ab | 08df5f5a191279150b6f82c8e45b648e2f1c0073 | refs/heads/master | 2021-01-20T11:52:28.358595 | 2017-03-23T15:00:09 | 2017-03-23T15:00:09 | 80,984,988 | 0 | 1 | null | 2017-03-18T15:42:36 | 2017-02-05T10:15:37 | Python | UTF-8 | Python | false | false | 108 | py | from django.apps import AppConfig
class ContribstatsApisConfig(AppConfig):
name = 'contribstats_apis'
| [
"minhlong.langos@gmail.com"
] | minhlong.langos@gmail.com |
a6b41655f02282e4209fe8686428eda883251306 | 084b3a30a84f20e3eeda5c3846705695918374b0 | /dbt_gen/py3env/lib/python3.5/site-packages/snowflake/connector/version.py | 2597e133b042b02ff7e4fcda8de0ddcb01c7c120 | [
"Apache-2.0",
"MIT"
] | permissive | norton120/dbt_gen | db3f77cb164e94870697ece7ef4e1093441d832d | 712fc8698a77c3372f5a403a5ae50711d0cb3c7d | refs/heads/master | 2021-05-01T15:03:44.301147 | 2018-02-16T01:56:25 | 2018-02-16T01:56:25 | 121,029,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # Update this for the versions
# Don't change the forth version number from None
VERSION = (1, 5, 0, None)
| [
"norton120@gmail.com"
] | norton120@gmail.com |
959fa6cf6f372189e821fd5412854a9548fa18f2 | fb657665c617aff5315f4b492807eb4291da61bf | /Time-Space Tradeoff/Hashing/double hashing.py | 03a091eca5525891ce0c53a1174ed16ad0841250 | [] | no_license | AngelWings1997/Algorithm-and-Complexity | 12348effc5f4d2cd41df81b2e0eaa0912cf4235b | 147e7990359d2ec6060e255908e1b379bd4f85ce | refs/heads/master | 2023-04-08T14:45:38.388958 | 2021-04-20T03:36:53 | 2021-04-20T03:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,385 | py | """
# -*- coding: utf-8 -*-
@author: Hongzhi Fu
"""
# implementation of hashing
# the purpose is to split items into hash table evenly,
# and minimize collisions as fewer as possible
# table size is typically 1.5 larger than the number of items
# modulo operation is chosen as a hash function
# collision resolution mec... | [
"Heartbeats1216@gmail.com"
] | Heartbeats1216@gmail.com |
9beb997cd9e41a5838e3e62286a18238532f2c0a | 21c3daa3c4209314767ccd2cf4ad61d0e43b645f | /ex2.py | 830394cc3cf37897799547cb425e55e18bb14c42 | [] | no_license | suneff/python-unipi | d6207b9d7862fa35ad5642aa62b50c7296b12926 | 43baed544286b336c0b0801390e4ef81eb118982 | refs/heads/master | 2021-01-21T10:45:53.222458 | 2017-02-28T21:58:40 | 2017-02-28T21:58:40 | 83,481,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | inp=raw_input("Dwse mou mia akolouthia parenthesewn: \t")
length=len(inp)
flag=False
if (length>=2) and ((length % 2) == 0):
if inp[0]=="(" and inp[-1]==")":
position=0
count=0
while (position<length) and (count>=0):
#if adding 1 when a "(" appears and subtract by 1 when a ")"
#apears, i... | [
"noreply@github.com"
] | suneff.noreply@github.com |
3f82fbf0a527d496e2fb54cbcba4581c72e3fb91 | 401d074875b7878adb456c8a2f6ba55c45484600 | /scripts/src/write2db.py | 3f967cf842fb22bb67536f515e3581f7e8148477 | [] | no_license | novaxiaohui/electricity-filching-detection | 1ad4842a045a533d2c49c9f26f29524f47bd0301 | 9feafbc0ea50d133cd4e33d9882665c6b0d3cbe0 | refs/heads/master | 2020-03-28T00:41:41.672757 | 2018-09-05T02:47:52 | 2018-09-05T02:47:52 | 147,441,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Created on 2017/9/29 8:55
@author: Xiaohui
Function: preload data to database
"""
import os
import csv
from itertools import islice
from datetime import datetime
from collections import defaultdict
from ConfParser import ConfParser
from conndb import my... | [
"noreply@github.com"
] | novaxiaohui.noreply@github.com |
151f79d6e5570854101663710bf6c53ec3afafdc | 1a1a9906ab0e56335eebe543d1c145750caaa631 | /modules/gateways/cloud-init.sh | deea05919cf5a455dea02f1277272b3b975473c8 | [] | no_license | bridgecrew-perf4/lab-in-a-box | 840021e9b38ddc4450c0682831a32ac06dfca0d7 | ad33a08b18cc3a5f3057afad0505603cee4b4422 | refs/heads/main | 2023-03-19T11:53:39.523806 | 2021-02-17T15:23:52 | 2021-02-17T15:23:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | sh | #!/usr/bin/python3 /etc/cloud_config.py
installationType="${installation_type}"
allowUploadDownload="${allow_upload_download}"
osVersion= "${os_version}"
templateName="${template_name}"
templateVersion="${template_version}"
isBlink="${is_blink}"
bootstrapScript64="${bootstrap_script64}"
location="${location}"
sicKey="... | [
"stuartg@checkpoint.com"
] | stuartg@checkpoint.com |
98d99daa66e747ccc7397198c69bcb06378ea89a | df60b560266920c9326dee242ba140d42f97be4a | /ex09_lista02.py | fa2c2b17801ad93c7363dece17b5212b50ab8e49 | [] | no_license | carloseduardo1987/Python | 664c74a2f5af1a12ccd6392b4faab4e040b57106 | 291cf3546faefa081e6d8c7fec1f5d826575a167 | refs/heads/main | 2023-01-20T12:17:29.565482 | 2020-11-27T07:54:25 | 2020-11-27T07:54:25 | 316,432,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | print("### Calculadora de desconto em compras ###")
valor = float(input('Digite o valor da compra: R$ '))
if valor <= 150 :
total = valor * 0.05
elif valor <= 300 :
total = valor * 0.07
elif valor <= 500 :
total = valor * 0.10
else:
total = valor * 0.20
print(f'O desconto na compra ser... | [
"noreply@github.com"
] | carloseduardo1987.noreply@github.com |
e2fe0f61764b67cc09280aa54e3523f4515f4dda | f1b095ea11282465f8129d457e4b84058b7de426 | /practice.py | 7fd5e57278587fedca3c2137958c638d7c7dd807 | [] | no_license | IvanSivchev/Homeworks | d8cf745004a02aee3cf1b05ee5c9c23993368632 | 2f31d9692262d37aa92f1ee6cc09cc4849ef8a09 | refs/heads/master | 2022-10-26T21:54:45.524436 | 2020-06-14T23:20:58 | 2020-06-14T23:20:58 | 272,292,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | class Basket:
name = 'Basket'
size = 10
def putin(self, obj):
if obj.size <= self.size:
print(obj.name, 'in {}!'.format(self.name))
self.size -= obj.size
else:
print('You cant put {} in!'.format(obj.name))
class Pack(Basket):
name = 'Pack'
size = 5
class Object:
def __init__(self, name, size):
... | [
"vanyasivchev@icloud.com"
] | vanyasivchev@icloud.com |
5bcab2190075533c78ad6b2d00437877ca00c388 | f8f7f2d5d74364805465fa56a2e89923265f8248 | /devel/lib/python2.7/dist-packages/tnp/msg/_Coordinates.py | 19d40aa0b6c5bf1a48436f1bd313f06aa86b7fec | [] | no_license | kefalakis/qtnp | 2c83a4a1381f0ff48bcfb6808cbed62d47f14e34 | 5066cc43bd654729469fa1346fa87cd012c8eabb | refs/heads/master | 2021-01-13T13:06:39.828109 | 2016-07-17T15:27:23 | 2016-07-17T15:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,041 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from tnp/Coordinates.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Coordinates(genpy.Message):
_md5sum = "5233f15c788dc5823ec41234899f903f"
_type = "tnp/Coord... | [
"fbalampanis@gmail.com"
] | fbalampanis@gmail.com |
ee2c5b12e32aa25297b2a8707f08e7a5e99f3f03 | 46e1efa57240420cae94a2ce51f10159a169b4c9 | /hello_celery/hello_celery/urls.py | df3b6ae3a1e9961941437b6eb2c41d40607d5d36 | [
"MIT"
] | permissive | rickding/HelloPython | c30d62e53018334e7b3b3b80ed2a7eb097799ac1 | c3cb07f83642873a3460ffe489c82505923c3c1a | refs/heads/master | 2021-06-16T17:42:29.636391 | 2021-01-31T08:08:25 | 2021-01-31T09:28:41 | 148,429,657 | 2 | 2 | MIT | 2020-08-16T08:01:30 | 2018-09-12T06:04:41 | Python | UTF-8 | Python | false | false | 861 | py | """hello_celery URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"dingxl"
] | dingxl |
00fa86ee62a77e85179879f323d588c8c5ec3b54 | 6c3a9a3235592d44254f61ed51d025cf11071030 | /task_3_2.py | ab57ed048f40bb25c4b12f16d8353796654cda0d | [] | no_license | stas1803/Data_Engineer | caa6ba662db679b3b4f972c38af353043874d337 | 5bec8ddc0323c503bd39f70a4ad1abdbd19fcadc | refs/heads/main | 2023-04-04T17:42:47.408875 | 2021-03-22T11:04:17 | 2021-03-22T11:04:17 | 349,364,995 | 0 | 0 | null | 2021-04-09T08:49:58 | 2021-03-19T09:18:27 | Python | UTF-8 | Python | false | false | 367 | py | def num_translate(number):
dig_2_str = {'one':'uno', 'two':'dos', 'three':'tres', 'four':'cuatro', 'five':'cinco'}
number_list = list(number)
number_low = number.lower()
if number_list[0].isupper() and number_low in dig_2_str:
print(dig_2_str.get(number_low).capitalize())
else:
print... | [
"stas1803@gmail.com"
] | stas1803@gmail.com |
4e5b44cede07a7e2b8c0b027274aa44993e86d83 | a29a5568437622310ff9e2ce61a3f114f29eb8fd | /all_CO2_workingWang.py | 64f5aaad3d8fba6cbf1f540482a11d01e7926834 | [] | no_license | wrudebusch/DRI-HKTunnel | 7bab2376e25be966d4d7e1515494632cf79c0c2d | 6211a0acafc7d00c0db5472390626ca0745b1634 | refs/heads/master | 2021-01-19T02:27:48.067781 | 2016-06-07T19:15:37 | 2016-06-07T19:15:37 | 52,547,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | import pandas as pd
import glob
dateparse = lambda x: pd.datetime.strptime(x, '%m/%d/%Y %H:%M:%S')
def fix(df):
start = pd.Timestamp(long(round(df.index[0].value, -10)))
stop = pd.Timestamp(long(round(df.index[-1].value, -10)))
s = pd.DataFrame({'start' : start,'stop' : stop,'avg_ppm' : df.mean()})
s ... | [
"wrudebusch@gmail.com"
] | wrudebusch@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.