blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f29162293d3a13e04e0d593b2f83ffadeb585c75 | 3dcfa266c4b7321a4c3a224b98f9ca0dff891e47 | /archives/weather.py | 34f3228017b06836750a7051d94df776a005b29f | [] | no_license | CandyTt20/Notes | a2ef681d123c5219a29334e99aeb900b74bf1834 | ec092f881122ebdd91ef9764ec7ce4d9cc4723ae | refs/heads/master | 2022-08-21T18:08:33.204223 | 2020-05-19T23:55:49 | 2020-05-19T23:55:49 | 255,209,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import matplotlib
from matplotlib import pyplot as plt
import random
import io
import sys
# 改变标准输出的默认编码
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf8')
# 绘图中设置中文字体显示以及粗细MicroSoft YaHei
font = {'family': 'MicroSoft YaHei',
'weight': 'bold',
'size': '10'}
matplotlib.rc("font", **font)
... | [
"458566293@qq.com"
] | 458566293@qq.com |
2228c4692a90aa59d2655ff1ce6cc044e27f3662 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/expr_id-7.py | 6734afff5e760b3c35cb53011e1e7c464aebcad8 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | x:$ID = 1
x - 1
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3edf3d407e6ecd51e113a38e8f163fb129b401ad | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc059/B/4903797.py | b032dc42a02c10e399ae6919bab6161e7ebcff25 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | ab = [int(input()) for i in range(2)]
if (ab[0] > ab[1]):
print("GREATER")
elif (ab[0] < ab[1]):
print("LESS")
else:
print("EQUAL") | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
c343a8e6103ecb162f0314933cee28a37ae3e35c | 43102360e998f8972e06689f64f39c7cf22479d7 | /Decision Trees/Applying Decision Trees-92.py | 59662f44cd14ce508327652d24d4176d49e44b9b | [] | no_license | HarshCasper/Dataquest-Tracks | 8da914101c19442a63ab46732a1cc792c135c3c9 | 9fc87415377824cf2c82d9ed34178ee53509eb67 | refs/heads/master | 2020-12-21T21:04:19.015006 | 2020-01-27T18:28:55 | 2020-01-27T18:28:55 | 236,560,422 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,619 | py | ## 2. Using Decision Trees With scikit-learn ##
from sklearn.tree import DecisionTreeClassifier
# A list of columns to train with
# We've already converted all columns to numeric
columns = ["age", "workclass", "education_num", "marital_status", "occupation", "relationship", "race", "sex", "hours_per_week", "native_co... | [
"noreply@github.com"
] | HarshCasper.noreply@github.com |
83b38141d2b2a9fe4ace95e23ea76ba72ddbf024 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02753/s018106418.py | 43f2350835f00370c906db3dceb850869d7371e6 | [] | 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 | 148 | py | # A - Station and Bus
# https://atcoder.jp/contests/abc158/tasks/abc158_a
s = input()
if len(set(s)) == 2:
print('Yes')
else:
print('No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1bf2e6f3d5b517933c42a191a777276597e6abbb | 58509347cca790fce26884f027425170c5891a17 | /deep_image_converter/loss/base_loss.py | bc1534d557ddf20f3091662c29ed216000fbf416 | [] | no_license | Hiroshiba/signico_real_to_anime | e22d07ca6531b75b3987ecc309e02bcd405f6f61 | 0a68b132fc77e24539d7ddc65b3078fd0c7f3858 | refs/heads/master | 2021-01-19T23:25:37.149611 | 2018-03-21T17:24:32 | 2018-03-21T17:32:45 | 88,979,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | from abc import ABCMeta, abstractmethod
import chainer
from deep_image_converter.config import LossConfig
class BaseLoss(object, metaclass=ABCMeta):
def __init__(self, config: LossConfig, model):
self.config = config
self.model = model
@staticmethod
def blend_loss(loss, blend_config):
... | [
"kazuyuki_hiroshiba@dwango.co.jp"
] | kazuyuki_hiroshiba@dwango.co.jp |
bf77468ee650a613d6bf14b965954b3156f6dfcd | f70d11f54732808c4ed40886bdd57bbdca6542eb | /pyalgotrade/tools/resample.py | a8a8ae23b99fed15d20a792c88399406d61cf367 | [
"Apache-2.0"
] | permissive | stephenagyeman/pyalgotrade | 1aa4c22b20c707791c5e81ad1bdfb8fb55c8d542 | a783b8da8c63a1fc25a4bdee560d4c5a6e0c1a8c | refs/heads/master | 2021-01-15T12:03:16.370138 | 2014-01-14T02:15:41 | 2014-01-14T02:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | # PyAlgoTrade
#
# Copyright 2011-2013 Gabriel Martin Becedillas Ruiz
#
# 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 ap... | [
"gabo@Gabriels-MacBook.local"
] | gabo@Gabriels-MacBook.local |
ac862313a9b98f5a1267b8153262f40789aaf7b9 | 5c900c1801e73aad21a90e97d73e8f10c9f31129 | /src/02_convert_xlsx_to_rdf.py | 631659e6768279523bbd07ac609632d3d0d969fd | [
"Apache-2.0"
] | permissive | utda/kunshujo | 024ea7bb1016ba28ae17632ad5e998203bab16fa | fbae79171dfd017a47a89bcb18d7862711f0689f | refs/heads/master | 2022-09-11T12:09:23.438408 | 2022-08-31T05:19:52 | 2022-08-31T05:19:52 | 156,177,231 | 0 | 1 | Apache-2.0 | 2022-08-31T05:20:36 | 2018-11-05T07:27:44 | Python | UTF-8 | Python | false | false | 1,685 | py | import pandas as pd
from rdflib import URIRef, BNode, Literal, Graph
from rdflib.namespace import RDF, RDFS, FOAF, XSD
from rdflib import Namespace
import numpy as np
import math
import sys
import argparse
import json
def parse_args(args=sys.argv[1:]):
""" Get the parsed arguments specified on this script.
"""... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
c346eb614b07d36c5320bc514531a1b812e3e811 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /v8/tools/testrunner/local/pool_unittest.py | 335d20a6bf9a71a8efd476cc4b67aa83e812b801 | [
"BSD-3-Clause",
"SunPro",
"bzip2-1.0.6"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,252 | py | #!/usr/bin/env python
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from pool import Pool
def Run(x):
if x == 10:
raise Exception("Expected exception triggered by test.")
retu... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
5a40aaec7aacb3d61f3c59a5a873c57e5c626c01 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02630/s691363854.py | db496ce9e82c844b6fd645661f57cc1b9cd4e228 | [] | 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 | 322 | py | from collections import defaultdict
N = int(input())
A = list(map(int, input().split()))
Q = int(input())
d = defaultdict(int)
ans = 0
for a in A:
ans += a
d[a] += 1
for _ in range(Q):
b, c = map(int, input().split())
n = d[b]
ans -= n * b
ans += n * c
print(ans)
d[b] = 0
d[c] +=... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fb7272b01c3d2d1856ab5326a9e09a3f548ce4b6 | 757b100c2689f61dbd140672fc10059938bda603 | /SportsSimulation/sportsSchedule_algo.py | 9d1b323bee878638324f1f70b3030fefd4325dac | [] | no_license | tbkrft567/Portfolio | 089d8d94d735bbb757eb61688c515f9f25451595 | bbe514905a734e14c0bda5579928fdc9dad5a69e | refs/heads/master | 2023-03-15T23:02:01.640998 | 2021-02-21T21:32:44 | 2021-02-21T21:32:44 | 231,143,663 | 0 | 0 | null | 2023-03-08T20:27:46 | 2019-12-31T20:31:56 | HTML | UTF-8 | Python | false | false | 3,531 | py |
def generateSchedule(numOfTeams):
scheduleGrid = []
weeklyGrid = []
for x in range(numOfTeams): # Create a grid for all matches to be played
scheduleGrid.append([])
weeklyGrid.append([])
allMatches = []
for home in range(1, numOfTeams+1): # Insert all matches to be played
... | [
"tbkrft@gmail.com"
] | tbkrft@gmail.com |
4e4eae80ffa5c9109129d78b060c7b96e3479ca3 | 656c384011734403e60a205ffa44bd7a494ebaff | /migrations/versions/b509892e3432_.py | cb902f6cd5fb52b8c0f7e01248c8f702bfafe762 | [] | no_license | jreiher2003/Composite | cf721737917b3b50f83f7bc8790804f35de82797 | 3547b0ec8568d2212a530b14ccf358acf2e6bec3 | refs/heads/master | 2021-01-21T04:47:25.694869 | 2016-07-22T21:38:20 | 2016-07-22T21:38:20 | 53,373,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """empty message
Revision ID: b509892e3432
Revises: None
Create Date: 2016-07-21 17:53:01.499715
"""
# revision identifiers, used by Alembic.
revision = 'b509892e3432'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ###... | [
"jreiher2003@yahoo.com"
] | jreiher2003@yahoo.com |
68f198e20b5cf9bd2d0f06bd412da9e1b1e528ef | 568da13e0f0bfc3276508d67b020adea04f3036a | /final/170401067/tcpI.py | ccf2b2f4734d1f601b25d25fb5169fdd6b13e16d | [
"Unlicense"
] | permissive | BaranAkcakaya/blm304 | 75a6be14afb0d9a012d17c56bd1e5ad5abe03630 | 3bca2b2520e673d15c0667418789903b119b9170 | refs/heads/master | 2022-10-15T21:04:49.367816 | 2020-06-08T12:34:02 | 2020-06-08T12:34:02 | 267,668,790 | 0 | 0 | Unlicense | 2020-06-07T13:36:48 | 2020-05-28T18:42:21 | Python | UTF-8 | Python | false | false | 889 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 3 22:26:03 2020
@author: EnesNK
"""
import socket
import os
# Socket oluşturulması
s = socket.socket()
# Bağlanılacak adres ve port
host = "192.168.1.32"
port = 142
try:
# Bağlantıyı yap
komut = '... | [
"noreply@github.com"
] | BaranAkcakaya.noreply@github.com |
c0e643ad4fa8ef59d8fc7c410dae20ba6ce83e43 | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/73/60f8cf3a196b00141928c597445b4e35 | cc1d592056af8a6b636607c3a5fc66693511d529 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 5,406 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
923a73b286091e48661d2498f48f73f6650f64ed | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/74.search-a-2d-matrix.py | 1569ac34b90c9406f662f03ef22de36da49b9a0d | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | #
# @lc app=leetcode id=74 lang=python3
#
# [74] Search a 2D Matrix
#
# https://leetcode.com/problems/search-a-2d-matrix/description/
#
# algorithms
# Medium (35.49%)
# Total Accepted: 262.2K
# Total Submissions: 738.7K
# Testcase Example: '[[1,3,5,7],[10,11,16,20],[23,30,34,50]]\n3'
#
# Write an efficient algorith... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
ca3cd643be45c6a9a5f944743ece02ac4fc85764 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_53/567.py | 05e6ad00cbf4b7bba63051f353ec913a4811d281 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/python
import sys
def snapper(n,k):
return ( ( k & ( (1<<n) - 1) ) == ( (1<<n) - 1) )
num_entries = input()
entries = []
c = 0
while c < num_entries:
s = sys.stdin.readline()
entries.append(map(int, s.split(' ')))
c += 1
c = 0
while c < num_entries:
if snapper(entries[c][0], entries[c][1]):
print... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ddeea8ef6ffc46729b0a8139f950b546b159e1ae | 91fe4b06b331be287518731614067e5d65a85e82 | /GetNearestAgents/GetNearestAgents/urls.py | a01a6b849148b911ca3a3fc6124c09c422da1e18 | [] | no_license | Niharika3128/GetAgentsByNearestLocations | e8b1af4dc011efb4ff0e79383478333747ff2a22 | 9e954344e50a3f92d40fd3aa7810569c727f0c46 | refs/heads/master | 2022-12-16T04:57:45.667615 | 2020-09-11T18:32:59 | 2020-09-11T18:32:59 | 294,387,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | """GetNearestAgents URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Cl... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
3edaba52aa526852e5576903a2ca6d968a293149 | 18305efd1edeb68db69880e03411df37fc83b58b | /pdb_files_1000rot/qp/1qpe/tractability_500/pymol_results_file.py | ba2530e6b7d97a0245b21db20af8a6d3f359eb47 | [] | no_license | Cradoux/hotspot_pipline | 22e604974c8e38c9ffa979092267a77c6e1dc458 | 88f7fab8611ebf67334474c6e9ea8fc5e52d27da | refs/heads/master | 2021-11-03T16:21:12.837229 | 2019-03-28T08:31:39 | 2019-03-28T08:31:39 | 170,106,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,204 | py |
from os.path import join
import tempfile
import zipfile
from pymol import cmd, finish_launching
from pymol.cgo import *
finish_launching()
dirpath = None
def cgo_arrow(atom1='pk1', atom2='pk2', radius=0.07, gap=0.0, hlength=-1, hradius=-1, color='blue red', name=''):
from chempy import cpv
radius, gap =... | [
"cradoux.cr@gmail.com"
] | cradoux.cr@gmail.com |
57563df581ac1c0a00ac5c91318c1352f0584a59 | 8336ea48994f9ecbddd9caf853d08f05b2e4c15c | /-二叉树-遍历.py | c2e78d315571c82f3bca1e8199f2110b88a3277b | [] | no_license | swain-s/lc | fb2058931853b83aeb0737447a67e2fee08fdacd | 9e793935b999540e20e6c7f025f3f765f43039af | refs/heads/master | 2021-01-09T00:33:23.943824 | 2020-04-06T11:50:38 | 2020-04-06T11:50:38 | 242,172,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | # 问题描述:二叉树的前序、中序、后续和层次遍历
# 模板: 7
# 3 10
# 1 5 9 12
# 4 14
#
from a_bin_tree import root, tin_travel
class TreeNode(object):
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class BinTreeTrevera... | [
"shenkun@bupt.edu.cn"
] | shenkun@bupt.edu.cn |
6b986ebc0f99796b46a53f789dadc82ecf2fcd69 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_forgivable.py | 17e88f7334c72b963bdb051e7591385f4638ce97 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py |
#calss header
class _FORGIVABLE():
def __init__(self,):
self.name = "FORGIVABLE"
self.definitions = [u'used to say that you can forgive something because you understand it: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7e9ff9af780f43f5e27b10dfb86f30c622c4311f | 21f8a6f018748aa714bd63d68944d6474f011781 | /coverage_wss/vrep_ros_interface/devel/lib/python2.7/dist-packages/vrep_common/srv/_simRosAuxiliaryConsolePrint.py | 297e3406a278e743d7f5125779740b2adfb6d5a4 | [] | no_license | ElliWhite/group_1_coverage | e04dd3d5374cad76b3914bf0dfca719dc934989e | 565c325e4dc4188716f5233b6de05671a3d89b1c | refs/heads/master | 2020-05-27T17:27:37.807828 | 2019-05-29T21:48:43 | 2019-05-29T21:48:43 | 188,720,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,519 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from vrep_common/simRosAuxiliaryConsolePrintRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class simRosAuxiliaryConsolePrintRequest(genpy.Message):
_md5sum = "... | [
"elliott.white@students.plymouth.ac.uk"
] | elliott.white@students.plymouth.ac.uk |
b8709d1ed22fe57824a0b3ea1da243b08abaeccc | e281ce2330656a6a0a7f795f535f78881df8b5ba | /Python Study/Backup All the file/Common/ZipFile.py | c11a684f7044dbb2a6408fa18934115512d93791 | [] | no_license | sunruihua0522/SIG-PyCode | 70db0b57bbf9ce35dc42bd8de62c5bb56a2e888e | 483a67bf679f54ab7405c2362d9cfe47daa2bc0f | refs/heads/master | 2020-07-12T14:46:32.588227 | 2020-04-02T04:37:02 | 2020-04-02T04:37:02 | 204,842,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import zipfile
import os
from tqdm import tqdm
class ZipFile:
@staticmethod
def zipDir(dirpath,outFullName):
"""
压缩指定文件夹
:param dirpath: 目标文件夹路径
:param outFullName: 压缩文件保存路径+xxxx.zip
:return: 无
"""
zip = zipfile.ZipFile(outFullName,"w",zipfile.ZIP_DEFLATED... | [
"--global"
] | --global |
b0122bfe88e38f332099985954a6a5d8bd7fda29 | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-2424.py | c8dd3e9935415447b4bce32457f6ae74829b5ecb | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 761 | py | #!/usr/bin/evn python
#--coding:utf-8--*--
#Name: shopnum1注入3
#Refer:http://www.wooyun.org/bugs/wooyun-2015-0118352
#Author:xq17
def assign(service,arg):
if service=="shopnum1":
return True,arg
def audit(arg):
payload = "ProductListCategory.html?BrandGuid=ac69ddd9-3900-43b0-939b-3b1d43... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
778ffa1ac232b1d139916fb722187dabf44fc75f | 5f0a72ccc780a9649c6adb15ccab6ddcb02a146b | /marshmallow/core/mechanics/music.py | 644a8e26dbbecfa004973ebc4fe8d6f3d4eccc2c | [] | no_license | bretzle/Marshmallow-Bot | 1eb020bdf910bd29b324a79a0ee1b094d13f72fc | 72175c0f58e36c7b6325a6cb2224731434781aca | refs/heads/master | 2021-09-01T16:56:23.727278 | 2017-12-28T01:11:15 | 2017-12-28T01:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | import asyncio
import functools
import hashlib
import os
from asyncio.queues import Queue
from concurrent.futures import ThreadPoolExecutor
import discord
import youtube_dl
ytdl_params = {
'format': 'bestaudio/best',
'extractaudio': True,
'audioformat': 'mp3',
'outtmpl': '%(extractor)s-%(id)s-%(title)... | [
"johnfish218@gmail.com"
] | johnfish218@gmail.com |
1f69cce9ab69c9327883e50c082b673410e47b63 | 57dfd89d63b3b52eed144653c8264d50fa9fba6e | /miembros/api.py | faf4e4a8eaed9ebaf9a89ff12fa7d84346885925 | [] | no_license | geovanniberdugo/siiom | c850620214a1a3b8b1fc83ab895c0601241da3b4 | 5e2b72aff7ac5e94a93b7575603114b4ea5f628a | refs/heads/main | 2023-02-16T15:02:30.539674 | 2021-01-15T22:29:36 | 2021-01-15T22:29:36 | 330,036,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | from django.contrib.auth.decorators import permission_required
from django.utils.translation import ugettext as _
from django.shortcuts import get_object_or_404
from django.urls import reverse
from django.http import JsonResponse
from .forms import DesvincularLiderGrupoForm, ResetearContrasenaAdminForm
from .models im... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
c06968f887196e0d4bba47819a0615fd85804f54 | d8ea695288010f7496c8661bfc3a7675477dcba0 | /django/ewm/home/__init__.py | 1ce0de44a99c764e6ca82d5b03db2231ae692086 | [] | no_license | dabolau/demo | de9c593dabca26144ef8098c437369492797edd6 | 212f4c2ec6b49baef0ef5fcdee6f178fa21c5713 | refs/heads/master | 2021-01-17T16:09:48.381642 | 2018-10-08T10:12:45 | 2018-10-08T10:12:45 | 90,009,236 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | ###
# 定义后台组名称
# 需要配合apps.py文件中的配置
###
default_app_config = 'home.apps.HomeConfig' | [
"dabolau@qq.com"
] | dabolau@qq.com |
afc2a53cd1ff9057a75418b6ed601b4422063eb9 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/cfm_config/protocol/cfm/y1731/test_profile/test_profile_params/start/__init__.py | 464a82b2e745fb276b70ea5398de815d30573b55 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,413 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
094caf4e026a82c8bfd7136623542fccc36fe22e | 07da31b260bf2949ffd9463ad4f777ca93b75d43 | /sleekforum/src/sleekapps/threads/models/__init__.py | 5d512f2d8e6692557d4f27c0ab34238865c7ea3e | [] | no_license | adepeter/sleek-docker | 134fd7de12ade8c521ceb8e1b2b2611fa2224dde | dcf010c3da53093600101d970c6888c82360209f | refs/heads/master | 2022-12-15T14:53:01.499098 | 2020-09-14T00:42:31 | 2020-09-14T00:42:31 | 282,499,689 | 0 | 0 | null | 2020-07-31T14:31:22 | 2020-07-25T18:12:19 | JavaScript | UTF-8 | Python | false | false | 61 | py | from .post.post import Post
from .thread.thread import Thread | [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
19f6e1bec12fed1808c6705f4480960abebeb23a | 7cc6e942d23b24795eed11fb01eff2b2c770fe43 | /list_exercises/exercise7.py | 606bb18c73a44f02cf93fcf3fce0dcd9b3855981 | [] | no_license | ziqingW/python-exercises-flex-Mar03 | f6c166401400197d531fad3bd5d070255e4fe3b5 | 0034cc760e6a696ca537ff28b2d6d8290573d31b | refs/heads/master | 2021-01-25T14:34:10.138564 | 2018-03-06T20:00:39 | 2018-03-06T20:00:39 | 123,713,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | numbers = [23,12,34,5,89,2,10,4]
multiple = 7
multilist = [num * multiple for num in numbers]
print(multilist) | [
"redtaq@hotmail.com"
] | redtaq@hotmail.com |
c14afc507b95a9c36595c24c46ae812c7fcc71c9 | 92993cff825da80a8ff601572a0c52b0b7d3cbde | /algorithms/Svm/APG/L1/APG_L1_m41.py | b1c19880dfe598d8378581b2300d5a68093c2d18 | [] | no_license | yingzhuoy/MRs-of-linear-models | 06e8b1f84b08c6aa77553813824cf35c1806c5a7 | c3df8299e039a12613f2022b370b8c3e9c2dd822 | refs/heads/master | 2023-04-07T23:09:37.736952 | 2021-04-04T05:33:37 | 2021-04-04T05:33:37 | 265,124,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | import numpy as np
from numpy import linalg
from algorithms.clf import Clf
# L1-svm
import cvxopt
from cvxopt import matrix,solvers
## accelerate proximal gradient method
def backtracking(l0, x0, p, q, low, up):
# update x
beta = 0.5
l = l0
L0 = 0.5*x0.T*(p*x0) + q.T*x0
g0 = p*x0 + q
for ... | [
"yingzhuoy@qq.com"
] | yingzhuoy@qq.com |
dd0fa4ba786eb9d8f8734622a18724a5acb42751 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_occasioned.py | f6245b1a5cf35679f3af0adee45fb97bbfcfd1d5 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from xai.brain.wordbase.verbs._occasion import _OCCASION
#calss header
class _OCCASIONED(_OCCASION, ):
def __init__(self,):
_OCCASION.__init__(self)
self.name = "OCCASIONED"
self.specie = 'verbs'
self.basic = "occasion"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f1e5a981d26f50623a516c785ceb31ecc02bb287 | 2ed82c46dc08930bcf1a42bae6b50d0efd6e8899 | /rho_T_plot/rhoTPlot_physical_EAGLE.py | 1cb7f4fbbecf9894e961a7fa20fcaa11d676d703 | [
"MIT"
] | permissive | SWIFTSIM/swiftsimio-examples | 3a96fb910c42fe90cd48a0974ea3b16678214204 | f038df3aa12a129185857b5cee2d4a7c2c6b4d03 | refs/heads/master | 2020-04-30T23:01:02.966239 | 2020-02-14T12:18:09 | 2020-02-14T12:18:09 | 177,133,622 | 0 | 1 | MIT | 2020-02-14T12:18:11 | 2019-03-22T12:10:18 | Python | UTF-8 | Python | false | false | 4,289 | py | """
Makes a rho-T plot. Uses the swiftsimio library.
"""
import matplotlib.pyplot as plt
import numpy as np
import h5py
from unyt import mh, cm, Gyr
from tqdm import tqdm
from matplotlib.colors import LogNorm
from matplotlib.animation import FuncAnimation
# Constants; these could be put in the parameter file but are... | [
"joshua.borrow@durham.ac.uk"
] | joshua.borrow@durham.ac.uk |
98c7fc6457ff198ee87f3568232bf6841406a99e | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccpnmr/format/converters/PalesFormat.py | cd5aa27d66e02596823c00d666e4173bae16967a | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 6,344 | py | #!/usr/bin/python
"""
======================COPYRIGHT/LICENSE START==========================
ModuleFormat.py: Contains functions specific to PALES program conversions.
Copyright (C) 2010 Wim Vranken (European Bioinformatics Institute)
Brian Smith (University of Glasgow)
=========================... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
982438385f1000e3976346a2dc1120aabdcb9938 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /headfirst/example/example2.py | 6f06549a6c1978e95a4a31f7b5543a9d99fc5481 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 751 | py | man=[]
other=[]
try:
data=open('/Users/duheng/Documents/HeadFirstPython/chapter3/sketch.txt','r',encoding='utf-8')
for each_line in data:
try:
(role,line_spoken)=each_line.split(':',1)
line_spoken=line_spoken.strip()
if role=='Man':
man.append(line_spo... | [
"emaildh@163.com"
] | emaildh@163.com |
0ec907252b0568f7621cb0e98415d6dc0de57206 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-channel/samples/generated_samples/cloudchannel_v1_generated_cloud_channel_service_provision_cloud_identity_async.py | 294b8255ef654e0f099f9422b69dfee53a729aba | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,026 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
64a7d6b3abb2ff86e6c68063872fb3310bc2f17e | 0265e740dbc38ab543236a12d98ee9e0b57cb927 | /crawler_world/proxy_pool/Util/utilFunction.py | 2d8f46d84651dfe2e5f6940874d6370dc351f9c4 | [
"MIT"
] | permissive | ForeverDreamer/scrapy_learning | c5e604c6a285fa6fef112bdc5617b2129288477a | 6d38c58af5b8ba87803ee77de61f2a54cc65a4db | refs/heads/master | 2023-05-13T18:46:43.715685 | 2022-09-22T10:26:11 | 2022-09-22T10:26:11 | 179,958,600 | 0 | 0 | null | 2023-05-01T19:51:39 | 2019-04-07T11:48:43 | Python | UTF-8 | Python | false | false | 4,154 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
"""
-------------------------------------------------
File Name: utilFunction.py
Description : tool function
Author : JHao
date: 2016/11/25
-------------------------------------------------
Change Activity:
2016/11/25: ... | [
"499361328@qq.com"
] | 499361328@qq.com |
69749573e1c7329b67e11083405f953765a7d54d | cd2ce8e913048a535d7680789d38a16f23ad04b3 | /server/settings/local.py | bdfb750ad6a8b98893ae27a61c1b35837399a5c8 | [] | no_license | wade333777/cocos-js-tips | 3758bbaccb168c1a7f4d17e243e8107cb9fbfb06 | 4f430d5631b1118ad251bdaf8384bc0dbdaf07b9 | refs/heads/master | 2021-01-20T20:35:48.273690 | 2016-06-22T10:02:15 | 2016-06-22T10:02:15 | 60,678,664 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from base import *
# 启用调试模式
DEBUG = True
# ============================================================================
CHANNEL = "android" # [只能小写]
WEB_KEY = 'spyykimech'
GAME_KEY = ')7yt4e!#)gcy&#0^hlme-+082=s!b!$8+h$+(j0bucx0+nu%pe'
ENCODE_DECODE_KEY = 'AAAAAAAA... | [
"1063776603@qq.com"
] | 1063776603@qq.com |
5c37a9079020b9f7860ca0f1c0674ef4efac94d4 | 3d05a382e418234558bed720ad5a56dbbf976a6a | /game.py | 3e0a01bab1c9d7a87849d46d9b85a0652467a729 | [] | no_license | richwandell/tank-tennis | 79354963197ea8469ecd90a682f1d522e5fd7c13 | 47e822d21b6ad3e0330f6f2427da56bf0043a668 | refs/heads/master | 2020-04-02T14:24:14.956038 | 2018-10-24T15:19:57 | 2018-10-24T15:19:57 | 154,523,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from modules.stage import Stage
from modules.main_menu import MainMenu
import json, pygame
pygame.init()
pygame.mixer.init()
screen, world = pygame.display.set_mode((0, 0),), {}
def showMenu():
global world, screen
world = MainMenu(screen)
def playLevel(level):
global world, screen
level1 = json.loa... | [
"richwandell@gmail.com"
] | richwandell@gmail.com |
e27110a75e2ad24753a8b16d4b1adf2e73ea4238 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nngarish.py | 287745db58ac4a715debb11514f0d36b70780a46 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 43 | py | ii = [('LyelCPG.py', 1), ('FerrSDO.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
69d4561868e7b4e9549331417be235f7bde6a826 | 45734abde30b437c2a1ba80653d7323e5c1d8c7f | /python/0735_asteroid_collision.py | c247bdeb01e2092efef3a66a280fd30416006c12 | [] | no_license | rdtr/leetcode_solutions | 6629e03dd5b5fee15aaabe7f53204778f237ed96 | 51800d33c57e36ef62b6067d6f91a82c0e55dc6d | refs/heads/main | 2022-05-21T12:17:23.201832 | 2022-03-12T09:20:46 | 2022-03-12T09:20:46 | 80,395,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | class Solution:
def asteroidCollision(self, asteroids: List[int]) -> List[int]:
stack = []
i = 0
while i < len(asteroids):
if not stack:
stack.append(asteroids[i])
elif (asteroids[i] > 0 and stack[-1] > 0) or (asteroids[i] < 0 and stack[-1] < 0) or (
... | [
"redtree.dev1112@gmail.com"
] | redtree.dev1112@gmail.com |
d6ffee8f77d0617d1af183ab560feda3653eec61 | dc77f52db640fca23aa66be30f15378b09b205c1 | /pitchblog/models.py | 45de23c490eadfdabcd69a5f5c5b4b14e71aed09 | [
"MIT"
] | permissive | marysinaida/PITCH_SITE | 233feb0401bc52c17d0f9e91a66c5f46829b1215 | 95d141baf92a24ce8273ca10b9ee64498d6f22dd | refs/heads/master | 2020-09-15T22:57:14.343802 | 2019-11-26T13:25:36 | 2019-11-26T13:25:36 | 223,576,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from datetime import datetime
from pitchblog import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(25), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)
image_file = db.Column(db.String(20), nullable=False,... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
493cb9e1cddcb1185f9306b497aa2473f7039a0d | dd5abf881b73dc2cca1d2a4b18c61179d1c73b4b | /web/model/t_task.py | b7144ac56cc03fdc02933ef91cd446ec94bc7f8e | [] | no_license | mafeicnnui/dbops | 858af1673f27716180cabc41329a0a07c0e1862c | aebacb3410d7d345bb720c7a341d2d83825f8a90 | refs/heads/main | 2023-06-08T14:24:11.782598 | 2023-06-05T07:41:55 | 2023-06-05T07:41:55 | 337,357,228 | 10 | 2 | null | 2023-06-02T06:23:18 | 2021-02-09T09:45:17 | HTML | UTF-8 | Python | false | false | 9,457 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/6/30 15:46
# @Author : ma.fei
# @File : t_user.py
# @Software: PyCharm
import os,json
import traceback
import requests
from web.utils.common import exception_info
from web.utils.common import get_connection,get_connection_dict
from web.utils.... | [
"zhdn_791005@163.com"
] | zhdn_791005@163.com |
d50b30de4699270bdccde2ab4e9bc05670de33f4 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/_codeforces/1324_f.py | 057771514859b798e0ba37f2a0eda18a50f48caf | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
n = int(input())
dat = list(map(int, input().split()))
v =[]
for i in range(n+1):
v.append([])
score = [0] * (n)
for i in range(n-1):
a, b = map(int, input()... | [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
a98077b547dbb92b9a08eedcba16e8d2d205d6c9 | 5312a19268af0f9ab2c319e46f8d460d64e6e898 | /arche_m2m/__init__.py | 55dbc9d8dab7729058fa4d83f25791c76e161c1c | [] | no_license | GlobalActionPlan/arche_m2m | 2b1bf57b89bb398d747966a5d094c40c6df66916 | 698381888ff55ec72f0027596c5afd9c9b6a3e78 | refs/heads/master | 2021-01-10T20:47:04.159490 | 2017-06-09T12:54:53 | 2017-06-09T12:54:53 | 23,307,596 | 1 | 0 | null | 2020-02-10T08:16:35 | 2014-08-25T08:49:12 | Python | UTF-8 | Python | false | false | 335 | py | from pyramid.i18n import TranslationStringFactory
_ = TranslationStringFactory('arche_m2m')
def includeme(config):
config.include('.ttw_translations')
config.include('.models')
config.include('.schemas')
config.include('.views')
config.include('.permissions')
config.add_translation_dirs('arch... | [
"robin@betahaus.net"
] | robin@betahaus.net |
3480e923215921c85813159158d11cb1c3266241 | 72af42076bac692f9a42e0a914913e031738cc55 | /01, 특강_210705_0706/02, source/CookData(2021.01.15)/Code06-05.py | 02e7ffd300f97cb0f38c79208316d1ec8986a4e6 | [] | no_license | goareum93/Algorithm | f0ab0ee7926f89802d851c2a80f98cba08116f6c | ec68f2526b1ea2904891b929a7bbc74139a6402e | refs/heads/master | 2023-07-01T07:17:16.987779 | 2021-08-05T14:52:51 | 2021-08-05T14:52:51 | 376,908,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def isStackEmpty() :
global SIZE, stack, top
if (top == -1) :
return True
else :
return False
SIZE = 5
stack = [ None for _ in range(SIZE) ]
top = -1
print("스택이 비었는지 여부 ==>", isStackEmpty())
| [
"goareum7@gmail.com"
] | goareum7@gmail.com |
0a9cd5b6a32f41249dcf985a2b629a1aeb6a130b | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /tutsPlus/gettingStartedwithPython/1_helloWorld.py | 76232cb46c3fee9f08bb0213946e84e3a587858b | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 89 | py | #! /usr/bin/env python
print "Hello World !"
2+1
3*7
2*(3+4)
print "hey"
3+2
print "yo"
| [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
e7f3e2452713e57c40f10d8e0d92f1f6a021a5e3 | 655050425d88874f570cab93d0613fd22abb8e06 | /superman/dataset/__init__.py | 0d5d78e309c63ed29fe0ac160d21389cc225ed51 | [
"MIT"
] | permissive | vishalbelsare/superman | 86a23566323325d459d06f6ecad6d575b76972b6 | 346fc0d590f40bfe0141630e3146ec8e7ee18be3 | refs/heads/master | 2021-06-09T13:21:07.161740 | 2020-04-14T17:17:32 | 2020-04-14T17:17:32 | 143,188,314 | 0 | 0 | MIT | 2021-04-04T18:45:24 | 2018-08-01T17:35:44 | Python | UTF-8 | Python | false | false | 157 | py | from __future__ import absolute_import
from .ds import TrajDataset, VectorDataset
from .ds_view import DatasetView, MultiDatasetView
from .metadata import *
| [
"perimosocordiae@gmail.com"
] | perimosocordiae@gmail.com |
314d77c8e953502e48cee36510cebe43e82ae47b | 0a43afbcba776ed8ada0fef5425b1507aa4d51c1 | /waresmartbook/sales/views.py | 83b99ea9ccacc01a07c2213922764731927bc5f3 | [] | no_license | geethusuresh/inventory-systems | c76d6d10429f483499594df8c8f34d780531f18c | fd4211d29042776fa47da92162cbbbe8220090cd | refs/heads/master | 2021-01-02T08:51:31.278578 | 2014-09-28T07:35:54 | 2014-09-28T07:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,538 | py | # Create your views here.
import sys
import ast
import simplejson
import datetime as dt
from datetime import datetime
from decimal import *
from num2words import num2words
import math
import os
from django.db import IntegrityError
from django.db.models import Max
from django.contrib.auth.views import password_reset
fr... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
486f719763164aae76c114ef5ed377847619037d | f95e73867e4383784d6fdd6a1c9fe06cffbfd019 | /PythonToolkit/CameraVideo/VideoObjectTracking.py | 5fa77270cb9a2b92474011d375924b1047c1764c | [] | no_license | linxiaohui/CodeLibrary | da03a9ed631d1d44b098ae393b4bd9e378ab38d3 | 96a5d22a8c442c4aec8a064ce383aba8a7559b2c | refs/heads/master | 2021-01-18T03:42:39.536939 | 2018-12-11T06:47:15 | 2018-12-11T06:47:15 | 85,795,767 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # -*- coding: utf-8 -*-
import cv2
import os
import numpy as np
# 摄像头只能一个进程获取
camera = cv2.VideoCapture(0)
fourcc = cv2.VideoWriter_fourcc(*'XVID')
#文件的名称,格式,帧率,帧大小,是否彩色
out = cv2.VideoWriter('output.avi',fourcc,24.0,(640,480))
#VideoCapture类的get()方法不能获取摄像头帧速率的准确值(总是返回0)
#print(camera.get(cv2.CAP_PR... | [
"llinxiaohui@126.com"
] | llinxiaohui@126.com |
ecc202cf0f419b414a4822218103363ee0bb5e9a | a1c20ec292350a4c8f2164ba21715414f8a77d19 | /Udemy/PythonMegaCourse/Section 12-Databases/PythonWithDatabases/script1.py | 10d35d8e80252412da1c086f2961b0c065006f25 | [] | no_license | nowacki69/Python | 2ae621b098241a614836a50cb1102094bf8e689f | e5325562801624e43b3975d9f246af25517be55b | refs/heads/master | 2021-08-22T21:30:39.534186 | 2019-09-03T01:21:11 | 2019-09-03T01:21:11 | 168,528,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import sqlite3
def create_table():
conn = sqlite3.connect("lite.db")
cur = conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS tbl_store (item TEXT, quantity INTEGER, price REAL)")
conn.commit()
conn.close()
def insert(item, quantity, price):
conn = sqlite3.connect("lite.db")
cur = conn... | [
"nowacki69@gmail.com"
] | nowacki69@gmail.com |
7b6da5134be3bbf7c5b79c9dd974d501bc13dc0f | d5219cd3094e5a72efdf2ed7e321f6c586dee58f | /account_report.py | dcc6421f6374efdae4c6b8f9d1d1257e606076c1 | [] | no_license | Descomplica-Marketing/Google-Adwords | d721b178bc2384cf069103e2cc83b79d4f529c0d | 808744852455aea9b24c4bd0fc9e4b065f729e54 | refs/heads/master | 2020-06-25T04:41:45.795739 | 2019-07-30T02:43:00 | 2019-07-30T02:43:00 | 199,204,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | from googleads import adwords
from functions import get_report_df
report_query = (adwords.ReportQueryBuilder()
.Select('Date', 'AccountDescriptiveName', 'AdNetworkType1', 'AdNetworkType2', 'AveragePosition',
'Clicks', 'ConversionRate', 'Conversions', 'Cost', 'Engagements', 'Imp... | [
"marketing-dev@descomplica.com.br"
] | marketing-dev@descomplica.com.br |
d797428a2dbbc4d3a51fa24769f528e072f9af05 | 7134e45563b2045837296cb5c4f1974a025e4f2b | /.history/SANDBOX_20201206081849.py | 62633377c5a5963f4dd726aaecbd33aa33497e42 | [] | no_license | Nordenbox/Nordenbox_Python_Fundmental | dca175c471ac2c64453cc4bcf291dd0773be4add | 9c79fd5d0dada580072b523d5aa1d72f996e3a22 | refs/heads/master | 2022-01-21T06:37:15.084437 | 2022-01-06T13:55:30 | 2022-01-06T13:55:30 | 240,154,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | import pandas as pd
data = pd.read_csv('to_addrs.csv')
print(data) | [
"nordenbox@gmail.com"
] | nordenbox@gmail.com |
ba580ba89c8fad29d726dfb35cbc4a7b1bd9b0e3 | e48f203d18b4eac537f5f69277fb497be1cec611 | /backend/mobile_25_app_dev_15680/wsgi.py | 70ed666f14facf20d2d59d70d3cb062261cc3522 | [] | no_license | crowdbotics-apps/mobile-25-app-dev-15680 | 107fea56fa665c134a51fc3ea0b642b0b582d15d | 9423eee5529d4a8a48cda334b1ac6eb2a5760838 | refs/heads/master | 2023-01-18T19:37:13.026096 | 2020-11-25T16:05:43 | 2020-11-25T16:05:43 | 315,973,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for mobile_25_app_dev_15680 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b5d1cdf3282c3ca808fd6c68d5b75f12754cc6c | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/Structure/__init___parts/RebarShapeConstraintAngleFromFixedDir.py | 53925f2b3e8ecc1e9cd08fd6c3cf1445ad275918 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | class RebarShapeConstraintAngleFromFixedDir(RebarShapeConstraint,IDisposable):
"""
A constraint which can be applied to a RebarShapeSegment and drives the angle
of the segment relative to a fixed direction in UV-space.
RebarShapeConstraintAngleFromFixedDir(paramId: ElementId,sign: int,direction: UV)
"""
d... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
c886e273972ecb4f7d0f52ed30b61359eaaba35b | 4f3a4c194451eae32f1ff7cf3b0db947e3892365 | /162/main.py | b3936348ba1e48aaef408bd1f16b59b4e55140f2 | [] | no_license | szhongren/leetcode | 84dd848edbfd728b344927f4f3c376b89b6a81f4 | 8cda0518440488992d7e2c70cb8555ec7b34083f | refs/heads/master | 2021-12-01T01:34:54.639508 | 2021-11-30T05:54:45 | 2021-11-30T05:54:45 | 83,624,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | """
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple peaks, in that case return the index to any one of the peaks is fine.
You may imagine that num[-1] = num[n] = -∞.
For e... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
828310819742c4c59c63891d0d30da4ec07c7773 | bea0e4806236daff2a07df2f0949fe046ef76c03 | /apps/op/controllers/real/sku.py | 5b16a7fd874b0d32e199632174087a34a606d371 | [] | no_license | xutaoding/osp_autumn | 68903f7acf78d7572777a500172e2f8c09afed48 | daf260ecd5adf553490a8ac6b389a74439234b6a | refs/heads/master | 2021-01-09T21:51:51.248630 | 2015-11-23T08:20:00 | 2015-11-23T08:20:00 | 46,706,177 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | # -*- coding: utf-8 -*-
from .. import BaseHandler
from .. import require
from voluptuous import Schema, Any
from autumn.torn.form import Form
from autumn.torn.paginator import Paginator
class SkuList(BaseHandler):
@require()
def get(self):
sql = 'select * from sku where deleted = 0 '
name =... | [
"xutao.ding@chinascopefinancial.com"
] | xutao.ding@chinascopefinancial.com |
489e2344051b765a6a26da0bf20a60620a31b678 | 887fe8fa82b592e678e90e82ea2681f6f8a23a7f | /pygrim/formulas/airy.py | ac8bdeb4724cc36ec5c0c31787b7d3e823c1ea26 | [
"MIT"
] | permissive | wbhart/fungrim | efcfa32c2466c36f852fb01a9d575add732da46a | 6febcbeee4b950bb421199706fc0c9ae729fe2e5 | refs/heads/master | 2020-08-01T23:07:46.997516 | 2019-09-26T16:32:20 | 2019-09-26T16:32:20 | 211,150,429 | 0 | 0 | null | 2019-09-26T17:57:32 | 2019-09-26T17:57:32 | null | UTF-8 | Python | false | false | 5,483 | py | # -*- coding: utf-8 -*-
from ..expr import *
def_Topic(
Title("Airy functions"),
Section("Definitions"),
Entries(
"9ac289",
"5a9d3f",
),
Section("Illustrations"),
Entries(
"b4c968",
"fa65f3",
),
Section("Differential equation"),
Entries(
"51b... | [
"fredrik.johansson@gmail.com"
] | fredrik.johansson@gmail.com |
bdfee875ae6b593bf36e99398d5e4e7e547569b3 | 2c6a101c1015a3508d901814e530f7346145650a | /hbase_regionserver_requests.py | a8c96ebb9ee92b7eb1f92580e2837e66a9003b39 | [
"MIT"
] | permissive | mesenger/DevOps-Python-tools | 52f7973ea1349686afd7393c2e8cd94c2223e2e3 | 221dbda24a638b2f28dd26f3e015b9133709b012 | refs/heads/master | 2023-08-20T20:23:42.810544 | 2023-07-29T16:45:31 | 2023-07-29T16:45:31 | 284,710,736 | 0 | 0 | NOASSERTION | 2020-08-03T13:42:01 | 2020-08-03T13:42:00 | null | UTF-8 | Python | false | false | 8,358 | py | #!/usr/bin/env python3
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2016-10-06 10:42:59 +0100 (Thu, 06 Oct 2016)
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
# and... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
6abc53ffc8fe957131d887d4192ae8073b48d1be | 6e41636b8fae338cc3d1cb0885ca21c17af64ded | /echo-client.py | 8707638e8dbad4b61d11bb076b8fa20bfcfbc768 | [] | no_license | Menah3m/socket_work | 89e89febafce913b904c47549cbab558fb39a1d9 | 6a9eb05be0386fc709c92dc86afa67167d007c0a | refs/heads/master | 2021-03-26T13:42:38.004924 | 2020-03-16T13:26:17 | 2020-03-16T13:26:17 | 247,708,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # Name:echo-client
# Author:Yasu
# Time:2020/3/16
import socket
Host = '127.0.0.1'
Port = 6500
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect((Host,Port))
sock.sendall(b'Hello World!')
data = sock.recv(1024)
print('Received!', repr(data)) | [
"568200065@qq.com"
] | 568200065@qq.com |
f3d34c28888679e66d0ab10777e49c22b3272308 | ebcbbe645d70d4f756704d3c5113ba25e8a1814c | /fabfile.py | 7cd23c5d488fb6645aa621eda37ae36c6056dd84 | [
"BSD-3-Clause"
] | permissive | abhilashsn/standup | 2ea02078c6616c88f1a8cc28508b948bf4001c30 | 998341af354ed0ddcd15b673ea7af090a7efbce6 | refs/heads/master | 2021-01-18T09:11:58.371312 | 2014-08-29T16:25:07 | 2014-08-29T16:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 355 | py | from fabric.api import env, local
env.hosts = ['localhost']
def npm_install():
"""Correctly runs npm install"""
local('cp node.json package.json')
local('npm install')
local('rm package.json')
def test():
"""Run tests with coverage"""
local('nosetests --with-coverage --cover-package=standu... | [
"rehandalal@gmail.com"
] | rehandalal@gmail.com |
b5a71f36acc625624a71208d512343d843b77b43 | 045ec3ae16fc554a05510abc3697557ebc5ce304 | /CIME/tests/test_unit_hist_utils.py | fe6d4866c34d5f7a2d90e63a11b14989b5d4d88b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ESMCI/cime | c09223ee9b8a463bd00741ff39f60fda7639af89 | 02fad90a379cdbd3c1106cbd63324480f0bf7a22 | refs/heads/master | 2023-08-16T07:03:22.224344 | 2023-08-03T19:47:53 | 2023-08-03T19:47:53 | 31,605,662 | 159 | 179 | NOASSERTION | 2023-09-12T18:38:42 | 2015-03-03T15:33:00 | Python | UTF-8 | Python | false | false | 1,803 | py | import io
import unittest
from unittest import mock
from CIME.hist_utils import copy_histfiles
from CIME.XML.archive import Archive
class TestHistUtils(unittest.TestCase):
@mock.patch("CIME.hist_utils.safe_copy")
def test_copy_histfiles_exclude(self, safe_copy):
case = mock.MagicMock()
case.... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
a5197aea32de8058d3e8c39cda831c551cb28f70 | 91948d5be26636f1f2b941cb933701ea626a695b | /problem201_google_triangl number.py | 8997884bbddd5865d98e2a33713e6f7f60148908 | [
"MIT"
] | permissive | loghmanb/daily-coding-problem | 4ae7dd201fde5ee1601e0acae9e9fc468dcd75c9 | b2055dded4276611e0e7f1eb088e0027f603aa7b | refs/heads/master | 2023-08-14T05:53:12.678760 | 2023-08-05T18:12:38 | 2023-08-05T18:12:38 | 212,894,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | '''
This problem was asked by Google.
You are given an array of arrays of integers, where each array corresponds to a row in a triangle of numbers.
For example, [[1], [2, 3], [1, 5, 1]] represents the triangle:
1
2 3
1 5 1
We define a path in the triangle to start at the top and go down one row at a time to an ad... | [
"loghmanb@gmail.com"
] | loghmanb@gmail.com |
6fdc84973dc21b05bd052a39b41e700fb09348f8 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /nexus_auth/utils/eventlog.py | 1f7a88e78c520a5d6577a148fd8699927ab01510 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from nexus_auth import app, db
from nexus_auth.models.logging import AuditLogEntry
import requests
def log_event(origin, action, user, message, log_db=True, log_jabber=True):
if log_db:
entry = AuditLogEntry(user_id=user.uid,
area=origin.lower(),
... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
4e3dee2f1887cb0184fd6988050a82662ecb68dd | 0a3e24df172a206a751217e5f85b334f39983101 | /Design Pattern/sub1/abstract_factory.py | 132af56149cfd33171faadea742270d4210782f1 | [] | no_license | yeboahd24/python202 | 1f399426a1f46d72da041ab3d138c582c695462d | d785a038183e52941e0cee8eb4f6cedd3c6a35ed | refs/heads/main | 2023-05-06T04:14:19.336839 | 2021-02-10T02:53:19 | 2021-02-10T02:53:19 | 309,841,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!usr/bin/env/python3
from decimal import Decimal
class Factory(object): # acting like abstract method
def build_sequence(self):
return []
def build_number(self, string):
return Decimal(string)
class Loader(object):
def load(string, factory): # not... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
d04e7532c40544a2e7761f2cac929b1de7fe30e9 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/accounts/views_20211013005910.py | e7d21f3c6c15e95c3ad3a62aa89a8a4774cf69e8 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.shortcuts import render
# Create your views here.
def register(register):
| [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
ff22374f949580d7d69de2945038ce61fad4d099 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/336/usersdata/288/98639/submittedfiles/matriz2.py | 4a79841bb3410b607b59d2b22c904ae1e0d6c91f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # -*- coding: utf-8 -*-
import numpy as np
cont1=0
cont2=0
cont3=0
n=int(input('Digite um valor >=2: '))
while n<2:
n=int(input('Digite um valor >=2: '))
matriz=np.empy([n,n])
matriztrans=np.empy([2,n])
matrizultprim=np.empy([n,n])
mareizdiag=np.empy([n,n])
for i in range (0,n,1):
for j in range (0,n,1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
26a316bf7646387f30d2cf7bd6388f587906bc45 | ff7c392e46baa2774b305a4999d7dbbcf8a3c0b3 | /ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/aplt/set_value_command.py | 630771459bd51d47999d9c25bc5d678cf3ce8029 | [
"Apache-2.0"
] | permissive | rivamarco/alexa-apis-for-python | 83d035ba5beb5838ae977777191fa41cbe4ea112 | 62e3a9057a26003e836fa09aa12a2e1c8b62d6e0 | refs/heads/master | 2021-01-03T20:44:12.977804 | 2020-02-13T10:27:27 | 2020-02-13T10:29:24 | 240,229,385 | 2 | 0 | Apache-2.0 | 2020-02-13T10:05:45 | 2020-02-13T10:05:45 | null | UTF-8 | Python | false | false | 5,843 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
05448ed43b175ae1a122ed5a12db2aec2e466780 | 844501294ca37f1859b9aa0a258e6dd6b1bf2349 | /stubs/parsedatetime/pdt_locales/icu.pyi | 93e28da6e29ef5045ea2b491419e771557f51683 | [
"MIT",
"BSD-2-Clause"
] | permissive | 1ts-org/snipe | 2ac1719bc8f6b3b158c04536464f866c34051253 | ad84a629e9084f161e0fcf811dc86ba54aaf9e2b | refs/heads/master | 2021-06-04T22:32:36.038607 | 2020-03-27T05:18:36 | 2020-04-05T21:50:42 | 18,642,653 | 6 | 3 | NOASSERTION | 2019-10-08T02:02:50 | 2014-04-10T16:01:32 | Python | UTF-8 | Python | false | false | 271 | pyi | # Stubs for parsedatetime.pdt_locales.icu (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def icu_object(mapping: Any): ...
def merge_weekdays(base_wd: Any, icu_wd: Any): ...
def get_icu(locale: Any): ...
| [
"kcr@1ts.org"
] | kcr@1ts.org |
62bfc768f22263927da02c41851d63ced55b971a | 4f74e6d72b98cd1da2190313e4a7eb9d342cc93d | /glitchtip/asgi.py | f479b235c07dce1d668cb26b81df241eac0257c0 | [
"BSD-3-Clause",
"MIT"
] | permissive | adamgogogo/glitchtip-backend | ef0c529b71d5a4632a235b40a10e0b428a1cee3a | ee71d1b732d92868189d520aa111c09b116b7b22 | refs/heads/master | 2023-02-01T23:10:53.734450 | 2020-12-19T19:32:10 | 2020-12-19T19:32:10 | 323,588,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for glitchtip project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"david@burkesoftware.com"
] | david@burkesoftware.com |
3f77faceca54e6c9157b0bf96c05959d07e66987 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/containerregistry/v20170301/list_registry_credentials.py | e349f4d7e946280f0116c31183bbc0cfceebebcf | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,812 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
74f9ecaca866ae301b1a61e7b75a95e7ed37042e | 2b13d0d7df4b32c51d4d85387fb3e27f8e84084e | /my_runs/_sources/Main_0ca85520be0184e32eba926c5770d7e2.py | 325709fe6a4927c97a7aafc2f8a14c1a0ab5d377 | [] | no_license | tobystaines/MScFinalProject | 8ce0ed1a9e5ac574dc8690e0509f4b03737464c4 | e365838a51ba561de04a8004a48be043b8fb146f | refs/heads/master | 2021-06-21T15:02:34.967696 | 2019-08-20T10:05:49 | 2019-08-20T10:05:49 | 140,541,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,331 | py | import numpy as np
import tensorflow as tf
from sacred import Experiment
from sacred.observers import FileStorageObserver
import os
import errno
import datetime
import pickle
import UNet
import Dataset
ex = Experiment('UNet_Speech_Separation', interactive=True)
ex.observers.append(FileStorageObserver.create('my_run... | [
"tobystaines@gmail.com"
] | tobystaines@gmail.com |
02021ac93fca1584a2349483cd7570d2f89723d1 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/apimanagement/v20180601preview/get_api.py | 93062e0ebfbfb10e03747f5860446f007966ef4e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 12,915 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
2e9f9655ca4058857243f10f5a530a99417d7011 | 70f1c694bea6178c98b134b9c44952ef6693be9f | /CAAS/ReNameSRA_RelocaTEi_ReRunOnResults.py | 25ba7a64d511690710dea248e4e0a2a1f10ef582 | [] | no_license | JinfengChen/Rice_pop | 5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3 | ef272bf4825b29610c94de55eb53f231fb5febc6 | refs/heads/master | 2020-04-07T04:55:36.606594 | 2018-03-02T16:52:53 | 2018-03-02T16:52:53 | 33,501,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,540 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
import time
from Bio import SeqIO
def usage():
test="name"
message='''
python ReNameSRA_RelocaTEi.py --input Japonica_fastq
Run RelocaTEi for rice strain in Japonica... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
dc21944a63569648b8573e6a433f04b29ad4e6be | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_mac.py | 5e19d494c3783030806afa034e10968ddcfdb409 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py |
#calss header
class _MAC():
def __init__(self,):
self.name = "MAC"
self.definitions = [u'a waterproof coat (= one that does not allow rain to pass through): ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
70f2b9210119f2d5879668567b0e9e207d2bba8e | 2153a7ecfa69772797e379ff5642d52072a69b7c | /library/test/test_compiler/testcorpus/74_class_super_nested.py | a1686c98c0d832a9bd8aedfe422ee687411b168b | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Python-2.0"
] | permissive | KCreate/skybison | a3789c84541f39dc6f72d4d3eb9783b9ed362934 | d1740e08d8de85a0a56b650675717da67de171a0 | refs/heads/trunk | 2023-07-26T04:50:55.898224 | 2021-08-31T08:20:46 | 2021-09-02T19:25:08 | 402,908,053 | 1 | 0 | NOASSERTION | 2021-09-03T22:05:57 | 2021-09-03T22:05:57 | null | UTF-8 | Python | false | false | 212 | py | # Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
def fun():
class Foo:
def __init__(self):
super().__init__()
def no_super(self):
return
| [
"emacs@fb.com"
] | emacs@fb.com |
fff36f777febf189bd59b825f350b690367de7e3 | f64aaa4b0f78774464033148290a13453c96528e | /generated/intermediate/ansible-module-sdk/azure_rm_apimanagementapioperation_info.py | 5609631c7061089b2d3158989eb60ef08ef6b8e4 | [
"MIT"
] | permissive | audevbot/autorest.cli.debug | e8996270a6a931f243532f65782c7f8fbb1b55c6 | a507fb6e2dd7826212537f27d583f203aac1c28f | refs/heads/master | 2020-06-04T05:25:17.018993 | 2019-08-27T21:57:18 | 2019-08-27T21:57:18 | 191,876,321 | 0 | 0 | MIT | 2019-08-28T05:57:19 | 2019-06-14T04:35:39 | Python | UTF-8 | Python | false | false | 15,795 | py | #!/usr/bin/python
#
# Copyright (c) 2019 Zim Kalinowski, (@zikalino)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"audevbot@microsoft.com"
] | audevbot@microsoft.com |
c4441728e4c2fd660644adf3f31bc7b040393369 | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /custom/community/general/status_bar_clock/controllers/__init__.py | 5dacb5b2ac9861e919e683cd781d6bbe6496ff37 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # -*- coding: utf-8 -*-
# © 2018-Today Aktiv Software (http://www.aktivsoftware.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import main
| [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
66ac6b7417d7be10dff36b4974463b6abe8aad0c | 70149a0c3ec6b413574e52285ef083d40ce5b408 | /test.py | 35bcc485aaa90d24b4484cb37a821d7a8d359938 | [] | no_license | lychlov/compaign | 7d7ed3e0af9e03ebc0ed6bb6b586f046c49069b5 | 8b4d88f22c8278c2bfdd2eedc911a19652865945 | refs/heads/master | 2021-06-03T08:40:27.415833 | 2020-08-25T07:20:17 | 2020-08-25T07:20:17 | 145,792,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,668 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: test
Description :
Author : Lychlov
date: 2018/8/16
-------------------------------------------------
Change Activity:
2018/8/16:
------------------------------------------------... | [
"czk499658904@126.com"
] | czk499658904@126.com |
6fef571360e9314e5f9c731b7aac3ac1e1026cf4 | 9242319ca7796c6a3b18e760ddbf8290944d4b49 | /test/test_enocean_receiver.py | 1e118b4b6390d5bdfd67f5a6a7059a35599cbe38 | [
"MIT"
] | permissive | MainRo/python-flock | 79cfd7ce4edab40439c556b6621768438868d16c | e1faa78d6aba374493336651848daadad82387a8 | refs/heads/master | 2021-01-10T19:16:52.907538 | 2015-11-18T21:15:38 | 2015-11-18T21:15:38 | 29,210,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest import TestCase
from mock import patch, call
from flock.controller.enocean.protocol import EnoceanReceiver
class TestProtocol(EnoceanReceiver):
def packet_received(self, data):
return
@patch.object(TestProtocol, 'packet_received')
class EnoceanReceiverTestCase(TestCase):
def test_receive... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
aea7626754bf828a192cfb8b75e2737f4ca1bb81 | 751d837b8a4445877bb2f0d1e97ce41cd39ce1bd | /edabit/get-the-sum-of-all-array-elements.py | 93bdaa39d63ddef0d914699453ead734f12d464a | [
"MIT"
] | permissive | qeedquan/challenges | d55146f784a3619caa4541ac6f2b670b0a3dd8ba | 56823e77cf502bdea68cce0e1221f5add3d64d6a | refs/heads/master | 2023-08-11T20:35:09.726571 | 2023-08-11T13:02:43 | 2023-08-11T13:02:43 | 115,886,967 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
u"""
Create a function that takes an array and returns the sum of all numbers in the array.
Examples
getSumOfItems([2, 7, 4]) ➞ 13
getSumOfItems([45, 3, 0]) ➞ 48
getSumOfItems([-2, 84, 23]) ➞ 105
"""
import operator
def sum(xs):
return reduce(operator.add, xs)
as... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
0e602dfaa845ca851703c413ce1a548c2cec1477 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/IsvAuthSceneInfo.py | 59bf8806f92b1610731009758157f4352bc08cb4 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,493 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class IsvAuthSceneInfo(object):
def __init__(self):
self._scene_code = None
self._scene_permissions = None
@property
def scene_code(self):
return self._scene_code
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
b4e67e6713486739e9c8bab0cafa343f4640205b | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /Mysql/day5/insert.py | ff40cb7ca8bbbe14a540f848df8e7f9f0de5504f | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # insert_test.py
# 插入测试
import pymysql
from db_conf import *
#创建数据库连接
try:
conn = pymysql.connect(host,user,passwd,dbname)
cursor = conn.cursor() #获取游标
#定义sql语句
# sql = '''insert into orders
# (order_id,cust_id,amt)
# values('201801010002','C0002',444.55)
# '''
sql = 'delete from orders ... | [
"zh_en520@163.com"
] | zh_en520@163.com |
84d572034fee02964f3c369d9520d27f1e66dad6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03679/s869008403.py | 48a02e5eb2d96856b887b33de82b64a54cfa0625 | [] | 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 | 147 | py | x, a, b = map(int, input().split())
a *= -1
a += b
if a <= 0:
print("delicious")
elif a <= x:
print("safe")
else:
print("dangerous") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
33ba7708ad40728b600a25ef784d8dd3537d2f47 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_foreclose.py | 123d60eb470560c241e67bbf37217dea6bac11e8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py |
#calss header
class _FORECLOSE():
def __init__(self,):
self.name = "FORECLOSE"
self.definitions = [u'(especially of banks) to take back property that was bought with borrowed money because the money was not being paid back as formally agreed: ', u'to prevent something from being considered as a possibility in t... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
edc5f5b0ffedbe6dba2d55c3cae53622b0a66c40 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/lib2to3/tests/data/py2_test_grammar.py | 87585511947baea14ec9fbdf2c9880c945b3ca08 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/lib2to3/tests/data/py2_test_grammar.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
c14adaf27ac8d243d23ed47ee8d7fd61530e0bb1 | d9504b779ca6d25a711c13fafc1b8669c60e6f62 | /shape_recognition/libraries/general/confighardware.py | 017e0a4ded22f83515c5ec8383669473fd3c48c2 | [
"MIT"
] | permissive | ys1998/tactile-shape-recognition | dcdd3f4da66b4b3f6159dccf9cec4d367f6483d9 | b5ab6f1cdf04ff23e14b467a590533e7ee740b52 | refs/heads/master | 2020-03-18T03:01:17.985074 | 2018-07-28T09:46:16 | 2018-07-28T09:46:16 | 134,218,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | # -*- coding: utf-8 -*-
'''
#-------------------------------------------------------------------------------
# NATIONAL UNIVERSITY OF SINGAPORE - NUS
# SINGAPORE INSTITUTE FOR NEUROTECHNOLOGY - SINAPSE
# Singapore
# URL: http://www.sinapseinstitute.org
#-----------------------------------------------------------... | [
"yashshah2398@gmail.com"
] | yashshah2398@gmail.com |
7055b86d75dd80e1d208efe51177f3480945ae42 | 160c83b723cf03516ee99270b437a9a76aaf2b9f | /grr/core/grr_response_core/stats/stats_test_utils.py | 6f20bf5a1913b11afcc841713ef5ab64398dc480 | [
"Apache-2.0"
] | permissive | ehossam/grr | 3a3d32596a8b7ffc7195f57fb10fe2a1e0153bef | 08a57f6873ee13f425d0106e4143663bc6dbdd60 | refs/heads/master | 2022-01-06T19:51:40.628744 | 2018-11-01T07:43:22 | 2018-11-01T07:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,372 | py | #!/usr/bin/env python
"""Common tests for stats-collector implementations."""
from __future__ import absolute_import
from __future__ import unicode_literals
import abc
import time
import builtins
from future.utils import with_metaclass
import mock
import unittest
from grr_response_core.lib.rdfvalues import stats a... | [
"realbushman@gmail.com"
] | realbushman@gmail.com |
3bf43960f9da4d4e5d45b38e5e355589716262fb | b26e1704b963881e7681712c923787772ac463ec | /Courses/PythonBeyondTheBasics(OO-Programming)_David-Blaikie/5_DecoratorsAbstractOverloading/Overloading.py | 363bc69ec423eaffc2ff2f78f05e6164582b97c9 | [] | no_license | lakshmikantdeshpande/Python-Courses | 64f8a397b727042f2662fa7597ea0e73491717f3 | d15364b42c182d3487532853bde37deb48865494 | refs/heads/master | 2021-09-02T06:51:19.490674 | 2017-12-31T06:55:53 | 2017-12-31T06:55:53 | 94,890,325 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | import abc
class GetSetParent(object):
__metaclass__ = abc.ABCMeta
def __init__(self, value):
self.val = 0
def set_val(self, value):
self.val = value
def get_val(self):
return self.val
@abc.abstractmethod
def showdoc(self):
return
class GetSetInt(GetSetPar... | [
"lakshmikantdeshpande@gmail.com"
] | lakshmikantdeshpande@gmail.com |
df4255064e8d974709ec6b02c138f0f2edbd3933 | 7a6aca7d300c0752f2a73730b743a1a7361e941b | /tensorflow_graphics/projects/gan/losses.py | ff518414c8cdfba6b0e0cb2ad729061770a4a0b4 | [
"Apache-2.0"
] | permissive | tensorflow/graphics | ef0abe102398a58eb7c41b709393df3d0b0a2811 | 1b0203eb538f2b6a1013ec7736d0d548416f059a | refs/heads/master | 2023-09-03T20:41:25.992578 | 2023-08-08T21:16:36 | 2023-08-08T21:17:31 | 164,626,274 | 2,920 | 413 | Apache-2.0 | 2023-08-27T14:26:47 | 2019-01-08T10:39:44 | Python | UTF-8 | Python | false | false | 12,394 | py | # Copyright 2020 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0a59b48100a131f414e36062aac414f027c0acbf | d85f3bfcc7efb3313bd77ba43abbde8527c731d9 | /ch09/bottle_test.py | 970ecfd6283ec60311f0f7a3468eeda61c222bd3 | [] | no_license | freebz/Introducing-Python | 8c62767e88b89eb614abd3ea4cf19aae946f5379 | ecf2082946eac83072328a80ed1e06b416ef5170 | refs/heads/master | 2020-04-08T21:14:42.398462 | 2018-11-29T17:03:11 | 2018-11-29T17:03:11 | 159,736,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import requests
resp = requests.get('http://localhost:9999/echo/Mothra')
if resp.status_code == 200 and \
resp.text == 'Say hello to my little friend: Mothra!':
print('It worked! That almost never happens!')
else:
print('Argh, got this:', resp.text)
| [
"freebz@hananet.net"
] | freebz@hananet.net |
713e8ca9e8e74d63af7aaad24b92e81f479bd8fe | 1d63d795ceb579f3f4ac7d27d61ad2c3298dd8d1 | /vendor/blockwise_view.py | d52cfd63cbe14666bfdd5bf7da6bdd7ef32d8076 | [
"MIT"
] | permissive | austinpray/hey-brether | 4fd1f95f08673e35a15c53a9d4aca43502d0dc7e | 8fa9f83df0da5bc570f60a83a27f72babecb0c18 | refs/heads/master | 2021-08-27T16:42:29.578384 | 2021-08-22T21:41:22 | 2021-08-22T21:41:22 | 142,895,876 | 3 | 1 | MIT | 2018-07-30T20:13:18 | 2018-07-30T15:42:09 | Python | UTF-8 | Python | false | false | 3,745 | py | # lifted from
# https://github.com/ilastik/lazyflow/blob/master/lazyflow/utility/blockwise_view.py
# https://github.com/ilastik/lazyflow/blob/e98aa81cf2d55595df41b161d8e74607ec09c716/lazyflow/utility/blockwise_view.py
from __future__ import division
from builtins import map
import numpy
try:
# If you use vigra, we... | [
"austin@austinpray.com"
] | austin@austinpray.com |
d9040e75c7238b479f6ec9ac27efe459df9a5925 | 652121d51e6ff25aa5b1ad6df2be7eb341683c35 | /programs/e2boxadjust.py | 04168ce207137b8a80ac1faef462b4297f3943e0 | [] | no_license | jgalaz84/eman2 | be93624f1c261048170b85416e517e5813992501 | 6d3a1249ed590bbc92e25fb0fc319e3ce17deb65 | refs/heads/master | 2020-04-25T18:15:55.870663 | 2015-06-05T20:21:44 | 2015-06-05T20:21:44 | 36,952,784 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,711 | py | #!/usr/bin/env python
#
# Author: Steven Ludtke, 3/29/15 (sludtke@bcm.edu)
# Copyright (c) 2000-2015 Baylor College of Medicine
#
# This software is issued under a joint BSD/GNU license. You may use the
# source code in this file under either license. However, note that the
# complete EMAN2 and SPARX software packages... | [
"jgalaz@gmail.com"
] | jgalaz@gmail.com |
ddb9ad202cdbc5e33117c89d3cc18c383c3bf9cd | 576d1fb42b1a99dba18e78da58b352ebeac8fe64 | /tests/single_instruction_translation_validation/mcsema/register-variants/cmovncl_r32_r32/Output/test-z3.py | e8ffc88d2a477848d33164003d16aec5c67597ef | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | mewbak/validating-binary-decompilation-1 | b4542919d2e8f4a603cdadeade4dcf7919d6d1d8 | e7ae1838e8da7930730d76aaf01f315cf1d966a1 | refs/heads/master | 2021-01-08T05:33:48.560721 | 2020-02-12T00:27:01 | 2020-02-12T18:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,564 | py | #############################################
######## Auto Generated Proof Scripts #######
#############################################
import z3
import sys
status=True
test_name="UnK"
if(len(sys.argv) > 1):
test_name = sys.argv[1]
def solve(msg, lvar, xvar, s):
global status
s.set("timeout", 60000)
res =... | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
81c1ef2bb1721cb5d7b56e1f3673cd180502ce97 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/language_constant_service/transports/base.py | 3eb9eee19afd04d6ca83dd2da69278f139f23822 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,721 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7a202d230c87166a61c32289c482c0b4b5907e88 | d042b8895dc8347356fa4d5984d07bff41eecc73 | /tools/bt_store.py | 61a04f137230eb3634848d34dbc1a8d1e41c65c3 | [
"Apache-2.0"
] | permissive | jzx1230/obtainfo | 257b075c32c3448096391f258f42dd7f0c081350 | 883c29ab0a462d11682b60b9b52b2fc93031b816 | refs/heads/master | 2021-05-08T04:19:33.810848 | 2015-10-13T10:10:10 | 2015-10-13T10:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,111 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
import json
import codecs
import random
import pymongo
import sqlite3
import libtorrent
import chardet
import datetime
from pony.orm import *
from django.utils.encoding import force_unicode, DjangoUnicodeDecodeError
re_urn = re.compile(ur'xt=urn:btih:... | [
"pczhaoyun@gmail.com"
] | pczhaoyun@gmail.com |
0aeef5b781b774b162ccd571d7f2cfa4c241ed0e | e75148cf551a6b88c1af821ec1f624dbd8678900 | /tests/test_models/test_user.py | a997a9efdbcc970a3b699cd68c2599245042198c | [] | no_license | pforciol/AirBnB_clone | 8f4e22e4370bb22bf6c5a33af0d33384615c1be6 | 996141f4dd58c3e228231edd48ef831a1a1547d6 | refs/heads/master | 2023-03-20T00:00:26.283048 | 2021-03-03T11:41:56 | 2021-03-03T11:41:56 | 337,645,428 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | #!/usr/bin/python3
"""
Contains the TestUserDocs classes
"""
from datetime import datetime
import inspect
from models import user
from models.base_model import BaseModel
import pep8
import unittest
User = user.User
class TestUserDocs(unittest.TestCase):
"""Tests to check the documentation and style of User class... | [
"pierre.forcioli@holbertonschool.com"
] | pierre.forcioli@holbertonschool.com |
5c6f6a8921c5ac8bc3e36835c949fe3bf80386ba | 46d09a43bbb7ea25c7e949fc3d4910779378f9fc | /pipeline/jinja2/ext.py | 3505f15a806422d8877b7e72d0c6a4e96ffa8490 | [
"MIT"
] | permissive | vstoykov/django-pipeline | 9af20061a7ee93c167c7a4900fe8fb37143511f8 | e33375455174adb37e568efa2eccb988a86e132b | refs/heads/master | 2021-01-16T20:52:33.504023 | 2013-02-25T08:12:10 | 2013-02-25T08:12:10 | 8,404,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | from __future__ import unicode_literals
from jinja2 import nodes, TemplateSyntaxError
from jinja2.ext import Extension
from django.contrib.staticfiles.storage import staticfiles_storage
from pipeline.packager import PackageNotFound
from pipeline.utils import guess_type
from pipeline.templatetags.compressed import Co... | [
"timothee.peignier@tryphon.org"
] | timothee.peignier@tryphon.org |
38d5285ea9c56fe8af3ac150ca8d0023b1b63f08 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-1600.py | 98ea760c85a4dfcc68c58d2397d47f6d2eafcc4c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,274 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
51d3af2173d61c3bb263950d8b476c00b5b27f45 | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/meta/miniclientcomponentmeta.py | 7baac3f39ceaefa51e89191231fb90b8907f9ebf | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 790 | py | # 2016.08.04 19:51:42 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/MiniClientComponentMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class MiniClientComponentMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generated w... | [
"info@webium.sk"
] | info@webium.sk |
8f889de0036edda16cc3215daa0c446fe28675f8 | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/syst_hr_payroll_ma/hr.py | e4887dca32ebf3ab1fd708f0c1ed3fdeb57426be | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | import netsvc
from osv import fields, osv
import pooler
from tools.translate import _
import time
class hr_employee(osv.osv):
_inherit = 'hr.employee'
_columns = {
'matricule' : fields.char('Matricule', size=64),
'cin' : fields.char('CIN', size=64),
'date': fields.date('Date entree', h... | [
"geerish@omerp.net"
] | geerish@omerp.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.