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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
393d2a7f779a59a3e9c2733d3e854d790406516d | 3cb2216317e8e7d1ea5173d8d74f96802cb54b42 | /Desktop/rooms/movie/ch1/FAQ/models.py | 163a1b9cd10c5eb9730974a9e473d9bdebd49be0 | [] | no_license | yoongyo/bizchoolpay | 99f314337f26e2a7f368524ec15577abc2177dd7 | 52e9e428ef192ffd0a4897d52339c5850ee2775b | refs/heads/master | 2021-06-20T13:02:42.675041 | 2019-09-10T05:53:34 | 2019-09-10T05:53:34 | 197,711,700 | 1 | 0 | null | 2021-06-10T21:53:36 | 2019-07-19T06:04:26 | JavaScript | UTF-8 | Python | false | false | 186 | py | from django.db import models
from froala_editor.fields import FroalaField
class Qna(models.Model):
title = models.CharField(max_length=50)
text = models.TextField() | [
"jyg0172@naver.com"
] | jyg0172@naver.com |
4a0b759ff3470c034e0496fea37f89a89d13a56c | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/menu_app/views_20201231155614.py | cbfc99f1cb126f65e8b870add3e72efb1f36322e | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py |
from .models import MenuItem, ItemsCategory, Order, generate_order_id
from account_app.models import Profile
from django.views.generic import ListView
from django.shortcuts import render, get_object_or_404
class MenuListView(ListView):
model = MenuItem
template_name = 'items/menu_list.html'
def menu_list... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
a1a9ec277177c92c559481763c974ad72e67fc56 | 18a79067223932c2f7aa6ff6b81d0b3f36169db2 | /codeforces/959/A.py | 4ce8a3677fdd612f5dfa9e7c5a7f035e938934e0 | [] | no_license | aadiupadhyay/CodeForces | 894b0e5faef73bfd55a28c2058fb0ca6f43c69f9 | 76dac4aa29a2ea50a89b3492387febf6515cf43e | refs/heads/master | 2023-04-12T17:58:52.733861 | 2021-05-07T20:08:00 | 2021-05-11T20:07:11 | 330,149,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | def solve():
n=int(input())
if n&1:
print("Ehab")
else:
print("Mahmoud")
solve()
| [
"upadhyay.aaditya2001@gmail.com"
] | upadhyay.aaditya2001@gmail.com |
fd0194d5966835443dd0b710d104bd79b148dd4e | ec6bbd04264b4067f7e57ccee9cd42520c641a66 | /src/livestreamer/__init__.py | c82b4f6106022bcca68c4098f9527f4147f0b7aa | [
"MIT",
"BSD-2-Clause"
] | permissive | dotsam/livestreamer | 0da4090edfaf9f0ed47268e3f2cdaea893cbe330 | cc31f45a69e324d8a787664ea890ab42384acd18 | refs/heads/master | 2021-01-15T17:15:04.790104 | 2013-04-30T23:12:21 | 2013-04-30T23:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | """
Livestreamer is a CLI program that launches live streams from various
streaming services in a custom video player but also provides an API
that allows you to interact with the stream data in your own application.
"""
__title__ = "livestreamer"
__version__ = "1.4.3"
__license__ = "Simplified BSD"
__author__ = "C... | [
"chrippa@tanuki.se"
] | chrippa@tanuki.se |
a32dfbef133dece37f2a3c8babe98ea10d4a9e5c | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_kardex_valorado/models/product_template.py | e71598a6080244306be70b6fa875abc05ef40f5f | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the... | [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
9850ccf05d19e4adeedfb94e41755cb71638d814 | e78c8f6599c17cb539d3c8b480bbf230114f12f4 | /trnsfer/digitizer_rourkela.2/test.py | d46666c615d03ee321d99869ef08f9021103fb6c | [] | no_license | SunilKumar-ugra/opencv_tutorials | d39dc1a001dfe86bca4a596f0679c0b023a93bc0 | 188bd51f471ac785814b1eeda6b68e56595da2a3 | refs/heads/master | 2020-08-02T20:44:21.086116 | 2019-09-28T13:12:32 | 2019-09-28T13:12:32 | 211,501,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | numbers = [1,2,3,4]
print(numbers.reverse()) | [
"sk7899132595@gmail.com"
] | sk7899132595@gmail.com |
c95c155be4f58502b9073e70de64073ab230822f | 83277e8b959de61b655f614b7e072394a99d77ae | /venv/lib/python3.7/site-packages/django/__init__.py | ccad56545bb873b8b278bd2d45140bfae94c5e96 | [
"MIT"
] | permissive | hskang9/scalable-django | b3ed144670c3d5b244168fdd38f33e1f596253c0 | 162e0f4a3d49f164af1d33298fa9a47b66508cbf | refs/heads/master | 2023-04-29T05:33:23.460640 | 2020-03-27T00:55:28 | 2020-03-27T00:55:28 | 247,036,359 | 2 | 1 | MIT | 2023-04-21T20:53:08 | 2020-03-13T09:40:37 | Python | UTF-8 | Python | false | false | 799 | py | from django.utils.version import get_version
VERSION = (2, 1, 4, 'final', 0)
__version__ = get_version(VERSION)
def setup(set_prefix=True):
"""
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry.
Set the thread-local... | [
"hyungsukkang@Hyungsuks-Mac-mini.local"
] | hyungsukkang@Hyungsuks-Mac-mini.local |
9f7d2c22e9c6cd0c691a9922e13ec962ab5d9871 | 7312266874e50682cf909f4b77260c9a69f13999 | /python/packages/numpy-1.1.1/build/scripts.linux-i686-2.5/f2py | f8ebea33ecedb8fe572b49397aa4d8a33d57f125 | [] | no_license | mbentz80/jzigbeercp | e354695b90a72c7fe3c5c7ec7d197d9cbc18d7d9 | 1a49320df3db13d0a06fddb30cf748b07e5ba5f0 | refs/heads/master | 2021-01-02T22:44:16.088783 | 2008-08-27T23:05:47 | 2008-08-27T23:05:47 | 40,231 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | #!/usr/bin/env python
# See http://cens.ioc.ee/projects/f2py2e/
import os, sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
try:
i=sys.argv.index("--"+mode)
del sys.argv[i]
break
except ValueError: pass
os.environ["NO_SCIPY_IMPORT"]="f2py"
if mode=="g3-numpy":
p... | [
"mb434@cornell.edu"
] | mb434@cornell.edu | |
6ded34dc45d1f6be98102e939a2a4356b088fda6 | b6345c4aea6a98a3aed9a2e99fb425ea535f4e80 | /80.remove-duplicates-from-sorted-array-ii.py | 1eb7cae6ca49f821e69d033b47c2582b355278ec | [] | no_license | ranbix666/leetcode-1 | b94d256af9ddb9f1403891ed3229474fca92bea1 | 351b4d97db5afdaaa77d90deb24f5b16010d9fb5 | refs/heads/master | 2022-12-31T05:07:53.529302 | 2020-10-21T00:49:31 | 2020-10-21T00:49:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #
# @lc app=leetcode id=80 lang=python3
#
# [80] Remove Duplicates from Sorted Array II
#
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
length = len(nums)
if length <=2:
return length
i,j=1,1
dup_num=1
for i in range(1, length):
i... | [
"you@example.com"
] | you@example.com |
115714bbd20556ab3f8d88b18e4d6040832c923c | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/pool/pool.py | ccd0553c64b2d383ffd76227d61ffce7bab49b57 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
655cbf34ec7b37785271c5a6690923aea92d5012 | d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496 | /com.CheckProofing/2020/Test_w_46_HolidayDeals_T2/test_w45_urlcheck.py | f181121b05604a0799dd8694baf4ced2609b3453 | [] | no_license | ahmed-test001/python | 21a27248c4571a13c0ed4dccab256aede1beea3a | eab59b9a54fae1a51fbc18c391599eb3b0e28b3d | refs/heads/master | 2023-03-10T21:00:54.634028 | 2021-02-27T05:31:58 | 2021-02-27T05:31:58 | 342,778,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,300 | py | import time
import unittest
import sys
import os
import logging
import warnings
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from PageClass.UrlSegmentPage import URLS... | [
"ahmedu.ferdous@gmail.com"
] | ahmedu.ferdous@gmail.com |
3468b72c90ef1137f1be0c6fa91205d6a6537bfa | 7e41d5ec2f8ba704c99bbb252a216566fa0e7ce3 | /Clases/ProgDinamicaEstocastica/calculo_pi.py | de7961e56a5c7feb8c9ba7c683b0d6d902123ba9 | [
"MIT"
] | permissive | juanpanu-zz/PM_DataScience | 11cf1fab4939ba415bbae28b134182e7f3108e37 | 24e71616dae692e931e95cd3815ca88fa9b8a46a | refs/heads/master | 2023-01-03T01:15:50.893425 | 2020-10-24T16:32:16 | 2020-10-24T16:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import random
import math
import statistics as std
def lanzar_agujas(nAgujas):
dentro_circulo = 0
for _ in range (nAgujas):
x = random.random()*random.choice([0 ,1 ])
y = random.random()*random.choice([0 ,1 ])
distancia_centro = math.sqrt(x**2 + y**2)
if distancia_centro <= 1:
... | [
"juanpa.nb@gmail.com"
] | juanpa.nb@gmail.com |
e2045e416d07817a9a53439037f4d5744f15ea96 | d8fe787569b6bfbff06c7e70a8f0489779087b6f | /SBaaS_statistics/stage02_quantification_svd_postgresql_models.py | 0761dbed07e9a6d5a26390e1785c2c41f15bd864 | [
"MIT"
] | permissive | dmccloskey/SBaaS_statistics | d1bb8947cbbd2b656cc232398037c5d47c65d273 | cb380c01d2425d0db7e305cad8bad2b3fb38cd9d | refs/heads/master | 2023-01-23T21:27:29.616143 | 2017-09-30T10:49:13 | 2017-09-30T10:49:13 | 51,103,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,602 | py | from SBaaS_base.postgresql_orm_base import *
class data_stage02_quantification_svd_u(Base):
__tablename__ = 'data_stage02_quantification_svd_u'
id = Column(Integer, Sequence('data_stage02_quantification_svd_u_id_seq'), primary_key=True)
analysis_id = Column(String(500))
sample_name_short = Column(Strin... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
bf6628bc6c77d925e04b6d52a427a2fb1d6a56e3 | 6872caaa6c3bb59995627064ed1ab63df403bdf6 | /eyantra_provider/venv/Lib/site-packages/authlib/jose/rfc7518/jwe_algorithms.py | 2eaa2addcb6c9a16ab113efb308d3046d43b5e69 | [
"MIT"
] | permissive | Andreaf2395/OpenID-Provider | 3189780631d9057140e233930ace72e9bfc76e58 | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | refs/heads/Sameeksha_Final_Provider | 2023-08-21T16:05:42.864159 | 2020-06-18T18:47:16 | 2020-06-18T18:47:16 | 273,314,708 | 0 | 0 | MIT | 2020-06-18T18:48:34 | 2020-06-18T18:44:29 | Python | UTF-8 | Python | false | false | 743 | py | import zlib
from ._backends import JWE_ALG_ALGORITHMS, JWE_ENC_ALGORITHMS
from ..rfc7516 import JWEZipAlgorithm
__all__ = [
'JWE_ALG_ALGORITHMS', 'JWE_ENC_ALGORITHMS',
'JWE_ZIP_ALGORITHMS', 'JWE_ALGORITHMS',
]
class DeflateZipAlgorithm(JWEZipAlgorithm):
name = 'DEF'
description = 'DEFLATE'
def ... | [
"sameekshabhatia6@gmail.com"
] | sameekshabhatia6@gmail.com |
a0d2492761831861bcf3605b4d8adf8ad272d181 | 4e02d5b0b1b0739553fd40bbbdfb0d02c9830350 | /0264_Ugly_Number_II.py | bca132f2e2c47fa522492d5520e24ad6f5cfd752 | [] | no_license | bingli8802/leetcode | b039ab6af62f0c8992463393f561caafd21056e6 | a509b383a42f54313970168d9faa11f088f18708 | refs/heads/master | 2023-03-29T03:11:45.801090 | 2021-03-23T22:55:16 | 2021-03-23T22:55:16 | 279,321,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # 官网答案 背下来的
class Ugly:
def __init__(self):
self.nums = nums = [1, ]
i2 = i3 = i5 = 0
for i in range(1, 1690):
ugly = min(nums[i2] * 2, nums[i3] * 3, nums[i5] * 5)
nums.append(ugly)
if ugly == nums[i2] * 2:
i2 += 1
if ugly ==... | [
"noreply@github.com"
] | bingli8802.noreply@github.com |
e3a96ee0723b6047e4b1f6b98fd9a83627b721cd | dea198896f679e577a3fd0923e3fa4470da4b9cc | /journal/pyfakefs_mutants/AOR_BinOp_mutant_1507054910.py | 9e4f7013df9f236747a36cb114db54df4a61af6b | [] | no_license | naustarg/cbmcmutate | f138ab2b04b4be70d735de90815ac670ae6042ce | a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1 | refs/heads/master | 2020-04-04T08:10:15.913309 | 2018-05-21T18:23:58 | 2018-05-21T18:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219,331 | py | # line: 91
'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr... | [
"agroce@gmail.com"
] | agroce@gmail.com |
0a0324dfb371de4f9ae70e2b41ce921962b2d92a | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /59/59.spiral-matrix-ii.343720112.Accepted.leetcode.python3.py | 30d750461a50e6be58d12390f437776c0ce8b68e | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution:
def generateMatrix(self, n):
ret = [[0] * n for _ in range(n)]
i = j = d = 0
dirs = [(0, 1), (1, 0), (0, -1), (-1, 0)]
for x in range(1, n * n):
ret[i][j] = x
nextDir = dirs[d]
if (i + nextDir[0] == n) or (i + nextDir[0] == -1) or (... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
002d211aa4b1c5f792c8fcf4822758ab60bd4390 | e70a523c2137a3e59c94648f7470380a10d0cafa | /knn/kNN.py | f076baa4cacfed2b69c2aa0c2968bc84e4ff6370 | [] | no_license | Learn365/mlia | 74ea1ed1a3067573e721396be52bb34c851df264 | cc125072470399a1ede338629c45ee84aa927dfb | refs/heads/master | 2020-12-02T06:40:50.184402 | 2017-07-11T09:53:05 | 2017-07-11T09:53:05 | 96,876,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from numpy import *
import operator
def create_dataset():
group = array([[1.0, 1.1], [1.0, 1.0], [0, 0], [0, 0.1]])
labels = ['A', 'A', 'B', 'B']
return group, labels
def classify0(inX, dataset,labels,k):
dataset_size=dataset.shape[0]
print("dataset_size: {0}".format(dataset_size))
diff_mat=ti... | [
"="
] | = |
df484475b8c4ee40538f2dfda671b4ea946868b2 | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-07-27_modo_horario_cp_onda1_10d/script_modo_horario_2019-11-13_fchk_1030.py | e56cf5faba3caadfb606be5af150ad8308365a35 | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | #!/usr/bin/env python3
# Bibliotecas
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
# Variáveis
projectID = "40" # ID do projeto, conforme mostrado no frontend Web
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd4... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
202c0cace02261c9ff5de4da7c3e58eecc7054fc | 2319d28d92f2e7138855c57f70caa73d141982a0 | /tfx/examples/custom_components/tuner/setup.py | e82b7bc0ecc165c34efc78e21d624e7159c85e26 | [
"Apache-2.0"
] | permissive | shizukanaskytree/tfx | 725c984e4cf794049e334d08729c53d57308f9e9 | 6490e102850e91489722a49b20efef9ef64ef2d2 | refs/heads/master | 2020-06-21T13:51:23.559346 | 2020-01-23T18:24:23 | 2020-01-23T18:25:10 | 197,471,741 | 0 | 0 | Apache-2.0 | 2019-07-17T22:26:40 | 2019-07-17T22:26:40 | null | UTF-8 | Python | false | false | 2,882 | py | # Lint as: python2, python3
# Copyright 2019 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
0e672a4b8c19ba84b0b8ccf3ade3e5c80ebb9e96 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/linux_HSQLDB_Edit/TestCases/V62_Changes/GenericCombo1.py | 83217d211b678c502af82214c93cd57e0e7bf31a | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | useFixture(RecordEditor)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_03'
if window('Record Editor'):
select('FileChooser', commonBits.sampleDir() + 'zAms_LocDownload_20041228.csv')
commonBits.setRecordLayout(select, 'Generic CSV - enter details')
commonBits.doEdit(click... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
f96c55c56623e2c3c81baa7c8ef130906f4776b8 | 9a1d02868775a05c385656183e57e87d96dfad5c | /controllers/blockpy.py | 9807c5a64c64b3bfb8c2386a88b68eeea40e21a4 | [
"MIT"
] | permissive | koyong/blockpy-server | 90d1643c6ca121183ed4072412b689b522f73c95 | 51d8b579afb1e49dabd5221ce8b67f6f5f3b957a | refs/heads/master | 2023-01-06T02:18:59.396938 | 2020-11-05T20:50:34 | 2020-11-05T20:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,481 | py | from datetime import datetime
import os
import json
from typing import Tuple
from slugify import slugify
from natsort import natsorted
from flask import Blueprint, url_for, session, request, jsonify, g, render_template, redirect
from werkzeug.utils import secure_filename
from controllers.pylti.common import LTIPostM... | [
"acbart@vt.edu"
] | acbart@vt.edu |
1afee5fa0fb09bfaf6e61a0c343914220b5b38a0 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/Lib/multiprocessing/dummy/connection.py | c14c110c7fb493019c8b25c8c3c463aed24326f7 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,558 | py | # 2017.05.04 15:33:43 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/multiprocessing/dummy/connection.py
__all__ = ['Client', 'Listener', 'Pipe']
from Queue import Queue
families = [None]
class Listener(object):
def __init__(self, address = None, family = None, backlog = 1):
self._bac... | [
"info@webium.sk"
] | info@webium.sk |
bb97e0c8e194c1ad65e1045a03eeb3281e4ec919 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02418/s222322553.py | ccb704ac5fb8527332fe0395c49609aa8dcc76b0 | [] | 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 | 309 | py | s = str(raw_input())
p = str(raw_input())
i = 0
while(1):
if i == len(s):
print "No"
break
if i+len(p) >= len(s):
str = s[i:len(s)] + s[0:len(p)-len(s[i:len(s)])]
else:
str = s[i:i+len(p)]
if str == p:
print "Yes"
break
else:
i += 1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8abe1917296fc26b62dfb777e21bc0e1292e6a46 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/training/warm_starting_util.pyi | cb9360b56db598a6b794c7d5fc4bbc95bbce6af6 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | pyi | # Stubs for tensorflow.python.training.warm_starting_util (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.framework import ops as ops
from tensorflow.python.ops import state_ops as state_ops, variable_scope as variable_scope
from tensorflow.python.trainin... | [
"matangover@gmail.com"
] | matangover@gmail.com |
146431a6e59aa4c51fb43543573ae1a475a07514 | 18ca2e0f98b98941ff9d9e098e0be89166c8b87c | /Dfz/Cp5/c5_2_layer_naive.py | d7fbed36fab310af0a1a08e04e4f0feb8c7fda9c | [] | no_license | masa-k0101/Self-Study_python | f20526a9cd9914c9906059678554285bfda0c932 | 72b364ad4da8485a201ebdaaa430fd2e95681b0a | refs/heads/master | 2023-03-07T07:38:27.559606 | 2021-02-22T16:24:47 | 2021-02-22T16:24:47 | 263,381,292 | 1 | 0 | null | 2020-06-09T17:32:06 | 2020-05-12T15:47:48 | Python | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
class MulLayer:
def __init__(self):
self.x = None
self.y = None
def forward(self, x, y):
self.x = x
self.y = y
out = x * y
return out
def backward(self, dout):
dx = dout * self.y
dy = ... | [
"noreply@github.com"
] | masa-k0101.noreply@github.com |
ac9d06c13ad3f587a5af42436de65fd3820e2ed6 | 28e8ab381a8c1b4321cd83acff6aa33468166d6b | /python3.4Smartforest/lib/python3.4/site-packages/django/db/models/sql/__init__.py | a65430572a46d80ac87772dcecc52ab35c9773ce | [
"MIT"
] | permissive | letouriste001/SmartForest_2.0 | 343e13bc085d753be2af43aecfb74a5fffaa5e3b | 109b78bf1e8c8404800f377ab969395ccbb617be | refs/heads/master | 2020-12-21T16:54:22.865824 | 2016-08-11T14:17:45 | 2016-08-11T14:17:45 | 59,734,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from django.db.models.sql.datastructures import EmptyResultSet
from django.db.models.sql.query import * # NOQA
from django.db.models.sql.subqueries import * # NOQA
from django.db.models.sql.where import AND, OR
__all__ = ['Query', 'AND', 'OR', 'EmptyResultSet']
| [
"aubert.christophe.pro@gmail.com"
] | aubert.christophe.pro@gmail.com |
91ef2774db8d4b1c67c3f686ce3f16b53900ab73 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/172/29553/submittedfiles/ex1.py | fe52b8ad744e40c1c46f2d3b231c60df425fb033 | [] | 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 | 203 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = float(input('Digite a: '))
b = float(input('Digite b: '))
c = float(input('Digite c: '))
#COMECE A PARTIR DAQUI!
d=(b*b)-(4(a*c))
print'%.2f'%d | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f16991a416a5998a2e6a6f9937ebab2e5f17233 | 0f156d1c2be7148766df17ab8d91bc0219ab3977 | /src/apps/api_v1/urls.py | 190a2e655dc5e28a93deedeaa8e7f1be55ae948a | [] | no_license | roksavsk/cursor-django-trello | 0929e6a60ddd1fe5a55683fe8f0076862688cf1c | 40389e7d86961b3d4fb823a0b542e97e281032ce | refs/heads/master | 2023-07-12T18:39:22.668434 | 2021-08-26T09:27:06 | 2021-08-26T09:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from django.urls import include, path
from rest_framework.authtoken.views import obtain_auth_token
from apps.api_v1.views import HealthcheckView, test_django_sessions_view
app_name = 'api_v1'
urlpatterns = [
path('api-token-auth/', obtain_auth_token, name='auth_token'),
path('healthcheck/', HealthcheckView.a... | [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
f9dc7b1e174d75fef7d6d0c9e65b050632862495 | 89c3fb0baedf649e21ae582d2b27205d0853e8e8 | /test_scrapRecipe.py | 7259fb25e94ca69b3841d39f0636eebd304fa51d | [] | no_license | Midoriii/Cocktail-Recommender | 0bbe1c02373f04799f29e7e646842e3bc6245b1b | 4744ca460b74b8ced3f9a3da23ceee1e3f1a45a9 | refs/heads/master | 2022-07-09T18:53:53.552927 | 2020-04-05T20:18:52 | 2020-04-05T20:18:52 | 243,741,312 | 2 | 0 | null | 2022-06-22T01:17:22 | 2020-02-28T10:55:55 | Python | UTF-8 | Python | false | false | 19,434 | py | from unittest import TestCase
import scraper
import Recipe
bacardi_pina_colada = scraper.parse_page_from_link('https://www.liquor.com/recipes/bacardi-pina-colada')
smoke_break = scraper.parse_page_from_link('https://www.liquor.com/recipes/smoke-break')
verano_en_valencia = scraper.parse_page_from_link('https://www.liq... | [
"you@example.com"
] | you@example.com |
25962801501d7455dcb152a34fd29d85e8506db7 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007-EOL/system/devel/subversion/actions.py | 989ef02fc8a9508ffa7b71039c460b2d8ed3aa72 | [] | 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 | 2,730 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2007 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 shellto... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
c02397e509b9fa09c24ffc0ddbce00ade72cef73 | 8269e5830e73b1a1e88cf9ab7ff47588ec7e25c8 | /Ch03LinearModel/LDA.py | 72aa76fdaf66bd6ad11386f4828c2138aca43fe9 | [] | no_license | sdubrz/MachineLearningStudy | 5bf63a2e361fbef7c1a4054e201883ca26d8842a | cf7e22ce06229ee43072912f23f80b06315f5ceb | refs/heads/master | 2021-06-29T00:38:36.038432 | 2021-01-15T12:10:55 | 2021-01-15T12:10:55 | 204,708,364 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | # 线性判别式分析
import numpy as np
import matplotlib.pyplot as plt
import numpy.linalg as LA
DATA = np.array([[0.697, 0.774, 0.634, 0.608, 0.556, 0.403, 0.481, 0.437, 0.666, 0.243, 0.245, 0.343, 0.639, 0.657, 0.360, 0.593, 0.719],
[0.460, 0.376, 0.264, 0.318, 0.215, 0.237, 0.149, 0.211, 0.091, 0.267, 0.057,... | [
"sdu2014@126.com"
] | sdu2014@126.com |
05081a638f841ab53933b5493201ce3f60254752 | 9a0eb3e292d57b59198c7c66a994372ced9cfa5b | /nodes/0.8.x/python/Room.UnplacedByNameAndNumber.py | 4139f427bf92d889b24c279d0a8caeda16827b0b | [
"MIT"
] | permissive | andydandy74/ClockworkForDynamo | 544ddf0893f5c0072fca7934f4e128001771f767 | 528400c667c4c3f2b51814af84e85c8fab8a8059 | refs/heads/master | 2023-08-19T03:07:33.489926 | 2023-08-13T04:31:17 | 2023-08-13T04:31:17 | 15,043,988 | 184 | 100 | MIT | 2023-09-04T18:47:40 | 2013-12-09T10:11:01 | Python | UTF-8 | Python | false | false | 685 | py | import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
doccreation = doc.Create
names... | [
"dieckmann@caad.arch.rwth-aachen.de"
] | dieckmann@caad.arch.rwth-aachen.de |
93a902eed25d328073e5c618474abb7ed2066070 | 4182a9456d87dd96865790fd09ad981892866202 | /SimpleApp/SimpleApp/urls.py | 23859aa2c19b4b1ef0b2253682e17be691491546 | [] | no_license | madeyoga/SimpleApp | e4d3a0bb591d713a118cde91aca7e47d0924fae5 | 6f1173bbbb240240b00b1d414e4b2bfe7f418b10 | refs/heads/master | 2022-12-01T15:34:54.273566 | 2020-08-09T05:55:10 | 2020-08-09T05:55:10 | 254,836,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """SimpleApp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"vngla21@gmail.com"
] | vngla21@gmail.com |
f0dbebccbf152792ab1d492244cc66a0ae48cd2e | 56fd5709c4f27d3b730efc550302e8edcf12682b | /tests/forecast/test_forecast_ensemble.py | 644634dba98ba462765346bb64f067ac5450ad79 | [
"BSD-3-Clause"
] | permissive | Shreyanand/Merlion | 7a936358d16376ac73110e3ca289b57f3611a019 | 321866c7c330e2e0daff8f233195891f05c4b88d | refs/heads/main | 2023-08-06T05:50:02.647786 | 2021-09-24T15:24:37 | 2021-09-24T15:24:37 | 410,012,090 | 0 | 0 | BSD-3-Clause | 2021-09-24T15:22:44 | 2021-09-24T15:22:44 | null | UTF-8 | Python | false | false | 4,428 | py | #
# Copyright (c) 2021 salesforce.com, inc.
# All rights reserved.
# SPDX-License-Identifier: BSD-3-Clause
# For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
import logging
from os.path import abspath, dirname, join
import sys
import unittest
import numpy a... | [
"abhatnagar@salesforce.com"
] | abhatnagar@salesforce.com |
7f1274fc2df583ad73ded9bd277fe02f742ded8f | ed17bf0d2bfe45e58f8eac961f4433e26a5df791 | /community/community/urls.py | c2204ea5b1c7f7431fa15625a244b050b751809f | [] | no_license | Mostacosta/community | 80ca32c34be16f34c173297feb6606290cc4ce6f | 457fb423146ffda983ec332e2ebac446254e71b2 | refs/heads/master | 2022-04-25T23:25:14.020429 | 2020-04-24T02:43:18 | 2020-04-24T02:43:18 | 258,382,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | """community URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"mostafaelhassan910@gmail.com"
] | mostafaelhassan910@gmail.com |
8c4a7adbe5a3752af0a1c88dc574a5ccc9b2e8a7 | cb84f968e0a2b88499cccbf2123d83c45eb63849 | /setup.py | 9b2df61ba0a173749882845dd1f082fd5636deae | [] | no_license | KevinAS28/Cython-Hello-world | 8826e682377195dbe8e3ab580d2e1a7372ca6ccf | 16e1fa77deecd1d5a75da82699dfdbc757640bc3 | refs/heads/master | 2020-04-30T13:28:44.993660 | 2019-03-21T03:04:40 | 2019-03-21T03:04:40 | 176,859,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("hello.pyx")
)
| [
"kevinagusto28@gmail.com"
] | kevinagusto28@gmail.com |
1c1ea9dcfe905ae5e18e839a80f6b30b445fcbab | 9e2a209455beb93c1c0dc02c8b96eaa22780e7f3 | /greedy/376 Wiggle Subsequence.py | 8fbf86b8c2b26f5bb62e5842c3c9c6467f12c26d | [] | no_license | mofei952/leetcode_python | 164f3e617b4a39348069c7db00571eaef9960152 | 7f8145f0c7ffdf18c557f01d221087b10443156e | refs/heads/master | 2022-08-21T08:26:22.397593 | 2022-07-17T13:13:05 | 2022-07-17T13:13:05 | 174,816,021 | 0 | 0 | null | 2021-08-06T15:27:20 | 2019-03-10T11:46:00 | Python | UTF-8 | Python | false | false | 1,584 | py | """
question:
https://leetcode.com/problems/wiggle-subsequence/
"""
from typing import List
class Solution:
def wiggleMaxLength(self, nums: List[int]) -> int:
count = 1
last_asc = None
for i in range(1, len(nums)):
if nums[i] == nums[i - 1]:
continue
... | [
"695741200@qq.com"
] | 695741200@qq.com |
36f63a49dcc0a312a2a68b2bef14b0539d210815 | 29d1e5d1190ddd6cdf1e1b97b91f442765905454 | /Chapter 2/demo_str/demo_format.py | 0482eb329f0e0a3fd9e810582a77f02246d75cca | [] | no_license | SkewwG/SCIP_Python_Learn | abe199e1701022c1491c9e5d6de98d653c267ab9 | 11216e958f5a77c90c0583ca5cfdb1ec9fb2896c | refs/heads/master | 2021-09-13T18:40:42.426924 | 2018-05-03T07:33:52 | 2018-05-03T07:33:52 | 116,967,610 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 727 | py |
'''
format(...)
# 格式换字符串输出(方法与%相似,但可以指定顺序)
S.format(*args, **kwargs) -> str
Return a formatted version of S, using substitutions from args and kwargs.
The substitutions are identified by braces ('{' and '}').
None
'''
print(help(str.format))
name = 'StivenWang'
fruit = 'apple'
a = 'my name is {},I li... | [
"446106525@qq.com"
] | 446106525@qq.com |
6ec8d6b1af6965d9bdc79e1c9e653d7adf07ae99 | 8da6320fc276ec524fc3d4a1395440776b218bba | /pyspark_scripts/read_thor_file.py | 26c4365ee49b2a28aa5ba5f68d02ed49a288e90f | [] | no_license | vivekaxl/WormHole | adc7ea499c500d52f994cf0920d33ec759a9919f | b123c2c62c8b75360dc26fcc68b872519427e7ad | refs/heads/master | 2021-01-25T04:26:40.511905 | 2017-07-28T19:28:46 | 2017-07-28T19:28:46 | 93,439,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from pyspark import SparkContext
sc = SparkContext("local","simple app")
from numpy import array
from math import sqrt
from pyspark.mllib.clustering import KMeans, KMeansModel
def process_line(line):
t_line = line.strip()[1:-1]
# Remove file position
t_line = t_line.split(', \"__fileposition__\":')[0]
... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
f4a93014612b3fe5b3195c893a2b9b01eee03a19 | 7eedbe5c7d0a0d602d03bfe7d73878adca4c61e4 | /gelato/codegen/tests/test_pdes_1d.py | bd0ccbd87229704ff97beb1edc8f487f87cfa117 | [
"MIT"
] | permissive | johndpope/GeLaTo | da413da5e718ed67b620af313ba99abb87b49c4e | e00577924b7d13f3d5d387583f457caf8065b004 | refs/heads/master | 2020-03-29T23:05:27.981692 | 2018-07-30T15:16:54 | 2018-07-30T15:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | # coding: utf-8
from numpy import linspace, zeros, pi
from sympy import Symbol
from sympy.core.containers import Tuple
from sympy import symbols
from sympy import srepr
from symfe.core import dx, dy, dz
from symfe.core import Constant
from symfe.core import Field
from symfe.core import grad, dot, inner, cross, rot, ... | [
"ratnaniahmed@gmail.com"
] | ratnaniahmed@gmail.com |
fccea6a7f4b3bdf33f0c904d3a72cf2570fee659 | 062fa6891dfe2278bcfa36a00cc8bed4356e9f5b | /mlflow/pyfunc/__init__.py | 7c462bb3b3c365d97c9e88e1cb7b0fd15b532b0e | [
"Apache-2.0"
] | permissive | sepidehhosseinzadeh/mlflow-cpp | f43ffb1dba0e57b9b67fad696966bae683328527 | 724eeaeafbee829201859033315a9d2ebf314844 | refs/heads/master | 2022-12-12T13:41:28.825923 | 2020-06-10T20:42:55 | 2020-06-10T20:42:55 | 158,026,349 | 2 | 0 | Apache-2.0 | 2022-12-08T05:37:42 | 2018-11-17T21:27:07 | Makefile | UTF-8 | Python | false | false | 12,682 | py | # -*- coding: utf-8 -*-
"""
The ``mlflow.pyfunc`` module defines a generic filesystem format for Python models and provides
utilities for saving to and loading from this format. The format is self contained in the sense
that it includes all necessary information for anyone to load it and use it. Dependencies
are eithe... | [
"sepideh.hosseinzadeh.h@gmail.com"
] | sepideh.hosseinzadeh.h@gmail.com |
5768729a68549748325c74dd75e2beefd48b2703 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/125/usersdata/185/29669/submittedfiles/ap1.py | f577cea135c7b35daa37f061e315690ccb60cf8e | [] | 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 | 456 | py | a=float(input('Digite a:'))
b=float(input('Digite b:'))
c=float(input('Digite c:'))
if a<=b and a<=c:
print (a)
if b<=c:
print (b)
print (c)
else:
print (c)
print (b)
elif b<=a and b<=c:
print (a)
if a<=c:
print (a)
print (c)
else:
print (c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ea8b40f5720c2db0aa9a7d78dbf30ee2745f13d9 | 8aa50378af42f325083be548baaf78b4dbf619ab | /TensorflowTest/08_feeding_data/cfgs/tf_config_write.py | 7668886adaf2b3bac86ad0fa126b4e7f20c95033 | [] | no_license | jamescfli/PythonTest | 35919a6671b3d85a0f0212ea6da8baefbd5fcbe0 | 87c4092b046fba45e3e98f03944c17edde11b8b1 | refs/heads/master | 2021-01-20T02:44:25.963174 | 2017-07-01T15:58:32 | 2017-07-01T15:58:32 | 62,287,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import tensorflow as tf
tf.app.flags.DEFINE_string('directory', '/tmp/data',
'Directory to download data files andg write the converted result')
tf.app.flags.DEFINE_integer('validation_size', 5000,
'Number of examples to seperate from the training data for valida... | [
"jamescfli@yahoo.com"
] | jamescfli@yahoo.com |
5251fc8b0e4af20d0a2014c74ccd992e515be409 | ebbfdb7cc1cd33e195ccc830c2ff87bdce2c024e | /simple-social-network/chat/views/chat.py | 47e8f95d9f30fc583e4c249f7ab916ff3792c47d | [] | no_license | bateternal/simple-social-network | a399be4fcf48ce495d3f2004130ffc88723d2d4c | 8f888580493c31c44113825d5eb82349cf977c20 | refs/heads/master | 2023-04-06T09:32:45.529327 | 2022-06-06T09:37:46 | 2022-06-06T09:37:46 | 231,631,113 | 1 | 0 | null | 2023-03-31T14:38:36 | 2020-01-03T17:08:34 | Python | UTF-8 | Python | false | false | 724 | py | from chat.models import UserInformations
from chat.views import notfound
from django.shortcuts import render
from django.contrib.auth.models import User
from django.http import HttpResponseRedirect
def chat(request, username):
if not request.user.is_authenticated:
return HttpResponseRedirect("/login")
... | [
"bateternali@gmail.com"
] | bateternali@gmail.com |
6e7e610e114637c7220c264e194ec58d743e40fe | 7d6d02495eaf0ba2bcca322134dccf95cc18bee5 | /0x0D-NoSQL/8-all.py | 91b3018f52f825a6b7087896e109d7c40713bb15 | [] | no_license | dgquintero/holbertonschool-web_back_end | 1b055556b78adc091a0bfe19159083cdc3bc41c5 | 251d28c9b555096c61a7112ada43dc65576d03c5 | refs/heads/main | 2023-06-29T07:44:46.567751 | 2021-08-02T03:31:08 | 2021-08-02T03:31:08 | 361,882,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/env python3
"""
List all documents using Python
"""
import pymongo
def list_all(mongo_collection):
"""
Lists all documents in a collection
"""
return list(mongo_collection.find()) if mongo_collection else []
| [
"dgquintero02@hotmail.com"
] | dgquintero02@hotmail.com |
f8a9f223bf2fde4496f44b78b04a414077f47aec | b5d26a2812a81fea156dbecb6466cf9594f634f7 | /Week5/hw5/structver_TCPcalculator_server.py | eb6577a6f742e9b9e2d0840f02dd891e15e2c5f2 | [] | no_license | jjimini98/Network-Programming | 976a52707b5a041f9c13b698d959b4f757ecece1 | 72963418b1aeb93d9b4b501e90b35a68db38cea5 | refs/heads/master | 2023-07-15T21:31:44.585518 | 2021-09-08T11:26:53 | 2021-09-08T11:26:53 | 343,978,040 | 0 | 0 | null | 2021-06-12T13:47:20 | 2021-03-03T02:33:23 | Python | UTF-8 | Python | false | false | 1,162 | py | from socket import *
import struct
def calculator(sentence):
sentence = sentence.split(" ")
if sentence[1] == "+":
return int(sentence[0]) + int(sentence[2])
elif sentence[1] == "-":
return int(sentence[0]) - int(sentence[2])
elif sentence[1] == "*":
return int(sentence[0]) ... | [
"jjimini98@naver.com"
] | jjimini98@naver.com |
0ffeb3644ab2033e6f8c1ca8e2a62f2b1d6d76f8 | ae90ef80406bf06451e20fdd217d5239e85c6f3a | /tornado/test/wsgi_test.py | c3a8cfefc7bbc93f01b58ac8696c640a09f6f740 | [
"Apache-2.0"
] | permissive | alekstorm/tornado | c3b872b65b0250732bc76c3442ebe2a3f769ff3a | cfd7a96c7e93c1bed28cca2c556680b1cc5fd537 | refs/heads/master | 2023-07-07T01:36:57.537569 | 2012-06-29T06:57:11 | 2012-06-29T06:57:11 | 2,125,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | from __future__ import absolute_import, division, with_statement
from wsgiref.validate import validator
from tornado.escape import json_decode
from tornado.test.httpserver_test import TypeCheckHandler
from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase
from tornado.util import b
from tornado.web import Requ... | [
"ben@bendarnell.com"
] | ben@bendarnell.com |
c0e5d393edbe20978a87773069b260b50195127d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/34/usersdata/78/13721/submittedfiles/moedas.py | 8f38d6b78ba136d5b798cc58d833a95a153c9975 | [] | 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 | 362 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=int(input('digite o valor de a:'))
b=int(input('digite o valor de b:'))
c=int(input('digite o valor de c:'))
na=0
nb=0
cont=0
while na<=c//a:
nb=(c-na*a)//b
if na*a+nb*b==c:
cont=cont+1
break
else:
na=na+1
if cont>0:
pri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
92dd9372fefcda3d8d65783cbcf47286bb2f53d8 | 11a5c69a93cd195455cbfba1a0f74b82106f7672 | /digitImage02.py | 27a9e4027d36712f94d2284d0ac1cead3e1deab5 | [] | no_license | junsungwoo0124/py_ai | d9940d44bb4dea0897f02421aafe01c736b5ec25 | a3dadcbc262c4b75cc0d2595c5530c28aa0c352c | refs/heads/master | 2021-04-10T05:18:44.005457 | 2020-03-28T06:13:46 | 2020-03-28T06:13:46 | 248,913,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #이미지 여러개 출력해보기
#digitImage02.py
import sklearn.datasets
import matplotlib.pyplot as plt
digits = sklearn.datasets.load_digits()
for idx in range(50):
plt.subplot(5, 10 , idx + 1)
plt.axis("off")
plt.title(digits.target[idx])
plt.imshow(digits.images[idx], cmap = 'Greys')
plt.show() | [
"rahs0120@gmail.com"
] | rahs0120@gmail.com |
97841b8248a9d6d40e38e174527aa9cbe53e84d6 | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_firewall_internet_service_ipbl_reason.py | ef27b7406f5b3b69d295feaa9f11a28715875e7a | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,116 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program 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 of th... | [
"a.u.bello@bham.ac.uk"
] | a.u.bello@bham.ac.uk |
881a0aa47d7ba890ba706d4c19f6c9e9666acc3e | bd4270073cbdbafb8471bbdfe9a7fcfc75836384 | /checkenum.py | f83bf11bd25ad2c15944fe88b976b51c7bd2662f | [] | no_license | Hemanthtm2/learning.python | 03c5fccb0ca205dba3edd418cbf2fecad34aa532 | c93d30fcb4982f27153a3f649d2bdc4d50c56b1b | refs/heads/master | 2020-04-08T14:19:35.508613 | 2018-10-10T17:17:40 | 2018-10-10T17:17:40 | 159,431,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/python
names=['Hemanth','Varada','Amma','Achan']
for position,name in enumerate(names):
print (position,name)
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
ef38f6d18047db9edabb895e487098517faebe17 | 49a93012ce18b72abdb85aae1af09504fa039b6c | /20년 2월/1354.py | 3fe3d2a5a2fce6bf231dd462f6d392d7e158041b | [] | no_license | JinleeJeong/Algorithm | ca3e755a29537f8d82ef770f174fd055242dd708 | a81257d7e4a54a00ac2c9a1dd324cc7eeb765240 | refs/heads/master | 2020-12-08T13:26:27.917450 | 2020-05-12T07:16:08 | 2020-05-12T07:16:08 | 232,992,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | star = int(input())
for i in range(0, star+1):
print("{}".format("*"*(star-i))) | [
"pjjr0118@gmail.com"
] | pjjr0118@gmail.com |
78febb9e96d4e591695837d08c4cb2442ce85699 | 3fa8eead6e001c4d5a6dc5b1fd4c7b01d7693292 | /Ros_Basic_in_5_days/src/exercise_6_2/scripts/bb8_move_in_circle_service_client.py | 9042aa6de665f85e8fcb8504c1a6e62c0ed60f00 | [] | no_license | MarzanShuvo/Ros_from_the_construct | 09261902841cdd832672658947790ec5fbba4cd3 | 4798234284d9d0bab3751e9d8ac2df95ae34a5bf | refs/heads/master | 2023-08-24T17:28:09.182113 | 2021-10-23T07:57:02 | 2021-10-23T07:57:02 | 339,105,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #! /usr/bin/env python
import rospy
from std_srvs.srv import Empty, EmptyRequest
# Initialise a ROS node with the name service_client
rospy.init_node('service_client_bb8_circle')
# Wait for the service client /trajectory_by_name to be running
rospy.wait_for_service('/my_service_bb8_circle')
# Create the connection to... | [
"marzanalam3@gmail.com"
] | marzanalam3@gmail.com |
1fe359a43ddc007951361aa96712f23c876dc300 | d8f1c299d1b1c3619272bb2f81197e170c88887a | /postgresqleu/countries/models.py | 8d6a6811bc844a4a7a47c699d076d65a5d9a551b | [] | no_license | mhagander/pgeu-website | 1d324898a8ba47af80488d1f803fd8684157bc80 | c88cd42b39a84d16a056f2b668fd1949c893c4e0 | refs/heads/master | 2021-01-24T06:06:19.545244 | 2018-12-04T19:53:33 | 2018-12-04T19:55:40 | 619,420 | 0 | 2 | null | 2019-11-02T08:00:17 | 2010-04-20T11:51:40 | Python | UTF-8 | Python | false | false | 2,330 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
class Country(models.Model):
"""
International Organization for Standardization (ISO) 3166-1 Country list
* ``iso`` = ISO 3166-1 alpha-2
* ``name`` = Official country nam... | [
"magnus@hagander.net"
] | magnus@hagander.net |
fc8761e66ea1c57d34320b59f7dc8b2647c8b6bb | c898f00da38f98841fae20c99036165b41022fe4 | /ProjectConfig/Script/ProjectManager.py | 2c4b7511490615b761873a2803663f8abafc659f | [] | no_license | mooncode163/PythonUnity | e1338dba1fb6996e67fa12444dad2fe7696048f3 | b965dec55c0deb4c058d2c8045fbc7de4c3a411e | refs/heads/master | 2023-06-06T18:01:07.823440 | 2021-07-18T00:27:11 | 2021-07-18T00:27:11 | 317,786,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | #!/usr/bin/python
# coding=utf-8
from Project.UpdateAppstore import mainUpdateAppstore
from Common.File.FileUtil import FileUtil
from xml.dom.minidom import parse
from AppInfo.AppInfo import mainAppInfo
from AppStore.AppStoreApple import mainAppStoreApple
from AppInfo.AppCode import mainAppCode
from Project.CopyGamedat... | [
"chyfemail163@163.com"
] | chyfemail163@163.com |
aa140c3f0995fad0c06de6bf84e40ad105779b33 | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /greedy20210521.py | cda0da49182acc8d3a189a0b443b6681ba6404de | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | n, m = map(int, input().split())
# # 순서대로 북 동 남 서
# # position = [0, 1, 2, 3]
# # 이걸 위치로 표현하면
# # 바라보는 방향에 따라 왼쪽이 달라진다
# # 북쪽을 바라볼때 왼쪽은 당연히 서쪽
# # 남쪽을 바라볼때 왼쪽은 당연히 동쪽
# # 서쪽을 바라볼때 왼쪽은 당연히 남쪽
# # 동쪽을 바라볼때 왼쪽은 당연히 북쪽
# # 거기가 가본 땅이면 왼쪽으로 돌고 1칸 전진
# # 아니라면
# # 왼쪽으로만 방향을 돌리기
# # 만약 다 돌았는데 모두 가본칸이거나 바다로 되어있다면 바라보는 방향을 ... | [
"sangmin3285@gmail.com"
] | sangmin3285@gmail.com |
53e5b43dfb0fd8df33a10ef634eeb1851bf3bfb8 | d2e218a5949039544b0bc068dca2c0388753cdb9 | /src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/cdk/cdk_stacks/tests/test_pipeline_creation.py | 4c73f5921165d7b24fdd7a4cea82841dc179ec2c | [
"MIT-0",
"Apache-2.0"
] | permissive | awslabs/aws-deployment-framework | 572e12acdb79ad598a1c306c3e919555ad94c28c | d8087374a066cae0a563e92997b93f417a9a2683 | refs/heads/master | 2023-09-01T07:12:09.846936 | 2023-08-09T14:37:44 | 2023-08-09T14:37:44 | 171,725,612 | 608 | 257 | Apache-2.0 | 2023-08-29T14:15:23 | 2019-02-20T18:16:35 | Python | UTF-8 | Python | false | false | 15,941 | py | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
# pylint: skip-file
import pytest
import os
from mock import patch
from aws_cdk import App
from cdk_stacks.main import PipelineStack
@patch("cdk_stacks.main.generate_default_pipeline")
def test_pipeline_gener... | [
"noreply@github.com"
] | awslabs.noreply@github.com |
122b050de974e2d55d296fb2d4b5fa146dbdff52 | 2a1e2c298773148983805f1e0fba62bc2bf79267 | /lib/utils/evaluate.py | 8ba0ed50ce2b861ef278a812d2a9988818ceb681 | [] | no_license | copperdong/CTPN | 42fde81010ba5c0bff193b4132d4c397c251dedd | 3d559406c7ad2a02ac54b07ff1cc3603b3c5b6c9 | refs/heads/master | 2020-11-25T10:51:23.753733 | 2019-07-22T12:29:15 | 2019-07-22T12:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,492 | py | import os
import numpy as np
from lib.utils.polygon_utils import polygon_iou, polygon_riou
from lib.utils.parse_json import parse_json
label = {"handwritten": 0, "print": 1, "all": 2}
workspace_dir = './'
def evaluate(gt_boxes_list, pred_boxes_list, overlap=0.5, r_overlap=0.9):
"""
评价网络模型
:param gt_boxe... | [
"chizhanyuefeng@gmail.com"
] | chizhanyuefeng@gmail.com |
c5fe77bb1dc573dd2f416406d541f3711d89bba5 | 4c9d728aab9d5c377211780a54692e4d4f6c428f | /landloard/forms.py | 9b57954d26bbce6acfd5777cc43bb05ea1c5e258 | [] | no_license | kahdichienja/Accommodation_Management | d3cd5159e64e0016a2997a15be449c8cb08eeded | 6eca68f56a09924217d1dc091da6d1182a58cc6b | refs/heads/master | 2022-12-15T10:22:28.353169 | 2020-04-09T14:42:39 | 2020-04-09T14:42:39 | 217,833,571 | 1 | 1 | null | 2022-12-08T06:15:23 | 2019-10-27T09:42:22 | CSS | UTF-8 | Python | false | false | 4,110 | py | from django import forms
from django.contrib.auth.models import User
from .models import LandlordProfile, HostelHomePage, HostelContact, HostelService, HostelPlan, HostelGallary
class LandlordProfileForm(forms.ModelForm):
class Meta:
model = LandlordProfile
fields = [
'user',
... | [
"ago@localhost.localdomain"
] | ago@localhost.localdomain |
93f4d9b0d78b9303f5ce387506080f2129c0bb31 | fa38f67a6f5296ba64de8d771492f9db230cf5ed | /snapperhard.py | 4481eb0de027ef17ca8179d0b95de422ddccc2f2 | [] | no_license | traffaillac/traf-kattis | 5ebc2b0411c9f27da5d9080c269ad0add227a79c | 1b6bfdad48f3fab31902d85ed48b1bd0a8f44d0f | refs/heads/master | 2023-08-16T21:44:56.885553 | 2023-08-12T15:04:43 | 2023-08-12T15:04:43 | 236,475,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | T = int(input())
for t in range(1, T+1):
N, K = (int(i) for i in input().split())
print(f"Case #{t}:", "ON" if K%2**N == 2**N-1 else "OFF")
| [
"traf@kth.se"
] | traf@kth.se |
437d792e9dd5d047e85cd86c651f917af821a635 | 81bad22641705683c68ff89f19362ba202891652 | /napari/utils/_appdirs.py | f4c1c148057c70bdf31174f7f6c772064566cfd9 | [
"BSD-3-Clause"
] | permissive | sofroniewn/napari | ee2a39a1a1132910db6f2a47994671e8138edb51 | beaa98efe5cf04ba659086e7a514b2ade05277af | refs/heads/main | 2023-07-12T02:46:41.185932 | 2022-09-14T21:57:15 | 2022-09-14T21:57:15 | 154,751,137 | 2 | 3 | BSD-3-Clause | 2023-07-01T10:26:45 | 2018-10-25T23:43:01 | Python | UTF-8 | Python | false | false | 2,160 | py | import os
import sys
from functools import partial
from typing import Callable, Optional
import appdirs
_appname = 'napari'
_appauthor = False
# all of these also take an optional "version" argument ... but if we want
# to be able to update napari while using data (e.g. plugins, settings) from
# an earlier version, ... | [
"noreply@github.com"
] | sofroniewn.noreply@github.com |
ac5bbb81e1d81fc85924150b196eb1ffa683c300 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/3/usersdata/78/2750/submittedfiles/ex1.py | 1ff6c999642cf12a7ca7ff466478fcae16915961 | [] | 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 | 228 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
Delta=(b**2)-4*a*c
X1=-b+(Delta**0.5)/2*a
X2=-b-(Delta**0.5)/2*a
if Delta<=0:
print(SRR)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
76b041e339bea911875b6c596278afa9ce96cf4e | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/auth/providers/saml2/views.py | 282762525db310a1ef37c35ab0572e6460853961 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 569 | py | from rest_framework.request import Request
from rest_framework.response import Response
from sentry.auth.providers.saml2.forms import process_metadata
from sentry.auth.view import AuthView
def make_simple_setup(form_cls, template_path):
class SelectIdP(AuthView):
def handle(self, request: Request, helper... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
77a3cea3d29e1afb6c518edb7e00f0c765a879f7 | 97605f605a74403638cb27bffe5e9cf5b1054778 | /Docs/Examples/howtos/interpolate_00.py | 7a178494372a3791789034c5d388a32a1bac6071 | [
"BSD-3-Clause"
] | permissive | twardoch/robofab | 9d2aa7d2acbf56b8acf7c67392d526236b0f1f18 | 2ea0b6201cf67be866f6b6afa9574ef7219fd140 | refs/heads/master | 2023-04-01T14:49:56.867518 | 2018-03-16T14:29:53 | 2018-03-16T14:29:53 | 111,296,889 | 0 | 0 | NOASSERTION | 2023-03-21T05:35:45 | 2017-11-19T13:18:44 | Python | UTF-8 | Python | false | false | 103 | py | from robofab.world import CurrentFont
f = CurrentFont()
a = f["a"]
print a.isCompatible(f["b"], False)
| [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
ed01d8a550707148b275c82a9332035597241fb5 | 623865cffb6281cd240f867d425cae5d5a105491 | /OOPTest/Person.py | 51f0ea2659670096eb3b5ede19a99f56a1ee0c82 | [] | no_license | SushilPudke/PythonTest | 7d158bac40fbe153e8c7f9afb6703d0dabca71fc | 5eee5c05fa05e57a63ef1cfbc0b9bd8961bcd88b | refs/heads/master | 2023-02-03T08:14:50.299983 | 2020-12-21T07:17:18 | 2020-12-21T07:17:18 | 323,240,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # OPP - Person Class
class Person:
def __init__(self,name,age):
self.name=name
self.age=age
def check(self):
if self.age>=18:
return True
else:
return False
def show(self):
return self.name+ " "+str(self.age)
def Main():
P=Perso... | [
"74047164+SushilPudke@users.noreply.github.com"
] | 74047164+SushilPudke@users.noreply.github.com |
a6809c2cc2ebfc4b634cc49c43db5af58335c889 | e065b43ecd10ac081ff175bf4cae96569dc0c5ca | /mylinks/oembed/__init__.py | ab6e5e27f993a164c050cf5b8fbd43cc804a61e9 | [
"BSD-2-Clause"
] | permissive | hdknr/django-mylinks | 9c90e40240683bc570f4c420f734cf0957f00677 | a7a03675acb582758b4161f42b94d0e05f201b19 | refs/heads/master | 2022-03-31T12:39:23.679519 | 2019-08-25T08:05:16 | 2019-08-25T08:05:16 | 107,707,209 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | # coding: utf-8
from django.utils.http import urlquote
from django.core.cache import cache
from bs4 import BeautifulSoup as Soup
import requests
import re
TWITTER = "https://publish.twitter.com/oembed?url={url}"
INSTAGRAM = "https://api.instagram.com/oembed/?url={url}"
YOUTUBE = "http://www.youtube.com/oembed?url={url... | [
"gmail@hdknr.com"
] | gmail@hdknr.com |
9cb9bb39d63aa12f92bc30b0ee813e92b05f8d00 | a8f03cad82baddf8f31ce232f8819bde39b51ea1 | /studentadd/urls.py | 03c4c5edc202d7d6a8917b16c920d7b7388f2c14 | [] | no_license | venugopalsai/project3 | e4012518f8bad1cf588aa3e70060052b49f59679 | ea84877fc6cad3f5df8b60b77cf848719c10522d | refs/heads/main | 2023-07-03T13:40:40.016200 | 2021-08-05T13:45:24 | 2021-08-05T13:45:24 | 393,052,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.urls import path
from studentadd import views
urlpatterns = [
path('home/',views.home,name="home"),
path('display/',views.display,name="display"),
path('delete/<sid>', views.delete,name="delete"),
path('update/<sid>',views.update,name='update'),
]
| [
"venugopalgodavarthi@gmail.com"
] | venugopalgodavarthi@gmail.com |
771b294c4b3776891430d04f841e645078fa946b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03565/s747814364.py | 00a2f0c1fa6e17711a48d46a270012035ab59a2c | [] | 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 | 318 | py | s=list(input())
t=input()
k=[]
for i in range(len(s)-len(t)+1):
m=i
for j in t:
if s[m]==j or s[m]=='?':
m+=1
else:break
else:
l=s[:i]+list(t)+s[i+len(t):]
for i in l:
if i=='?':
l[l.index(i)]='a'
k.append(''.join(l))
if len(k)==0:
k.append('UNRESTORABLE')
print(min(k)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2979279a3a75c41fa7c6b7d143cb0543e9c77de3 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_1114_Print in Order/print_in_order.py | 393bfcf4565bd987f0f4d4ff392cf72e3108998b | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 3,799 | py | '''
Description:
Suppose we have a class:
public class Foo {
public void first() { print("first"); }
public void second() { print("second"); }
public void third() { print("third"); }
}
The same instance of Foo will be passed to three different threads. Thread A will call first(), thread B will call second(), a... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
7a11be08800da24fef19ddebed13d489af6f2954 | c34479b19c5339deb5dc219e7c2ff11bdccbf687 | /qmcpy/integrand/asian_option.py | 02d074cdd63e45f9b601d5e53da0ab3880b2a4a5 | [
"Apache-2.0"
] | permissive | KanZhang23/QMCSoftware | c92ba10ef7ee7736397f4490f8c9ce144520d79e | 883657e5880cefaa88ebe6ad99c7e60b04e44385 | refs/heads/master | 2023-06-18T19:25:58.210071 | 2021-06-17T13:38:20 | 2021-06-17T13:38:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | py | from ..discrete_distribution import Sobol
from ._integrand import Integrand
from ..true_measure import BrownianMotion
from ..util import ParameterError
from numpy import *
class AsianOption(Integrand):
"""
Asian financial option.
>>> ac = AsianOption(Sobol(4,seed=7))
>>> ac
AsianOption (Integran... | [
"agsorokin3@gmail.com"
] | agsorokin3@gmail.com |
32084fcd104a5887a9d8e290013fc7f8c3ba7d82 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/208/38771/submittedfiles/ex11.py | 7642d0e80d6063d7378cd0401ea42c551fef68df | [] | 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 | 512 | py | # -*- coding: utf-8 -*-
a1=int(input('digite o ano da pessoa 1:'))
a2=int(input('digite o ano da pessoa 2:'))
m1=int(input('digite o ano da pessoa 1:'))
m2=int(input('digite o ano da pessoa 2:'))
d1=int(input('digite o ano da pessoa 1:'))
d2=int(input('digite o ano da pessoa 2:'))
if a1>a2:
print('data 1')
elif a1<... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ff5699c1113dffdfce0808837f6b6d96ce62af15 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002905.py | 7afaf9a98aeb45ecd03b1e7cff178e3c3012552b | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
f8e6613f21e89086225d60c757f1a595bb6e4a27 | 831df437ef4114b6ed549cf92bd20bbaf93a5c0c | /posts/migrations/0001_initial.py | c4f3eccdac68d494e002139fb48b8cbbd8b5654d | [] | no_license | HectorBlisS/DjangoForms | 7b7bdbfa153ded96edff5d9f8c7966d9e853259f | 4dfea21aec09f121fd3f7c49f11ca1ebfcd58473 | refs/heads/master | 2020-12-24T09:17:03.881412 | 2016-11-17T17:39:37 | 2016-11-17T17:39:37 | 73,300,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-08 16:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"contacto@fixter.org"
] | contacto@fixter.org |
c3b6def5799c8d0cbd3a604618b934bd05c8838d | ce78a21f86faf0b9783b4cbc1df1fc562e80a2d8 | /Public/problem/Intermediate/4881.배열최소합.py | 1c18c0df7263e52d1eb0c6f225f8b6e73d7ef84e | [] | no_license | jongjunpark/TIL | 18961c6518f78c8e3d80677f39caf32c727c5beb | 28f4d83e28851aac2dee4e77321543f1c811cc83 | refs/heads/master | 2023-03-17T01:45:51.867005 | 2022-10-31T10:44:05 | 2022-10-31T10:44:05 | 245,943,735 | 1 | 0 | null | 2023-03-05T17:15:39 | 2020-03-09T04:28:06 | Python | UTF-8 | Python | false | false | 836 | py | def my_func(r):
global total, min_total
if r == N:
if total < min_total:
min_total = total
return
for j in range(N):
if arr[r][j] > 0:
continue
total += num[r][j]
if total > min_total:
total -= num[r][j]
continue
... | [
"poiufgin7373@naver.com"
] | poiufgin7373@naver.com |
d60da8f5a0fb51303bb196fc731a4e90eb5bfe9c | 12e04c219d6911d06a048c913f8d8d6c00dad857 | /chendian/member/views.py | 194ed78a02148e7ee4ae9f3fd192aecb8462fe16 | [
"MIT"
] | permissive | mozillazg/chendian-plus | 928e98beb77f351e08b25a5ba9671ad648dac4b5 | 893c62b4b855879006d4cb378faeb9d1c6635923 | refs/heads/master | 2023-09-04T09:58:58.112022 | 2017-04-04T09:44:28 | 2017-04-04T09:44:28 | 31,481,576 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""成员信息"""
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib.auth import (
login as dj_login, logout as dj_logout, authenticate
)
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms impor... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
d62f36525be17233cc0729e63175f408c3a702d9 | 0d958f04685b0164a06be29adab246879e3006cf | /willbot/plugins/devops/uptime.py | a72523456d85c75cf34ceb3a323fae175c83f633 | [] | no_license | lionelonline/pycon2015-everyday-ai | 9d1a7112a1ccbc8c39e0bf91673f744fdf9ba7e4 | f0b9ae8a9b76b0bf876652989451e50d713ae819 | refs/heads/master | 2021-01-18T11:53:13.644182 | 2014-12-09T20:08:24 | 2014-12-09T20:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | import requests
import time
from will.plugin import WillPlugin
from will.decorators import respond_to, periodic, hear, randomly, route, rendered_template, require_settings
class UptimePlugin(WillPlugin):
def _verify_url(self, url):
try:
r = requests.get(url)
if not r.status_code =... | [
"hobsonlane@gmail.com"
] | hobsonlane@gmail.com |
bd45cd791489edc08a52272389ddfeb86bec8a89 | db1fd198755a2b785e0af3d20cf4011bdf9b3072 | /setup.py | 4e6083de0b0e3be8942354e87f7f61148138ffe7 | [
"MIT"
] | permissive | Irisldc/dstk | 841e5f1f9674fff902b959845aca5766c5ad117b | a3b7755d80a1246627f31e63bf2c6c9ce185903a | refs/heads/master | 2020-03-11T22:46:44.546574 | 2018-05-13T14:32:59 | 2018-05-13T14:32:59 | 130,302,477 | 1 | 0 | null | 2018-04-20T03:15:01 | 2018-04-20T03:15:01 | null | UTF-8 | Python | false | false | 542 | py | from distutils.core import setup
setup(
name = 'dstk',
packages = ['dstk'], # this must be the same as the name above
version = '0.1',
description = 'A toolkit for data scientists.',
author = 'Calvin Ku',
author_email = 'calvin.j.ku@googlemail.com',
url = 'https://github.com/savourylie/dstk.git', # use t... | [
"calvin.j.ku@googlemail.com"
] | calvin.j.ku@googlemail.com |
0b84a141c890511e460f2beb80b3a5599c6d8f91 | 7840ce8819816df193a472e1db07aa60ae344575 | /tuskar_ui/infrastructure/resource_management/flavors/forms.py | 158659b61cf025f75db2fab10b91cc603ea62681 | [
"Apache-2.0"
] | permissive | spclops/tuskar-ui | 340905cfba42dab0fd36426d0a42ed3e21a9474d | 049ca9b739ee81f6a63c39795853b9a6dc628c23 | refs/heads/master | 2020-12-25T12:41:47.688681 | 2013-09-24T18:15:39 | 2013-09-24T18:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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 applicabl... | [
"openstack@sheep.art.pl"
] | openstack@sheep.art.pl |
359a97ad2adc0420cf8c01675ffc6e56aaf59bf0 | 475e2fe71fecddfdc9e4610603b2d94005038e94 | /Coding/commonChild.py | 6ceec338d0b63a1436b91184e15f7c90d4ed2d35 | [] | no_license | sidhumeher/PyPractice | 770473c699aab9e25ad1f8b7b7cd8ad05991d254 | 2938c14c2e285af8f02e2cfc7b400ee4f8d4bfe0 | refs/heads/master | 2021-06-28T20:44:50.328453 | 2020-12-15T00:51:39 | 2020-12-15T00:51:39 | 204,987,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | '''
Created on Jan 2, 2019
@author: siddardha.teegela
'''
def commonChild(s1, s2):
dict1 = dict()
for char in s1:
if char in dict1:
dict1.update({char:dict1[char]+1})
else:
dict1.update({char:1})
count = 0
for char in s2:
... | [
"sidhumeher@yahoo.co.in"
] | sidhumeher@yahoo.co.in |
0de344182dbde51ccb8e533132466eb89fea05bb | 29c18a92cce04fa203c95313768da3c5356a3f0e | /myapp/myapp/views.py | 1ffe5e56efc477cd6cbd43bfbfc771ae23723bd4 | [] | no_license | wingky12/django-beginner | 3801712b78b844728841fe1e92641846c39ae969 | 22398e6689afce38043e95de9df22d0b9319f16e | refs/heads/main | 2023-03-31T15:20:16.644798 | 2021-04-01T09:17:28 | 2021-04-01T09:17:28 | 351,735,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.http import HttpResponse
def home(request):
return HttpResponse("ini home")
def about(request):
return HttpResponse("ini halaman about") | [
"admin@example.com"
] | admin@example.com |
542112bb61927e7e23e02012b5fbbcdfe268787e | 748094af473ead15eacc381042dc102353716d97 | /atcoder/2016/1015_ABC046_ARC062/A.py | c7d37522339b79442c71ea4242a2216384500a72 | [] | no_license | ykmc/contest_old | 3d0175e6d9a7e1a19989a538e694f9ebc27336b6 | 86c4c2ffd4caa3c98b57ed926611c27382c974f3 | refs/heads/master | 2022-04-02T01:51:54.252728 | 2019-12-14T11:30:33 | 2019-12-14T11:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # python3 (3.4.3)
import sys
input = sys.stdin.readline
# main
A,B,C = map(int,input().split())
print(len({A,B,C})) | [
"34961813+ykmc@users.noreply.github.com"
] | 34961813+ykmc@users.noreply.github.com |
bddb49666e513e0a5892100b8c502b6f431a81f6 | e6611443e946d1129985a95bc2dd2afc610f8292 | /CMS/apps/core/management/commands/export_user_community_champion_data.py | b142796f351643500da926bb4d0a7b5e1f585742 | [] | no_license | Indus-Action/Campaign-Management-System | a761dd9bbc7967f8302bb3283230f87ccc2bd2a6 | 9c6f1193ff897b8cc53f2a1c3bca8d70a890e70f | refs/heads/master | 2020-03-12T19:49:19.329764 | 2018-05-15T06:37:41 | 2018-05-15T06:37:41 | 130,792,314 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from user_profiles.models import UserProfile
from forms.models import PersistentFormData
from stages.models import Stage
from tags.models import Tag
from datetime import date,datetime
from dateutil.parser impo... | [
"madhav.malhotra3089@gmail.com"
] | madhav.malhotra3089@gmail.com |
486b8c7b8a95975a61dea35897c15720da4336cb | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11A/JAPRESD11AUN.py | 649e272c9aee989877e9ea286adf97e42a258a59 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,391 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 2},
{ID: 'PNA', MIN: 1, MAX: 99, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
1b2c14c741c7afd6c1790c63a9ca13041bb5f500 | 3aab36e615166507e8970aaeac223a4526abdef1 | /crawl_cazipcode/pkg/dupefilter/pkg/sfm/__init__.py | 230c79d57f8efdeb833bb4a1e1b4a2702e3d4ec5 | [] | no_license | MacHu-GWU/crawl_cazipcode-project | b783f5e2f5e72d0feb3c98e07951d3bbd38ef772 | 5417a3fba147249d26dd1891845742198797e162 | refs/heads/master | 2020-12-02T06:24:20.216975 | 2017-07-13T19:14:48 | 2017-07-13T19:14:48 | 96,827,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "0.0.13"
__short_description__ = "Collection of useful single file module."
__license__ = "MIT"
| [
"husanhe@gmail.com"
] | husanhe@gmail.com |
6bb763a7d02012734a8947a9aa85f6250ffb573c | 67ceb35320d3d02867350bc6d460ae391e0324e8 | /practice/easy/0404-Sum_of_Left_Leaves.py | f88402409ef256593e0b9ce7ccd9f1da15f37fe1 | [] | no_license | mattjp/leetcode | fb11cf6016aef46843eaf0b55314e88ccd87c91a | 88ccd910dfdb0e6ca6a70fa2d37906c31f4b3d70 | refs/heads/master | 2023-01-22T20:40:48.104388 | 2022-12-26T22:03:02 | 2022-12-26T22:03:02 | 184,347,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def sumOfLeftLeaves(self, root: TreeNode) -> int:
self.output = 0
def loop(node: TreeNode, prev: str)... | [
"noreply@github.com"
] | mattjp.noreply@github.com |
0eec6957101ce9651a1e3bfc97d23bc13ee84248 | 066e874cc6d72d82e098d81a220cbbb1d66948f7 | /.hubspot/lib/python2.7/site-packages/rbtools/commands/post.py | af1a7c31c1a595652414af20d9a55ebfc58d4983 | [] | no_license | webdeveloper001/flask-inboundlead | 776792485a998a0eaa4b14016c3a2066e75ff2a2 | d0a539d86342e9efc54d0c0a1adc02c609f0f762 | refs/heads/master | 2021-01-19T01:34:55.241144 | 2017-04-05T00:42:03 | 2017-04-05T00:42:03 | 87,248,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,636 | py | from __future__ import print_function, unicode_literals
import logging
import os
import re
import sys
from rbtools.api.errors import APIError
from rbtools.commands import Command, CommandError, Option, OptionGroup
from rbtools.utils.commands import (AlreadyStampedError,
get_review_... | [
"jamesbrown1018@outlook.com"
] | jamesbrown1018@outlook.com |
19b3fc5d5bcbfe312746ce64ba495385a53d686f | afdda41e01518db1a2685e9eb7fad524d7b5c69b | /ant/2-1-4_特殊な状態の列挙/ABC054_C/main.py | 0e97fe0f939d528d8d2e34912897ccb28b206590 | [] | no_license | kame3niku9/atcoder | 4bea5598b6529b7dd5d84a4b342b7ef650b81141 | b5042f31d43425e4ca1e02cc4bbfecbd5a738b49 | refs/heads/master | 2022-07-10T11:37:47.560392 | 2020-11-22T13:47:08 | 2020-11-22T13:47:08 | 233,927,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | def resolve():
N, M = map(int, input().split())
L = [ [] for _ in range(N) ]
for i in range(M):
a, b = map(int, input().split())
L[a-1].append(b-1)
print(L)
def dfs():
st = 0
if __name__ == "__main__":
resolve() | [
"kame3niku9@gmail.com"
] | kame3niku9@gmail.com |
f9f841c4d984d7412d89d1fe446e16f29b93c508 | a796028d3ef3bd5634677db0fadaede055ae904f | /main/auth/reddit.py | 5a843bb5952d7d3a59eea553575a648cfb673ade | [
"MIT"
] | permissive | lipis/the-smallest-creature | eb3e23780f3ecbc1842b02e6c4872dc53caea079 | 3079046a574bb4bae528b3ab467d34f24b9bd5c7 | refs/heads/master | 2021-01-21T03:55:05.563253 | 2015-07-02T07:41:09 | 2015-07-02T07:41:09 | 35,342,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | # coding: utf-8
import base64
from flask.ext.oauthlib import client
from werkzeug import urls
import flask
import auth
import config
import model
import util
from main import app
reddit_config = dict(
base_url='https://oauth.reddit.com/api/v1/',
request_token_url=None,
access_token_url='https://ssl.re... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
d35538a1d097440f419be334cf5095fd00e3240f | c0960d3ebef9b4167c7f7581c50adcfb66cc02fa | /app/coaches.py | 9557759a34bfdc423c9c84b491275f32bf7c827f | [] | no_license | hebkhan/server | 8358c3970322383473e4d7165447ccc800d864be | 3150d9316489da638a19470085ca97061c3592ee | refs/heads/master | 2021-06-13T15:27:01.571952 | 2015-08-03T22:09:43 | 2015-08-03T22:09:43 | 13,910,197 | 1 | 2 | null | 2016-02-29T21:23:07 | 2013-10-27T20:57:13 | Python | UTF-8 | Python | false | false | 8,596 | py | from app import App
import app
import facebook_util
import util
import user_util
from request_handler import RequestHandler
from models import UserData, CoachRequest, StudentList
from badges import util_badges
from profiles.util_profile import ExercisesOverTimeGraph, ExerciseProblemsGraph
from profiles.util_profile i... | [
"oferko@il.ibm.com"
] | oferko@il.ibm.com |
53c4da1016b6acd7fe3828bf6aa4edc1f5eb3d54 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/chromite/third_party/gcloud/dns/test_client.py | e3b119036ce550a6208ec971de3917b0cfecc33d | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-python-cwi",
"Python-2.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown"
] | 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 | 9,024 | py | # Copyright 2015 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 required by applicable law or a... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
5df107c204616382f1653b6a43cee95395059981 | 87277cddfc489dd7d3837ffccda2f11bb4ad43cc | /py/Task680.py | 47114d7a456dd4335f1ab9dade08cb3f087264e5 | [] | no_license | rain-zhao/leetcode | 22c01d1803af7dd66164a204e6dc718e6bab6f0e | 8d47147f1c78896d7021aede767b5c659cd47035 | refs/heads/master | 2022-05-29T10:54:14.709070 | 2022-05-14T09:38:05 | 2022-05-14T09:38:05 | 242,631,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | class Solution:
def validPalindrome(self, s: str) -> bool:
def isPalindrome(s: str) -> bool:
mid = len(s) >> 1
return s[mid:][::-1].startswith(s[:mid])
left, right = 0, len(s)-1
while left < right:
if s[left] == s[right]:
left += 1
... | [
"rangeree@foxmail.com"
] | rangeree@foxmail.com |
ad45c3a86e73baf4471eba7c98d5cb4839a901e6 | 112882b8d6c5071e7d2610c595bfca9210c79a0a | /Python/leetcode.090.subsets-ii.py | b5512c0788d6e128d896ffed9c6438bbddadc7bd | [
"MIT"
] | permissive | tedye/leetcode | 193b1900d98e35d5c402013cbe3bc993d0235da2 | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | refs/heads/master | 2021-01-01T19:06:06.408135 | 2015-10-24T06:44:40 | 2015-10-24T06:44:40 | 41,804,923 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | class Solution(object):
def subsetsWithDup(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = [[]]
nums.sort()
for i in nums:
res += [j+[i] for j in res if j+[i] not in res]
return res | [
"tedye@bu.edu"
] | tedye@bu.edu |
8a2c1e3d8d64736d3b2da4ebed0094f9af895973 | 09592939eaf88d46f7d2d760d9587cb9fc22707e | /entity/cards/LETL_033H/LETL_486.py | 17eb30185bb69dc2f0a76ba471f6302d4a4c8791 | [
"MIT"
] | permissive | fulln/lushi_script | 5deb2fb99956988ee4884836443f74277b361939 | f2c5250f6ce7e3ea2b8d3ba280d999ae8c7beb8b | refs/heads/main | 2023-09-04T16:50:24.696142 | 2021-11-24T03:44:41 | 2021-11-24T03:44:41 | 431,565,901 | 0 | 0 | MIT | 2021-11-24T17:04:06 | 2021-11-24T17:04:05 | null | UTF-8 | Python | false | false | 355 | py | # -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
class LETL_486(SpellEntity):
"""
燃烧射击4
屠龙射击造成的伤害增加5点。
"""
def __init__(self, entity: Entity):
super().__init__(entity)
def equip(self, hero):
pass
... | [
"gg48@qq.com"
] | gg48@qq.com |
94db6c354b1743b9c4d46e622fbf6411358f871e | d5af7d2b3f0f82f784aa598065b72fdfb790fc3c | /data/transforms/randflip.py | 621ce9db7af0ab2b4d286afb182691c93e8af396 | [
"MIT"
] | permissive | mmuckley/dldegibbs | 891f1bc6ab0badd3cd7a04e46457470a9262d569 | 3816f771f176628cfad9b8b644cf31051490f08b | refs/heads/master | 2023-02-20T16:44:18.860522 | 2021-01-27T23:06:53 | 2021-01-27T23:06:53 | 266,910,167 | 14 | 6 | MIT | 2021-01-27T23:06:54 | 2020-05-26T00:47:46 | Python | UTF-8 | Python | false | false | 1,153 | py | import numpy as np
import torch
class RandFlip(object):
"""Random flipping in each dimension.
Args:
dat_op (boolean, default=True): Whether to apply random flipping to
'dat' array.
targ_op (boolean, default=False): Whether to apply random flipping
to 'target' array.
... | [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
6fb463f5bae960b0f136069a5c4a2a44b7e77966 | 59a7f64d91b8466074630f0006f048cad66f01e8 | /sc_library/parameters.py | e3bb05eda3cf5746b45e9a606ddddc0b0b0d39dc | [] | no_license | amancebo/acadia_new | cda1eafba65af71e0c4889f25c7dd527aa06abdc | 0c4bbd382140b92a85338b8b3335b2b660b8266b | refs/heads/master | 2021-03-30T16:49:46.252851 | 2015-06-01T23:46:22 | 2015-06-01T23:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,695 | py | #!/usr/bin/python
#
## @file
#
# Handles parsing settings xml files and getting/setting
# the resulting settings. Primarily designed for use
# by the hal acquisition program.
#
# Hazen 02/14
#
import copy
import os
import traceback
import xml.etree.ElementTree as ElementTree
default_params = 0
## ... | [
"amancebo8@gmail.com"
] | amancebo8@gmail.com |
67dd0eec2b3e69aa2ae90e9be4fffcdbff372b3b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Bb9PaM4B87L39SdAo_0.py | 340aa13892af52dbfa6bdd87fbad32e631304760 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | """
Create a function takes in two lists and returns an **intersection list** and
a **union list**.
1. **Intersection List:** Elements shared by both.
2. **Union List:** Elements that exist in first or second list, or both (not exclusive OR).
While the input lists may have duplicate numbers, the returned
**i... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a2357d714542e88212e6afc74598dd1c04ea2dd3 | 609cf9db6bb27b79a0c1cfbf63882e18699a2b95 | /account/migrations/0003_groupprofile.py | 385fe61c9aa7dbb14a8c694d05584e205fd6627b | [] | no_license | bondarenkoav/macaronidesk | e476ff151417e50d2bc6d72b4b96aa170151b165 | e1991e695e175ff5eef8a06831899d986ddcaac9 | refs/heads/master | 2023-05-31T06:07:21.304298 | 2022-10-13T04:23:50 | 2022-10-13T04:23:50 | 195,808,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-09-04 07:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reference_books', '0027_auto_20190626_1703'),
('auth'... | [
"printex.orsk@gmail.com"
] | printex.orsk@gmail.com |
c97fc9ec21b9a1eb97415807c32843c738afd99a | 081842592873370f00a51550eb8e736657d4f1bb | /rebench/model/build_cmd.py | 5e89cadd8e268c2bef9e37443eadcf3fe520046a | [
"MIT"
] | permissive | cmccandless/ReBench | 19f2a8f26cd88b0e920aedce674b3b0697d9ca2b | 0ec399a8c23a84022aa0271eb1caf30bdea8b2f6 | refs/heads/master | 2023-01-06T04:25:29.603283 | 2020-09-16T09:21:55 | 2020-09-16T09:21:55 | 300,315,915 | 0 | 0 | MIT | 2020-10-01T14:50:03 | 2020-10-01T14:50:02 | null | UTF-8 | Python | false | false | 2,663 | py | # Copyright (c) 2018 Stefan Marr <http://www.stefan-marr.de/>
#
# 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, mo... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
9bffb4029d7aabaa235873d506d05e5fd3befa0e | 270e3cf2d508d916e8aaa5c4210fa593ff4c3a72 | /Python_Scripting/Programs/Test.py | 76903955ab083c8dcea90551fc617e2d758d2f53 | [] | no_license | NagiReddyPadala/python_programs | 140c45ee1e763ec4aa8ef975be18c5fad1e0a7ec | 18d91095c0e25345b8c1bc16d121df9a40639c5f | refs/heads/master | 2020-12-08T03:29:35.030951 | 2020-02-29T16:23:36 | 2020-02-29T16:23:36 | 232,871,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def fast (items= []):
items.append (1)
return items
print (fast ())
print (fast ())
class Test(object):
def __init__(self):
self.x = 1
t = Test()
print (t.x)
print (t.x)
print (t.x)
print (t.x)
| [
"nagireddypadala434@email.com"
] | nagireddypadala434@email.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.