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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06e9af435b48d5945c4ae92e1b4270ba096357cc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /iBqJcagS56wmDpe4x_7.py | 3acaa1ddc25b89eab9db4328cabbfff41f70461d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | """
The volume of a spherical shell is the difference between the enclosed volume
of the outer sphere and the enclosed volume of the inner sphere:

Create a function that takes `r1` and `r2` as arguments and re... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
60e7e6a4ff1e0a5d8fbcd8c79df4b3bdbd4ec063 | 079cde666810d916c49a9ac49189a929ad19e72f | /qiche/qiche/pipelines.py | 053e07626aa94cf4206aea50d4b46eb566fc3674 | [] | no_license | jokerix/demo | 82d01582a9882ac361766516d07c9ad700053768 | 7c0d7666f82ec78e9562956bb0f4482af8531ebb | refs/heads/master | 2021-07-14T02:47:28.686827 | 2020-07-03T15:16:32 | 2020-07-03T15:16:32 | 179,784,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import os
from urllib import request
from scrapy.pipelines.images import ImagesPipeline
from qiche import settings
class Qich... | [
"1215774897@qq.com"
] | 1215774897@qq.com |
ddfdd2f0efe461b056235acb80be18b8c1228721 | 34165333483426832b19830b927a955649199003 | /publish/library_app/reports/library_book_report.py | f1b54fc8a5cc254109a6f75a8fa9f9b3ecad1cee | [] | no_license | terroristhouse/Odoo12 | 2d4315293ac8ca489d9238f464d64bde4968a0a9 | d266943d7affdff110479656543521889b4855c9 | refs/heads/master | 2022-12-02T01:09:20.160285 | 2020-08-16T13:56:07 | 2020-08-16T13:56:07 | 283,630,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from odoo import fields,models
class BookReport(models.Model):
_name = 'library.book.report'
_description = 'Book Report'
_auto = False
name = fields.Char('Title')
publisher_id = fields.Many2one('res.partner')
date_published = fields.Date()
def init(self):
self.env.cr.execute("""... | [
"867940410@qq.com"
] | 867940410@qq.com |
a54dba4d3ebcdf78eb1020f011bb1570ffd11720 | 3595d51ff2499bb990b87a25b17516edf6907696 | /boards/models.py | a9fc0f9597a2654f291a202c6c60a21410fac535 | [
"Apache-2.0"
] | permissive | maxlipsky/infomate.club | 01fa55b3dfd318212b0c328dd48019b585d3ef9d | 9729b568622120f8cba3d22fefdcfba81d1b5b88 | refs/heads/master | 2020-12-08T19:53:37.231403 | 2020-01-16T19:04:14 | 2020-01-16T19:04:14 | 233,079,581 | 1 | 0 | Apache-2.0 | 2020-01-10T15:49:08 | 2020-01-10T15:49:07 | null | UTF-8 | Python | false | false | 6,435 | py | import uuid
from datetime import datetime, timedelta
from django.contrib.humanize.templatetags.humanize import naturaltime
from django.db import models
from slugify import slugify
from boards.icons import DOMAIN_ICONS
class Board(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editabl... | [
"me@vas3k.ru"
] | me@vas3k.ru |
99831b86797def2356ed377f20ea20834b08bcec | 94d4ccd443a37c8090a84d730d006edef869b816 | /recursion_and_backtracking/rat_in_maze.py | 8fde6e9bcdff326a7021e497c7d29b0c638e1f3d | [] | no_license | sudo-hemant/CP_CipherSchools | e0fc51d6f77f80709a88a7711ef6360f1fdd13e3 | 4f741f5f6fbbb182bd03135fb3180f5a40acbb1e | refs/heads/master | 2023-03-09T20:59:59.704014 | 2021-02-19T15:27:15 | 2021-02-19T15:27:15 | 338,825,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py |
# https://practice.geeksforgeeks.org/problems/rat-maze-with-multiple-jumps-1587115621/1/?track=DSASP-Backtracking&batchId=154
from collections import deque
def solve(n, maze):
res = [ [0 for i in range(n)] for j in range(n)]
if is_path(0, 0, res, n, maze):
print_sol(n, res)
else:
... | [
"sudohemant@gmail.com"
] | sudohemant@gmail.com |
4c0dfbd50ab31226a2bc8333c10ef07d96a180cf | e4d31420d7f79309adbbfce49151ffbf0660ed9c | /project/sla_dashboard/geit.py | 24e113041db6edcc7ed1e5afd6ab5b20cc0834be | [] | no_license | visionguo/python | c56321af5759e5c43d25871ab835850d5d91ea82 | 2de82e898524194b3b735835c044f078cc6ee5ba | refs/heads/master | 2022-12-18T17:21:25.899038 | 2021-08-26T12:30:47 | 2021-08-26T12:30:47 | 135,961,970 | 0 | 0 | null | 2022-12-08T01:56:56 | 2018-06-04T02:44:18 | HTML | UTF-8 | Python | false | false | 2,666 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Auther:VisionGuo
# Date:2018/08/29
# Brief:
# geit
# Globals:
# None
# Returns:
# succ:0
# fail:1
import requests
import json
from elasticsearch import Elasticsearch
from urllib import urlencode
from urllib import quote
import re
import shutil
import time
im... | [
"30895025+visionguo@users.noreply.github.com"
] | 30895025+visionguo@users.noreply.github.com |
0c34f38a5975e04f51eafd628a2120d9d8be371c | f6ab9a25c3e21a940a7564655b35255965277586 | /Season-One-lesson-Two.py | 7e0e9c530855a90c3d78819521dee6f1e8d9f998 | [] | no_license | YousefRashidi/Season-One-lesson-Two | 659de7b3caa5289504c80c4e9aa409c28b84b296 | 60152e0018984783d5482a9147f5a85e8e47b7ed | refs/heads/master | 2020-06-09T03:13:56.278110 | 2019-06-28T12:20:33 | 2019-06-28T12:20:33 | 193,359,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | # review
a = 1
b = 1.2
z = 1 + 5j
text = "hello"
cond = True
lst = [1 ,True ,1.2 ,"hello" , 1000]
print(lst[3])
# a-z A-Z 0-9 _
#
# my_var = 10
# snake_case_naming
# camelCaseNaming
# PascalCaseNaming
var = text + a
# -------------------------------------------------------
# str_methods
text = "heLLo"
text_up ... | [
"yusef.r.r@gmail.com"
] | yusef.r.r@gmail.com |
6fe53663c261f3ac799f8c34f29b111d263d3c73 | e2d9a6572046a61e8b0372c899ae178621d990e0 | /myblog/myweb/templatetags/blog_tags.py | 96958d8cd9567d0f90b5ea0567a3943ad93dcd73 | [] | no_license | luxinwang/myblog | 273b73e6887f7b74d5506b2ce8bf1028743343c5 | 0f9c0285794fecf7d11efdc295bd46aaed90694e | refs/heads/master | 2022-12-11T22:43:56.114871 | 2018-05-07T10:44:07 | 2018-05-07T10:44:07 | 132,446,132 | 0 | 0 | null | 2022-12-08T00:59:52 | 2018-05-07T10:40:44 | CSS | UTF-8 | Python | false | false | 695 | py | from django import template
from ..models import Post,Category,Tag
from django.db.models.aggregates import Count
register = template.Library()
# 最新文章标签
@register.simple_tag
def get_recent_posts(num=5):
return Post.objects.all().order_by('-create_time')[:num]
# 归档模板标签
@register.simple_tag
def archives():
retu... | [
"noreply@github.com"
] | luxinwang.noreply@github.com |
9ebd4f11813ec6c732064f8de6662f201382af4c | b36d29a441af7e05f5307a69042db6a42639fbe5 | /bookmarks/models.py | 343478f908069092148d92c87cf762063d73e737 | [] | no_license | VishalTaj/iFound | 90f0bb82cf9300b39e8f177aefef3f1401afa741 | b81b750e956d5ef51f4c46b2ad7016a0e60e01e1 | refs/heads/master | 2021-01-10T15:23:24.563510 | 2015-12-22T12:52:31 | 2015-12-22T12:52:31 | 48,431,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.db import models
from django.template.defaultfilters import slugify
class Bookmark(models.Model):
url = models.URLField(max_length=150)
slug = models.SlugField(max_length=150)
name = models.CharField(max_length=50)
description = models.TextField()
thumbnail = models.FileField(upload_to... | [
"vishaltajpm@gmail.com"
] | vishaltajpm@gmail.com |
3ff0de7975c7afb0e89a0caa130b293089928fee | 6fcf9267cbb05bc25623e72193bbb6278c4206c9 | /notifications/lambdas/cloudwatch-alarm-notification-handler/lambda_function.py | fb2dcc3241b566bee3dd007f55e2f1894595c1c6 | [
"MIT"
] | permissive | kagodarog/Infrastructure | 4ee0ba79e297196ad5f8f8fac18128a959951c4d | d309a7dcfd36c2f94ce383fe5d7ed6c76f59db5f | refs/heads/master | 2023-03-11T02:24:54.953960 | 2021-02-23T19:39:57 | 2021-02-23T19:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,027 | py | # Invoked by: SNS Subscription
# Returns: Error or status message
#
# Triggered by messages sent to various SNS topics resulting from CloudWatch
# Alarms being triggered or changing states.
import boto3
import os
import json
import urllib.parse
from dateutil.parser import parse
import datetime
import re
sns = boto3.c... | [
"chris@farski.com"
] | chris@farski.com |
70c7e0d3b15a0a5abbbb91472d8ea1a864bf77dc | 8a1ab23b056886965fec2a3e4064c5ed55e22bfb | /домашка/advanced/lesson 4/Diorditsa Ivan/socketserver_with_threads.py | a727041d4f250dcb1c56ffc95a3aced3a8cd17f7 | [] | no_license | django-group/python-itvdn | 5d8a59f06618f993d20d2f60374c36aae4ae8ab0 | 62ef87dfac947ed4bf1f5b6b890461f56814d893 | refs/heads/master | 2021-01-07T11:16:37.996524 | 2020-02-14T13:53:47 | 2020-02-14T13:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | import socketserver
users = []
class MyTCPHandler(socketserver.BaseRequestHandler):
def handle(self):
#import traceback
#traceback.print_stack()
#self.request.send(f'hello, I am ECHO server, please tell me your name: '.encode())
#name = self.request.recv(1000)
#self.reque... | [
"ivan.diorditsa@gmail.com"
] | ivan.diorditsa@gmail.com |
80edbd1d65d545f84f4122c4822dc23a4c57785d | 70d39e4ee19154a62e8c82467ef75b601e584738 | /pyth3/mysql/just_mysql_pandas_things_.py | 84e264411f2cd3f02839fd45febb7a3e86ce9f2e | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 6,634 | py | # MySQL Querying Using Pandas
# Author: Elena Adlaf
# Version 1.2, 10/16/17
# This Python file shows how to query results from table, 't', in database, 'af', stored on a local MySQL server while
# importing the values directly into a Pandas dataframe.
# The table lists details about pieces created by the custom furnit... | [
"noreply@github.com"
] | babywyrm.noreply@github.com |
bc8268af631131bd13dd39a95f902b0502e60268 | 5cd925e6e430f776831187f0f17173c5499b69ce | /VAE/helper.py | 4108e94810fda4309584cc60bbb0a21ee1786d5f | [] | no_license | AI-Composer/AIComposer | 8e51dfb0eb5f2f9c144d81ad8650375a80d9a826 | 7b97fa833fc6a878d69d61162d6013114691613d | refs/heads/master | 2022-11-06T10:53:54.326030 | 2020-06-21T15:05:05 | 2020-06-21T15:05:05 | 259,961,954 | 1 | 0 | null | 2020-05-31T02:57:53 | 2020-04-29T15:16:59 | Python | UTF-8 | Python | false | false | 1,575 | py | from VAE.model import VAENet
def train(model, loader, epoch_num=10, batch_num=600, save=None,
summary=False):
"""Helper function for training
Args:
model: VAENet
loader: loader defined in data.py
Returns:
None
"""
assert isinstance(
model,
VAENet),... | [
"liwei17@mails.tsinghua.edu.cn"
] | liwei17@mails.tsinghua.edu.cn |
66d48cedc859b5320c861c0f2e4941dccf9152ec | 7facaf55129c8de415ffa1630adbf8ff525af448 | /portfolioapp/models.py | e06118e409f56139d3d3fa1c7c2cc8da0d2fbdef | [] | no_license | lornakamau/old-portfolio | 16424aa30b3c956f0fc130298d4cde253b0ae332 | 4e9c3cde8217c69c8a6728ef2f8a8ad85c5f2520 | refs/heads/master | 2023-03-29T07:30:03.426605 | 2020-08-08T12:02:28 | 2020-08-08T12:02:28 | 358,271,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.db import models
from cloudinary.models import CloudinaryField
class Project(models.Model):
name = models.CharField(max_length = 30)
screenshot = CloudinaryField('Project screenshot')
languages = models.TextField()
short_description = models.TextField(default="short description")
long_d... | [
"kamaulorna@gmail.com"
] | kamaulorna@gmail.com |
7623abdd14407d403d71964e37efedcc8550f929 | 17277a741082f276a490558fcc735fa529b45a0b | /src/python/rpc_lib/util/headers.py | 8490320b16d1c84dbfe3d33b98194d727996f6a7 | [] | no_license | divar-ir/rpc-lib | 7a11f0a8ed3df9e229bc5944277c9586b5673374 | f32bdc1efb1dca90010f8fdd6fab6b7538007695 | refs/heads/master | 2023-01-12T06:56:31.803993 | 2019-06-19T11:34:52 | 2019-06-19T11:34:52 | 192,557,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from rpc_lib import call_info_pb2
from rpc_lib.common import specialization
from rpc_lib.util.proto_encoding import decode_from_base64
HTTP_INTERNAL_STATE_HEADER = 'x-internal-state-bin'
HTTP_INTERNAL_TRACE_INFO_HEADER = 'x-internal-trace-info-bin'
def get_state(headers):
encoded_state = headers.get(HTTP_INTERNA... | [
"mirzazadeh@divar.ir"
] | mirzazadeh@divar.ir |
30341627603cc0e51fee56d6cecd002a5c6b866b | b86f9b0bb909d5f809acb776f270afbcf49fffe5 | /AOC_2019_4/2.py | 51968f2dbce473a4a0821a161efc5e76bea75b2c | [] | no_license | ternovandarius/Advent-of-Code-2019 | 58a4686c8c3f3b8a9255131341f26008f75b0783 | cb1273b9d32e44d37f51da15d11cbd30f3c53804 | refs/heads/master | 2021-02-06T22:57:18.814370 | 2020-02-29T11:21:33 | 2020-02-29T11:21:33 | 243,955,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | def verify(nr):
prev_digit=nr//100000
digit_count=[0]*10
for i in range(4,-1,-1):
x=10**i
curr_digit=nr//x%10
if prev_digit<curr_digit:
prev_digit=curr_digit
else:
if prev_digit==curr_digit:
digit_count[prev_digit]+=1
else:
return False
for i in digit_count:
if i==1:
return True
retur... | [
"52597957+ternovandarius@users.noreply.github.com"
] | 52597957+ternovandarius@users.noreply.github.com |
a46bb397830f9b590558e4c74bce17ec6435f80a | ba781c7044289ad7b4df8baa4c910cdaf99325df | /srtMacro.py | 312ff3209d21cd72c533e1248a57f2785587f9f4 | [] | no_license | morningM00N/bg | 8751f10012698abc71cd1426dda48b060517b332 | 7b3fe39e787f8a1ae363289718578db71f7bc7e1 | refs/heads/master | 2023-08-17T21:35:39.101390 | 2023-08-03T12:04:57 | 2023-08-03T12:04:57 | 237,815,283 | 0 | 4 | null | 2021-09-30T12:43:56 | 2020-02-02T18:21:01 | JavaScript | UTF-8 | Python | false | false | 7,475 | py | import datetime
from time import sleep
from pytest import ExitCode
from selenium import webdriver
#from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Ke... | [
"abcdeei888@gmail.com"
] | abcdeei888@gmail.com |
b8241865b3838ea090162eb428a1c8b48348b10e | e692a9074d21c456dbdcb938ce7c74d8254f6ad9 | /Module 010/module 010.py | 815c2efdfd0e3789bf37330b86d323acc2079d0b | [] | no_license | Marius-Juston/ECE-110 | e29b08d5a305a315467635a138ef62a1a638e4ed | 962761b9bb23b02cc2a687bc691d568db8c82b31 | refs/heads/master | 2022-05-29T08:17:58.809019 | 2020-05-05T16:48:45 | 2020-05-05T16:48:45 | 261,530,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.axes import Axes
from matplotlib.figure import Figure
if __name__ == '__main__':
with open('data-20200502-1713.circuitjs.txt', 'r') as file:
time_step = float(file.readline().split(' ')[4])
lines = tuple(map(int, file.readlines()))... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
63197e89258eac92b49c04a9513497c8358c6fb0 | 5eb338adeb89578b5bba38806f32fec6f0214630 | /lists/admin.py | 3db2a0f2394c2c19fb30f088d3485111bfbc8dc7 | [] | no_license | rkqhed1212/airbnb_clone | 68172ef7c65a6e768ab5d88c01a04c597636e0ce | 95b64850f0a91caeda7ead2a68ed43f7af8ec094 | refs/heads/master | 2023-05-26T09:47:19.836415 | 2021-06-09T00:18:06 | 2021-06-09T00:18:06 | 356,840,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | from django.contrib import admin
from . import models
@admin.register(models.List)
class ListAdmin(admin.ModelAdmin):
list_display = ("name", "user", "count_rooms")
search_fields = ("name", )
filter_horizontal = ("rooms",) | [
"rkqehd12@gmail.com"
] | rkqehd12@gmail.com |
4f60904ee1b4d115733e252787995abcd5e5a4a9 | 1a255b72d424be9bb557f2bf1a3d58bf41408571 | /0x0B-python-input_output/11-student.py | ce30c049801682d2bc56630aea11cb773ce75735 | [] | no_license | wassimbel/holbertonschool-higher_level_programming | b5cbde2a3d0fd37bf934f23554be05af0f5380bd | 301af526ea2e664fd4aea82b64c8940b7e9fd6a4 | refs/heads/master | 2023-02-28T09:33:06.017399 | 2021-02-08T23:49:22 | 2021-02-08T23:49:22 | 259,407,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python3
""" module - class Student """
class Student():
""" class Student that defines a student """
def __init__(self, first_name, last_name, age):
""" initialize self """
self.first_name = first_name
self.last_name = last_name
self.age = age
def to_json(self)... | [
"wassim.belhedi1@gmail.com"
] | wassim.belhedi1@gmail.com |
9dfbbe965c519f29355baf5a53a6bbd69ffcd861 | 29a57a4df2e7b005f102030d4e517c0171104ce7 | /20210724/TofPandas.py | c43ec87cc4a2fa6a9e5ee2e9d7910543e795cbea | [] | no_license | altroy2554/DB | 26abdae31983d4640e77a585c54930fe6ecf2cce | 24ba6348e68aad66543d08699d30b6f3b5a2968b | refs/heads/main | 2023-07-07T07:22:24.721761 | 2021-08-07T07:49:15 | 2021-08-07T07:49:15 | 389,016,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import numpy as np
import pandas as pd
a =pd.Series([1,2,3])
nameSer = pd.Series(['name1','name2','name3'])
age = pd.Series([10,20,30])
gender=pd.Series(['남','여','남'])
grade = pd.Series(['A','A','A'])
df = pd.DataFrame({'이름':nameSer,
'나이':age,
'성... | [
"noreply@github.com"
] | altroy2554.noreply@github.com |
0310f4acd6676b09b41ba7b6b8c976f8351254cd | a00464ca9ad8cca1ba6a1349be2637f287cadd40 | /myTwitter/urls.py | 53fee002f3969ee4d6a1c3b4f8afad30c8a926a1 | [] | no_license | sannee4/myTwitter | 0611e8a413971a2734b68a298e298ae91abfa789 | 12be47962a58e4312addbb32ef481b0f0115dcb7 | refs/heads/master | 2021-02-08T19:57:24.029388 | 2020-03-01T17:18:12 | 2020-03-01T17:18:12 | 244,190,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """myTwitter URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-bas... | [
"mellnikovaaaa@gmail.com"
] | mellnikovaaaa@gmail.com |
4ae49460f06822543fc2ff34e14d8fef115016f7 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/abc.py | 37d2a8d88679def4d589700c441407cc6fa1a0d0 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,294 | py | # 2015.11.10 21:32:36 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/abc.py
"""Abstract Base Classes (ABCs) according to PEP 3119."""
import types
from _weakrefset import WeakSet
class _C:
pass
_InstanceType = type(_C())
def abstractmethod(funcobj):
"""A decorator indicating abstract me... | [
"info@webium.sk"
] | info@webium.sk |
4a5537829c493633c4f10247ebb6978fcf02f5a0 | 772ae58698fee964c3c96cabe47a81d21faa8ed4 | /src/interpreter/preprocessor.py | 2b795daf6d5eaffbab99e096a8fafb7135454e6e | [] | no_license | pkkim/lisp_interpreter | 7659f18403b87b055ea239a0591cdfe7acadfba5 | a0a18fe87338af3201d773cb5516aa942b7f1064 | refs/heads/master | 2020-05-24T19:25:38.057140 | 2019-09-09T03:57:47 | 2019-09-09T03:57:47 | 187,434,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | def remove_comments(code):
result = []
for line in code.splitlines():
try:
comment_index = line.index(';')
except ValueError:
result.append(line)
else:
result.append(line[:comment_index])
return '\n'.join(result)
| [
"paulkimpaul@gmail.com"
] | paulkimpaul@gmail.com |
124a52883b2e8b845f66680efc60602a83c8ce79 | 73e76f353da63506ef2343823f4b676e77ed4bde | /bin/setup.py | 2c0b96ea08db80c83160fe4708844ac9d3605721 | [] | no_license | josecamachop/FCParser | 2b46a11957a5f071f24034e3e51282bbaf73b908 | 959c10679eefcd9479aa8522b63dc054ac5e05cd | refs/heads/master | 2023-08-07T15:10:18.652678 | 2023-07-31T05:44:49 | 2023-07-31T05:44:49 | 98,178,477 | 9 | 5 | null | 2021-06-09T11:26:15 | 2017-07-24T10:23:40 | Python | UTF-8 | Python | false | false | 449 | py | from setuptools import setup
setup(name='fcparser',
version='1.0',
description='Feature as a counter parser',
url='https://github.com/josecamachop/FCParser',
author='Alejandro Perez Villegas, Jose Manuel Garcia Gimenez',
author_email='alextoni@gmail.com, jgarciag@ugr.es',
license='G... | [
"josecamacho@ugr.es"
] | josecamacho@ugr.es |
e30a14b57b614478ccad24bb5f5f92ebf782cfba | e0db388d3f3fef89b27875fb88bd509f5ad70927 | /strStr.py | 1a3413c5f5c2e30adc7ff7e50babd926aae4da78 | [] | no_license | AkiraXD0712/LeetCode-Exercises | 770fff5d10931272cf35776abd9ebaf0cade656a | 3b4d4963bebe7c0b04d420cb1920ad6928615e4a | refs/heads/master | 2020-03-18T19:34:32.168249 | 2018-07-05T08:15:37 | 2018-07-05T08:15:37 | 135,162,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | '''
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Clarification:
What should we return when needle is an empty string? This is a great question to ask during an interview.
For the purpose of this problem, we will return 0 when needle is an empty string.
This... | [
"akirachen0712@gmail.com"
] | akirachen0712@gmail.com |
2ebb0b0a02c0f0f1bcd8b3987a74b01fa6e79e70 | 003543c7ef10ef82dcea4c5da89a225a9fcf16a5 | /tests/data/multipoint_beam/i_comp_base.py | fb8cc409f44d2e903eab5641b3f8531f86f932e4 | [
"Apache-2.0"
] | permissive | relf/WhatsOpt-CLI | 20dda7a71fd59faa1203ee4022610e1cfe3a1e14 | a8779638763681b4f4f85df532a9de8813a705ca | refs/heads/master | 2023-07-14T02:50:02.648427 | 2023-06-27T13:41:09 | 2023-06-27T13:41:09 | 216,215,138 | 0 | 0 | Apache-2.0 | 2019-10-19T14:00:40 | 2019-10-19T14:00:39 | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
"""
i_comp_base.py generated by WhatsOpt 1.8.2
"""
# DO NOT EDIT unless you know what you are doing
# whatsopt_url: https://ether.onera.fr/whatsopt
# analysis_id: 4
import numpy as np
from numpy import nan
from os import path
from importlib import import_module
from openmdao.api import Expli... | [
"remi.lafage@onera.fr"
] | remi.lafage@onera.fr |
929a5f3d621e47e2687b81ab050783331e6f6cf7 | 4520ce2f35605048db290c767c620bf629735295 | /Compiler/parser.py | e2813f377445f68648d471fa89b9c5b2db414db8 | [] | no_license | william-nguyen128/PPL-Project | 66bf25056ef0440631785e850c63d099dc97272c | c07bd3e416e5de9f99db96ddb252201af29dc12b | refs/heads/main | 2023-04-21T18:23:15.754934 | 2021-05-19T14:01:34 | 2021-05-19T14:01:34 | 368,231,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,968 | py | from rply import ParserGenerator
from .JSONparsedTree import Node
from .AbstractSyntaxTree import *
from .errors import *
# State instance which gets passed to parser !
class ParserState(object):
def __init__(self):
# We want to hold a dict of global-declared variables & functions.
self.variables ... | [
"quannguyen.flagship@gmail.com"
] | quannguyen.flagship@gmail.com |
20965d57bf76e26a205182ffc8240ddad375cf2b | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Rds20140815DescribeModifyParameterLogRequest.py | a738e55de39ed911b27aa2c242f097a771646719 | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | '''
Created by auto_sdk on 2015.06.02
'''
from aliyun.api.base import RestApi
class Rds20140815DescribeModifyParameterLogRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DBInstanceId = None
self.EndTime = None
self.PageNumber = None
se... | [
"snowyxx@126.com"
] | snowyxx@126.com |
1cf471f736f9047d1985610fbf89b38dffb9bb5d | aeeaf40350a652d96a392010071df8a486c6e79f | /archive/python/Python/binary_search/374.guess-number-higher-or-lower.py | 1f51d98818399ede0698e42d7d7bd0cde96a1879 | [
"MIT"
] | permissive | linfengzhou/LeetCode | 11e6c12ce43cf0053d86437b369a2337e6009be3 | cb2ed3524431aea2b204fe66797f9850bbe506a9 | refs/heads/master | 2021-01-23T19:34:37.016755 | 2018-04-30T20:44:40 | 2018-04-30T20:44:40 | 53,916,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
# def guess(num):
class Solution(object):
def guessNumber(self, n):
"""
:type n: int
:rtype: int
"""
| [
"luke.zlf@gmail.com"
] | luke.zlf@gmail.com |
602df5b5ae465bb4f6010ed5a2706665ddb9270e | 5c12bfe2c4b661986d2740aa48a402fd2fd01703 | /idlak-voice-build/pythonlib/example.py | a5bb488cea822f594fbc2031ed430ad0fb225db9 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | oplatek/idlak | fea41d797b862f5382bd17c0ca8349b346cb44d7 | 02b24dc6f79b84779e423bfbb17bdf8e70c95aec | refs/heads/import-svn-idlak | 2021-01-11T04:41:39.367915 | 2016-09-14T18:13:52 | 2016-09-14T18:13:52 | 71,112,898 | 0 | 0 | NOASSERTION | 2020-02-20T13:09:34 | 2016-10-17T07:48:11 | C++ | UTF-8 | Python | false | false | 2,121 | py | # Uses python wrappers to print out a context dependency tree
import os, sys
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
# load idlakapi wrapper
sys.path += [os.path.join(SCRIPT_DIR, 'pythonlib')]
import idlakapi
class KaldiTree:
def __init__(self, treedata):
pass
# only works for binar... | [
"blaise@cereproc.com"
] | blaise@cereproc.com |
ad362e3742a78615236e5dd290559259c4b7533e | d9f86239a5cac359d09bea5ca0a671994a1ab0a0 | /mars/serialization/numpy.py | 932bac2e6b52bb34b0460c57cc1730963b71b5e0 | [
"BSD-3-Clause",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | SimonCqk/mars | 43ae0104c1d9681f7d34d3d859fb29d83856b8e0 | 167f1b70e074f01fa8dce4b771c4a42bd73a5587 | refs/heads/master | 2023-03-12T02:28:21.199968 | 2021-03-02T08:46:17 | 2021-03-02T08:46:17 | 319,231,908 | 0 | 0 | Apache-2.0 | 2020-12-07T07:01:34 | 2020-12-07T07:01:33 | null | UTF-8 | Python | false | false | 1,842 | py | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... | [
"noreply@github.com"
] | SimonCqk.noreply@github.com |
3585f52a7877b9c940a3270f4b4e14c82136bb34 | f5d0e85b40c5f25a5ac05458915121fe572d0253 | /final_project/db/orm_builder.py | ff7a82ae36e1ead64ea7eab005a54eec016a7c0f | [] | no_license | Salex406/2020-1-Atom-QA-Python-A-Zharikov | f06756c5dd5c2d2676989923c4861b43178859de | ff018f33cc38d5b0c15e37701a9c5fd8e6b35c9d | refs/heads/master | 2022-12-12T01:09:33.958453 | 2020-05-29T11:56:28 | 2020-05-29T11:56:28 | 243,089,696 | 0 | 0 | null | 2022-12-08T04:08:06 | 2020-02-25T19:56:01 | Python | UTF-8 | Python | false | false | 1,970 | py | from db.orm_model import Base, User
from db.mysql_orm_client import MysqlOrmConnection
class MysqlOrmBuilder:
def __init__(self, connection: MysqlOrmConnection):
self.connection = connection
#self.engine = connection.connection.engine
def add_user(self, user):
self.connection.session... | [
"noreply@github.com"
] | Salex406.noreply@github.com |
4c8dfd726327d3951104e170186c23e037872432 | 0b83d3dfaaf0ead56567a1b95bfc51ade0113ada | /knowledge_graph/sentiment_analysis/stock_sentiment.py | 42929c3d1c51844a74ece101a060b740fc786f30 | [] | no_license | wagaman/deep_learning | 8ad76fb153ae9e87b351a2afef79da9985e66ea0 | 815a5706183063522d5a26c321b047ee1ab812cf | refs/heads/master | 2020-06-16T19:13:19.918883 | 2018-09-17T08:40:56 | 2018-09-17T08:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,887 | py | # -*- coding: utf-8 -*-
from sqlalchemy import create_engine
from sqlalchemy import MetaData
from sqlalchemy import Column, Integer, String, DateTime
from sqlalchemy import Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
import numpy as np
import pandas as pd
from ylib i... | [
"victor.wuv@gmail.com"
] | victor.wuv@gmail.com |
97191e8af03f621938f6eedc22b25d168d508737 | e0bb6e1e7d4091283db64efb879f3d6d665c6bdd | /backend/branding_env/bin/f2py | 0b20e25eb202fb4c377a52c7af8696227a021c9c | [] | no_license | akshitaggar123/PhishingCheckTool | 3c2adebf3ea15ca84b0fc5ddfb7abef81a565de7 | 5577b42723cf34d4328c49e16fc9d5aa63f1e576 | refs/heads/master | 2023-06-15T16:37:51.224792 | 2021-07-15T07:10:13 | 2021-07-15T07:10:13 | 386,191,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | #!/home/atharva/Desktop/DP/branding/backend/branding_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nick.talman@capexmove.io"
] | nick.talman@capexmove.io | |
2c4e9748a4fe10c33bdca30bdba1637018100b86 | 9ec4bc3cdba9e46fe05712daeec3e35f5b6bb704 | /hallicrafter2/device/ics.py | ce1fe1212d2c1fc2085fe53bbaeb7981d6a1c3fd | [] | no_license | derekmerck/hallicrafter | 04d7d31017079fcc0c9c9361ad7e653f6e0e6418 | b9439bb9f9b311ca1f8a224ce25c64c836901381 | refs/heads/master | 2020-06-02T03:23:23.086094 | 2019-09-03T02:06:03 | 2019-09-03T02:06:03 | 191,018,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from .device import Device
class SirenIC(Device):
# Control a UM3561 ic
# See https://www.instructables.com/id/Siren-Generation-using-IC-UM3561/ for pinout
#
# 1. sel1
# 2. gnd
# 3. out -> 10k ohm -> NPN transistor that drives speaker gnd line
# 4. not connected (testing)
# 5. active ... | [
"derek_merck@brown.edu"
] | derek_merck@brown.edu |
0b256fb682b243b39e161f749081d6496bf0d471 | 4e763658dac306478683838040bd7c22ce54ab3a | /data_processing.py | df9556a3bf51919a5109da6c65f22fb5d603dd32 | [] | no_license | umd-fire-coml/FFNet | 6ab1e07e625213ee12c5c537f08791fdbdb4f7c4 | 978b7750573fec436dff29d1e0bd97ee246b25cd | refs/heads/master | 2022-03-10T21:27:35.346350 | 2019-11-17T14:53:05 | 2019-11-17T14:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,279 | py | import scipy.misc
import random
import numpy as np
import copy
import sys
img_path = '/home/speit_ie02/Data/KITTI/kitti_data/training/image_2/'
label_path = '/home/speit_ie02/Data/KITTI/kitti_data/training/label_2/'
# FFNet needs a 2D object detection model or 2D object detection result for KITTI evaluation
# define ... | [
"charliezhao1999@outlook.com"
] | charliezhao1999@outlook.com |
0ee78e09a3e33d80fdaf3e6cd8ff693dad687420 | 1c92a6a5e0b1cfb57a9736ac0b723ec9ead67043 | /api/models.py | 0fe64a85788844c2d3a90cf1a52d933acf20370e | [
"MIT"
] | permissive | zlalanne/buildnumber.io | c969966e963be685b49258251ce0917407ebc364 | 206c89c26081344269eb717c3695d82337872118 | refs/heads/master | 2021-01-18T13:46:03.972621 | 2016-01-21T07:17:53 | 2016-01-21T07:17:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from __future__ import unicode_literals
import random
from django.db import models
from jsonfield import JSONField
class Account(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
class AccountEmail(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
account = models.For... | [
"lois.diqual@gmail.com"
] | lois.diqual@gmail.com |
96e13ce85156c34b4c16aa46eb26cb5774458507 | b9e5aebb49734ad47825130529bd64e59f690ecf | /chapter_9/die.py | 6c02c0f3e4e49e928c96c1881f050c10ddd4aaf1 | [] | no_license | mikegirenko/python-learning | dab0f67d990d95035f93720986c84aaf422f7a9f | db9e3f0e3897caf703169d1f14b15a9aa1901161 | refs/heads/master | 2021-07-09T08:03:40.535653 | 2020-08-05T00:13:41 | 2020-08-05T00:13:41 | 169,983,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from random import randint
class Die:
def __init__(self, sides=6):
self. sides = sides
def roll_die(self):
print('\t', randint(1, self.sides))
print('Printing 6 sided roll:')
six_sided_roll = Die()
for i in range(1, 11):
six_sided_roll.roll_die()
print('Printing 10 sided roll:')
ten_si... | [
"mike.girenko@cybergrx.com"
] | mike.girenko@cybergrx.com |
9206cd0f235f493f39979d12a0205b3cff78c29e | c0e0139b500ec059931a73a150073db60a8b073c | /code/main_candidates.py | 096f9c3e6551760d2397a90e97166956f13596eb | [] | no_license | christopher-rowe/spotify_modeling | a3a1bc721694cba080b9a39f17345b0e9605f392 | f52160fbe2aaaa0f15fcef0625c53f4d96e461ce | refs/heads/master | 2022-12-29T10:06:33.248596 | 2020-10-12T01:57:28 | 2020-10-12T01:57:28 | 288,016,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,918 | py |
# File name: main_candidates.py
# Description: Identify and add candidates to data_candidates spotify playlist
# Author: Chris Rowe
import os
import random
import pandas as pd
import numpy as np
import pickle
import spotify_modeling as sm
from config import *
def main():
# import models
print("Importing mod... | [
"chris.lloyd.rowe@gmail.com"
] | chris.lloyd.rowe@gmail.com |
4ddf466dbc7cfe2e9e293e24597ae8ecf2601c0d | b083965e04d5dbc0389c2c2ee8fbbf30d60f7647 | /blog/migrations/0001_initial.py | 1e56b680fcacdd4fae765cb00c4168f2f4bd60bd | [] | no_license | JoannaTamas/moviedb1 | 1e8cce5921302eedfba289e63e2e01c2d0cb2861 | 7ea773c5c0f81129170c0a0afc9d66126bda8171 | refs/heads/master | 2020-04-06T14:45:06.671210 | 2018-11-14T13:00:15 | 2018-11-14T13:00:15 | 157,553,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 2.0.9 on 2018-11-13 21:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movies',
fields=[
('id', mo... | [
"tamas_yoana@yahoo.ro"
] | tamas_yoana@yahoo.ro |
b985a285791f135dc77e03e0e840812e7dbfbb74 | 5107c33d9466f67266cd5bb936461beab60a5a4f | /was-config-scripts/start-stop-server-sample.py | 34dda5d2b22c1b14c99fb8871ef4dc529ccad8be | [] | no_license | huy/was_scripts | 1158dcf7fc24190efa3322bb750289e31bd78cd1 | 4eb293489d570109a3a094238d7bec33ce81b88e | refs/heads/master | 2021-01-10T22:06:33.857375 | 2011-10-03T04:22:06 | 2011-10-03T04:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | nodeName='FCASAWNODE01'
serverName='Sample'
AdminControl.startServer(serverName,nodeName)
AdminControl.stopServer(serverName,nodeName)
| [
"lehuy20@gmail.com"
] | lehuy20@gmail.com |
f7847724a46f8376bfbee1a9af9c8aa2252c04fc | 33942b1ad1f8468dd5c981c66eaacd858b76a6c5 | /spider.py | 045b552e352e8f39cce693d6b553dee34c37ccc6 | [] | no_license | ldcx1/gad-python-gr-2 | 7eb10d95c10c32a0deb507c153a5636c8d9d4560 | ccb28e04b652460e2946d587b647be89367cfa06 | refs/heads/main | 2023-06-12T23:12:23.635823 | 2021-07-01T18:20:37 | 2021-07-01T18:20:37 | 364,982,913 | 0 | 0 | null | 2021-07-01T18:20:38 | 2021-05-06T17:09:22 | Python | UTF-8 | Python | false | false | 671 | py | import requests
from bs4 import BeautifulSoup
URL = 'https://lpf.ro/liga-1'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
stage_table = soup.find(class_='clasament_general white-shadow etape_meciuri')
#print(stage_table.prettify())
team_rows1 = stage_table.find_all(class_='echipa-etapa-1... | [
"lese.d@yahoo.com"
] | lese.d@yahoo.com |
fff111530074c14c0b4cbac42013951e18ba2e39 | 31b52f5d90f650d79b0b047b63c735abf2b66eed | /deploying_simple_api/wsgi.py | 48ef4462a781585fa99e8f24d65b6ae7f295c458 | [] | no_license | kawiraanitah/Working-with-images.md | 80016cf80e98527e05b0e3686f2a413dc334458f | bdcf08d5a9c945d59c98d0a7ba8efee39abc539a | refs/heads/master | 2021-07-23T01:47:29.037097 | 2017-10-31T10:16:23 | 2017-10-31T10:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
WSGI config for deploying_simple_api project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"annitahkawira@gmail.com"
] | annitahkawira@gmail.com |
dd422b4ebe4b9e6aeb1fc219d30133cd31641577 | 296287f05a1efed570b8da9ce56d3f6492126d73 | /snippets/draw_text_in_image.py | fcbb7d055099100cada3113b7ce8812f110ddacb | [] | no_license | formazione/python_book | 145f8a2598b6b75736a7c33a796b9fdd8cff668e | d7822b312c1db028bb70e25385a74b227a9a2609 | refs/heads/main | 2023-07-05T20:15:18.166771 | 2021-08-12T14:14:25 | 2021-08-12T14:14:25 | 320,499,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from PIL import Image,ImageDraw,ImageFont
import tkinter as tk
def create_img_with_text(text=""):
if text == "":
text = "Pythonprogramming.altervista.org"
# sample text and font
unicode_text = u"Pythonprogramming.altervista.org"
font = ImageFont.truetype(
"C:\\Program Files\\Android\\Android Studio\\jre\\jre\... | [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
593e53c60f0516295d431c9288b9ff7fae2deb8e | 15e586540892790d42a1ecb930f7fc5c7e50328e | /backend/util/__init__.py | 634cd9575dd342fe1d771e4f68d1e140a10adfe0 | [
"Apache-2.0"
] | permissive | felixu1992/testing-platform | f6a73ffcfd839e4d79e0bd5eb1d0c1292bcc5b57 | d7008343c25ec7f47acb670ae5c9b9b5f0593d63 | refs/heads/main | 2023-07-03T08:57:33.272071 | 2021-08-13T12:16:36 | 2021-08-13T12:16:36 | 310,037,662 | 0 | 0 | null | 2020-12-24T06:40:00 | 2020-11-04T15:09:15 | Python | UTF-8 | Python | false | false | 175 | py | from backend.util.jwt_token import Security, UserHolder
from backend.util.resp_data import Response
from backend.util.utils import *
from backend.util.execute import Executor
| [
"xufei_0320@163.com"
] | xufei_0320@163.com |
f8daba901324d5ea0615121beabf40a701c230a2 | c9ee7bd79a504597a32eac0d78e54d29ee139572 | /00_algorithm/Stage1/06_Recursion/problem1.py | 2800efe2ce84e24a74f138372160bd8dfa3988a9 | [] | no_license | owenyi/encore | eb3424594da3f67c304a8a9453fc2813d4bbba0d | 878ca04f87050a27aa68b98cba0c997e9f740d5d | refs/heads/main | 2023-07-13T10:08:24.626014 | 2021-08-23T13:40:54 | 2021-08-23T13:40:54 | 349,922,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # 10829 이진수변환-재귀...좀 더러움
def toBin(dec, bin=''):
if dec == 1: return int('1' + bin)
bin = str(dec % 2) + bin
return toBin(dec // 2, bin)
N = int(input())
print(toBin(N)) | [
"67588446+owenyi@users.noreply.github.com"
] | 67588446+owenyi@users.noreply.github.com |
56b0642ed03574de0e00e8f080073b4c32e42527 | 7df6d8f83b3359c6013c6e2be60b3ad0c54fae70 | /CraneOffer/Crane_offer_excel_to_Json.py | 72b86f1bbdbe06ac046426c78ffb635fa63ecff9 | [] | no_license | wangshuai917/Gamedev_Tools | 3bdf9e81d4596f52086ab3b49cd419e3ef52fb9c | 911d351e9bfd8bb3ac440c7d1f0c984e0c9f99da | refs/heads/master | 2023-07-07T19:37:24.870409 | 2021-08-11T10:15:54 | 2021-08-11T10:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,614 | py | from openpyxl import load_workbook
import json
import os
work_dir = os.getcwd()
xlsx_dir = "CraneOfferconfigs.xlsx"
workbook_dir = os.path.join(work_dir, xlsx_dir)
print(workbook_dir)
json_file_name = "CraneOfferConfig.json"
json_dir = os.path.join(work_dir, json_file_name)
print(json_dir)
wb = load_workbook(workbo... | [
"1446598178@qq.com"
] | 1446598178@qq.com |
078c40258e6bf4fcda2fc2317f847dddfb2bce21 | 83292e8ee5b14a30f61dcaf3067129e161832366 | /douban_film.py | a798c36cfe2919cb8fa74d911c62c1883780d1e7 | [] | no_license | A620-Work-Exchange/Application-Integration | 19197513f1aef67f27b4b984a736cd28ff9c8ac1 | baada55dd1b988112afd6bd4dc781670983337b8 | refs/heads/master | 2020-05-20T20:03:38.842375 | 2019-05-18T09:11:20 | 2019-05-18T09:11:20 | 185,736,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from urllib.request import urlopen
from time import sleep
import requests
from json_util import JsonUtil
import json
def get_top_film():
url = 'https://api.douban.com/v2/movie/top250'
for start in range(0, 250, 50):
req = requests.get(url, params={'start': start, 'count': 50})
data = req.json... | [
"2529716798@qq.com"
] | 2529716798@qq.com |
f2e7f0e94bba710d8fdae5692b1f3256e1ae55d1 | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /submissions/migrations/0002_auto_20161028_0540.py | cd60356ef018a13dc5711524a56d9a60a4a3a77a | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 2,187 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-28 05:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('usermg... | [
"madison.scott-clary@canonical.com"
] | madison.scott-clary@canonical.com |
6a1e582aac50b2b48c3932c39d9ce9c576a88e4f | b9cb8cccc9d2fb0f647ca76010347687d61e5cc9 | /quotes/migrations/0006_ticker.py | d347ade992ccd09930722496f5ac2319bb3201a5 | [] | no_license | jyothis-thomas/stocker-application-final | 5ef5e24200af0f37e8749830725cdc8f3f3c48e0 | 2ee2f7d2e8dfcc740ca0b97f9dce62c2a041f32c | refs/heads/master | 2021-06-24T00:56:44.343861 | 2019-11-15T07:31:04 | 2019-11-15T07:31:04 | 218,010,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 2.2.5 on 2019-10-15 12:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quotes', '0005_auto_20191009_0839'),
]
operations = [
migrations.CreateModel(
name='ticker',
fields=[
... | [
"jyothisth@gmail.com"
] | jyothisth@gmail.com |
46411143ff9e2fc8dddc42ad13fee63873328438 | 26290167d60075c12e04a95cd0ce87c70ec5a06c | /Aula 9/Exc5.py | 0201a7dc940b7d4a2d8c9fc36ee30ee0802105e3 | [] | no_license | jmveronez/Exercicios | d4186538e5236a947ad9bf3eee45236d20303855 | dffae0f9621b57c71dd9403ceefec49385213947 | refs/heads/main | 2023-04-21T08:27:23.129966 | 2021-06-01T01:45:36 | 2021-06-01T01:45:36 | 366,562,078 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #5. O Sr. Manoel Joaquim expandiu seus negócios para além dos negócios de 1,99
# e agora possui uma loja de conveniências. Faça um programa que implemente uma
# caixa registradora rudimentar. O programa deverá receber um número desconhecido
# de valores referentes aos preços das mercadorias. Um valor zero deve ser i... | [
"jmveronez234@gmail.com"
] | jmveronez234@gmail.com |
ee3dbda8b19a10b1e5348fd84e2fbaa94ac30ee0 | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/properties/minPressureSetpoint.py | 37a8d2471523d2fe28bceff3606f5ef910265dfe | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | """minPressureSetpoint standard property type, originally defined in resource
file set standard 00:00:00:00:00:00:00:00-0."""
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation ... | [
"lcoppa@rocketmail.com"
] | lcoppa@rocketmail.com |
84fc8575d753c1931e2f5b8c06106cebe611a00b | de5d6ddaf21b60608294fd7d434850631664051e | /gobou/bin/django-admin.py | cde98064ddc44372a8aab2665d97d9044f9ff72b | [] | no_license | okumura-shinij/my-first-blog | ea9a80d19382bd6d3a5b062476b3399d6b866d03 | 782e0d2ef1a6a8219e646101ee33e26c13fd136d | refs/heads/master | 2022-11-27T19:42:14.091497 | 2020-07-30T15:40:14 | 2020-07-30T15:40:14 | 283,203,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/Users/okumurashinji/django/gobou/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"okumura.womb@gmail.com"
] | okumura.womb@gmail.com |
01cfde38c8965eca7aaedb20680ee6be5f676118 | e1ffc5d925b990906ad47fd1d046036324451218 | /conversation/models.py | 16a7b98c878a5588620014601c3b03325c2eda91 | [] | no_license | nikadam/cartloop | ed04312cf88031352a745f9a01b11152936757e0 | 4d1a6a6c50b59589410c487d348ab4fd4f2cf7b4 | refs/heads/main | 2023-01-10T10:43:09.238164 | 2020-11-06T11:52:49 | 2020-11-06T11:52:49 | 309,955,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
name = models.CharField(
max_length=50,
null=True,
blank=True
)
is_operator = models.BooleanField(default=False)
is_client = models.Boolean... | [
"nishantkumarkadam@gmail.com"
] | nishantkumarkadam@gmail.com |
2a97d4fde1b262d7d7571c5622491d16841bed3f | 313bb88c43d74995e7426f9482c6c8e670fdb63c | /07-modules/example6_module.py | 8926b868c6f45aa8be74c33928f9bfcea9bd86be | [] | no_license | martakedzior/python-course | 8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654 | 3af2296c2092023d91ef5ff3b4ef9ea27ec2f227 | refs/heads/main | 2023-05-06T07:26:58.452520 | 2021-05-26T16:50:26 | 2021-05-26T16:50:26 | 339,822,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import example6_module
import shapes
if __name__ == '__ main__':
print(shapes2.rectangle_aera(3, 4))
else:
print('Jestem teraz modulem')
print('wartość zmiennej __name__:', __name__)
print('moduł - wartość zmiennej __name__:', __name__) | [
"marta.kedzior@wp.pl"
] | marta.kedzior@wp.pl |
7af99e7d5fd22934c2b33436ca2f37d167428b35 | 441c216de6c2ca3f1e9f80317e950ca4fc2fc27d | /hackerrank/solutions/fibonacci_modified.py | 880c1e1eac2c77d4ff7d1f988517ec7d4b1dcfd4 | [] | no_license | briansu2004/Unscience-Computer-Hackerrank | 53bc926ff68500b7df06672ac075bf19d5a7537b | 23e2a7239d110d51af4f9e093bd36dfd52d38943 | refs/heads/master | 2023-03-18T07:45:07.296229 | 2020-06-15T00:21:08 | 2020-06-15T00:21:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/bin/python3
#
# Problem Author: PRASHANTB1984 @ hackerrank
# Difficulty: Medium
# link: https://www.hackerrank.com/challenges/fibonacci-modified/problem
#
# Solution
# Author: Byung Il Choi (choi@byung.org)
#
import math
import os
import random
import re
import sys
# Complete the fibonacciModified f... | [
"choi@byung.org"
] | choi@byung.org |
55cf1f4ce50995a9d07d8447d478a6db0d5bb5be | bb198232df12a1adb9e8a6164ff2a403bf3107cf | /wifi-dump-parser-3/template-parsing.py | 5ebdb33d76793457a8eace4b4066f6e2e0ee8ee9 | [] | no_license | vanello/wifi-arsenal | 9eb79a43dfdd73d3ead1ccd5d2caf9bad9e327ee | 1ca4c5a472687f8f017222893f09a970652e9a51 | refs/heads/master | 2021-01-16T22:00:37.657041 | 2015-09-03T03:40:43 | 2015-09-03T03:40:43 | 42,060,303 | 1 | 0 | null | 2015-09-07T15:24:11 | 2015-09-07T15:24:11 | null | UTF-8 | Python | false | false | 21,786 | py | #Author : Abhinav Narain
#Date : May 6, 2013
#Purpose : To read the binary files with data from BISmark deployment in homes
# Gives the frames: transmitted and received by the Access point in human readable form
# To test the output of the files with the dumps on clients; and understanding the trace ... | [
"oleg.kupreev@gmail.com"
] | oleg.kupreev@gmail.com |
2af4c73e584fc0be42678e2c99f8a8a70638146a | 4ce4902847b2d8d1c92daf89b35ca8aaff141090 | /Data/Alignment_etc_for_ExaML/examl_constraint_only_ml.py | 75c35c29258cf08487eebc8afa37f78b674b69a9 | [] | no_license | mpnelsen/Lecanoromycetes_megaphylogeny | 0e672615e0d74745a72865d056619c9056b1f45b | 343e0abefdb4853858be3ae680850823818f2ec0 | refs/heads/master | 2022-12-02T01:26:37.628073 | 2020-08-07T17:52:54 | 2020-08-07T17:52:54 | 282,992,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | import random
import subprocess
import os
#os.mkdir('~/path...')
#file path and name (original alignment)
f="concat.phy"
cons="family_constraints.tre"
#number of bootstrap replicates
#n=100
#number of processors to use
proc=10
#original data set - make binary, get starting tree, find ml tree
#subprocess.call(args=... | [
"mpnelsen@gmail.com"
] | mpnelsen@gmail.com |
52f0dad9a36e69dae81cc0744cf62af43ac22ba0 | 4c2572e33eb5858487dd85cda48515ad642974d3 | /python/tvm/relay/testing/tf.py | 0f98f2033e27a7ab86bc31cf616a0fa1551de2a3 | [] | no_license | jack16888/tvm-yolov3 | abb430e0e11261f0e54f890f25a7e554340ff9f1 | c53477c0f40cade632344d1484a9079f5f2deb1a | refs/heads/master | 2022-04-07T23:11:42.441089 | 2020-03-20T01:18:28 | 2020-03-20T01:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,255 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"gary30404@gmail.com"
] | gary30404@gmail.com |
6f8f5bf67bebaee6514119e5b95fa511517820e1 | 5b3beb37c5285caccde895e0c6c8c091bb8c4a29 | /app/app.py | 01518818fdc6b1a3e9c75d7575d4e0bc3c1ee744 | [] | no_license | igaurab/align_image_flask_server | 51ead5844afd4552b46c2cd27d0be26b53c84ddd | 14a9f281eb39662e6392813593980fc07236dcec | refs/heads/master | 2023-04-25T11:10:00.990589 | 2021-05-03T03:42:11 | 2021-05-03T03:42:11 | 363,807,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | from flask import Flask, jsonify, request, send_from_directory
from align_image import align_image
import cv2
from PIL import Image as Image
import numpy as np
import os
app = Flask(__name__)
UPLOAD_FOLDER = os.path.join(app.root_path, 'output/')
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/uploads/<pat... | [
"gaurab.panthee@docsumo.com"
] | gaurab.panthee@docsumo.com |
6f254e66ef72d1178913366f837aa9804f7e8752 | 5502979ea9649e4dc556544285f1f943f560655d | /collatz.py | 802327c1ce51233d0bb33244d6d8e5828b75d277 | [] | no_license | imcdonald2/Python | 36f7cb7370b3405ab4d6884fddcf7bbb3c692fe6 | 7baa4ef58f3abbd57c856b2c3eb90990224021f2 | refs/heads/master | 2021-01-19T13:38:56.140524 | 2017-08-20T10:11:29 | 2017-08-20T10:11:29 | 100,851,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | def collatz(number):
while number != 1:
if number % 2 == 0:
number = number / 2
print(number)
elif number % 2 == 1:
number = number * 3 + 1
print(number)
collatz(53453)8 | [
"gobizku@gmail.com"
] | gobizku@gmail.com |
14b78e042a17e9782e6aabb2c3817989c186c63e | 7defbcf4dd1b82d1c98b4a7b82f627269fec38e3 | /ExponentialDecay.py | f37194d62c0921f73554744feab4c0f47d1653da | [] | no_license | ZhangLeiCharles/abo_py | 6798b109968483792fcdd953f184e8f69b126efc | 57c3290b25113dc783088a59cd5a4685f6ba145c | refs/heads/master | 2020-09-24T14:42:10.071120 | 2019-08-21T19:28:37 | 2019-08-21T19:28:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | from GPy.kern import Kern
import numpy as np
class ExponentialDecay(Kern):
def __init__(self,input_dim,variance=1.,lengthscale=1.,power=1.,active_dims=None):
super(ExponentialDecay, self).__init__(input_dim, active_dims, 'exponential_decay')
assert input_dim == 1, "For this kernel we assume input_dim=1"
... | [
"fmnyikosa@gmail.com"
] | fmnyikosa@gmail.com |
510abea419d84515b47f26c995b7cd11ec16b305 | d105e84f7c5546bd2a0cc3d73f8660acb35436e1 | /dbsn_gray/gray_kd_test.py | 55b87c187124b1811ff359fcea3515b1d91f97dd | [] | no_license | lvjj18/DBSN | 3ccf1947e313fbd319df8838be3b85e7a983caf6 | 4cf51b0c3b9ba7b0d3b2ab9e881a73d51058451c | refs/heads/master | 2022-12-12T00:31:19.319266 | 2020-08-31T11:53:28 | 2020-08-31T11:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | #
import os
import random
import datetime
import time
from pathlib import Path
import math
from scipy.optimize import curve_fit
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from data import create_dataset
from gray_kd_options import opt
from net.bac... | [
"xhwu.cpsl.hit@gmail.com"
] | xhwu.cpsl.hit@gmail.com |
0a5eb3316e0630c70e252f7cdd69aefd417c9da0 | 84e952d130dc2fc417caab8f504fcd245fde3d12 | /cnn/activators.py | 68de7879161fd3085591c49588861e8cd0b4087f | [] | no_license | ErZhouEr/mnist | 974b95cdbe25d5fff96558739ebb8fa9fcb6a8e2 | 2f247526098f2c5e316cef89bdbd0aba12d0cfee | refs/heads/master | 2021-01-02T02:54:11.322613 | 2020-03-30T10:00:39 | 2020-03-30T10:00:39 | 239,457,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!usr/bin/env python3
# -*- coding:utf-8 -*-
"""
@author:ZHOUCE
@file: activators.py
@time: 2020/03/10
"""
import numpy as np
class ReluActivator(object):
@staticmethod
def ori_func(x):
return max(0,x)
@staticmethod
def d_func(y):
return 1 if y>0 else 0
class SigmodActivator(object):
@staticmethod
def or... | [
"917846003@qq.com"
] | 917846003@qq.com |
6038802b027f5c0482af3d4095a3a38ed01c354b | 90fe944f97b868e38cffcbbe94fa47286d6d1e68 | /setDataset.py | 6cf5a098f1acbf36cff87ba4cf8397c915bca74e | [] | no_license | weichen283/FaceRecognition-pytorch | 8b8f76f36097c8bdc3173ebdd03c202b49a48bce | 1dc8a633302239cf6b3a7595b54e768c68d6603b | refs/heads/main | 2023-07-03T02:21:36.840918 | 2021-08-08T06:44:24 | 2021-08-08T06:44:24 | 393,675,726 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import sys
import os
import cv2
import dlib
input_dir = './photo_download'
output_dir = './face_photos/other_faces'
size = 64
if not os.path.exists(output_dir):
os.makedirs(output_dir)
detector = dlib.get_frontal_face_detector()
index = 1
for (path, dirnames, filenames) in os.walk(input_dir):
for filename ... | [
"xwchcooo@gmail.com"
] | xwchcooo@gmail.com |
b9c0c5a09024bde9c8a11e132d1b4bd3dc3b41f2 | b5025befdf74fff3071252abaa4db09479f2d763 | /Govind_Gopal/tinkter/std_cl.py | 411265e5cbbd962b9aab9b0d3fe6350c6dee4796 | [] | no_license | sidv/Assignments | d2fcc643a2963627afd748ff4d690907f01f71d8 | d50d668264e2a31581ce3c0544f9b13de18da2b3 | refs/heads/main | 2023-07-30T02:17:19.392164 | 2021-09-23T04:47:56 | 2021-09-23T04:47:56 | 392,696,356 | 1 | 20 | null | 2021-09-23T08:14:11 | 2021-08-04T13:20:43 | Python | UTF-8 | Python | false | false | 166 | py | class Students:
def __init__(self,st_id = 0, name = "", age = 0, st_class = ""):
self.st_id = st_id
self.name = name
self.age = age
self.st_class = st_class
| [
"govind@gmail.com"
] | govind@gmail.com |
2c5fcb6a21f19430ac8de3c70be24f2e6b1711a8 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /test/test_reebill/test_excel_export.py | 56fabef7c4bff8d7f0b9276c42aab2347c599839 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,940 | py | from copy import deepcopy
from datetime import date, datetime
from itertools import cycle
from StringIO import StringIO
import unittest
import mock
from core import init_config, init_model
from core.model import Register, Charge, Session, Utility, Address,\
Supplier, RateClass, UtilityAccount
from core.model.util... | [
"dklothe@skylineinnovations.com"
] | dklothe@skylineinnovations.com |
8037be52473b23f014eb6bf1e401f0f64dc04411 | 0103ea7172455056b578ef507ff3ef4553c06072 | /PerfMeasure.py | 7cd8813d07928c46d8b2824eb8d320d790ddc921 | [
"MIT"
] | permissive | JasonLC506/LabelRanking | 25c9735f3023fc478140536bd56b52de98272d08 | d93b1d42b0301dc8aa45f0fda8ec1e8e27b1be0f | refs/heads/master | 2021-01-25T07:50:09.852546 | 2017-06-08T21:42:00 | 2017-06-08T21:42:00 | 93,675,200 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 10,851 | py | """
calculate performance measures
Three perf measures used correspond to those in perf_list in perfMeaure
acc@3: perf_list["acc3"]
tau: perf_list["kendalltau"]
GMR: perf_list["g_mean_pair"]
"""
import numpy as np
import itertools
from scipy.stats.mstats import gmean
import math
from ReadData import rankOrder
NOISE =... | [
"jpz5181@ist.psu.edu"
] | jpz5181@ist.psu.edu |
420c082ad3b9a653211cb49b4e86c1bbf9b0682e | c8542b4b474758c4f0b0e553c5a56e79830a36a9 | /scripts/wof-exportify-repo | 55997157b5140d2831272e2a8c5f155d8c4d207c | [
"BSD-3-Clause"
] | permissive | whosonfirst/py-mapzen-whosonfirst-export | f9b7d569f2135afcbc79ff3cd51f0a4f58606619 | d64fc4a5f6fbe54a35504ad55d8aa41092b6b106 | refs/heads/master | 2022-09-02T08:49:53.205825 | 2020-08-13T17:31:58 | 2020-08-13T17:31:58 | 38,065,450 | 1 | 5 | BSD-3-Clause | 2020-01-31T17:21:01 | 2015-06-25T18:06:06 | Python | UTF-8 | Python | false | false | 1,102 | #!/usr/bin/env python
# -*-python-*-
import os
import sys
import logging
import mapzen.whosonfirst.export
import mapzen.whosonfirst.utils
if __name__ == '__main__':
import optparse
opt_parser = optparse.OptionParser()
opt_parser.add_option('-R', '--repo', dest='repo', action='store', default=None, ... | [
"aaron@mapzen.com"
] | aaron@mapzen.com | |
bdf6f258d52e429ac7db157c730375ffbb5a503b | 4fdee88add8859003daed07f907052f05b106fe9 | /py_toolbox/copy.py | 89d813553a5b243d6532087afb0847061ad2ca2e | [
"MIT"
] | permissive | koya-ken/py-toolbox | f7db82cc57ae90b428a200ba4f487142ce998757 | 6c5dbda3197d47a1263aef8e30528b1bf1d8862c | refs/heads/master | 2020-12-03T07:09:29.355933 | 2020-02-15T16:02:00 | 2020-02-15T16:02:00 | 231,237,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | import os
from tqdm import tqdm
def copyfileobj(fromfile, tofile, callback=None, length=16*1024, overwrite=False):
copied = 0
if os.path.isdir(tofile):
tofile = os.path.join(tofile, os.path.basename(fromfile))
size = os.path.getsize(fromfile)
tosize = os.path.getsize(tofile) if os.path.exists... | [
"koya.smp@gmail.com"
] | koya.smp@gmail.com |
b77adeb1ec4a34291041ac77541134a2b7debf75 | 5abb082407832749f418c803d875b1798a457be6 | /processing/cluster.py | 8cf97e283b6e0a117ebba5ad784592f566a2a773 | [] | no_license | darkflake/ASDAS | 63b4593d77d09132a7365518a1e10db3a40e1c75 | 9dbb63c7f0279270dcd321b7a4456ec55f70bf6f | refs/heads/master | 2022-05-26T11:26:26.497155 | 2020-04-27T15:58:35 | 2020-04-27T15:58:35 | 259,531,939 | 0 | 0 | null | 2020-04-28T04:34:55 | 2020-04-28T04:34:55 | null | UTF-8 | Python | false | false | 2,934 | py | from tslearn.metrics import dtw
from tslearn.barycenters import dtw_barycenter_averaging
class Cluster:
def __init__(self, data_count: int, data_points: list, instance: int):
self.center = []
self.count = data_count
self.data_points = data_points
self.instance = instance
s... | [
"sudhanshu.1.k@gmail.com"
] | sudhanshu.1.k@gmail.com |
013860d7ff4bc86bddb06db3b24f6cdf9fc666b6 | 4e21ec3da6819145e4ff6826f921c419d9a1f20a | /canteenSystem.py | 01d629bd42c81221450f0e8ba13b3db43ef77c69 | [] | no_license | aneezJaheez/NTU-Cafeteria-System | bc6623471e9469eefb6bdbc470278c796d0248bb | a404f28ba3f276cd44a7a41a77f8481cfc0d48ec | refs/heads/master | 2023-03-21T18:48:28.769238 | 2021-02-24T15:50:23 | 2021-02-24T15:50:23 | 279,474,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,261 | py | #Program to view stores, menu, store timings for various eateries in the north spine canteen
from tkinter import *
from tkinter import ttk
from PIL import ImageTk, Image
from tkmacosx import Button
try:
import tkinter as tk
from tkinter import ttk
except ImportError:
import Tkinter as tk
import ttk
fro... | [
"noreply@github.com"
] | aneezJaheez.noreply@github.com |
e0827393ee09fc0e40318a821e8d87fb7743ad1d | daca019a9dac198390ae73588496e310f30362f1 | /mapReduce/lab2/ejercicio3/6.py | a743dc76277eb0cac42b6963d03080e96f0c1ff9 | [] | no_license | caladdd/BigData | 9fd9ffeb857f3dc97d03dcfbbd8854840c4f83df | e372ad6c3140a040ad33d7e87dd94ab6932ee5c1 | refs/heads/master | 2020-03-11T04:45:23.996813 | 2018-05-07T04:31:12 | 2018-05-07T04:31:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from mrjob.job import MRJob
from mrjob.step import MRStep
#import numpy as np
class MejorEval(MRJob):
def steps(self):
return[
MRStep(mapper = self.mapper1,
reducer = self.reducer1),
MRStep(reducer = self.reducer2)
]
def mapper1(self, _, line):
... | [
"juanpablo.calad@gmail.com"
] | juanpablo.calad@gmail.com |
d3341f8f3b280ac55142cb872ec1aff5fa734881 | f140cb021cc0f402ed388a1a991f1e150e7e55df | /Python_DL_Project/Source Code/age_gender_detector.py | fdbd0ac47b4c1fbb29c397ff5e851011b5cc249d | [] | no_license | rupadoppalapudi/Python_DeepLearning-2021Spring | c8183bbaed2acb7878dc5d395eb0b4def26f31cb | 7432dccb9e3158c74e13cf115978a304d8bc4ea2 | refs/heads/main | 2023-04-11T13:51:27.673075 | 2021-05-01T02:01:01 | 2021-05-01T02:01:01 | 332,598,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | # Age and Gender detection of a person based on the image by passing it to the machine learning algorithm
# importing required modules
import cv2 as cv
# import time
# extracting face of the person from image
def extract_face(net, image, conf_threshold=0.7):
frame = image.copy()
f_height = frame.shape[0] # f... | [
"70282754+rupadoppalapudi@users.noreply.github.com"
] | 70282754+rupadoppalapudi@users.noreply.github.com |
e32c252e8271fa08227d5821a55cb10ebdfc74ad | e30b1e04fc5471ff3996def08ec58e6c91b7b523 | /migrations/versions/ab1e57abf110_adds_customer_model.py | 0de9deee0b44ad1b696c56c1c9a61906c1330808 | [] | no_license | lisa1501/retro-video-store | bae33ad1357ac271711e627f5ea609ae14cfc7d4 | ea0456007febeeeab41b23e3adae39473213ae74 | refs/heads/master | 2023-08-08T08:01:30.096798 | 2021-05-21T23:07:50 | 2021-05-21T23:07:50 | 368,365,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | """adds customer model
Revision ID: ab1e57abf110
Revises:
Create Date: 2021-05-18 12:47:26.828064
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ab1e57abf110'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands au... | [
"halisasaipulla@gmail.com"
] | halisasaipulla@gmail.com |
f8dc0b1aee58d7979e7f5d482179c4af4a3c1ae0 | a937504aac6f6b954473b25dd1da8cca9f90be4e | /sphere_drop.py | c155de9f73444e761ebb59414f3497e369974b4d | [] | no_license | zizochan/blender_python | b822a2288e29766d5eb7b58a7b8856ee4e9f3be6 | aa519db917a94768f3ba2bb02e374f9069395b51 | refs/heads/master | 2021-04-28T01:06:56.560046 | 2018-05-27T11:26:39 | 2018-05-27T11:30:22 | 122,267,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | # -*- coding: utf-8 -*-
# import
import bpy
# config
FRAME = {"start": 0, "end": 200}
BLOCK_NUMBER = {"x": 6, "y": 6, "z": 30}
BLOCK_SIZE = {"x": 0.5, "y": 0.5, "z": 1.5}
# color
START_COLOR = {"r": 75, "g": 0, "b": 130}
END_COLOR = {"r": 25, "g": 25, "b": 112}
FLOOR_COLOR = {"r": 0, "g": 250, "... | [
"zizo.toiawase@gmail.com"
] | zizo.toiawase@gmail.com |
f7b43de393d6f9ff23a62a56c441c6076b7d7d8d | 6609a299691152af507a40c03a36341154447881 | /shopping/migrations/0005_home.py | 8a7dc986084ad59d375e73a1a5dac16ebd8d69e7 | [] | no_license | Princetripathi087/shopping | 6020835f97c325a6ba0a94b4f83e24faa38e7d36 | 158f7a072d20ce87f4628b48d2e0a3163252f7a0 | refs/heads/main | 2023-05-11T10:36:25.143412 | 2021-05-27T12:27:18 | 2021-05-27T12:27:18 | 371,336,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.2 on 2021-04-21 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shopping', '0004_elec'),
]
operations = [
migrations.CreateModel(
name='Home',
fields=[
... | [
"noreply@github.com"
] | Princetripathi087.noreply@github.com |
40cbfdfcdcbc0a80e3f1a4e234d9e3147910b169 | 02520432a2d109e3be3d701a76794735e642aa5f | /base_modules/pcam_pcomputing.py | 31547b64c88f4c0b23efe4aeb775807225d319f7 | [] | no_license | ronniejoshua/multi_threading_processing | af1918a810d5e5b1907e81b4364502ee2dda9e24 | 1f9437c4a8599078c6a909cda95a0ede3127fbf5 | refs/heads/master | 2022-12-12T03:51:02.884704 | 2020-08-26T15:42:28 | 2020-08-26T15:42:28 | 281,604,347 | 0 | 0 | null | 2022-12-08T11:14:21 | 2020-07-22T07:16:06 | Python | UTF-8 | Python | false | false | 11,035 | py |
"""
Partitioning
------------
Partitioning, is about breaking down the problem into discreet chunks of work that can be distributed to
multiple tasks. At this beginning stage, we're not concerned with practical issues like the number of
processors in our computer. We'll consider that later. For now, our goal is to sim... | [
"ron.juden@gmail.com"
] | ron.juden@gmail.com |
775c98aff54bc0e91e9c3be0b4cb8fdbb0cecb40 | a4b38feb9a4502249babc679c38590a017a47d30 | /rohanblog/urls.py | 9c15e04b0ccd08107339ca522ca6acec3be4962d | [] | no_license | rohanNpradhan/Rohan_Blog-Django | 825bc5b57555d857655e14ec75ba62974ef20850 | e97ffc0a68e5b6abe9536cf7b953a99b7a06eb8c | refs/heads/master | 2021-08-10T20:12:07.579942 | 2017-11-12T22:49:51 | 2017-11-12T22:49:51 | 110,465,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | """rohanblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"rohanpradhan@gmail.com"
] | rohanpradhan@gmail.com |
86175487f19361d5a3638bd32f87a2f980377a3a | 3c29e2e1c8e2bcf962c8b31214f418ad7b1b5d11 | /readAndPlotSingle.py | da5035b21e5d8e674f6f7a6120513e4e23278ac0 | [] | no_license | pbarragan/mechIdent | 55cf7ce7f7d30d9e07367de1240b26fc039ce7ec | 63f18c4af8b5c1498d74ee96d561a5116d7691ce | refs/heads/master | 2021-01-10T20:32:14.278094 | 2014-02-27T04:56:29 | 2014-02-27T04:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | from matplotlib import pyplot
import numpy
def skip_lines(f,lines):
for i in range(lines):
f.readline()
def get_data(fileName):
f = open(fileName,'r')
#read the initial stuff you need
f.readline()
model = int(f.readline())
skip_lines(f,5)
numStates = int(f.readline())
skip_line... | [
"patrick.r.barragan@gmail.com"
] | patrick.r.barragan@gmail.com |
ba07f8e90183b19fbf61a59a84b04c542f44f08b | d1b51796e6ccd043155046a7d4e6bb5b93a740f9 | /praticepython/Exercise11.py | c3619d62b8712ab3ae4c6b03894eaae3c3ab6a5a | [] | no_license | leocarlos92/python | ee017532107efb6726263c7cdc23657aac6f9020 | aa59bca3db1e90c1e61394d1bf4a35bd2f54086a | refs/heads/master | 2020-04-24T06:34:49.124655 | 2019-04-11T16:53:56 | 2019-04-11T16:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | """
Ask the user for a number and determine whether the number is prime or not.
(For those who have forgotten, a prime number is a number that has no divisors).
You can (and should!) use your answer to Exercise 4 to help you. Take this opportunity to practice using functions,
described below.
Discussion
Concepts for t... | [
"leonarbc@motorola.com"
] | leonarbc@motorola.com |
7010bdcc199ffe691d09e85fcec06ddaf77523bb | d9a839f241f65a6bb1ed0e900d8c12d407478360 | /Python_Practice/primetest.py | d515a92e55f456103d273d03015c9e07bc598f05 | [] | no_license | downstreamfish/Python_Trains | df9ad1ea78076a970a8236624aac2105de9e36e2 | 91b58a9e28eb7d42ab0afb693cc42ff3cfd10dea | refs/heads/master | 2020-03-27T03:09:33.509798 | 2019-01-16T12:48:48 | 2019-01-16T12:48:48 | 145,842,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | for n in range(2, 10):
for x in range(2,n):
if n % x == 0:
print(n, 'equals', x, '*', n/x)
break
else:
print(n, 'is a prime number')
| [
"honle_han1403@outlook.com"
] | honle_han1403@outlook.com |
64d45d9b34c9e2d7e84fae07e4afc49f2795317a | 0c9ba4d9c73fb3b4ee972aed0b6d844d8a9546a9 | /TerchaerCode/s13day3课上代码/day3/s1.py | 2b5de365e8984bdb16be174cabf9b4b954ffbc68 | [] | no_license | SesameMing/Python51CTONetwork | d38179122c8daaed83d7889f17e4c3b7d81e8554 | 76169c581245abf2bcd39ed60dc8c9d11698fd3a | refs/heads/master | 2020-04-15T12:47:15.234263 | 2018-06-02T15:04:04 | 2018-06-02T15:04:04 | 65,876,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Alex Li
# 1、set,无序,不重复序列
# li = [11,222]
# print(li)
# a. 创建
# li = []
# list((11,22,33,4))
# list __init__,内部执行for循环(11,22,33,4) [11,22,33,4]
# 原理,list
# dic = {"k1":123}
# se = {"123", "456"}
# s = set() # 创建空集合
# li = [11,22,11,22]
# s1 = set(li)
# print(s1)
# b... | [
"admin@v-api.cn"
] | admin@v-api.cn |
10a36d8ba182d5cfeb3359dcf0af11c05abaad56 | b4e2977a962ba91d32fe258b9de65b0d4182571f | /partytxt/controllers/voice.py | 30ae8f2cdc3ca5d3274a40c5ac7de6126d9b6a7c | [] | no_license | thedangler/smshub | 3266f7677c16324078a68df43f2854c0e353d58f | e808ebfc5725a9d080efe020289ddd17c4316580 | refs/heads/master | 2021-01-09T20:29:37.722295 | 2016-07-06T13:51:27 | 2016-07-06T13:51:27 | 61,894,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | __author__ = 'mhebel'
from flask.ext.sqlalchemy import SQLAlchemy
from flask import Blueprint, render_template, flash, request, redirect, url_for,session
from flask import current_app
from twilio.rest import TwilioRestClient
from partytxt.models import User, People, SMSLog, VoiceMailBox,VoiceStats
import re, os, time,... | [
"matthew.hebel@schulich.uwo.ca"
] | matthew.hebel@schulich.uwo.ca |
f1225911a9c8b090f16e2d5cab0de30ef298ea31 | fc41dc76e08232e1115107f99fc004873e225a87 | /project_one/settings.py | 3b93108dc2191c5ddc912eb8a3a67265cda9fc8e | [] | no_license | jomapormentilla/django_project_one | 8206ea9bba728657b3aa1a6233ae58f3b2d3ea72 | 1d318d434b2269ce1c86e40a44d67cdf30a7f925 | refs/heads/main | 2023-06-17T21:17:51.018746 | 2021-07-07T18:43:31 | 2021-07-07T18:43:31 | 383,824,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | """
Django settings for project_one project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"jomapormentilla@gmail.com"
] | jomapormentilla@gmail.com |
56c9a9f7223bf03212b85936315983875c71c2d4 | 292569c7576a0de7d2d7c7653f202b4d1189415e | /main.py | f8a1c3c34ff8441af2a35e613208be241bbe2366 | [] | no_license | zabbidou/Regex-to-epsilonNFA-to-DFA | 38aa3f7c6f22e7bb3c36bae1949fa937d77ab96f | c506e22aa2347ef17abae93fdd5c5a52f0c185f8 | refs/heads/main | 2023-03-17T18:35:56.938344 | 2021-03-08T22:54:38 | 2021-03-08T22:54:38 | 345,816,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import sys
from nfa import *
from antlr4 import *
from RegexLexer import RegexLexer
from RegexParser import RegexParser
from RegexVisitor import RegexVisitor
input = FileStream(sys.argv[1])
lexer = RegexLexer(input)
stream = CommonTokenStream(lexer)
parser = RegexParser(stream)
tree = parser.regex()
visitor = RegexV... | [
"noreply@github.com"
] | zabbidou.noreply@github.com |
f748d138a6f55d5fa1f7c4e87defd034f0577a9a | 78bafc8f949612e5c4b984b405cf7955fb5118dd | /python/create_branch.py | f539bea6d0d3355d60c19a276b1d886babbb3357 | [] | no_license | arazmj/gdbnms | 1c1275589a8ebaf9abbfc06ec39e5b1abdcd8edf | 2d0cc4d14ab7ae3572623dacb7e2614def9a88ca | refs/heads/master | 2020-05-04T14:37:56.003499 | 2019-05-01T15:45:10 | 2019-05-01T15:45:10 | 179,205,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import argparse
from neo4j import GraphDatabase
import sys, random
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "password"))
mobile = 0
client = 0
ip = 0
def rand_mac():
return "%02x:%02x:%02x:%02x:%02x:%02x" % (
random.randint(0, 255),
random.randint(0, 255),
ran... | [
"arazmj"
] | arazmj |
84514a0a1649c409c1594afb68b66c5957994ab4 | fce86501f046bdf495e52952a026415229a3f512 | /manage.py | 32d39d9ac87d68c9b70ad26d6f7924935ea04c15 | [] | no_license | michaelliriano/tltrealestate | cdfcabcfb2e0c77a61d9c135deee4e1a3f3df4a3 | bcbd6dd16da37317737385b020d0c36ce0130dfa | refs/heads/master | 2022-12-19T09:51:57.498550 | 2020-02-13T19:45:43 | 2020-02-13T19:45:43 | 239,376,842 | 0 | 1 | null | 2022-11-22T05:18:49 | 2020-02-09T21:26:26 | Python | UTF-8 | Python | false | false | 623 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tlt.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"51761089+michaelliriano@users.noreply.github.com"
] | 51761089+michaelliriano@users.noreply.github.com |
4f82adf734cf7b91f9e7205d76ded8c1fe3b8db5 | 06c8afa94c045afb016e1dcdfe56ce6bc4c943d9 | /work_test/winpexpect_test.py | cefffa729d35c2e36462ef28e8bdd4dcff66e2ca | [] | no_license | Shadow-of-Diamond/my_python | 4512cc9a34fc59dc1cc45f696f7195b86d558590 | 5092100312cc299451309ec6c6b8faab1acee691 | refs/heads/master | 2020-07-07T06:14:42.042225 | 2019-08-26T07:53:32 | 2019-08-26T07:53:32 | 121,462,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from winpexpect import winspawn
#ssh = winspawn('ssh',['-tty','xiezhenkun@192.168.1.10'])
ssh = winspawn('ssh -tt xiezhenkun@192.168.1.10')
ssh.logfile = sys.stdout
i = ssh.expect(['word:'], timeout = 5)
print (i)
ssh.sendline('xzK3.............') | [
"xzk1072503@gmail.com"
] | xzk1072503@gmail.com |
407627485b2c556513409348892b4e55a9892ce0 | 1ecfacf515059041f6a90c486248d597934185b8 | /zadatak1.py | 139f1004092768ddfb1b46a3ec878e0e03fe0824 | [] | no_license | StefanRojovic/Programskoinzenjerstvo | c684e2bf0c7b708465bdc68fb05629811fa7c5df | e3bb2a9b5b45474729b088818eacf40d1b978b7e | refs/heads/master | 2021-04-24T05:20:23.963261 | 2020-06-03T20:46:19 | 2020-06-03T20:46:19 | 250,084,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | def main():
pass
if __name__ == '__main__':
main()
class Razlomak(object):
def __init__(self,brojnik,nazivnik):
self._brojnik = brojnik
self._nazivnik = nazivnik
@property
def brojnik(self):
return self._brojnik
@brojnik.setter
def brojnik(self,value):
... | [
"noreply@github.com"
] | StefanRojovic.noreply@github.com |
78db5d3a48d034fb1a52c5fe15957372c718061f | d5ed3ed782fd4cc6e0682c04de96196bf7163f3d | /workspace/python1/settings.py | 27e1df36112abeb43e24ccec47625b38c115a028 | [] | no_license | superbicode/scrum | af2b6238f69ec68ca6bac0b68ec89cfbaffce0b7 | 388439498b6d5eee7c9526de9aa71feea82320a3 | refs/heads/master | 2016-09-09T23:13:33.967536 | 2015-09-10T22:40:00 | 2015-09-10T22:40:00 | 42,274,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | """
Django settings for python1 project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
im... | [
"superbicode@gmail.com"
] | superbicode@gmail.com |
9a90cd66c119e2e73b470b6be1c99591426412d7 | 9661a19548c9886beb4965f8b404fc61f0f6831e | /load_murcs/serverProperty_Load.py | 310081e0d192cd180461d576e96ffb96bc28cea9 | [] | no_license | dirkhpe/bv | d3ee2f43ac1cc0b14b38b40417adbd96335db818 | 7725ebc01b3b981897f018a5e81bfd8a62dea11d | refs/heads/master | 2022-01-31T00:30:46.056907 | 2019-06-05T08:30:05 | 2019-06-05T08:30:05 | 107,697,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | """
This script will load server Property information.
"""
import logging
from lib import localstore
from lib import my_env
from lib.murcs import *
from lib import murcsrest
cfg = my_env.init_env("bellavista", __file__)
r = murcsrest.MurcsRest(cfg)
lcl = localstore.sqliteUtils(cfg)
tablename = "serverproperty"
logging... | [
"dirk.vermeylen@dxc.com"
] | dirk.vermeylen@dxc.com |
43406fad42fdb45d72fa3cbfab83dde3b7796090 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracmilemixviewplugin/0.10/mmv/tests/test_rt.py | 6c8f860eb1a9198e639b85f4ace6ffe292f7992d | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | #from trac.core import *
#from trac.test import EnvironmentStub, Mock
#from trac.env import Environment
#from trac.core import ComponentManager, ComponentMeta
#
#import tickettemplate.ttadmin as ttadmin
#
#import os.path
#import tempfile
#import shutil
#
#import unittest
#
#class TicketTemplateTestCase(unittest.TestCas... | [
"richard@7322e99d-02ea-0310-aa39-e9a107903beb"
] | richard@7322e99d-02ea-0310-aa39-e9a107903beb |
9effecb7ceecacaffbb19eacf43d2dfadefd80cb | 186065405b2d551c8b7c3783cc7d0e41fcbee7f2 | /part2/main-app/reader/main.py | bcceddd96602bc30d0cabb12a452b76030eef346 | [] | no_license | Deninc/kubernetes-course | daa0f41d617269403c2228c29828eb79866534c4 | aad816baa95e2158e465682b3165eb12adac45b9 | refs/heads/master | 2023-02-08T06:01:41.396120 | 2021-01-02T20:26:34 | 2021-01-02T20:26:34 | 309,653,962 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import os
import hashlib
import urllib.request
from fastapi import FastAPI
from fastapi.responses import HTMLResponse
app = FastAPI()
@app.get("/", response_class=HTMLResponse)
def read_root():
with open("/tmp/random_string.txt") as f:
s = f.readline().rstrip()
c = urllib.request.urlopen("http://pong-... | [
"thang.nguyen@cloudasset.com"
] | thang.nguyen@cloudasset.com |
0dab538450e0b1a1b063150ff917b8ea62aa6416 | d36b4b87a933a35f2c04cf3f0e2832326689a070 | /app/routes/activity_router.py | ac54df99a25d59927f2523aa65f293af2f4a9745 | [] | no_license | kirill-kundik/SportUnity-Backend | a2c8f45ece5b30e74ff373b34939968ae7152cad | 0ac9508799c9b31781ed2d5291175fd39b419d21 | refs/heads/master | 2023-03-09T01:12:54.360803 | 2020-02-23T07:09:37 | 2020-02-23T07:09:37 | 242,365,176 | 0 | 0 | null | 2021-02-26T02:45:23 | 2020-02-22T15:32:58 | Python | UTF-8 | Python | false | false | 9,697 | py | import datetime
import aiohttp.web
import app.postgres.queries as db
async def track(request):
try:
body = await request.json()
user_id = int(body[0]["userId"])
except:
raise aiohttp.web.HTTPBadRequest()
async with request.app['db'].acquire() as conn:
activity = await db... | [
"goliathusua@gmail.com"
] | goliathusua@gmail.com |
4c344ba89021d350f8aa299a728e88ef44bb7a78 | b44498e47fb5b9766920af01d6af4890c6dd054a | /python27/1.0/Lib/site-packages/pypm/common/repository.py | e9dd0ff821cf352c994447ea5d8e293f52e576cf | [] | no_license | zhaoxiaohui/xunlei_vip | 4489dde49716640bb58cd2a210bce06e607ea1fb | 465a9d937ce04c784dca14cc60dffecce4041d32 | refs/heads/master | 2020-03-30T06:21:13.865619 | 2015-10-15T05:13:09 | 2015-10-15T05:13:09 | 38,826,640 | 23 | 17 | null | null | null | null | UTF-8 | Python | false | false | 28,875 | py | # Copyright (c) 2010 ActiveState Software Inc. All rights reserved.
"""
pypm.common.repository
~~~~~~~~~~~~~~~~~~~~~~
Code related to repository functions
"""
import os
from os import path as P
import logging
import gzip
from hashlib import md5
from contextlib import closing
from collections import named... | [
"fire.guy@163.com"
] | fire.guy@163.com |
e31ee367fc6802635bca02f0078aae7a1c53faf9 | cc2d37a71eac8422b0722533766b3ee95b5b5d1a | /data_import/zmmutypes.py | 4480cded4f86f0e6a1b75637c6e882db37268004 | [] | no_license | JelleZijlstra/taxonomy | 88018a1a0ec114875c45cf87ffc825957fc3e870 | 56aac782e2cbbd084a14d2ad1b1572729ba387be | refs/heads/master | 2023-08-17T03:20:13.576928 | 2023-08-07T00:47:41 | 2023-08-07T00:47:41 | 10,962,492 | 0 | 0 | null | 2023-08-17T04:53:54 | 2013-06-26T08:21:35 | Python | UTF-8 | Python | false | false | 12,168 | py | import copy
import re
import unicodedata
from collections.abc import Iterable
from typing import Any
from taxonomy.db import constants, models
from . import lib
from .lib import DataT, PagesT
SOURCE = lib.Source("zmmutypes.txt", "ZMMU-types.pdf")
ORDER = "Отряд"
SECTION_INTRO = ("ЛЕКТОТИП", "ГОЛОТИП", "ПАРАТИП", "СИ... | [
"jelle.zijlstra@gmail.com"
] | jelle.zijlstra@gmail.com |
7ce2d665d3a2088faa37fe2203b59cecafdb1a2f | 620213ce023607fce767bd1cac0bdf9ceed97de9 | /servings/flask/utils/names.py | 1ca87f8600c791434928d9f1449b74b9323f11ff | [] | no_license | yusuf287/DataMigrator | bc7e4edb37ff243a204e69a9d9c6f4cc3443ed14 | 52198e2ee2e67acd425832ab09f5be99a2c3c9a3 | refs/heads/master | 2020-09-06T01:59:40.113394 | 2019-12-02T06:30:49 | 2019-12-02T06:30:49 | 220,280,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | test_case_proto_file_name = "test_cases.proto"
input_output_proto_file_name = "input_output.proto"
test_code_file = "test.py"
input_test_file_name = "testcases.txt" | [
"noreply@github.com"
] | yusuf287.noreply@github.com |
aee4fd9a82016258b51396e9fcbb86c222086056 | 21f31e7894bd2620af08ff02b307afbf85551a22 | /DublinBus/DublinBusTest/migrations/0002_line9_lineone.py | 12652ebe993f635299ee5c8a482b41dc4698816b | [
"BSD-2-Clause"
] | permissive | atreanor/PaceApp | f3866993a82617d6b541d6c681523f53c43de2a9 | c7ad6f42d9442d99b48c03e3e6ad883f5d16bba9 | refs/heads/master | 2022-12-18T04:37:27.271179 | 2019-03-24T22:13:59 | 2019-03-24T22:13:59 | 177,114,952 | 0 | 0 | BSD-2-Clause | 2022-12-08T04:53:55 | 2019-03-22T09:52:23 | JavaScript | UTF-8 | Python | false | false | 1,464 | py | # Generated by Django 2.0.6 on 2018-07-10 16:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DublinBusTest', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Line9',
fields=[
('i... | [
"alan.treanor@ucdconnect.ie"
] | alan.treanor@ucdconnect.ie |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.