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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67a9100f0b17cf60cd50dbaf88600d5f204e5a70 | e24fdd0def129e51471ab5a2f4467b813be3c4cd | /models_lesson_blog/models_lesson_blog/wsgi.py | 72407c05216f71c30ca4f27844c08e8de55299d9 | [] | no_license | Kevin0920/Python-Django | 0ec3661a0d883bf2691836faa60a945560187002 | e70588c075886d459d42ff1f9513fe1cf16295bd | refs/heads/master | 2021-07-07T13:15:14.309448 | 2017-10-05T23:19:18 | 2017-10-05T23:19:18 | 105,949,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | """
WSGI config for models_lesson_blog 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"kevinlingsike@gmail.com"
] | kevinlingsike@gmail.com |
6a4e311484dcd9a9949445c4c4cfce3fa8e607ed | 6698a85ffa4bc9cd17948db3dc23acb4bb35c864 | /Section1_basic/Chapter6/6.2.2_validateInput.py | 088f000192a7d0f287882f3cdd00369285a086e0 | [] | no_license | allisgao/python-auto-study | f13376e9d89ce69f014ed928d32a6ec7d57b9df3 | cd791887b6ed0be10c790f0142b3813dd45c1d6d | refs/heads/master | 2021-01-02T08:58:25.734336 | 2017-12-03T13:48:15 | 2017-12-03T13:48:15 | 99,106,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #coding = utf-8
while True:
print('Enter your age: ')
age = input()
if age.isdecimal():
break
print('Please Enter a number for your age. ')
while True:
print('Select a new password (letters and numbers only): ')
passwd = input()
if passwd.isalnum():
break
prin... | [
"gaojz017@163.com"
] | gaojz017@163.com |
c30b39416dac2595e237ce80723bff435462093a | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/tyto/endpoint/endpoint.py | 839a6d09285adc40491a3b2c61ec39edf330a342 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 16,768 | py | import abc
import requests
import urllib.parse
import json
from io import StringIO
import rdflib
from SPARQLWrapper import SPARQLWrapper, JSON
class QueryBackend(abc.ABC):
@abc.abstractmethod
def get_term_by_uri(self, ontology: "Ontology", uri: str):
return
@abc.abstractmethod
def get_uri_b... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
ff3c2ff58a0f647dc6da39d0f755f81c6aa24160 | 60c76a1c24ce864e40788a34a09a89b1e4c6b774 | /backend/factories.py | d7e795d1a2327cd23c72fd2205ca734d328e49e0 | [] | no_license | AgataSroka/codeforpoznan.pl_v3 | b2080f85e801702226a6bb40d3789b4cc35bda03 | 39e343a98286b3a1cee8f776a8e292f81af7246e | refs/heads/master | 2020-08-31T05:50:51.061786 | 2019-10-23T18:10:08 | 2019-10-23T18:10:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import factory
from backend.extensions import db
from backend.models import Hacknight, Participant, User
class BaseFactory(factory.alchemy.SQLAlchemyModelFactory):
class Meta:
abstract = True
sqlalchemy_session = db.session
class UserFactory(BaseFactory):
class Meta:
model = User
... | [
"stanislaw.krupienko@gmail.com"
] | stanislaw.krupienko@gmail.com |
c4bccf856509b05da32fdd35ff93ca10f98c05c3 | 2627881c5c58fb5f58c2a13ceb2600206bc7cf14 | /TestSuite/Development/MainTests/Adds/DBAddPrivateTradeTest.py | 7b2196baf992284d4cb7616855cefc2066fc957a | [] | no_license | cnxtech/ProjectExchange | f430b613cc84144ae69f5a8c3e7b753bdab068ca | e2591bcdd834c708a0f585ab7ef48c4ac67c68a9 | refs/heads/master | 2023-08-03T16:31:13.343854 | 2016-12-21T21:36:48 | 2016-12-21T21:36:48 | 185,272,433 | 0 | 0 | null | 2023-08-28T17:18:10 | 2019-05-06T21:10:09 | CSS | UTF-8 | Python | false | false | 1,759 | py | #-------------------------------------------------------------------------------
# Name: DBAddPrivateTradeTest
# Version: 2.0
# Purpose: Load and Remote Testing for DBAddPrivateTrade
#
# Author: Matthew
#
# Created: 07/31/2014
# Copyright: (c) Matthew 2014
# Licence: <your licence>
# Modif... | [
"matthewrastovac@yahoo.com"
] | matthewrastovac@yahoo.com |
2701ea9b27b387b2861d42b7584bada7142a2c93 | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /atcoder/corp/codefes2017_q2_c.py | a50b58f7dcb2cf63e96d41318bd6a103bd697872 | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import sys
sys.setrecursionlimit(10**6)
N, M = map(int, input().split())
edge = [[] for _ in range(N)]
for _ in range(M):
a, b = map(int, input().split())
a -= 1
b -= 1
edge[a].append(b)
edge[b].append(a)
color = [-1] * N
def dfs(v, c):
if color[v] != -1:
return color[v] == c
else:
... | [
"premier3next@gmail.com"
] | premier3next@gmail.com |
b376b71195f1abf7dcd7dd52fb5444458fbf940d | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW5/hw5_235.py | e35add073412d54a3d859ac3e76ff5674ad0f35d | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | def main():
width = int(input("Please enter the width of the box: "))
height = int(input("Please enter the height of the box: "))
outline = input("Please enter a symbol for the box outline: ")
fill = input("Please enter a symbol for the box fill: ")
for row in range(height):
if (row == 0 or row == (height - 1)):... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
5abfcd985845aa13867cf690653787d0c778c7c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03197/s563589989.py | ab9819a0c700a5f08f71a6679feb90a29497a40c | [] | 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 | 158 | py | n = int(input())
a = [int(input()) for i in range(n)]
f = True
for i in a:
if i%2==1:
f = False
if f:
print('second')
else:
print('first') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
65e4bd6336698386a16964d2f6bd483e8111c485 | c03ac514c1ba380d03c933ba08635f6e7ede33e1 | /deploy_two_model_large4.py | 82a7b134eacf1e709406559751f2d2eaf79478ed | [] | no_license | ysong07/LSTM_tracking_joint | 010b05daf42829db3033f20c5311ac4b90e5d5aa | 8b68ab94ef34d350b89ed82da0e00ba64f3f0aec | refs/heads/master | 2021-05-11T07:12:36.393357 | 2018-01-18T17:08:42 | 2018-01-18T17:08:42 | 118,013,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,835 | py | import tensorflow as tf
import pdb
import numpy as np
import h5py
import scipy.io as scipy_io
import numpy as np
from matplotlib.path import Path
from data_handler_inference import *
from params_refine_local_4 import *
from G_model_glob_share_weight import *
from G_inference_new4 import *
import os
import time
import ... | [
"song3681@126.com"
] | song3681@126.com |
c164333760995749f97a31662064b8a52c60a241 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/compute/routes/describe.py | 909d25a83bf5125c6290f9bf19a53086ed85b9aa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,813 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
732c8c119c119bf84977b2cfb2834e493a289c55 | 1997c8456eba4d5f7e7b9f23825d75384cbfe56a | /tests/person_test.py | 84951dc23194960cdff02dca5c10e64fdd104175 | [] | no_license | stavrossk/imdb-pie | ed6391772bca86861a47a0b64629f4643c5d340f | 99cdc9150f4317232d4c33ac78a1b0ccafa02217 | refs/heads/master | 2021-01-17T10:19:02.587305 | 2013-03-31T22:16:57 | 2013-03-31T22:16:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | from imdbpie import Imdb
imdb = Imdb({'anonymize': False})
movie = imdb.find_movie_by_id("tt0382932")
def run_tests():
print('actors have a name:')
if movie.actors[0].name == 'Brad Garrett':
print('passed')
print('actors have a role:')
if movie.actors[0].role == 'Gusteau':
print('pas... | [
"richard@richard.do"
] | richard@richard.do |
09a4e031fd1811aca5499f1beae33f415326eb9f | 0ab5d9d2abf5aab28299bfdcb09ce321d047412b | /layout/layout_hor.py | c45e048e80698ecc1f4bf9fc52b97b6a56cce7a8 | [] | no_license | isakura313/27_05_01 | 60488da37ff58f7888263ba1881ec04e8d5e0fa1 | 66b1053bcefddcade1b7b9b2cbf94dbca985a754 | refs/heads/master | 2022-08-24T10:39:48.507877 | 2020-05-27T16:58:58 | 2020-05-27T16:58:58 | 267,431,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | """" Простое приветствие на PyQt"""
import sys
# без sys нам не описать момент выхода из приложения
from PyQt5.QtWidgets import QApplication, QHBoxLayout, QLabel
from PyQt5.QtWidgets import QPushButton
from PyQt5.QtWidgets import QWidget
app = QApplication(sys.argv)
#sys argv дает возможность принимать аргументы из... | [
"isakura313@gmail.com"
] | isakura313@gmail.com |
1a956d97f3b3f21e0183d88fc2560bbbc56b9ade | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /aoj/12/aoj1240.py | 6b626fdf73617e04c6b2cab9751745751a886b14 | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | def decodeJ(s):
return s[-1] + s[:-1]
def decodeC(s):
return s[1:] + s[0]
def decodeE(s):
lenS = len(s)
return s[lenS//2:] + s[:lenS//2] if lenS % 2 == 0 else s[lenS//2+1:] + s[lenS//2] + s[:lenS//2]
def decodeA(s):
return s[::-1]
def decodeP(s):
ret = []
for i in s:
try:
... | [
"premier3next@yahoo.co.jp"
] | premier3next@yahoo.co.jp |
7ae268c0631e52d2f3af757ef581c61824306d7c | b228f4879f817a9fb9f3fb5444b784a656638ecc | /convnet.py | a9f98c40ba9210056deefaa96b2d220f4c5c0d6e | [] | no_license | SoulDuck/RegionProposalNetwork-tf | a309891230b156ef29cac8600228f92b8acc408e | 3beb8b31c24ab68b1f54f4edde334b8f3c9ee975 | refs/heads/master | 2020-03-23T20:34:10.481551 | 2018-07-24T01:25:41 | 2018-07-24T01:25:41 | 142,048,860 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,142 | py | #-*- coding:utf-8 -*-
from cnn import convolution2d
import tensorflow as tf
import numpy as np
def define_placeholder():
x_ = tf.placeholder(dtype=tf.float32, shape=[1, None, None, 1])
im_dims = tf.placeholder(tf.int32, [None, 2])
gt_boxes = tf.placeholder(tf.int32, [None, 5])
phase_train = tf.placehol... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
42bc2f257ff2f6e56a96405f76bf495b776fd1e5 | ff9129688c9083435020e8ac7f508b3c3206727b | /DjangoDay4/homework/models.py | 43bad38baf872bd54397a4f79e9e2f2645245673 | [] | no_license | ken2190/Django | 93a5889ce35dab2a8cc3c740e57e70c04467c687 | fa5a4f53b700394eedea581a9180ef97ea6f9b6a | refs/heads/master | 2023-03-18T12:30:33.471454 | 2019-05-26T06:30:33 | 2019-05-26T06:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | from django.db import models
# Create your models here.
class man(models.Model):
name=models.CharField(max_length=10)
age=models.IntegerField()
class wife(models.Model):
name=models.CharField(max_length=10)
age = models.IntegerField()
wife_man=models.OneToOneField(man,on_delete=models.CASCADE)
clas... | [
"1072799939@qq.com"
] | 1072799939@qq.com |
59ded816d7c804ff62047ac8da24d658ceb714f9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_cobblers.py | 5bbeb7899223fa43faa86f5a080ee0974a2da588 | [
"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 | 226 | py |
#calss header
class _COBBLERS():
def __init__(self,):
self.name = "COBBLERS"
self.definitions = cobbler
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['cobbler']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97e7fac458c215ed312bb59f8bc05ec850368125 | 57d907a992eb445526c24930b6441de13d6aae0a | /34 Find First and Last Position of Elements in Sorted Array.py | a279cacc3c3c3dd1b4a6e98b97dbb6db130f1c3f | [] | no_license | sunnyyeti/Leetcode-solutions | 9004505ed3d9d62561df3145e755c01e33d41bb2 | 34a78e06d493e61b21d4442747e9102abf9b319b | refs/heads/master | 2023-06-24T06:29:04.948997 | 2023-06-17T09:43:38 | 2023-06-17T09:43:38 | 166,708,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.
# If target is not found in the array, return [-1, -1].
# You must write an algorithm with O(log n) runtime complexity.
# Example 1:
# Input: nums = [5,7,7,8,8,10], target = 8
# Output: [3,... | [
"H.Zhang2@shell.com"
] | H.Zhang2@shell.com |
97cda2d5e2fc15356ce2c19fe53c6294512c8faf | ec0fb2acbe70d3d7f399aea42038221298c8268e | /part010/ch04_proj/sec2_proj_command/test_fig_ls2cc.py | 61f3dc20df3e57215bd9b979785348ae0a3ef817 | [] | no_license | GAIMJKP/book_python_gis | fa09567337bfccd4ab968228d4890ec0538ada50 | cd09be08df4cf4d3e06cf7c43d0b80cc76976a7e | refs/heads/master | 2022-11-07T18:32:22.340481 | 2020-06-20T13:22:58 | 2020-06-20T13:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # -*- coding: utf-8 -*-
from helper.textool import get_tmp_file
import os
from mpl_toolkits.basemap import Basemap
# import numpy as np
import matplotlib
matplotlib.rcParams['font.family'] = 'sans-serif'
matplotlib.rcParams['font.sans-serif'] = ['STKaiti']
import matplotlib.pyplot as plt
fig = matplotlib.pyplot.gcf... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
0c4cb60073c36011a54e31830dcf0f45f0189506 | f51c281d823870e7dbbe1f871cd981bb0ec8c07e | /minesweeper/minesweeper.py | 0ea7cb05fd7ea2fc829ed170ce40a6e35a32e578 | [] | no_license | Arxtage/leetcode | e5e02fc400afaa6c216e835a0ee74296e3134646 | 95fcea1fc810a13ca7ecaa1cde6d3609cc695a9d | refs/heads/main | 2023-08-27T19:37:17.691898 | 2021-10-23T23:48:51 | 2021-10-23T23:48:51 | 383,264,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | class Solution:
def updateBoard(self, board: List[List[str]], click: List[int]) -> List[List[str]]:
# DFS O(ROWS*COLS)
if board[click[0]][click[1]] =='M':
board[click[0]][click[1]] = 'X'
return board
ROWS, COLS = len(board), len(board[0])
... | [
"31474005+Arxtage@users.noreply.github.com"
] | 31474005+Arxtage@users.noreply.github.com |
f58ece17e9a0b9b09db6f8173ecbcb66f67b37b0 | bb970bbe151d7ac48d090d86fe1f02c6ed546f25 | /arouse/_dj/db/models/sql/subqueries.py | 85ce5ef343b41fee209d20f43052c820c56b7230 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | thektulu/arouse | 95016b4028c2b8e9b35c5062a175ad04286703b6 | 97cadf9d17c14adf919660ab19771a17adc6bcea | refs/heads/master | 2021-01-13T12:51:15.888494 | 2017-01-09T21:43:32 | 2017-01-09T21:43:32 | 78,466,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,030 | py | """
Query subclasses which provide extra functionality beyond simple data retrieval.
"""
from arouse._dj.core.exceptions import FieldError
from arouse._dj.db import connections
from arouse._dj.db.models.query_utils import Q
from arouse._dj.db.models.sql.constants import (
CURSOR, GET_ITERATOR_CHUNK_SIZE, NO_RESULT... | [
"michal.s.zukowski@gmail.com"
] | michal.s.zukowski@gmail.com |
8eee23fb3651983b37ae099777d984cc9ec91d4b | d590b3607c99115188899c72cb5e67efb0d7eec2 | /2020/December Leetcode/day-18-increasing-triplet-subsequence.py | eb12d15300d748b9bb17175d55eb582fc3b194a8 | [] | no_license | jeffysam6/Leetcode | 2de230cfdde45809dbda75aa036e7e71bfc2106a | e454b7506e105bed967859295fa6addadda0ebad | refs/heads/main | 2023-02-06T17:50:20.468625 | 2020-12-28T19:49:39 | 2020-12-28T19:49:39 | 317,493,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class Solution:
def increasingTriplet(self, nums: List[int]) -> bool:
one,two = float('inf'),float('inf')
for i in nums:
one = min(i,one)
if(i > one):
two = min(i,two)
if(i > two):
... | [
"jeffysam02@gmail.com"
] | jeffysam02@gmail.com |
f7f6a034c81400c4529c6ed3fbb94fa5326207f7 | 4a304d1688a03056c05ebab63f03a0eeb4afcb12 | /hellobot/urls.py | ffa1b69dd77d778a865a1b868b82784649321fe6 | [] | no_license | vishrutkohli/form_fillling_chatbot | 697703f30c94baa443c52d12025bde2f9b37799a | 41ac80929e8d86f5f183cc374ec959abd4c48114 | refs/heads/master | 2021-01-11T01:19:46.061076 | 2016-10-12T17:40:23 | 2016-10-12T17:40:23 | 70,724,379 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
import chatbot.views as v
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'hellobot.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^$' , v.i... | [
"kohlivishrut@gmail.com"
] | kohlivishrut@gmail.com |
0d50962fb87e253a183af3a2c7cfbcc366072ebd | 8130c34d546c323d6d5d2ca6b4a67330af08828f | /.history/menu_app/views_20210104163111.py | 914b89a8c2fab58418eb1140b8a18b01967bec69 | [] | no_license | lienusrob/final | ba2dad086fc97b21b537ef12df834dfadd222943 | f2726e31f1d51450e4aed8c74021c33679957b28 | refs/heads/master | 2023-02-15T01:36:54.463034 | 2021-01-07T12:47:05 | 2021-01-07T12:47:05 | 327,279,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py |
from .models import Cart, CartItem, MenuItem, ItemsCategory, Order, Orders, generate_order_id
from account_app.models import Profile
from .forms import AddToCartForm
from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404, redirect
from django.urls import reverse
from djang... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
d2e69e336829ebc608773236678da9df0fc35b2b | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/can_make_palindrome_from_substring/solution.py | 9924bde924d1eb06e90f58d1a7d8cf8fb4b63a46 | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from functools import lru_cache
class Solution:
def canMakePaliQueries(self, s: str, queries: List[List[int]]) -> List[bool]:
pre = [[0] * (1 + len(s)) for _ in range(26)]
for i, c in enumerate(s, 1):
j = ord(c) - 97
pre[j][i] += 1
if i < len(s):
f... | [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
fd863137d03b28263055005795b8ae7dc0ec6f8e | 57a973672d8689596cc45c44132635e873d24aa0 | /blog/migrations/0002_comment.py | c9c061d9478e2cc7c7f1ab0573aaf7394e3f520c | [] | no_license | BethMwangi/flasky-app | dbe251928630d8dbc6e0309e3a7b7e1ac50cea4c | 7f27783fa521b5861544325879f639107ec6d931 | refs/heads/master | 2020-03-27T18:55:17.851653 | 2016-08-01T14:05:27 | 2016-08-01T14:05:27 | 62,561,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-07-09 18:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
... | [
"wanjikumwangib@gmail.com"
] | wanjikumwangib@gmail.com |
29cec7ec41d88bd518e3184d9dc7b8c0c9c04b1c | 7e86a9bd9ec1f82838d114bf71ad0f6d0f12152c | /venv/Lib/site-packages/stellar_sdk/xdr/path_payment_strict_receive_result_code.py | 58f2b616147d5646409ddbfaa1f720efc98ccb04 | [
"MIT"
] | permissive | yunoUNo/fini | b39688e7203d61f031f2ae9686845b0beccd9b2a | a833bc64a3aaf94f7268ec6eac690aa68327dd96 | refs/heads/master | 2023-08-05T17:42:48.726825 | 2021-09-29T13:30:32 | 2021-09-29T13:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,633 | py | # This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from enum import IntEnum
from xdrlib import Packer, Unpacker
from ..__version__ import __issues__
from ..exceptions import ValueError
__all__ = ["PathPaymentStrictReceiveResultCode"]
class PathPaymentStrictRece... | [
"quit5123@gmail.com"
] | quit5123@gmail.com |
b0a023788d5c9c7ca56a08d9ac5296c58bbef4a3 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/labels/bundle_to_label_test.runfiles/com_google_fhir/external/pypi__apache_beam_2_9_0/apache_beam/examples/complete/game/user_score_it_test.py | 91af81c9f8019276e08f5b9ced965d4e27ca5379 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 166 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__apache_beam_2_9_0/apache_beam/examples/complete/game/user_score_it_test.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
e6c44e8d23d6ec75cc195a531952857c884f7adf | 33c19c13824db26e455177b18864963ea40d8cba | /trtools/tools/composition.py | 983a7a5ded5c9b5c24485d4f31895238d1b539f7 | [
"MIT"
] | permissive | jeffamaxey/trtools | 6767375d04d4c6702f61d0ad4839e4ebe6ffe3f8 | 39db1d72269f43e7ba380da5ad28d565137089ed | refs/heads/master | 2023-08-10T23:44:17.640063 | 2021-09-17T18:21:54 | 2021-09-17T18:21:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from trtools.monkey import AttrProxy, AttrNameSpace
from pandas_composition import *
import pandas_composition.base as base
def attrns_handler(self, name):
return AttrProxy(name, self.pobj, lambda obj, full: self._wrap(full))
base.WRAP_HANDLERS.insert(0, (AttrNameSpace, attrns_handler))
| [
"dale@dalejung.com"
] | dale@dalejung.com |
5098222e08f9bcba8582b550297a94582a620562 | dffc22f1e363172d91c72582f54edf088ca96ea8 | /lib/ffmpeg/vaapi/vpp.py | d457664dc4ee51d78111de529f83f8704e1432f7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FocusLuo/vaapi-fits-1 | 975d0eec398d91dcb904660b7cfda4c7b02fb01f | 52dbc2decf68cf89cb3ed7a11fa7b86e6903e829 | refs/heads/master | 2023-07-26T07:49:59.857414 | 2023-05-09T23:25:00 | 2023-05-11T06:43:06 | 170,789,770 | 0 | 0 | BSD-3-Clause | 2019-02-15T02:29:44 | 2019-02-15T02:29:44 | null | UTF-8 | Python | false | false | 2,652 | py | ###
### Copyright (C) 2019 Intel Corporation
###
### SPDX-License-Identifier: BSD-3-Clause
###
from ....lib import *
from .util import *
import slash
from ....lib.common import get_media, mapRange, mapRangeInt, mapRangeWithDefault
from ....lib.ffmpeg.util import have_ffmpeg_hwaccel
from ....lib.ffmpeg.vppbase import... | [
"ullysses.a.eoff@intel.com"
] | ullysses.a.eoff@intel.com |
2c795df1d6c91b4688069efdc3409d2c7ebe272c | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /AlphaPy/alphapy/plots.py | ada107d197535429af187851b8779183253c3f17 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,605 | py | ################################################################################
#
# Package : AlphaPy
# Module : plots
# Created : July 11, 2013
#
# Copyright 2017 ScottFree Analytics LLC
# Mark Conway & Robert D. Scott II
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
460715def1d24962d512fa268b7742a922ac6ae7 | 2f76da1ab7d6b8ea0184c5ad2c522518ab37823f | /build_meetings.py | eec8f146be547f2f15de0aaa91261e929fd6e105 | [] | no_license | abezgauzdina/knesset-data-committees | 4ebdddd0d5ec868b1f2037c66be2dd752431ca10 | d80346aae116365d9959fb48ad1f58666d04f020 | refs/heads/master | 2021-09-15T07:39:53.205577 | 2017-11-29T09:54:03 | 2017-11-29T09:54:03 | 115,918,597 | 0 | 0 | null | 2018-04-23T19:45:32 | 2018-01-01T12:43:43 | CSS | UTF-8 | Python | false | false | 2,875 | py | from datapackage_pipelines.wrapper import ingest, spew
from template_functions import get_jinja_env
from committee_meetings import build_meeting_templates
from committees import build_committee_templates
from committees_index import build_committee_knessets_list_template, build_committees_index_template
from members im... | [
"ori@uumpa.com"
] | ori@uumpa.com |
a7affd8cde15386eb675c595faf4cd05b3324378 | 583d03a6337df9f1e28f4ef6208491cf5fb18136 | /dev4qx/madeira/handlers/data/lemian.py | 045d95178176ab03e57612504afcaf36af9aaebf | [] | no_license | lescpsn/lescpsn | ece4362a328f009931c9e4980f150d93c4916b32 | ef83523ea1618b7e543553edd480389741e54bc4 | refs/heads/master | 2020-04-03T14:02:06.590299 | 2018-11-01T03:00:17 | 2018-11-01T03:00:17 | 155,309,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | #乐免订单接口
import time
import json
import logging
import tornado.gen
from urllib.parse import quote
from tornado.httpclient import AsyncHTTPClient
from utils.encryption_decryption import md5_signature
request_log = logging.getLogger("madeira.request")
RESULT_MAP = {
'1': 0, # 成功
'0': 9, # 未知错误
... | [
"lescpsn@aliyun.com"
] | lescpsn@aliyun.com |
efe8d0c19bb5adfc77eacf5032321cfc266f6755 | beab29b8e4b41dec4856bfcf9992f5f65b473f2d | /chembl_webservices/resources/bio_component.py | 071538c6600a51b524ed5e37e8f254203eda27c4 | [
"Apache-2.0"
] | permissive | CMD-Oxford/chembl_webservices_2 | 0b9b0e581a1c0cb3258656e16102662d4b7aa4d7 | b7b6e09ca434059615924788e572e5b4092bc158 | refs/heads/master | 2021-05-30T08:25:44.910985 | 2015-07-29T16:03:14 | 2015-07-29T16:03:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | __author__ = 'mnowotka'
from tastypie.resources import ALL
from tastypie import fields
from chembl_webservices.core.utils import NUMBER_FILTERS, CHAR_FILTERS, FLAG_FILTERS
from chembl_webservices.core.resource import ChemblModelResource
from chembl_webservices.core.meta import ChemblResourceMeta
from chembl_webservice... | [
"mnowotka@ebi.ac.uk"
] | mnowotka@ebi.ac.uk |
7fd83742890f9b4d9a637672ccc2e3445f08bc8c | b9e810c5ebc5aa35c33c6fcb6eb967d810d56df5 | /Python/other's/trident-escape-1.0-source/data/maps/area4/rm6.py | 1b85ca0a1aaba738d01c759cf0bd2ac2ed874006 | [
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | ZKing1000/Programming | 8cef20c6db326d0726eec0272057be89c777474d | e0a497e21f069cdd54f327b4d8d2fa80b52264eb | refs/heads/main | 2023-01-24T18:33:52.776720 | 2020-11-12T19:55:05 | 2020-11-12T19:55:05 | 312,379,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | @zone_trigger("exit_w")
def exit_w():
yield new_area("area4/rm5", "entry_e", WEST)
@zone_trigger("exit_s")
def exit_s():
yield new_area("area4/rm7", "start", SOUTH) | [
"awesomeholdengreen@gmail.com"
] | awesomeholdengreen@gmail.com |
1fc13a74194f0fe075d63fcd22d13a422251278c | f3997f566695a78d09fcab688db88499223dca17 | /analysis_julia/analysis_msd.py | 9c61f8ceb7219d15b1fde0d644a6d7c20604dc2d | [] | no_license | melampyge/CollectiveFilament | 600d7a426d88a7f8f31702edb2b1fea7691372d2 | 7d2659bee85c955c680eda019cbff6e2b93ecff2 | refs/heads/master | 2020-07-23T05:58:55.383746 | 2017-06-25T14:55:14 | 2017-06-25T14:55:14 | 94,351,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,144 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 09:18:47 2015
@author: jaeger
Script to analyse the the mean sqared displacement of the filaments in the simulations
The data is saved in msd.npy and can therefore be read in and summarised in plots which is done below it is important that the files are
at the specif... | [
"ozer.duman@gmail.com"
] | ozer.duman@gmail.com |
a5ceae14033089db64dcb3b646c7ced884f8f01e | 0b0a947c10038152fc56efbdde13eef3330adb34 | /hackerrank-problem-solving-solutions/80. Zipped.py | 43c0b004f2fe91b322c888e0e735c6ea9ed1a167 | [] | no_license | swapnanildutta/Python-programs | 9c382eb8c823571e4f098fff263d126665fbc575 | d47e2e3c4d648e0cc0ae1b89b83ce4f99db89f63 | refs/heads/master | 2021-11-18T22:16:57.276910 | 2021-09-04T13:07:36 | 2021-09-04T13:07:36 | 197,773,723 | 1 | 26 | null | 2023-04-09T10:51:57 | 2019-07-19T13:02:26 | Python | UTF-8 | Python | false | false | 182 | py | # Author Aman Shekhar
n, x = map(int, input().split())
sheet = []
for _ in range(x):
sheet.append(map(float, input().split()))
for i in zip(*sheet):
print(sum(i) / len(i)) | [
"Aman Shekhar"
] | Aman Shekhar |
99064edcd9380ab27934e9a2e4b6ca23274fe34b | 235c4b3aa630737b379050a420923efadd432da8 | /1stRound/Easy/917 Reverse Only Letters/SinglePointer.py | c40cd619c33f33c5dc51f7d4f8b78254b925cf81 | [
"MIT"
] | permissive | ericchen12377/Leetcode-Algorithm-Python | 4e5dc20062280ef46194da5480600b2459fd89f8 | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | refs/heads/master | 2023-02-22T22:43:55.612650 | 2021-01-28T04:00:20 | 2021-01-28T04:00:20 | 258,058,468 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | class Solution(object):
def reverseOnlyLetters(self, S):
"""
:type S: str
:rtype: str
"""
N = len(S)
l = N - 1
res = ""
for i, s in enumerate(S):
if s.isalpha():
while not S[l].isalpha():
l -= 1
... | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
cbc99f20384b898a8691d35457d4972492cee59f | 8c89354f77e55e4006392864660f675aa58586ad | /code/FlaskDay05/restful_app/resource.py | e9f114238dd4f5515f45c2e9511961c279e4277f | [] | no_license | SpCrazy/crazy | d77510d8b67c53b156e628d6a26cd34d72d4e00a | 7d088007b21d3167e689ab92084f6f44f0fb951e | refs/heads/master | 2021-06-21T10:41:48.547291 | 2019-12-06T16:20:23 | 2019-12-06T16:20:23 | 190,356,526 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | from flask import request
from flask_restful import Resource, fields, marshal_with, marshal
from restful_app.ext import db
from restful_app.models import Fruit
# 定制单个水果输出格式
output_fruit_fields = {
"id":fields.Integer,
"fruit_name":fields.String(attribute="name"),
"price":fields.Float
}
# 定制GET查询单个水果输出格式化... | [
"492247312@qq.com"
] | 492247312@qq.com |
efb808ce892526db0b1c08c629f4e7a3b5323ad2 | 51f6443116ef09aa91cca0ac91387c1ce9cb445a | /Curso_Python_3_UDEMY/pacotes/pacote2/modulo1.py | a42358f5a2a0863676dff5a7f9194bb6bf4ed7c8 | [
"MIT"
] | permissive | DanilooSilva/Cursos_de_Python | f449f75bc586f7cb5a7e43000583a83fff942e53 | 8f167a4c6e16f01601e23b6f107578aa1454472d | refs/heads/main | 2023-07-30T02:11:27.002831 | 2021-10-01T21:52:15 | 2021-10-01T21:52:15 | 331,683,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | def subtracao(x, y):
return x - y
| [
"dno.gomesps@gmail.com"
] | dno.gomesps@gmail.com |
aeede78e854f03fad2ebe2baf611aed5eb3a10e0 | 7b6377050fba4d30f00e9fb5d56dfacb22d388e1 | /fudge/processing/deterministic/specialCases.py | 30a5ac9d3c94aa72568c42bd00fb7f6bfe9548b4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/fudge | 0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370 | 6ba80855ae47cb32c37f635d065b228fadb03412 | refs/heads/master | 2023-08-16T21:05:31.111098 | 2023-08-01T22:09:32 | 2023-08-01T22:09:32 | 203,678,373 | 21 | 4 | NOASSERTION | 2023-06-28T20:51:02 | 2019-08-21T23:22:20 | Python | UTF-8 | Python | false | false | 5,165 | py | # <<BEGIN-copyright>>
# Copyright 2022, Lawrence Livermore National Security, LLC.
# See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
# <<END-copyright>>
import math
def twoBodyPhotoNuclearAtThreshold(masses, Q, modifiedProductGroupBoundaries, crossSection, angularData, legendr... | [
"mattoon1@llnl.gov"
] | mattoon1@llnl.gov |
76909b51b5318f1e6fc3b41b2721cd3d0cbb494e | a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25 | /projekt/.history/population_20200526172419.py | cf351da73648388f3c1b90b67f986d604320e2cc | [] | no_license | Qabrix/optimization_amh | 12aab7c7980b38812ec38b7e494e82452a4176b4 | 6a4f5b897a4bef25f6e2acf535ba20ace7351689 | refs/heads/main | 2022-12-28T10:57:00.064130 | 2020-10-17T22:57:27 | 2020-10-17T22:57:27 | 304,983,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,482 | py | import random
import numpy as np
from utils import decision
from neighboor import gen_neighbour
from moves_manager import MovesManager
opposites = {
"R":"L",
"L":"R",
"U":"D",
"D":"U"
}
class Inhabitant:
def __init__(self, gene, value=0):
self.gene = gene
self.value = 0
def __... | [
"kubabalicki@gmail.com"
] | kubabalicki@gmail.com |
f0e4edbdfec4bc1cc0f0b31007268986c8c9f0a9 | 7c6b89a17f95003e83eb97c77d1fc21318a8fe03 | /graphs/base/tests/test_adj.py | d5e83e8f691480205f37f7032a698ede59a451bf | [
"MIT"
] | permissive | ckanu13k/graphs | 6f29409696f7411cc21936ea446dfc64ce53ac24 | ed8ddb0c2530136d926fb2a6611721ae17f3c380 | refs/heads/master | 2021-01-18T00:12:48.848451 | 2016-07-07T15:05:17 | 2016-07-07T15:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | import unittest
import numpy as np
from numpy.testing import assert_array_equal
from scipy.sparse import csr_matrix
from graphs.base.adj import (
DenseAdjacencyMatrixGraph, SparseAdjacencyMatrixGraph)
PAIRS = np.array([[0,1],[0,2],[1,1],[2,1],[3,3]])
ADJ = [[0,1,1,0],
[0,1,0,0],
[0,1,0,0],
[0... | [
"perimosocordiae@gmail.com"
] | perimosocordiae@gmail.com |
942211291575710d76f96422db993d6dcbf65365 | 136777c629430c7db9fce4332b315be090cb7a62 | /mr/result_writers/base.py | b55395614830f5a1e0f0ef935e54d4111831d451 | [] | no_license | svisser/JobX | 43855f295922a64bc69ffd09c79281638ee660e6 | fa8c6999ced170118e9299bfd554a3b96b6fb841 | refs/heads/master | 2021-01-21T18:40:12.425359 | 2014-09-25T15:05:38 | 2014-09-25T15:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | """Represents a class that knows how to present our results."""
class BaseResultWriter(object):
def get_response_tokens(self, request_id, result_pair_gen):
raise NotImplementedError()
| [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
b0892ded93ca0c4fb3571684a389b52a5b39e0ca | 94f26144323b12266902b0ebc86129a44e64a409 | /wxmplot/config.py | d8a9fc8bef14af399c96be0797ff004979a60ae3 | [
"MIT"
] | permissive | FloGom/wxmplot | cd0d789982112d45b8dd7b68acbf10dd9c16fd3a | b88365944502118239777552865587d558ee75af | refs/heads/master | 2022-05-30T22:03:07.850380 | 2020-04-25T15:53:48 | 2020-04-25T15:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,953 | py | #!/usr/bin/python
"""
Plot Configuration of (simplified) properties for Matplotlib Lines. In matplotlib,
a line is a series of x,y points, which are to be connected into a single trace.
Here, we'll call the thing drawn on the screen a 'trace', and the configuration
here is for trace properties:
color color... | [
"newville@cars.uchicago.edu"
] | newville@cars.uchicago.edu |
a0d08c675e47f25c4d8811894668e4b8f5185ab5 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /common/recipes-rest/rest-api/files/jsonschema_lite.py | 1a5197d2f66ea3313776d9e4d83b9ece7fe6742c | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | Python | false | false | 4,777 | py | """
A lightweight implementation of JSON Schema for Python
This is expected to provide minimal required support
for JSON schema and a stop-gap measure while we evaluate
jsonschema. Hence the usage mode is purposefully set
similar.
"""
class ValidationError(Exception):
def __init__(self, entry, error):
se... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a310b5f6aa0c5e23b31961f0192f135a2afd6348 | 6a34b039ededb2e1dcdc07c6976475654ca0ae0a | /code_all/day19/homework/exercise01.py | 7d2d44c56445627fce953b52ec3f9decdc98e480 | [
"MIT"
] | permissive | testcg/python | 57c62671ab1aad18205c1dee4457b55009cef098 | 4db4bd5d0e44af807d2df80cf8c8980b40cc03c4 | refs/heads/main | 2023-07-09T13:19:24.740751 | 2021-08-11T09:25:20 | 2021-08-11T09:25:20 | 394,932,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | """
练习6:
需求:
定义函数,删除薪资大于2w的所有员工
定义函数,删除部门编号是9001的所有员工
步骤:
1. 根据需求,写出函数。
2. 因为主体逻辑相同,核心算法不同.
创建通用函数delete_all
定义在IterableHelper中
3. 使用lambda在当前模块中调用
"""
from common.iterable_tools import IterableHelper
class E... | [
"cheng@eaglesoftware.cn"
] | cheng@eaglesoftware.cn |
2f60a718581f37520940632d02f0c49e2ed91d53 | 117f066c80f3863ebef74463292bca6444f9758a | /ratelimit/ratelimit_persistent.py | 86fb572e975eb64e53db6f403d3ef0a600c5b7f3 | [] | no_license | cottrell/notebooks | c6de3842cbaeb71457d270cbe6fabc8695a6ee1b | 9eaf3d0500067fccb294d064ab78d7aaa03e8b4d | refs/heads/master | 2023-08-09T22:41:01.996938 | 2023-08-04T22:41:51 | 2023-08-04T22:41:51 | 26,830,272 | 3 | 1 | null | 2023-03-04T03:58:03 | 2014-11-18T21:14:23 | Python | UTF-8 | Python | false | false | 4,866 | py | """
Likely buggy. Just a sketch.
"""
import json
import logging
import os
import threading
import time
from collections import deque
from functools import wraps
import ratelimit
from joblib.memory import _build_func_identifier
from ratelimit import RateLimitException
logging.basicConfig()
logging.getLogger().setLevel... | [
"cottrell@users.noreply.github.com"
] | cottrell@users.noreply.github.com |
35a7bc81e66327fce45a46c8a0b2054ba9c19170 | 31317fee8b739559ca90a5cee532bc71a1e7196d | /sbds/sbds_logging.py | 70e069666aec2de0c4bda35d00081c1aef317938 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | arpwv/sbds | 402a966826f1ca4d88816b65ff7dfb19555c103c | a065599365c7b86349dc1223ca1013b3985f56e3 | refs/heads/master | 2021-01-24T03:43:53.102829 | 2018-02-16T02:35:29 | 2018-02-16T02:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | # coding=utf-8
import logging
import os
import time
from pythonjsonlogger import jsonlogger
def make_log_format(x):
return ['%({0:s})'.format(i) for i in x]
def get_current_log_level():
return log_level_from_str(os.environ.get(SBDS_LOG_LEVEL_ENV_VAR_NAME))
def configure_root_logger(stream=True):
root... | [
"john.gerlock@gmail.com"
] | john.gerlock@gmail.com |
ce79e3089e6c3a35fff11a59d517b864d7a49e98 | d8f1110f8e1665e7749b0bded26f26ceceae7479 | /026. Remove Duplicates from Sorted Array.py | c38db96ad52f7aae063bba389596de7bf80f1be2 | [] | no_license | jlyang1990/LeetCode | 67dce63e3b878f264b765875692047aa2014a02e | 921abbb1b0add8f92fb2d4e034950d8a31b9c90c | refs/heads/master | 2020-07-04T08:41:47.419960 | 2017-01-22T23:06:09 | 2017-01-22T23:06:09 | 73,863,017 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# two pointers
if not nums:
return 0
slow = 0
for fast in range(1, len(nums)):
if nums[fast] != nums[slow]:
slow... | [
"jlyang@ucdavis.edu"
] | jlyang@ucdavis.edu |
4d11ee5524b44b40c1556cd6e325556801f308c8 | af327b6738acf8ee9383dc4fd9bc82bf522a9afb | /第8章 机器学习工具包Scikit-learn/code_8.8.5.py | 873a1bcd21c26deaf6fb1ad7ef3f5da024a7daf0 | [] | no_license | xufive/ways2grow | c76b03d56645ae1731bcb450ab30e0cd171f0570 | 3abf8b942bfe997d73b73fe1fb61ff81ad74d093 | refs/heads/master | 2022-12-28T12:08:01.984345 | 2020-10-16T10:01:53 | 2020-10-16T10:01:53 | 265,993,044 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # -*- encoding: utf-8 -*-
"""
8.8.5 模型持久化
"""
import joblib
from sklearn.datasets import load_wine
from sklearn.svm import SVC
X, y = load_wine(return_X_y=True)
svc = SVC()
svc.fit(X, y)
joblib.dump(svc, r'..\res\svc.m') # 持久化模型
svc = joblib.load(r'..\res\svc.m') # 加载模型
| [
"xufive@sdysit.com"
] | xufive@sdysit.com |
c6c5425aafa59240faf107b99213c9c1418d5c24 | 0c6b4e9c5ecc5a7595717f9699953b227486ef3e | /plugins/lookup/onepassword_raw.py | 1cc7fc09d9b1a61d72538467dfe78740f98e11ea | [] | no_license | ansible-collection-migration/ansible.misc | d9c92e8bb0c17b3e2a92976215f523c2afaa5a46 | 3c02be2a8c03b2e375a1e1f37b0c119145ea358c | refs/heads/master | 2020-12-26T23:11:36.544511 | 2020-02-03T22:18:53 | 2020-02-03T22:18:53 | 237,681,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | # -*- coding: utf-8 -*-
# Copyright: (c) 2018, Scott Buchanan <sbuchanan@ri.pn>
# Copyright: (c) 2016, Andrew Zenk <azenk@umn.edu> (lastpass.py used as starting point)
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ imp... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
8f02904474cdc692df35bb456c8269bb05aa2162 | 9f3cb5dccda8f273dd2bd6226547f1cb232d1a6c | /util_tools/__init__.py | f3f9a1bf4d18be547a7973d9c90faf9867bc8b50 | [] | no_license | namexiaohuihui/demotest | fd80028d75ba7a3076aae9d15222ea70812501bb | dd3ad294cc119c1e786be8faf12d4f3ba2febc1b | refs/heads/master | 2020-08-29T10:11:19.357157 | 2019-10-28T08:48:13 | 2019-10-28T08:48:13 | 218,002,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # -*- coding: utf-8 -*-
# @author: Administrator
# @license: (C) Copyright 2016-2019, Ding dong online.
# @software: PyCharm
# @file: __init__.py.py
# @time: 2019-10-28 09:38:08
# @desc: | [
"704866169@qq.com"
] | 704866169@qq.com |
da624a4542774c96c8e8ab44f8bcb3b64bb554bf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s102819551.py | f3bfd92932fb62d836c06d53ad982b7a96fc4d81 | [] | 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 | 72 | py | N = int(input())
ans = 10**N -9**N *2 + 8**N
ans %= (10**9+7)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
112126e996a8aee611643757324c86df33e9929e | 9d1b1d52f99b86bec0e74878c0535057115dc667 | /settings.py | 8042ec9473847648ed3f621b2d503caa24354c03 | [] | no_license | antocuni/pesranking | 1f9b2bb8f03ba15f5f5d36ff6e70e0de8edc5002 | 574ecf8b5e49979adf709239a4df78de83acd039 | refs/heads/master | 2022-11-22T03:21:40.837305 | 2011-12-01T19:31:03 | 2011-12-01T19:31:03 | 275,815,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,865 | py | import py
DBPATH = py.path.local(__file__).dirpath('db.sqlite')
ROOT = py.path.local(__file__).dirpath()
DEBUG = True
TEMPLATE_DEBUG = DEBUG
AUTH_PROFILE_MODULE = 'pes.UserProfile'
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
# Local time zone for this installation. Choices can be... | [
"anto.cuni@gmail.com"
] | anto.cuni@gmail.com |
812f8661fd2c20212960a4f0e10946926252feae | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/12243203.py | 007a8566b2a6edf2abb566871f693653278fbb42 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/12243203.py generated: Fri, 27 Mar 2015 15:48:14
#
# Event Type: 12243203
#
# ASCII decay Descriptor: [B+ -> ( [chi_c1(1P) , chi_c2(1P)] -> (J/psi(1S) -> mu+ mu-) gamma ) K+ ]cc
#
from Configurables import Generation
Generation().EventType = 12243203
Gen... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
b622e1ff36c66e89b397784ce27a090b242825bd | 81975aec9065212f7338636a287708c1f2e7a529 | /serviceHub/serviceHub/urls.py | 80d2a9c93940d5b686f8194effbba1442aeb0a5f | [] | no_license | akashgkrishnan/assignment | 1d12d0672f9ae11da873f256afbc5003bb377495 | e5af2222d385ea9b1676ce20210f453bc49d059c | refs/heads/main | 2023-01-05T15:43:25.021202 | 2020-10-11T09:06:49 | 2020-10-11T09:06:49 | 303,069,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | """serviceHub 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')
Class-ba... | [
"krishnanag1996@gmail.com"
] | krishnanag1996@gmail.com |
11fd8bc31bc2c1af7276f1d237563cf9bdaccab0 | 1d6abe27a802d53f7fbd6eb5e59949044cbb3b98 | /tensorflow/python/util/dispatch.py | 51dfe3793ae7783821ef0f37d5dbcede25b6188b | [
"Apache-2.0"
] | permissive | STSjeerasak/tensorflow | 6bc8bf27fb74fd51a71150f25dc1127129f70222 | b57499d4ec0c24adc3a840a8e7e82bd4ce0d09ed | refs/heads/master | 2022-12-20T20:32:15.855563 | 2020-09-29T21:22:35 | 2020-09-29T21:29:31 | 299,743,927 | 5 | 1 | Apache-2.0 | 2020-09-29T21:38:19 | 2020-09-29T21:38:18 | null | UTF-8 | Python | false | false | 7,461 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d812eac9942e10a769f9a1e3cc971668f3731850 | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/oled/i2c/01-sh1106-hello-world.py | 0b698f12ef1e92a20ada22592e20248eed4515b7 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from machine import Pin, I2C
import sh1106
sda=machine.Pin(16)
scl=machine.Pin(17)
i2c = I2C(0, scl=scl, sda=sda, freq=400000)
display = sh1106.SH1106_I2C(128, 64, i2c, Pin(4), 0x3c)
display.sleep(False)
display.fill(0)
display.text('CoderDojo', 0, 0, 1)
display.show()
print('done') | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
3d05b3c055f18914da77d06fcc9091c5649d0122 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /test/test_polish_king.py | 290d61fa57f05286a662a99c2c918aa1f3d2d89e | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,453 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import dbpedia
from dbpedia.models.polish_king impo... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
a139c4777c16311ae3c46a839cedc7a37c6bb727 | c6305da493a782b561c039de309beb0d2f514034 | /fastai/train.py | e619d0e5f36c2ee8f26369e3eb55b4b39a3b2350 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | salama4/fastai | bea2f62c85704433f9e48ab0062c89fda3ca93c7 | 775dcd03f49f4f6385f19b503f954468b83afbea | refs/heads/master | 2020-12-02T06:00:21.246640 | 2019-12-30T09:54:48 | 2019-12-30T09:54:48 | 230,914,598 | 1 | 0 | Apache-2.0 | 2019-12-30T12:46:27 | 2019-12-30T12:46:27 | null | UTF-8 | Python | false | false | 12,425 | py | "Provides advanced training extensions to `fastai.basic_train`. Includes half-precision, learning rate finder, mixup, and one-cycle"
from .torch_core import *
from .callback import *
from .callbacks import *
from .basic_data import *
from .basic_train import *
__all__ = ['BnFreeze', 'GradientClipping', 'ShowGraph', 'I... | [
"sylvain.gugger@gmail.com"
] | sylvain.gugger@gmail.com |
ee3c910caae26717f689f20622e623234bbd9e7a | bbae9b61aab0c75c5694cdf27f78e6f877b6238f | /pyspeckit/spectrum/readers/galex.py | 69e56ff14436f62397afbdef875b28243fd71894 | [
"MIT"
] | permissive | r-xue/pyspeckit | 605736fdfe6ff6a2398e8977445d6cec563edb23 | fabd38ba869b814095ee41a178b207680247a36d | refs/heads/master | 2020-04-24T01:27:41.850321 | 2019-05-06T04:32:28 | 2019-05-06T04:32:28 | 171,599,024 | 0 | 0 | MIT | 2019-05-06T04:32:29 | 2019-02-20T04:10:46 | Python | UTF-8 | Python | false | false | 1,754 | py | from __future__ import print_function
from astropy.extern.six.moves import xrange
try:
import astropy.io.fits as pyfits
except ImportError:
import pyfits
import numpy as np
from .. import units
def read_galex(fitsfilename, orderselection='obj'):
"""
Read in a GALEX xg-gsp.fits file
Definition of... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
d9e88ec1a8ca56c7f11b30239015f2d9f9a17afe | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Mouse Color Constrain/base.py | a8ba3b9882c50adf38590a779490e72010c926f6 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | amountOfRed = 0
def displayText():
fill(0, 0, 0)
textSize(30)
text("MouseX: " + mouseX, 100, 200)
text("Amount of Red: " + round(amountOfRed), 70, 250)
def mapRed():
amountOfRed = map(mouseX, 0, 400, 0, 255)
def draw():
background(amountOfRed, 0, 0)
mapRed()
displayText() | [
"reactiveneon@gmail.com"
] | reactiveneon@gmail.com |
42e2c9ddd05bb944a75a52af3809e232f2af95a4 | 617600efd163ee0bbc9bd43cad69a3749d66a4f1 | /tests/test_dataset.py | 58097154be380fd47f0c0afb4b4fad74ffc5a54c | [
"BSD-3-Clause"
] | permissive | vinamramunot-tech/Voice-Cloning-App | 7dc4c2460438d98775b6cf0d69feaee391fbb6b5 | 14246d88998abfbd871e0aeac7283b5127196fa3 | refs/heads/main | 2023-03-30T15:47:51.438140 | 2021-03-16T23:53:00 | 2021-03-16T23:53:00 | 348,500,022 | 1 | 0 | BSD-3-Clause | 2021-03-16T21:44:06 | 2021-03-16T21:44:05 | null | UTF-8 | Python | false | false | 3,694 | py | import os
import json
from pydub import AudioSegment
from dataset.clip_generator import (
clip_generator,
load_audio,
load_forced_alignment_data,
create_audio_snippet,
)
from dataset.transcribe import transcribe
from dataset.forced_alignment.align import align, MIN_SWS
from tests.utils import TestClass... | [
"bandrew01@qub.ac.uk"
] | bandrew01@qub.ac.uk |
dfb812a0a4154846c623d13cd31d041c7075db72 | faf2b052e7f8cd79467ad34fbc173f3bf4b1a21d | /msu_scholars_api/models/ws_thesauri_ref.py | e1fd0b46dccb21ee7caf9377f9d8c826273036f4 | [] | no_license | atbe/MSU-Scholar-Api-Client-Python | 5d39577ce07ab285f0df9ee58a1ed7ff8ab08d2a | 31b263e5ad848fc6593c4662fbf2828ab9e2594c | refs/heads/master | 2021-05-04T00:51:46.720474 | 2018-03-12T23:52:17 | 2018-03-12T23:52:17 | 120,354,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,188 | py | # coding: utf-8
"""
PURE API 510
This is the Pure Web Service. Listed below are all available endpoints, along with a short description.<br/>In order to use the Pure Web Service, you must enter an API key. These are generated in the Administrator tab of Pure, and issues with a given set of available endpoints... | [
"abeahmed2@gmail.com"
] | abeahmed2@gmail.com |
1e1511169047058942d3b3f136c19eead8c99f3f | 8a9f0a0924706ded24ab4214aa42ab07f201e38b | /LeetCode_Python/Tree/Sum_Root_To_Leaf_Numbers.py | 5e4623184610f5b2cff673a46f066b234f3311b1 | [] | no_license | gitzx/Data-Structure-Algorithm | 687162565729b12551cb660aa55a94f1d382014c | d6af7dfdc4d3d139fd939687a45dd36e327c914c | refs/heads/master | 2021-06-03T21:27:17.750464 | 2019-06-27T10:50:48 | 2019-06-27T10:50:48 | 14,443,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | '''
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the total sum of all root-to-leaf numbers.
For example,
1
/ \
2 3
The root-to-leaf path 1->2 represents the number 1... | [
"emailzhx@126.com"
] | emailzhx@126.com |
3cb3b1bc4f4a402038f6b133cd5a961d166404e3 | 63cacdb7500c64fe0ba18c8d81d314f49ce0b7d8 | /admin_interface/version.py | 8fb9f3bc4d65270ee86980747dfb2d7b4aef90fc | [
"MIT"
] | permissive | jorgewqs/django-admin-interface | 9d97387dff65b9dd5f37b8cda44cb7deefe38a6a | aef2d56fba63e851b18f5f9828aef76579be8384 | refs/heads/master | 2020-05-02T09:17:22.175664 | 2019-03-22T10:41:40 | 2019-03-22T10:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | # -*- coding: utf-8 -*-
__version__ = '0.10.2'
| [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
f44ccb71a1cc28fdf6ef102fbb4f3abe2c38ebaf | cbbd0552f287a22929c263ca14cce31d2a612f5b | /tests/pyutils/test_is_finite.py | faf42cb758aa2b444d68352fbbdce9052336cb19 | [
"MIT"
] | permissive | MnO2/graphql-core | 690011748b15a2d174e85863d39980f2020c6577 | 7af97e22afb27861fc1b7d7ca0292095f8427ecb | refs/heads/main | 2023-05-28T04:49:15.882271 | 2021-06-11T10:03:17 | 2021-06-11T10:03:17 | 388,580,059 | 1 | 0 | MIT | 2021-07-22T19:49:11 | 2021-07-22T19:49:10 | null | UTF-8 | Python | false | false | 1,136 | py | from math import inf, nan
from graphql.pyutils import is_finite, Undefined
def describe_is_finite():
def null_is_not_finite():
assert is_finite(None) is False
def booleans_are_not_finite():
# they should not be considered as integers 0 and 1
assert is_finite(False) is False
a... | [
"cito@online.de"
] | cito@online.de |
495c6fcd0d310c05c88a49a757583860a862d5de | 88f1373e795415b0386952f466906ad5cf6948e0 | /src/config.py | c36e04de2cfaff7826740278522cbb7e684b8577 | [] | no_license | neldomarcelino/museuonline | 6f6afe3b5a7b4a967fc969e7fef85036b9942837 | a06290eaa1874b365af9e58ae2ccbac6eca07f65 | refs/heads/master | 2022-02-28T10:42:53.319316 | 2019-07-17T16:10:55 | 2019-07-17T16:10:55 | 173,173,489 | 0 | 1 | null | 2021-04-20T18:05:23 | 2019-02-28T19:19:53 | Python | UTF-8 | Python | false | false | 85 | py | DEBUG = True
ADMINS = frozenset([
'aissa@gmail.com',
'gfernando@gmail.com'
]) | [
"guerzeneldo@gmail.com"
] | guerzeneldo@gmail.com |
3cbecd4ccc88e81b4ad163834f88d3ff9796b520 | de33ba7be349eed5e2a1fc3f2bd9fce5bfdb9f13 | /phenocube/lib/python3.8/site-packages/pip/_internal/commands/__init__.py | 5d28ce79abd3955b33c24741054b133fc25a4452 | [
"MIT"
] | permissive | SteveMHill/phenocube-py | 9bebf239e24af3f97e59b080560228605e6611c5 | cb262aef1c0925efd2e955170bacd2989da03769 | refs/heads/main | 2023-02-24T03:35:11.461869 | 2020-12-22T12:15:22 | 2020-12-22T12:15:22 | 334,703,261 | 0 | 0 | MIT | 2021-01-31T16:37:21 | 2021-01-31T16:36:47 | null | UTF-8 | Python | false | false | 5,295 | py | """
Package containing all pip commands
"""
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
# There is currently a bug in python/typeshed mentioned at
# https://github.com/python/typeshed/issues/3906 which causes the
# return type of difflib.get_close_matches ... | [
"steven.smhill@gmail.com"
] | steven.smhill@gmail.com |
19311af9204bc40aa6dfa6a7ca93233e45d6e5f2 | 3600c277b1ab5f2d886c0497cd46a8d6ad9897b5 | /venv/Lib/site-packages/pysha3-1.0.2-py3.7-win-amd64.egg/_pysha3.py | cb38e8079d060b497ec84953b8af70d7d343a933 | [
"MIT"
] | permissive | phurinaix/issue-credential | eaedd492cab1afe967492ffe30b9a3f7e8fb6c74 | 2757f65a0f8cbcdd9593aa669e155c1b91c863c2 | refs/heads/master | 2022-10-26T06:38:57.366825 | 2019-06-24T01:02:54 | 2019-06-24T01:02:54 | 189,159,119 | 0 | 1 | MIT | 2022-10-15T11:19:44 | 2019-05-29T05:53:40 | Python | UTF-8 | Python | false | false | 299 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, '_pysha3.cp37-win_amd64.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"phurinaix@gmail.com"
] | phurinaix@gmail.com |
303f49b7fa3a18f9d790d6dd3a1debe3a818034e | 7f2689163e4bb97252bec1d974163b64b7d376fd | /object_detection/models/faster_rcnn_inception_resnet_v2_keras_feature_extractor.py | 5a9ff48cdad840610ebce242e09111ab76f07f32 | [
"MIT"
] | permissive | JahJajaka/afternoon_cleaner | c8e2299a7e0f9f02c28852d67beb09f8b604d192 | 590bdf58a216cbc6cfc47ef8f49d7af3df3703b7 | refs/heads/master | 2022-12-13T03:34:32.594707 | 2019-12-08T07:32:05 | 2019-12-08T07:32:05 | 218,489,388 | 15 | 7 | MIT | 2022-12-08T06:55:12 | 2019-10-30T09:23:55 | Python | UTF-8 | Python | false | false | 152,133 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"evgeniic@amdocs.com"
] | evgeniic@amdocs.com |
5c70126f4dbe31a010f3c4ef5217bc457d221018 | e5842bca8adba5a345fc88f17727d08c3b5348bc | /myproject/settings.py | e2b4cb2d2e0cb511ac200535edc0f7076420e255 | [] | no_license | cjccancino/python_coding_test | a6db03f1825c041b7ecf500d7225ff27cf534203 | bc278a8ac0e3fc3db0bed714f0f265e07dfa76c9 | refs/heads/master | 2022-11-26T22:49:34.441907 | 2020-07-30T10:19:52 | 2020-07-30T10:19:52 | 283,733,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"you@example.com"
] | you@example.com |
cd8fbc9d5314aa8abb548d8ae68af9c9edeebdd9 | 4354905f0650a8634daa7c7a9ee506876e35de2b | /cltk/prosody/latin/macronizer.py | 4cd15ed6b1a2a33c94bb5a5b787522277465f3b7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ryanfb/cltk | 05448de10e76f52fb9b0fea5fcb71477a5fab47c | 43b085b75ae819951bdfdbc816b1f22f4abf78a8 | refs/heads/master | 2021-01-17T20:49:58.086858 | 2016-08-11T15:23:29 | 2016-08-11T15:23:29 | 65,579,757 | 0 | 0 | null | 2016-08-12T19:53:00 | 2016-08-12T19:53:00 | null | UTF-8 | Python | false | false | 6,834 | py | """Delineate length of latin vowels.
The Macronizer class places a macron over naturally long Latin vowels. To discern whether a vowel is long, a word is
first matched with its Morpheus entry by way of its POS tag. The Morpheus entry includes the macronized form of the
matched word.
Since the accuracy of the macroniz... | [
"kyle@kyle-p-johnson.com"
] | kyle@kyle-p-johnson.com |
46a529fc89f76536a0cf2ac15ae6bb3dacc6b1b0 | 05e23912a0d8840f42e5c79378b4963be64a2106 | /tests/test_mock.py | 75b825105c699c7fb2d3532f473205c45e035bfe | [
"MIT"
] | permissive | sasano8/asy_rabbitmq | 9117b3b5ac4962cb063fb008a4630417b4b5729f | efeca681378c09b431a9b644be5723fa73dcf5c0 | refs/heads/main | 2023-04-03T13:08:18.789295 | 2021-04-11T14:13:18 | 2021-04-11T14:13:18 | 356,524,496 | 0 | 0 | null | 2021-04-11T14:13:18 | 2021-04-10T08:49:10 | Python | UTF-8 | Python | false | false | 2,850 | py | import asyncio
import time
import pika
import pytest
from pika import exceptions
from asy_rabbitmq.mock import MockBlockingChannel, MockBlockingConnection
def get_connection() -> pika.BlockingConnection:
param = pika.ConnectionParameters("rabbitmq")
conn = MockBlockingConnection(param)
# conn = pika.Blo... | [
"y-sasahara@ys-method.com"
] | y-sasahara@ys-method.com |
c8493890cc88bf2d9479079a720d9a86277995a8 | d4a89b9113980e7b8225a5cfc197f6742b3e2ffe | /1st year/PF/Lab/Assignment6/controller_test.py | e7c41f42f5bc0afebd47ce9746fad974807a6fc1 | [] | no_license | Akitektuo/University | 26a37d2831c3ed8a42dc27bd8c27778b479367c2 | 3c94b6aedcf6e69012d8e892d775481965e7551d | refs/heads/master | 2023-03-19T22:16:20.529707 | 2022-05-19T13:33:02 | 2022-05-19T13:35:03 | 212,976,476 | 2 | 2 | null | 2023-03-06T16:32:34 | 2019-10-05T09:46:05 | Java | UTF-8 | Python | false | false | 21,797 | py | import unittest
from controller import Controller
class ControllerTest(unittest.TestCase):
def test_preload(self):
controller = Controller()
services = controller.services
controller.preload_list()
self.assertEqual(services.get_students_count(), 10)
self.assertE... | [
"alexcopindean@yahoo.com"
] | alexcopindean@yahoo.com |
5219a2238d599e0498ecd5907fa108c5b9eafa12 | 656e7987382e910da3ba9b25de8a3d3fbc52d247 | /day05/class.py | 8c1b34b40550f81b153184e56e64c700020bba9f | [] | no_license | mindful-ai/HPEB02 | 5133d38419023a21449ab64534ac6405d2c600d1 | 1c60aec8a4a3d2e50f33eab296928a603e6bc993 | refs/heads/master | 2020-12-12T21:49:03.802859 | 2020-01-31T08:45:24 | 2020-01-31T08:45:24 | 234,237,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | class student(object):
nstudents = 0
# Data/attributes
def __init__(self, name, cls, rid):
self.name = name
self.cls = cls
self.regid = rid
self.physics = 0
self.maths = 0
self.chemistry = 0
self.biology = 0
self.average = 0
... | [
"noreply@github.com"
] | mindful-ai.noreply@github.com |
d4f843161eff45e7bd5da962e4213886db671ac0 | 2626f6e6803c8c4341d01f57228a0fe117e3680b | /students/kmsnyde/lesson06/waterregulation/decider.py | 830153bca0aa225d338b97d7082ac328c299697b | [] | no_license | kmsnyde/SP_Online_Course2_2018 | 9e59362da253cdec558e1c2f39221c174d6216f3 | 7fe8635b47d4792a8575e589797260ad0a2b027e | refs/heads/master | 2020-03-19T17:15:03.945523 | 2018-09-05T22:28:55 | 2018-09-05T22:28:55 | 136,750,231 | 0 | 0 | null | 2018-06-09T19:01:52 | 2018-06-09T19:01:51 | null | UTF-8 | Python | false | false | 3,232 | py | """
Encapsulates decision making in the water-regulation module
"""
class Decider(object):
"""
Encapsulates decision making in the water-regulation module
"""
def __init__(self, target_height, margin):
"""
Create a new decider instance for this tank.
:param targ... | [
"kmsnyder2@verizon.net"
] | kmsnyder2@verizon.net |
94addbcf6b6151abcafdbad239e919efcaf9db0a | 7491ceb405287660538e876317d3f69328757651 | /aydin/features/groups/dct.py | e5242efec407f89965bcd4ffbf82b31d3080e91b | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | royerlab/aydin | 4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1 | 9312f227605be26fce960373c1f29a71323da914 | refs/heads/master | 2023-04-29T20:45:42.515226 | 2023-02-16T22:21:07 | 2023-02-16T22:21:07 | 188,953,977 | 125 | 14 | BSD-3-Clause | 2023-03-15T01:04:16 | 2019-05-28T04:30:19 | Python | UTF-8 | Python | false | false | 2,541 | py | import numpy
from numpy.linalg import norm
from scipy.fft import idstn
from aydin.features.groups.correlation import CorrelationFeatures
class DCTFeatures(CorrelationFeatures):
"""
DCT Feature Group class
Generates Discrete Cosine Transform (DCT) features.
"""
def __init__(self, size: int, max_... | [
"noreply@github.com"
] | royerlab.noreply@github.com |
4995cc1bc179a6f83645991a2c75c0aff9047241 | ebffc319d163c951ee64aa8343a02dcc39d5ec25 | /demos/basic_objects.py | cbcbc209222e5473fe627139fffcb8bd6a69bbea | [
"BSD-3-Clause"
] | permissive | talos/dictshield | 5547aaa717be748aa31e92b69a0a062b686a76a3 | 516590fcddc3a18368692818434487b02ac12a02 | refs/heads/master | 2020-12-25T02:40:14.224138 | 2011-11-14T18:57:30 | 2011-11-14T18:57:30 | 2,683,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | #!/usr/bin/env python
"""From Media class to json structure:
{"_types": ["Media"], "_cls": "Media", "title": "Misc Media"}
From Movie class to json structure:
{"personal_thoughts": "I wish I had three hands...", "_types": ["Media", "Media.Movie"], "title": "Total Recall", "_cls": "Media.Movie", "year": 1990... | [
"jd@j2labs.net"
] | jd@j2labs.net |
89f00d38437a566e8e58197e77f1998e951217c1 | 1c8d03b54f07a386c8607e3ca7c40fd6fba7cfdc | /kiosque/website/theatlantic.py | 5a24e145e4dfe72819d1cf558004e96510b62ddd | [
"MIT"
] | permissive | TrendingTechnology/kiosque | be7ff43d38836d6c4003dc3c49e690913eeaec1c | c1728f0eb696ee1c8a1618e8731a165a234b3883 | refs/heads/master | 2023-07-03T09:02:40.595449 | 2021-08-09T23:41:59 | 2021-08-09T23:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from ..core.website import Website
class TheAtlantic(Website):
base_url = "https://www.theatlantic.com/"
author_meta = {"name": ["author"]}
clean_nodes = ["div"]
def article(self, url):
e = self.bs4(url)
for section in e.find("article").find_all("section"):
for c in sect... | [
"git@xoolive.org"
] | git@xoolive.org |
18c233cec9aea70edd6ec7b91c36175b4a623d3a | 9d994684359b96ded45c64281b5feca8db58dad5 | /Python/800 - IV/918A.py | 0531c747f5ec9a86f72b77233aba31efb1681c3c | [] | no_license | KuroKousuii/Codeforces | 7f38c67914ff6a1adb2d325d9f316e5fd122e463 | 80f5d46e2c7364ba52184bbf567e012235940be4 | refs/heads/main | 2023-07-17T14:24:41.713893 | 2021-09-05T18:51:39 | 2021-09-05T18:51:39 | 376,141,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | x = int(input())
first, second, third = 1, 2, 3
for i in range(x):
if i > third:
first = second
second = third
third = first + second
print('O' if i == first-1 or i == second-1 or i == third-1 else 'o', end="")
| [
"84732337+KuroKousuii@users.noreply.github.com"
] | 84732337+KuroKousuii@users.noreply.github.com |
2f585f8493c4af5a301b84bf82c7aa57f881cc48 | 1c2428489013d96ee21bcf434868358312f9d2af | /ultracart/models/email_stat.py | 5b6a6b70ad0460fcbd3126b0df32d07fc0d3c312 | [
"Apache-2.0"
] | permissive | UltraCart/rest_api_v2_sdk_python | 7821a0f6e0e19317ee03c4926bec05972900c534 | 8529c0bceffa2070e04d467fcb2b0096a92e8be4 | refs/heads/master | 2023-09-01T00:09:31.332925 | 2023-08-31T12:52:10 | 2023-08-31T12:52:10 | 67,047,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,972 | py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2 # noqa: E501
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class EmailStat(object):
"... | [
"perry@ultracart.com"
] | perry@ultracart.com |
92e91ab26b386c783a8b35e9c405b335cd19076a | 6fcd5bc2f32f94dc6f04bd4b5f6966e57716ef90 | /tests/test_options.py | aa8a245cda9db8ed777eb6cd6e2c18ab17a64e2e | [
"Apache-2.0"
] | permissive | wbelding/PyRFC | 0298a7fe06457aa50bb74ced96de0c4e80a6cd39 | c9659e7ed5bf496a38d3c25e0664c24884e96e07 | refs/heads/master | 2020-11-24T23:57:16.011648 | 2019-12-16T17:57:50 | 2019-12-16T17:57:50 | 228,397,381 | 0 | 0 | Apache-2.0 | 2019-12-16T13:49:19 | 2019-12-16T13:49:18 | null | UTF-8 | Python | false | false | 3,577 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import socket
import unittest
import pyrfc
from decimal import Decimal
from tests.config import (
PARAMS as params,
CONFIG_SECTIONS as config_sections,
get_error,
UNICODETEST,
)
class TestConnection:
def setup_method(self, test_metho... | [
"srdjan.boskovic@sap.com"
] | srdjan.boskovic@sap.com |
afa1ad56c4fdc36ff2f2c37166121a51019fda8d | 572ce2b8a9c687f302ea4953dd9bd978470d0c4b | /multithreading/barriers.py | 52a34f07df2698ce0074e87a062e080095ab1faa | [] | no_license | fainaszar/pythonPrograms | 5f539c8b80deb5d57e6aa984b0325389cf3b6f51 | 03f6c8b540981332e6f940308c7407a5038faac9 | refs/heads/master | 2021-09-07T18:10:43.603405 | 2018-02-27T05:27:37 | 2018-02-27T05:27:37 | 106,532,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Program not working! ... cannot import Barrier
import threading
from random import randrange
from threading import Thread
from time import ctime , sleep
"""
A barrier is a simple synchronization primitive which can be used by different threads
to wait for each other.
"""
num = 4
b = threading.Barrier(num)
name... | [
"fainaszar@gmail.com"
] | fainaszar@gmail.com |
d360985d8cac4482430898cc24fd072bfa7c0e73 | 25684b68251d60839535b3b9b508fab77781a465 | /com/Leetcode/1429.FirstUniqueNumber.py | bec22c10cf4ff7cc2e98ff2130c3bcbc02b4b4a9 | [
"MIT"
] | permissive | samkitsheth95/InterviewPrep | 69f78bd75801e7d9d2055d38811dd7b5a2c8888b | 6be68c19bcaab4e64a8f646cc64f651bade8ba86 | refs/heads/master | 2023-04-18T01:01:48.080833 | 2021-04-24T05:44:48 | 2021-04-24T05:44:48 | 250,386,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from collections import OrderedDict
class FirstUniqueByMe:
def __init__(self, nums: List[int]):
self.funique = OrderedDict()
self.repeted = set()
for i in nums:
if i in self.repeted:
continue
elif i in self.funique:
del self.funique[... | [
"samkitsheth95@gmail.com"
] | samkitsheth95@gmail.com |
263a998e0d94c823ebdffca69f70eb9dd261c0d5 | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/math/quat_rotate.py | 228ac394ed93264ffaded63a4cf178caa64a7a4e | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from .quat_inv import *
from .quat_multiply import *
from .vec2quat import *
def quat_rotate(Q, P):
"""
Rotates a point by a given quaternion
Parameters
----------
Q : Tensor
a (4,) or (N,4,) quaternion tensor
P : Tensor
a (3,) or (N,3,) point set tensor
Returns... | [
"maurizio.kovacic@gmail.com"
] | maurizio.kovacic@gmail.com |
34578104451e666c5842ff7079183f542bc2b159 | 6e9d6a682f20054e13d3764e95b8bd3b7b64fabf | /dailychallenge258.py | f8087b4e7e8e1c0513eaf9fd74ef9f3d23630612 | [] | no_license | SeanyDcode/codechallenges | 30a271e04bc2b360bca923ae868be65a9533c8db | 947cf3034911b381afaf777794d22d2af06aa5ba | refs/heads/master | 2022-11-07T21:22:56.927863 | 2022-10-18T23:33:13 | 2022-10-18T23:33:13 | 154,498,776 | 1 | 0 | null | 2022-10-18T23:02:05 | 2018-10-24T12:38:45 | Python | UTF-8 | Python | false | false | 512 | py | # from dailycodingproblem.com
#
# Daily Challenge #258
# In Ancient Greece, it was common to write text with the first line going left to right, the second line going right
# to left, and continuing to go back and forth. This style was called "boustrophedon".
#
# Given a binary tree, write an algorithm to print the no... | [
"noreply@github.com"
] | SeanyDcode.noreply@github.com |
8445d4447d9d424b6723f170f46f45a7cbff826e | f5b4b29540ec5c3d956dc3bd02f7648411fd4ef7 | /fastauth/email/server.py | 1f24316307fc39d53bb8bc771e60e13b8ab374eb | [] | no_license | aoirint/fastauth | 5658722b93dd2d39a89a05ba2dd8ae364656a466 | 537961c969a6b35ef68038e6543a03e1c4ec73aa | refs/heads/master | 2023-03-08T17:28:16.928797 | 2021-02-23T10:31:55 | 2021-02-23T10:31:55 | 341,429,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import os
import logging
logger = logging.getLogger(__name__)
from fastapi import FastAPI, Response, status
from pydantic import BaseModel
from . import (
EmailUserDatabase,
EmailUser,
)
app = FastAPI()
db = EmailUserDatabase(
database_url=os.environ.get('FASTAUTH_DATABASE', 'sqlite:///:memory:'),
)
db.mi... | [
"aoirint@gmail.com"
] | aoirint@gmail.com |
e13d835416319c04a1c720db518a4d004dc789b5 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /0_数组/旋转数组/三步翻转法实现循环右移.py | 5967232dac6e9664786b7b47bf549fb1c7095f35 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # 三步翻转法可以实现数组循环右移操作,其时间复杂度为 ,空间复杂度为 。
class Solution:
def solve(self, n: int, k: int) -> int:
"""
现在有一个长度为n的字符串,进行循环右移k位的操作,
最少对这个字符串进行几次区间反转操作能实现循环右移k位呢。
"""
k %= n
# 不用反转
if n == 1 or k == 0:
return 0
if n == 2:
re... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
4b970e2aa38e36571fb8f9e5920277939b9c536f | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/kms/encrypt.py | fb326527a7baa3e9ceea548c01f3fb3b24a4f5fd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 8,647 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
6d395f1678f4c22f975a86e192ffb8757d6d4a44 | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/test/programytest/aiml_tests/topic_tests/yesno/test_yesno_aiml.py | 98906cea75eba8de17accc373e671d4863dd7397 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
bc063cdf5de30612bbf85ba950f86448e7f5e616 | 107c9e55b4fd38756712f1d01a631de9ebeac1dd | /machines/migrations/0004_auto_20200528_2327.py | 26bc60335cd6c63da4777efeea24af9eb7d1eba8 | [] | no_license | AleksZ13ru/SKmobileSever | 63d86a5e78920e980af774194a751fd60f97f861 | f2edb1cdd412ba24088427703fa16733179dc995 | refs/heads/master | 2023-09-01T19:39:01.780607 | 2020-07-14T20:00:37 | 2020-07-14T20:00:37 | 272,340,302 | 0 | 0 | null | 2021-09-22T19:14:18 | 2020-06-15T04:16:52 | Python | UTF-8 | Python | false | false | 480 | py | # Generated by Django 3.0.6 on 2020-05-28 20:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('machines', '0003_auto_20200528_0002'),
]
operations = [
migrations.AlterField(
model_name='todolist',
name='services... | [
"a.zaykin@list.ru"
] | a.zaykin@list.ru |
5d526366b8072befd6adc8684b0f5a98fcd9fd6e | cba11c9b4db48c194b91b0da21054aec5acf8da0 | /test/__init__.py | 69a0e45970ee692a4fac66ea4cc3addd7e7d32b6 | [] | no_license | mrbox/python-pyhole | 70b3f8f1eae639c5cb63c233e009c45659b036d9 | 74f8c597a9a1a67a0ba575ca208596dc1a6fe9ff | refs/heads/master | 2021-01-23T23:45:15.551025 | 2013-07-13T21:51:52 | 2013-07-13T21:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | import test_pyhole
import test_pyholeyamled
import test_methods
| [
"cypreess@gmail.com"
] | cypreess@gmail.com |
5885645cb76d870d9242024bb64e195240f657a4 | 679ac87592d46881aa033e055db4d887d7c7b0a5 | /例子-0601-08.双分支判断.py | b026a159353175813c88aeda6f28bc2ee0a204dc | [] | no_license | blackplusy/0525 | 2aa054bf3484ae10eb19870c217fce0c4ad4c937 | 447ef04f43c14e7f1948606980a25a6e743bec24 | refs/heads/master | 2022-11-07T01:12:09.029465 | 2020-06-20T07:55:26 | 2020-06-20T07:55:26 | 266,659,107 | 0 | 2 | null | 2020-06-19T07:31:40 | 2020-05-25T01:48:14 | HTML | UTF-8 | Python | false | false | 154 | py | #coding=utf-8
name=input('为什么叫我贝塔?')
if name=='乔碧萝':
print('yes its me!!!')
else:
print('舒克的飞机刷没了')
| [
"noreply@github.com"
] | blackplusy.noreply@github.com |
6b53046157400b0e5086d90521a0bc07758decc7 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/desktop/gnome/cairo/actions.py | d5fff1ebcb38122e5e967fc15fd4be2f2afe2ce6 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
11aa59fc72e81931a593cee221168341aa6eedf6 | 6b2c9c056c2fc7a9c622355e9a00da00c22d626a | /venv/Lib/site-packages/PIL/ImtImagePlugin.py | 17d6e5b15b8409bdcd3b601976069a2ff3a704a7 | [] | no_license | LeoM666/GameKlanRedLion | 0a42f06add1ff396d375c2ace63d7112f41281f6 | 5cb22b8326bffcaf351180497b7c47b43e316621 | refs/heads/master | 2020-06-11T20:21:02.154926 | 2019-08-03T07:45:33 | 2019-08-03T07:45:33 | 194,073,919 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,343 | py | #
# The Python Imaging MainHall.
# $Id$
#
# IM Tools support for PIL
#
# history:
# 1996-05-27 fl Created (read 8-bit images only)
# 2001-02-17 fl Use 're' instead of 'regex' (Python 2.1) (0.2)
#
# Copyright (c) Secret Labs AB 1997-2001.
# Copyright (c) Fredrik Lundh 1996-2001.
#
# See the README file for informati... | [
"leonboiko061@gmail.com"
] | leonboiko061@gmail.com |
1e7309bc9c6a523351ab3ad7164c8d88837029c2 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/_upload_base_py/FPythonCode/FBusinessDataCreator.py | 5bd9d9eb53d67ff49fd2afb3c8227f00af6f698e | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | """ Compiled: 2020-09-18 10:38:51 """
#__src_file__ = "extensions/business_data_upload/etc/FBusinessDataCreator.py"
"""--------------------------------------------------------------------------
MODULE
FBusinessDataCreator
(c) Copyright 2015 SunGard FRONT ARENA. All rights reserved.
DESCRIPTION
-------------... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
ead408d2c41936991c412cae8a4a05c3074c2c2c | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/InceptionV3_ID1596_for_PyTorch/demo.py | f7f6d68e26d400b803f6589f21f48b9305affe33 | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,697 | py | # Copyright (c) Soumith Chintala 2016,
# All rights reserved
#
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://spdx.org/licenses/BSD-3-Claus... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
79fce54dfbf379ceda18bb4a10c65c47a0755ce9 | ef80f50dcd8139754daa8049a7625d5d83f4c9bc | /src/python/dxl/function/collections/__init__.py | 2ab8e02cba9fc221680602fddd7fa1970ce48e4a | [
"Apache-2.0"
] | permissive | Hong-Xiang/dxfunction | 4db2693a4818d3d7019518e242f0d013600c757a | d12b26453959c0b163175e78b8c593ac9b854133 | refs/heads/master | 2020-03-22T11:55:14.895089 | 2018-08-17T08:31:06 | 2018-08-17T08:31:06 | 140,004,555 | 1 | 0 | Apache-2.0 | 2018-07-30T07:22:39 | 2018-07-06T15:57:44 | Python | UTF-8 | Python | false | false | 46 | py | from .take import *
from .concatenate import * | [
"hx.hongxiang@gmail.com"
] | hx.hongxiang@gmail.com |
46411e33566d759c085f2cc090d4c17d0cff1ff3 | d45b08745ab3f1e951485fa6b9f905be65f71da4 | /Baekjoon/dfs_bfs01.py | e1cbb6168a8f4a0650ef9914d996b73e972b884d | [] | no_license | HYUNMIN-HWANG/Algorithm_practice | d0a82e73a735e22a70c98fd4882b66929061bd6c | 96b70fbea42ca11881546531fa6a9486e9a5289f | refs/heads/main | 2023-04-25T05:40:24.126757 | 2021-05-08T13:42:56 | 2021-05-08T13:42:56 | 324,109,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | # https://www.acmicpc.net/problem/1260
'''
DFS와 BFS
문제 :
그래프를 DFS로 탐색한 결과와 BFS로 탐색한 결과를 출력하는 프로그램을 작성하시오.
단, 방문할 수 있는 정점이 여러 개인 경우에는 정점 번호가 작은 것을 먼저 방문하고,
더 이상 방문할 수 있는 점이 없는 경우 종료한다. 정점 번호는 1번부터 N번까지이다.
입력:
첫째 줄에 정점의 개수 N(1 ≤ N ≤ 1,000), 간선의 개수 M(1 ≤ M ≤ 10,000), 탐색을 시작할 정점의 번호 V가 주어진다.
다음 M개의 줄에는 간선이 연결하는 두 정점의... | [
"hwangkei0212@gmail.com"
] | hwangkei0212@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.