blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ea3dbb5ff439ccdb0d1807292f44f4f96f2b4f5 | 3df98e7d4551220e3b09d122e8d6897ca572d9f3 | /file/file for demo/fileread2.py | 8fde148dc4e8cea7a396bc9571a2c43231d5aeb7 | [] | no_license | Madhav2108/Python- | 2e4bf778348786d8dd082e3e1cdd7acb41d9f559 | fdfdf944a96d83352979bc23c3b65aac7bd41d26 | refs/heads/master | 2023-03-30T21:37:26.326980 | 2021-03-31T17:40:49 | 2021-03-31T17:40:49 | 273,668,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | f1=open("data1.txt","r")
s=f1.read()
L=len(s)
print(L,", ",s)
c1=0
if s[0].isupper():
c1=c1+1
for i in range(0,L):
if s[i].isspace():
if s[i+1].isupper():
c1=c1+1
print("U: ",c1)
f1.close()
| [
"noreply@github.com"
] | Madhav2108.noreply@github.com |
851eec45840e27277f346f8b66f7994ba8713e0b | 57d907a992eb445526c24930b6441de13d6aae0a | /1721 Swapping Nodes in a Linked List.py | e015119d7701bbabd26da8beb886f369bd801a30 | [] | 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,509 | py | # You are given the head of a linked list, and an integer k.
# Return the head of the linked list after swapping the values of the kth node from the beginning and the kth node from the end (the list is 1-indexed).
# Example 1:
# Input: head = [1,2,3,4,5], k = 2
# Output: [1,4,3,2,5]
# Example 2:
# Input: head =... | [
"H.Zhang2@shell.com"
] | H.Zhang2@shell.com |
cffad891153983b223e918778137a49eddc41c1a | c99c272181eb43df688cc6af10bfb17659014ab9 | /01_Python-Basics/Lection2/Homework8.py | ee3093777956a5ca93b79cf588d7ad2e0a6061d8 | [] | no_license | LachezarKostov/SoftUni | ce89d11a4796c10c8975dc5c090edecac993cb03 | 47559e9f01f7aabd73d84aa175be37140e2d5621 | refs/heads/master | 2023-01-29T20:49:57.196136 | 2020-12-10T12:34:09 | 2020-12-10T12:34:09 | 283,491,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | a = float(input())
b = float(input())
c = float(input())
p = float(input())
final = ((a * b * c) * 0.001)*(1 - p * 0.01)
print(f"{final:.3f}")
| [
"68952160+LachezarKostov@users.noreply.github.com"
] | 68952160+LachezarKostov@users.noreply.github.com |
6709896a63920d44c05d33ebc9dffa573b463221 | fbdd18eac2c5a3163f0a4154daf3e89ddef0507d | /day2/start/in_operator.py | f8692ea6440abd7fc6a16558008cf82809ea2469 | [] | no_license | techsharif/python_training_2021 | 562d891e40fe2410cebcdad841eb407fb40b7871 | 246dddc1c4dae683df4b006fe96a5a117d1aeaf6 | refs/heads/master | 2023-02-27T12:11:23.541408 | 2021-02-10T10:03:48 | 2021-02-10T10:03:48 | 333,330,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | l = [1, 4, 6, 8]
s = "hello world"
print(4 in l)
print([4, 8] in l)
print([4, 6] in l)
print('h' in s)
print('hw' in s)
print('he' in s)
| [
"sharif.cse.hstu@gmail.com"
] | sharif.cse.hstu@gmail.com |
bbad51b0060d0be762b58e2e96a8ffef965eb80a | 4ae7fb5209c2d510f4547901bea17d7a191526f4 | /gui/nodeEditor/nodeCodeEditor.py | 23142c76497efceea7a85b9feed8526557b17f4f | [] | no_license | asdlei99/meShaderEd | fa76a2a605a8d8ec3d9e703847552b3bd90544c1 | 39d432d00aa1fbc9cbdd829c5759e020d80df9df | refs/heads/master | 2021-01-04T23:31:32.690590 | 2018-08-29T11:05:28 | 2018-08-29T11:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | """
nodeCodeEditor.py
ver. 1.0.0
Author: Yuri Meshalkin (aka mesh) (yuri.meshalkin@gmail.com)
Dialog for managing node code
"""
from core.mePyQt import usePySide, usePyQt4, usePyQt5, QtCore, QtGui
from core.meCommon import *
from global_vars import app_global_vars
import gui.ui_settings as UI
from codeSynt... | [
"Yuri.Meshalkin@gmail.com"
] | Yuri.Meshalkin@gmail.com |
f12985c0bf0d8528ab9ebbb975892a7891b7557b | 235c4b3aa630737b379050a420923efadd432da8 | /1stRound/Easy/520 Detect Capital/Checkconditions.py | 518782c3ba864d7cfa995ea544b5cfe1f0874d54 | [
"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 | 432 | py | class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
count = 0
for i, w in enumerate(word):
if w.isupper():
count += 1
return count == len(word) or count == 0 or (word[0].isupper() and count... | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
7f72440c02a5f81c72a65977a9ca9f148ef8e6e0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/3449.py | a7647fcd4dd289c22a051780b95ea474fecc6298 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | inputFile = open("B-small-attempt0.in", 'r')
outputFile = open("output.out", 'w')
def getSum(C, X, F, n) :
#print("C",C,"X",X,"F",F,"n",n)
result = 0
for k in range(0, n) :
result = result + C/(2.0 + F * k)
result = result + X/(2.0 + F * n)
return round(result, 7)
caseNum = 0
l... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
44c76ebc03adac814dce6659f4730970edde7d32 | abfff8ab3162f7003b51d3fdcc7897684d2d4e54 | /c_py_extention/Lib/site-packages/pip/__init__.py | 0493e45d923315a87af79d1f5a34ea1325ec3428 | [] | no_license | RedKnite5/Junk | 972dc24c99fe30400ab35e77bb4b69abe9076190 | 93b5bb4b6138518724528770cf56ea1df10e95b4 | refs/heads/master | 2023-04-10T07:25:14.968070 | 2023-04-04T04:19:42 | 2023-04-04T04:19:42 | 143,909,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import List, Optional
__version__ = "20.2.3"
def main(args=None):
# type: (Optional[List[str]]) -> int
"""This is an internal API only meant for use by pip's own console scripts.
For additiona... | [
"mr.awesome10000@gmail.com"
] | mr.awesome10000@gmail.com |
ea77bb315cf3148023426802883b769fdd8bca6a | da5ef82554c6c0413193b7c99192edd70fed58dd | /mozdns/mozbind/migrations/0001_initial.py | e6fbf0a97c11e27c8ce1a81cc903f84b13b9ba5d | [] | no_license | rtucker-mozilla/mozilla_inventory | d643c7713c65aa870e732e18aaf19ce677e277b7 | bf9154b0d77705d8c0fe1a9a35ce9c1bd60fcbea | refs/heads/master | 2020-12-24T17:17:37.621418 | 2013-04-11T10:39:41 | 2013-04-11T10:39:41 | 2,709,399 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'DNSBuildRun'
db.create_table('mozbind_dnsbuildrun', (
('id', self.gf('django.db.... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
0e06b51c7bb914f430e0c9cd3618bdf34445790d | 761a9cab16087615cd69e3db4ca2e4e6653f45b0 | /python_lumen/wsgi.py | bc0fdc79df6fe3370c1523fa15e55fcc84ec34e7 | [] | no_license | thienkimlove/python_lumen | eac4b345426d3e0ec21c7a0389bd1210dc544ebf | 3e64128f81dc5620b23cafdbe49c5490ba5cac63 | refs/heads/master | 2022-12-10T05:37:12.875816 | 2018-08-20T04:05:09 | 2018-08-20T04:05:09 | 119,933,992 | 0 | 0 | null | 2022-12-08T00:55:45 | 2018-02-02T04:58:24 | Python | UTF-8 | Python | false | false | 401 | py | """
WSGI config for python_lumen project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"quan.dm@teko.vn"
] | quan.dm@teko.vn |
ecaca1b3e5d771c24f817cadb26b074af2754379 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /tests/providers/google/cloud/hooks/test_cloud_composer.py | 4d54c9397bac6bc03c70ee08ffc3ac33cf8add00 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 7,063 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
f6fd9deffb52c2eafffc3f129f0ed8061c47d02b | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/rasbt_mlxtend/mlxtend-master/mlxtend/feature_selection/column_selector.py | 652590edfdfa9e29bedf1be262cfdaf60893e28f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,446 | py | # Sebastian Raschka 2014-2017
# mlxtend Machine Learning Library Extensions
#
# Object for selecting a dataset column in scikit-learn pipelines.
# Author: Sebastian Raschka <sebastianraschka.com>
#
# License: BSD 3 clause
from sklearn.base import BaseEstimator
import numpy as np
class ColumnSelector(BaseEstimator):... | [
"659338505@qq.com"
] | 659338505@qq.com |
0c8344ed508b797547823b60272c82018a8b33e5 | d4e0ad1235acce263318630316957afb841ed88b | /blog/forms.py | 4704f0e2cbbc78bd224b0fc3329085c33f7e121f | [] | no_license | SuperHeroYan/my-first-blog | 5a0934f5ac69ff5185653ebf91f6e33ad1b6b897 | e5116c3723c7b0cda138b98f8560dfcedb6972b7 | refs/heads/master | 2022-06-29T20:47:31.236741 | 2020-05-09T18:16:30 | 2020-05-09T18:16:30 | 262,119,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django import forms
from . models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ('title', 'text') | [
"test@gmail.com"
] | test@gmail.com |
e3934474ec4e40129779e39c6d100ab5bcba1024 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /quantlab/model/data.py | e4bc255b9cfb8c4592cbfc96868dae2e692ada98 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | # -*- coding: utf-8 -*-
import copy
import numpy as np
import pandas as pd
class Dataset(object):
"""数据接口"""
def __init__(self, datetime=[], instrument_id=[], feature=[], pct_change=[], feature_names=None, freq='1d'):
try:
assert len(datetime) == len(instrument_id) == len(feature) == len(p... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
9be3337fe99888c1ccb7d9d11e3b35a5bf957c3c | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/pkgutil/pkgutil_get_data_zip.py | 2ec04fe4270ce6a0eaab66bc368df8fdab603ce2 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 897 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Loading data from a zipfile.
"""
#end_pymotw_header
import pkgutil
import zipfile
import sys
# Create a ZIP file with code from the current directory
# and the template using a name that does not appear on the
# l... | [
"350840291@qq.com"
] | 350840291@qq.com |
98dde81c60aad812488e54f5b08c41d6f85adf48 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_376/ch151_2020_04_13_20_03_03_654585.py | cc8399ebb34c7aa062ed49611366ad02235c1ca0 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | def classifica_lista(l):
i=1
t=[]
while i<=len(l):
if l[i]>l[i-1]:
t.append(1)
i +=1
elif l[i]>l[i-1]:
t.append(-1)
i +=1
cd=len(t)
if cd==sum(t) and len(t)>0:
return "crescente"
elif cd== (sum(t))*(-1) and len(t)>0:
... | [
"you@example.com"
] | you@example.com |
ab59ca8c41801866d695ec3e288b39578a5d7040 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/express-route/azext_express_route/vendored_sdks/v2018_08_01/models/express_route_link_py3.py | 74d44c0f9b7c3ab3b8e559e3ad01bca9ca1ef975 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 3,527 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | anpaz.noreply@github.com |
b25c79fe99f37be011fff0c8984a3509f8b4ffee | 3b1773ecd8c288f7545b0ae24b83cee73826c1f6 | /packs/running/run1.py | 2c505aca56426cc4ef8afdde3297d9e06bf15157 | [] | no_license | CiceroAraujo/adm_impress | dc7989e24d381b389eb2d73a3d17b6fa520cf6ee | d572b8831606ee1c9b5004137ef3237cce764449 | refs/heads/master | 2020-12-20T12:18:34.430045 | 2020-01-15T00:14:47 | 2020-01-15T00:14:47 | 236,073,424 | 0 | 0 | null | 2020-01-24T19:56:15 | 2020-01-24T19:56:14 | null | UTF-8 | Python | false | false | 510 | py |
import os
from .. import directories as direc
from ..preprocess.data import Data
__all__ = []
name0 = direc.names_outfiles_steps[0]
def load_mesh(name_mesh = name0):
path_ant = os.getcwd()
from ..load.preprocessor_load import init_mesh
M = init_mesh(name_mesh)
from ..preprocess.init_data_class impor... | [
"jprandrade2@gmail.com"
] | jprandrade2@gmail.com |
1c232a5fe34b79a33d427b33b05cd6b07e0b6f21 | 64b33c5c68b2b668f086fd218a1ce0e381f7fb40 | /binary_image/Standard/BW.py | 67a94b3929fb997f82d00210a6d270f8f3564cd6 | [] | no_license | hongjoon0805/ICE-N-DUDE | ce1f9c498ae490a76259be4d796e252a1ea6dedd | 138e76ca56d39bc88a90a70e9c6d08d1c3a24b39 | refs/heads/master | 2020-04-20T11:43:55.646416 | 2019-02-02T11:50:54 | 2019-02-02T11:50:54 | 148,457,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py |
# coding: utf-8
# In[1]:
from core import *
from tools import *
import numpy as np
from numpy import *
import os
import tensorflow as tf
import keras as K
import sys
import argparse
# In[2]:
img_arr = ['barbara_512.png', 'boat_512.png', 'cman_256.png', 'couple_512.png', 'Einstein_256.jpeg', 'fruit_256.bmp', 'l... | [
"hongjoon0805@gmail.com"
] | hongjoon0805@gmail.com |
488f0ad4bb6ca1de06ebe1c4a16c4b6833f26ac7 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ip-static-cfg/nc-create-xr-ip-static-cfg-10-ydk.py | 7463d13768769981d984649f5c61bf0be5b9560d | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,747 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# 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 applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
a7e60ad0d28d7d0e485673b75c766a225843a8bc | a02ccb5dff094fad8bcd691dda234d50ff768299 | /tools/pytorch-quantization/tests/functional_test.py | 51312e3068c24e5356f5a31e9d72fa6746ceeaf9 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | NVIDIA/TensorRT | 5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b | a167852705d74bcc619d8fad0af4b9e4d84472fc | refs/heads/release/8.6 | 2023-07-29T05:39:45.688091 | 2023-06-09T22:29:09 | 2023-06-09T23:04:18 | 184,657,328 | 8,026 | 2,096 | Apache-2.0 | 2023-09-13T17:30:16 | 2019-05-02T22:02:08 | C++ | UTF-8 | Python | false | false | 3,569 | py | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
a9f1bbdce14ef6f3f4c83e4feeb3a0c113db891b | cfb4e971a702db4d010f66c58e2fb1011bb9b08c | /tutorial/03_load_display_save.py | 7175ce9e7bff928d6474996931fa1382ab3e58e1 | [] | no_license | Bugnon/tm-2018 | 7f2cc8cbc175cedf983c4f81fe8cee1be032ab29 | b54a155b706ab8b3ea7625326d2f4f3208b1dd64 | refs/heads/master | 2021-10-09T00:32:38.689530 | 2018-12-19T09:49:32 | 2018-12-19T09:49:32 | 116,138,161 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | ## Import the OpenCV library
import cv2
## Path to the image
path = "../images/trex.png"
## Read the image into memory
image = cv2.imread(path)
## Print some image parameters to the console
print("width: ", image.shape[1])
print("height: ", image.shape[0])
print("channels: ", image.shape[2])
## Display the image o... | [
"raphael.holzer@citycable.ch"
] | raphael.holzer@citycable.ch |
eee9a66980701f24606a74a4469f091c93d39da8 | 455997dfce160f05e5862fbaee74bf699d1e9139 | /bigflow_python/python/bigflow/transform_impls/take.py | bf7eb46df7ba5011fe33b18f0aaabd60e2a388a3 | [
"Apache-2.0"
] | permissive | xiaomj/bigflow | bf7f21ddfe844891f4037a931e8761be939be9eb | fae5bc3c812cec605847b8e24bae1d03ad1fa777 | refs/heads/master | 2021-08-30T19:29:31.964868 | 2017-12-18T11:19:21 | 2017-12-19T06:07:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
########################################################################
#
# Copyright (c) 2015 Baidu, 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 o... | [
"zhangyuncong@baidu.com"
] | zhangyuncong@baidu.com |
40353b6999e66145e39202dbe855b65bc40d6eb3 | dc98a70c53686c0460c4eedb1aad5fb0c2555239 | /MStore/migrations/0003_productmodel_brand.py | a3962d4e4d985154531dcb41e21037147b67cb85 | [] | no_license | NahidAkhtar84/EMart | b7c6cdcfc48e4a1f982469bbdd3250a4172fcd2e | 49c83b042afc5c4a7357df4683faa30356060a30 | refs/heads/master | 2023-03-12T16:25:31.173626 | 2021-03-03T01:52:09 | 2021-03-03T01:52:09 | 335,021,664 | 0 | 0 | null | 2021-02-02T09:42:43 | 2021-02-01T17:01:30 | Python | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.1.5 on 2021-01-31 11:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MStore', '0002_auto_20210131_1658'),
]
operations = [
migrations.AddField(
model_name='productmodel',
name='brand',
... | [
"nahid.ibne.akhtar@gmail.com"
] | nahid.ibne.akhtar@gmail.com |
bd6dbc30f713ed3f342b92c41bafab017d200155 | 03be7a49a209ec1f7b1447573d026bd87c8469af | /tests/core/util/test_cached_bls.py | 8b425b97b93a87610707423e7d68120c9aefda21 | [
"Apache-2.0"
] | permissive | 13thProgression/lotus-blockchain | 96b06563c126a36c701257314abca015d2bc9879 | ea6d1973cac256bc0dae790a23aac3fe6925dd4e | refs/heads/main | 2023-08-06T13:54:31.260289 | 2021-09-10T19:18:44 | 2021-09-10T19:18:44 | 405,157,571 | 0 | 0 | Apache-2.0 | 2021-09-10T19:18:45 | 2021-09-10T17:13:30 | null | UTF-8 | Python | false | false | 1,769 | py | import unittest
from blspy import AugSchemeMPL
from lotus.util import cached_bls
from lotus.util.lru_cache import LRUCache
class TestCachedBLS(unittest.TestCase):
def test_cached_bls(self):
n_keys = 10
seed = b"a" * 31
sks = [AugSchemeMPL.key_gen(seed + bytes([i])) for i in range(n_keys)]
... | [
"gowke@hotmail.com"
] | gowke@hotmail.com |
e4a955321f645c89c26893b16bf219293ae2e3e0 | b86c2951454ae166e976f6c4b649ffb44a3cc5fd | /oracle/oracle_base数据库基础管理_用户与权限管理课件/05.py | a169ad1b04aca03789f78617631ae1393a0d702a | [
"MIT"
] | permissive | 1515806183/shixunyun | b6d40d0e6a920c36d745238b72035b3cc5118d32 | 816fe651220887943081564d4e32afd4ac2e4533 | refs/heads/master | 2020-05-25T02:26:50.245100 | 2019-10-14T06:18:43 | 2019-10-14T06:18:43 | 187,578,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
try:
import commands, os, re
test_name = '用户与角色管理课件题目五'
test_vlu = '查询关键信息'
save_address = "/tmp/score.txt"
name = "/examdata/result/granted_sysdba_user"
def run():
try:
f = open(save_address, 'w')
# 1
if os... | [
"test@runoob.com"
] | test@runoob.com |
ed552ffca071ef6c046a3b95a8d103fd84354ef7 | f2bea9cf7282304c56066078b6a804f19d96a350 | /samtools/sort/wrapper.py | 26fa6baa1d1a05607c5d7e2cb8a49b1a3973fca4 | [] | no_license | dohlee/snakemake-wrappers | e2415a67f16d016b08391bb062c07b6f0d82b52b | ca24cdce499458cfb5874325ed477ae78d258e1d | refs/heads/master | 2023-02-22T10:01:33.834358 | 2023-02-08T06:12:59 | 2023-02-08T06:12:59 | 138,970,887 | 18 | 4 | null | 2018-09-03T14:34:19 | 2018-06-28T05:35:39 | Python | UTF-8 | Python | false | false | 636 | py | __author__ = "Dohoon Lee"
__copyright__ = "Copyright 2018, Dohoon Lee"
__email__ = "dohlee.bioinfo@gmail.com"
__license__ = "MIT"
from os import path
from snakemake.shell import shell
# Extract log.
log = snakemake.log_fmt_shell(stdout=False, stderr=True)
# Extract parameters.
extra = snakemake.params.get('extra',... | [
"apap950419@gmail.com"
] | apap950419@gmail.com |
5ad4d50979d24f90467a9cc5b506d48607ec164d | e7c91b61f060816e15d38a683715f59d8736b9f7 | /tempest/lib/services/identity/v3/project_tags_client.py | dd1a2a50ba8eac6101e75b959e23ad8bd6c78cd4 | [
"Apache-2.0"
] | permissive | auria/tempest | d0ce0ba9605f553a45c5c5d3485516f708c153b6 | 31609dc1da5e4c6e47c5c2cf642565cc2d9e7097 | refs/heads/master | 2020-06-21T10:39:51.590135 | 2019-07-05T09:23:37 | 2019-07-16T04:37:16 | 197,424,141 | 0 | 0 | Apache-2.0 | 2019-07-18T13:31:02 | 2019-07-17T16:17:38 | Python | UTF-8 | Python | false | false | 3,225 | py | # Copyright 2018 AT&T Corporation.
# 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 require... | [
"felipe.monteiro@att.com"
] | felipe.monteiro@att.com |
7b1457e8b8eacd43c0388be739637c8be7021712 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/classvs_20200630153949.py | 40f58bc6aa0b81228f7cc2de009f7d04647fdac4 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | class Person:
age = 0
# this is a constructor
def __init__(self,initialAge):
if initialAge > 0:
self.age = initialAge
self.age = 0
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
8a2ff0f603c0fb131338fe55645aad2dab21d40a | 7d3cf6650ab36a0a6acf156c1b3d2205db3df343 | /Libraries/cgNexusFlat.py | fd3bb4c39b60b4eb16cadfa41cab097cc5d69063 | [] | no_license | combiochem/ResearchScripts | 13c08051ede1f74341d0b707beaf4f46c1f39a31 | 38f81eee8d478179a53f5228fd1f0d3963e1c103 | refs/heads/master | 2020-04-07T23:59:41.677446 | 2011-04-29T22:06:52 | 2011-04-29T22:06:52 | 1,682,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,793 | py | import cgLuckyCharmsFlat as cgLuckyCharms
from copy import copy
import bioLibCG
import cgIndex
def lineUpdate(lineData, data, position):
'''lineList must NOT contain CR. data must be string'''
numSlots = len(lineData)
#put data in right position
if position < numSlots:
lineData[position] = data
else:
#upda... | [
"chrisgreer88@gmail.com"
] | chrisgreer88@gmail.com |
491a356daf2b4e35b0e2710536729d9e0f0a4536 | 1a75db8fb8ebff8c2253cff66a5e2416c21b0d6f | /tweets/admin.py | 9e2bb65aa778fe09c5c229241df8e2de9d730b0f | [] | no_license | Rabbi50/Tweeter-Clone | daf033b7a614fb549edd6b4704ce582233d2d380 | b6d3718d5819cc8990ca8e7a9cab771d68af8e96 | refs/heads/master | 2022-12-19T13:46:54.043062 | 2020-09-25T16:44:20 | 2020-09-25T16:44:20 | 290,155,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.contrib import admin
from .models import Tweet,TweetLike
# Register your models here.
class TweetLikeAdmin(admin.TabularInline):
model=TweetLike
class TweetAdmin(admin.ModelAdmin):
inlines=[TweetLikeAdmin]
list_display=['__str__','user']
search_fields=['content','user__username','user__ema... | [
"jasrabbi50@gmail.com"
] | jasrabbi50@gmail.com |
3c6567ffbe6bbac01a707b4091f06404a2a2947d | 2be2b1daea464c6b48706c6b2696a94af1b2439b | /lesson4/4.py | da963e53be4ba071ce5aa23a29f72c90dc04a114 | [] | no_license | kirigaikabuto/pythonlessons1400 | 584fbef15802accd10b21cd33fbd8aa7900e19f3 | af1df1f4b238e9e4476c75cb25a03f92957bc156 | refs/heads/main | 2023-07-12T19:06:08.117125 | 2021-08-14T08:09:11 | 2021-08-14T08:09:11 | 386,884,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | for i in range(0, 10, 1):
print(i)
# range(start,end,step)
# start - с какого числа начать цикл
# end -> до какого числа продолжать цикл
# step-> шаг
| [
"tleugazy98@gmail.com"
] | tleugazy98@gmail.com |
e3fbed4da9b29a056a3cd354a905d66ff9d0f3f6 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/pip/utils/build.py | 0cb32705bb8c8cc39a5ba0763c601b908d54323f | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 1,354 | py | from __future__ import absolute_import
import os.path
import tempfile
from pip.utils import rmtree
class BuildDirectory(object):
def __init__(self, name=None, delete=None):
# If we were not given an explicit directory, and we were not given an
# explicit delete option, then we'll de... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
f460a3ae761ce3bfe7e47740827b7242616cdea1 | 6673bd9425e7670d9d9949cea6845f5fdecfda3d | /ckan_cloud_operator/deis_ckan/namespace.py | 3f7ef59636fa091755968ab028fda7331263ca18 | [
"MIT"
] | permissive | datopian/ckan-cloud-operator | 19b9feae7ac607f37de24c00a65aac841df9eb80 | 30715b32a00bace400df8d6dce763b9469800f83 | refs/heads/master | 2022-12-24T14:07:33.778058 | 2022-03-19T20:23:01 | 2022-03-19T20:23:01 | 163,747,850 | 16 | 8 | MIT | 2022-12-08T03:29:59 | 2019-01-01T15:46:50 | Python | UTF-8 | Python | false | false | 2,350 | py | import subprocess
import yaml
from ckan_cloud_operator import kubectl
class DeisCkanInstanceNamespace(object):
def __init__(self, instance):
self.instance = instance
def update(self):
self.instance.annotations.update_status('namespace', 'created',
... | [
"ori@uumpa.com"
] | ori@uumpa.com |
b853e4fbcc84b0d15ce819aea5bda83d02542bac | 684ce99afc7c17e9c94bd0ed6dae1dd0fba245ad | /migration/test/test_create.py | 0342a3e677ee4f8e42ff04f18e0e1e9686612671 | [
"BSD-3-Clause",
"MIT"
] | permissive | prg127/Submitty | d53f7d71bfa63c8f8f131bc820d0ed583439bd97 | 1e66969d3e520cc93ee7edee5fd4740fb3247ba5 | refs/heads/master | 2020-05-06T15:46:17.841623 | 2019-04-08T04:39:04 | 2019-04-08T04:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,729 | py | """Test the create command."""
from argparse import Namespace
from io import StringIO
from pathlib import Path
import shutil
import sys
import tempfile
import unittest
import migrator
class TestCreate(unittest.TestCase):
"""Test the migrator."""
def setUp(self):
"""Set up the temp directory to use ... | [
"bmcutler@users.noreply.github.com"
] | bmcutler@users.noreply.github.com |
406b813fb17ceee92535857f84d473fd688c1528 | 0effd6f590f0d6d17f080e4c41660df13ffa64a7 | /commands/cat_plugins.py | de43056ea76acca8a74d8289d68d0b8b349d1457 | [] | no_license | vinodpanicker/sublime-elasticsearch-client | a6b2b5992979fa30d1b01cc98d962c657851ae1d | 62b8894f2dbbc776569bc4c6ab0586f7c89dd8c7 | refs/heads/master | 2021-01-13T06:21:02.945999 | 2015-09-14T04:01:33 | 2015-09-14T04:01:33 | 48,857,093 | 1 | 0 | null | 2015-12-31T17:30:18 | 2015-12-31T17:30:18 | null | UTF-8 | Python | false | false | 265 | py | from .base import CatBaseCommand
class CatPluginsCommand(CatBaseCommand):
command_name = "elasticsearch:cat-plugins"
def run_request(self):
options = dict(
params=dict(v=1)
)
return self.client.cat.plugins(**options)
| [
"kido@knowledge-works.co.jp"
] | kido@knowledge-works.co.jp |
96bbef0e20b2626993c296d2eb049d288559d1d4 | e837db39c9609830ab8e77dac2077ea30cadc5b3 | /flachdaecher_app/migrations/0011_auto_20191020_1822.py | 1e67a94887102addbfb9b5d9ff38ba87fdd5fefb | [] | no_license | windundschnee/accountneu | 9c8ff1507f725a5179604be2640d76b5302a0299 | da9066840a312a95bc628556c94738010787a01f | refs/heads/master | 2022-12-10T06:00:42.449898 | 2019-10-25T18:29:23 | 2019-10-25T18:29:23 | 211,513,631 | 0 | 0 | null | 2022-12-08T05:22:15 | 2019-09-28T14:34:00 | Python | UTF-8 | Python | false | false | 626 | py | # Generated by Django 2.2.4 on 2019-10-20 16:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flachdaecher_app', '0010_auto_20191020_1812'),
]
operations = [
migrations.AddField(
model_name='flachdachmodel',
na... | [
"du@example.com"
] | du@example.com |
6ef792a4ef2cd360192727a35e6de06a3b2e03c5 | 2008ff2a5e0a7790c4578d2c8ce402e0bb24bfda | /sandbox/sbxapp/tests.py | 4f2ab1de37395c3eca0d33755afaf6ba714040ac | [] | no_license | ganqzz/django_demo | 788a44a212cbf9e82b2ca84ba86147a90943756a | c880fc784e7bca4a78709ad76772c924b97dc393 | refs/heads/master | 2023-07-09T07:53:56.549362 | 2021-08-13T11:46:39 | 2021-08-13T11:46:39 | 356,131,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | import hashlib
import time
from django.core.exceptions import ValidationError
from django.test import SimpleTestCase, TestCase, LiveServerTestCase
from django.test import tag
from django.urls.base import reverse
from selenium.webdriver.firefox.webdriver import WebDriver
from .forms import HashForm
from .models import... | [
"ganqzz@users.noreply.github.com"
] | ganqzz@users.noreply.github.com |
41d790156b594a8306d5cac1be24c2f2375d8d90 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Desert/ShineGetter.py | 10446fae8014850d04cae37c712fd1b96e208782 | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 349 | py | # Чтобы быстро собрать много золота, просто собирай золотые монеты.
while True:
coins = self.findItems()
coinIndex = 0
while coinIndex < len(coins):
coin = coins[coinIndex]
if coin.value == 3:
self.moveXY(coin.pos.x, coin.pos.y)
coinIndex += 1
| [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
e2ca0499037324cb6a120185861aa041d4590613 | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/1171_Remove_Zero_Sum_Consecutive_Nodes_from_Linked_List.py | b90d012d659feaa71d860601111261a8bf246b2e | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """
Given the head of a linked list,
we repeatedly delete consecutive sequences of nodes that sum to 0 until there are no such sequences.
After doing so, return the head of the final linked list. You may return any such answer.
(Note that in the examples below, all sequences are serializations of ListNode objects.... | [
"zhangchao@zhangchaodeMacBook-Pro.local"
] | zhangchao@zhangchaodeMacBook-Pro.local |
cbc34b1f9c49c9d43c84430dbdc32f0a5d47eec7 | 1e1aca2fb4e5114337bcc7b5aa27a22585bab191 | /rewardifycli/__internal/tests.py | 2a71a9cf658e7f5aa12fa3618f75e6e3f2a6ec41 | [
"BSD-3-Clause"
] | permissive | the16thpythonist/rewardifycli | 1ab134ef141785b31e4cf57d8dc519f125a2305f | 1774b989cb2dd5d496a2a33d93e357f08052b101 | refs/heads/master | 2023-01-09T21:40:12.624704 | 2019-06-16T17:22:27 | 2019-06-16T17:22:27 | 191,887,375 | 0 | 0 | NOASSERTION | 2022-12-26T20:47:40 | 2019-06-14T06:23:36 | Python | UTF-8 | Python | false | false | 4,733 | py | # standard library
import unittest
from typing import Dict, List
# third party
from click.testing import CliRunner
from rewardify.models import User
from rewardify._util_test import DBTestMixin, ConfigTestMixin
from rewardifycli.util import UserCredentials
# ################
# BEHAVIOUR MIXINS
# ################... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
1bf477e14c2b7a6cc74db1653a61282ed7e432bd | 0ff2c69eaafea3bf25a227127f9c1b99638c5804 | /scripts/parse_mgm.py | b69908b7efee250d99ec54af526393aae4bb708c | [
"MIT"
] | permissive | stuppie/create_compil | 758d311bda8fb151763307d20e11a2587343080f | 4d3c0854fe6436ea5c8b51032bd7c46685a731ce | refs/heads/master | 2020-06-10T20:27:58.455278 | 2017-02-26T20:04:32 | 2017-02-26T20:04:32 | 75,883,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python3
"""
parse_mgm.py root_dir
root_dir: folder containing the files listed below
prints fasta to stdout
184sample.uniq_gene.NR.anno.merge.gz
29_GL0004906 1/1 Clostridiales order root|cellular organisms|Bacteria|Firmicutes|Clostridia|Clostridiales no rank|no rank|superkingdom|phylum|c... | [
"gstupp@scripps.edu"
] | gstupp@scripps.edu |
36d70f3ddf388e19bdd2089d0c01e29910518675 | 087ebfcb987851af9d5780d8c5c424b0669a7a9b | /training/math/codes/tri_sss.py | 7935e4c39cc27a22dc85b6a77462d3397ab6dcef | [] | no_license | arjunjc93/school | 5ed56e083483abc2cda5b55b83f8e7251367b1dc | 3bbcbc3269e2bbe828553c7ebaa86d4ed4fb630b | refs/heads/master | 2023-02-21T05:15:48.159419 | 2021-01-23T03:01:00 | 2021-01-23T03:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | #Code by GVV Sharma
#December 7, 2019
#released under GNU GPL
#Drawing a triangle given 3 sides
import numpy as np
import matplotlib.pyplot as plt
#local imports
from line.funcs import *
from triangle.funcs import *
from conics.funcs import circ_gen
#if using termux
import subprocess
import shlex
#en... | [
"gadepall@gmail.com"
] | gadepall@gmail.com |
8a57b34e9a025d9df132b35bf942aad7890e5238 | edbf8601ae771031ad8ab27b19c2bf450ca7df76 | /42-Trapping-Rain-Water/TrappingRainWater.py | d41dd69e9072487a3a24c6f44d86e35ba9fdad23 | [] | no_license | gxwangdi/Leetcode | ec619fba272a29ebf8b8c7f0038aefd747ccf44a | 29c4c703d18c6ff2e16b9f912210399be427c1e8 | refs/heads/master | 2022-07-02T22:08:32.556252 | 2022-06-21T16:58:28 | 2022-06-21T16:58:28 | 54,813,467 | 3 | 2 | null | 2022-06-21T16:58:29 | 2016-03-27T05:02:36 | Java | UTF-8 | Python | false | false | 750 | py | class Solution(object):
def trap(self, height):
"""
:type height: List[int]
:rtype: int
"""
total = 0
if not height or len(height)<3:
return total
length = len(height)
left = [0]*length
right = [0]*length
m = height[0]
... | [
"gxwangdi@gmail.com"
] | gxwangdi@gmail.com |
dd4979009ceef9a067d62e7952b4cd4d53958306 | b3194c381b08d9c9d74631b243d711067fd89036 | /Jira/app/main/views.py | 50b90cf2f6ebf52c1f8d6eb911efe15efb4a9336 | [] | no_license | kulyashknr/Advanced-Django-2019 | 9a2084a2dfdf4470f35b034d05614d76263e1f58 | 15e7275514f8f300c8701f2d32880b705bebd5a6 | refs/heads/master | 2020-07-17T17:49:21.411993 | 2019-12-04T09:51:49 | 2019-12-04T09:51:49 | 206,065,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,080 | py | from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView, ListAPIView, UpdateAPIView
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import viewsets, status
from ... | [
"konyrova@gmail.com"
] | konyrova@gmail.com |
83cf46da8f261b59d3c7b124c75ff14c3ea5196f | 027dd49b92ee92c8faa5ea05bce95d28efd2268d | /Documents/django/CrudRestAPI/crudapp/views.py | 89e4bd4cfa19a4f62701071b9dd92c7e51a0df1f | [] | no_license | arunkumar27-ank-tech/RestAPIcrud | 0ac06a4f0b6cf3373eb76b815e3cd6c5748610d5 | 387c5fad78f4b72cfbbe47d06e79c1a15038ad69 | refs/heads/master | 2023-06-13T21:44:08.157685 | 2021-07-06T14:11:12 | 2021-07-06T14:11:12 | 383,477,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | from django.shortcuts import render
from rest_framework import serializers
from crudapp.models import Todo
from crudapp.serializers import Todoserializer
from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.decorators import api_view
@api_view(['GET'])
def read(request)... | [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
d7313df9888223858bc36756dd311a0bd5f27815 | e4d3a552faf97bd8917991dc4411ba96693c578e | /integer_30/integer_9.py | 3c51839c6fcbb62c9225be2776c2ff1e935aa8d7 | [] | no_license | RuzimovJavlonbek/qudrat-abduraximovning-kitobidagi-masalalarni-pythonda-ishlanishi | 0a94ca4bde1f7532227ce340d9e9e3281030f20c | 0bf288858c44ca19fd26df26ef51ad2256939610 | refs/heads/main | 2023-06-29T12:47:44.385856 | 2021-08-02T14:03:31 | 2021-08-02T14:03:31 | 390,464,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #Bu dastur Qudrat Abduraximovning C++ ga asoslangan kitobidagi masalar asosida python dasturlash tilida yozildi
# O'rganuvchi bo'lajak dasturchi : J_Ruzimov
#Sana: 24.06.2021
# Maniz: Nukus
# Integer.
from math import *
print("Integer_9. \n ")
a = input(" A=")
#===========================================... | [
"ruzimov_javlonbek_1997@mail.ru"
] | ruzimov_javlonbek_1997@mail.ru |
ab38d141177307669a912412ac2a3a8794a974e5 | 26efd8bd49d1e5dc47177a550c897b5e2b99072b | /chap01_python101/readfile_multiplelinerecords.py | 4e05c3f36490f281c51a945293bb1a8a819dc0cd | [] | no_license | Nathan-Walk/code_py_book_data_structures_and_algo | 3763b072522b2bf8ca07560c658d5369964a60b2 | 4d79f74daeab8f0ab8a1aedde37ea7c61535c715 | refs/heads/master | 2023-04-04T20:26:29.507518 | 2021-04-08T10:41:31 | 2021-04-08T10:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import turtle
FILENAME: str = "./src/turtle_commands_multiplelines.txt"
def main():
t = turtle.Turtle()
screen = t.getscreen()
with open(file=FILENAME, mode="r") as file:
command = file.readline().strip()
while command != "":
if command == "goto":
x, y = floa... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
b87fcc90843ec2cde00df0c2ce7742acf6817987 | 5f92dd6164c41e5756842da0a053b207005be252 | /tests/system/providers/amazon/aws/example_rds_instance.py | b31be7c00720244b949a190bc10657566d0fdce6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | mans2singh/airflow | 24d17446457ebfbf17850d336722f79e46b06404 | de9633f93a366ebc0a46d1ec4df2c4aa9a18357d | refs/heads/main | 2023-03-20T17:56:18.506101 | 2022-10-22T19:41:57 | 2022-10-22T19:41:57 | 168,956,212 | 0 | 0 | Apache-2.0 | 2019-02-03T14:51:24 | 2019-02-03T14:51:23 | null | UTF-8 | Python | false | false | 4,090 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | mans2singh.noreply@github.com |
4f614544a5f8f115bc4d08e1d02599dba264becd | 6e086ba3d5a3e07815e2f684ba1f3caf9b16f55e | /chat/urls.py | cfddd367cdce5e294e7d84139a9728a2453d3018 | [] | no_license | sharif1302042/Social_network | d42123efa592291d2e3574cf4c95aadca66fac46 | 9a3a9800fc978f042bc7cf93ba0aa8ce01b2f5a9 | refs/heads/master | 2022-11-15T17:27:35.555909 | 2019-10-21T18:40:10 | 2019-10-21T18:40:10 | 215,288,683 | 0 | 0 | null | 2022-11-04T19:37:39 | 2019-10-15T12:05:12 | HTML | UTF-8 | Python | false | false | 188 | py | from django.urls import path
from chat import views
urlpatterns = [
#path('<room_name>/', views.ChatView.as_view(), name='chat'),
path('<room_name>/', views.room, name='chat'),
]
| [
"sharifulcsehstu@gmail.com"
] | sharifulcsehstu@gmail.com |
9955ead2c0a11adf4a268ea35f7b3f81ffea7f27 | 1ef56dcfef70ee14df8956eedd171f74406594af | /erp/entity/sys_res.py | 379cbcb9d28fe4e9a254898a77085c63f6b250a7 | [] | no_license | journeyends/webtest | 6c54ff19e01cd0cd99a34bcae55dd5701abf132f | 2a24c6d7c52aa627edfbba3dd5eb9ccc16abe9fb | refs/heads/master | 2020-04-17T07:38:52.873722 | 2019-03-21T09:36:50 | 2019-03-21T09:36:50 | 166,378,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | from django.db import models
class SysRes(models.Model):
res_id = models.AutoField(primary_key=True, db_column="RESID")
res_name = models.CharField(max_length=128, db_column="RESNAME")
alias = models.CharField(max_length=128, db_column="ALIAS")
sn = models.IntegerField(db_column="SN")
icon = model... | [
"songliyang@goldmantis.com"
] | songliyang@goldmantis.com |
c78e645ee1b9507a1d6796714a9bab353a09685f | 3ecb2f6ab32277105e902aefbaefff6a5b15816a | /Bio/_py3k/__init__.py | 234820f2f13719a4ae81b8c4578c7c1d3add1cf6 | [
"LicenseRef-scancode-biopython"
] | permissive | pvanheus/biopython | 02968452f23fe32be3df57f9c371d0976d690c82 | f94450deea352f2decdc452d5a28bf773ac07fc4 | refs/heads/master | 2021-01-22T16:10:45.080737 | 2014-04-30T17:40:19 | 2014-04-30T17:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | # Copyright 2010-2013 by Peter Cock. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Python 3 compatibility tools (PRIVATE).
We currently have lines like this under Python 2 ... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
88310aadf08b7859ab4cf6bbf5f37e95467edd58 | c7c52dd66d04f778b3f92ed27efc608b65054b03 | /tests/test_minmonthpymt.py | 8af1e485e9aa3a89da76e850b2a0c0803bea6281 | [] | no_license | Angelica137/paying-off-debt | 04c55e5cb49b70effd2a6229f0c04e6ee236a9b6 | 2c20f1f88d0e172b6114c477866b8bd44a0f8e3e | refs/heads/master | 2022-11-05T14:40:26.552599 | 2020-06-25T17:30:30 | 2020-06-25T17:30:30 | 273,591,530 | 0 | 0 | null | 2020-06-25T17:30:32 | 2020-06-19T21:40:38 | Python | UTF-8 | Python | false | false | 181 | py | from scripts.minmonthpymt import MinMonthPymt
def test_calculate_min_monthly_payment():
minMoPmt = MinMonthPymt(0.04, 42)
assert minMoPmt.calcMinMonPymt(0.04, 42) == 1.68
| [
"Angelica137@users.noreply.github.com"
] | Angelica137@users.noreply.github.com |
7d156f192ca55912a3bed2300ad66df139784bab | f76862c7dfcc08a495927eae3f4a995e416b948c | /amulet_map_editor/programs/edit/api/behaviour/__init__.py | 62f92725d9d18cb096530100f43f79f94096feca | [] | permissive | Ex-Ark/Amulet-Map-Editor | 0bc1e6ac07349736114ea80e6c3ee2233863366e | 24704b91749727e8bce25aecf41d39f4b0eba433 | refs/heads/master | 2023-03-02T23:06:46.201874 | 2021-02-14T12:31:59 | 2021-02-14T12:31:59 | 221,939,739 | 0 | 0 | MIT | 2019-11-15T14:26:14 | 2019-11-15T14:26:14 | null | UTF-8 | Python | false | false | 516 | py | # API layout
from .base_behaviour import BaseBehaviour
# camera behaviour
from .camera_behaviour import CameraBehaviour
# ray casting behaviour
from .raycast_behaviour import RaycastBehaviour
# pointer box behaviour
from .pointer_behaviour import PointerBehaviour
# static selection
from .static_selection_behaviour ... | [
"james_clare1@yahoo.co.uk"
] | james_clare1@yahoo.co.uk |
b0b979a27849dc2f0ea8c5933d1792be0d71dd43 | 54db985cefb911824a61f1778db615bf903a92a4 | /tools/process_mpii.py | 133ff524a91c8b711550317e48eb5dcfe06cba4b | [
"MIT"
] | permissive | dangchenyu/cabin_pose | 1f710bb3b20feedb7c29dc3528f8306fd3d199dc | abfad0884b6c3d3366da8db71c77ae13b48de2ef | refs/heads/master | 2023-05-01T21:48:59.232279 | 2019-12-26T09:07:50 | 2019-12-26T09:07:50 | 214,624,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import json
import os
import cv2
import numpy as np
def main():
with open("C:\\Users\\DELL\\Desktop\\#3960结果26-50.json") as anno_file:
anno = json.load(anno_file)
new_json = []
for a in anno:
try:
image_name = a['image_name']
img = cv2.imread(
"C:\\U... | [
"dcy0921@outlook.com"
] | dcy0921@outlook.com |
5456dd3b08915c5860675baa04dedfcce1ba7146 | dd12725adcf93e352cb5bd38b7e0616929436cd5 | /keras_resnet/models/_2d.py | afaf75f0884a6098dfe171f8bab06720541b9855 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | bzamecnik/keras-resnet | 49a2420acd920fa0395e8d26427e501ff98b6d4d | 120f2b283563ac82e3b419ae15602302c3e9b538 | refs/heads/master | 2021-01-19T19:57:00.545884 | 2017-08-23T18:52:58 | 2017-08-23T18:52:58 | 101,214,362 | 0 | 0 | null | 2017-08-23T18:50:40 | 2017-08-23T18:50:39 | null | UTF-8 | Python | false | false | 7,711 | py | # -*- coding: utf-8 -*-
"""
keras_resnet.models._2d
~~~~~~~~~~~~~~~~~~~~~~~
This module implements popular two-dimensional residual models.
"""
import keras.backend
import keras.layers
import keras.models
import keras.regularizers
import keras_resnet.blocks
class ResNet(keras.models.Model):
"""
A custo... | [
"allen.goodman@icloud.com"
] | allen.goodman@icloud.com |
b7ef61d0a4e622944530b339a8b30798582be22b | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-145_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467486/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_3/run_cfg.py | f3007b10b9b438e3ef8487c9d975790c7e270f62 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/WH_ZH_TTH_HToTauTau_M-145_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467486/HTT_24Jul_newTES_manzoni_U... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
9a0151fb798a77e939d4a5246114ee0c6520ed5f | 73744790709a75fa15bd3a9c141777b81acf6402 | /cloudify_rest_client/secrets_providers.py | 38e90ce555a0b7c05d8092c0cdce38c93f8f44bd | [
"Apache-2.0"
] | permissive | cloudify-cosmo/cloudify-common | aea8f9b9b1f5d85a23b6f8d3f61b8a445d2fc27e | 246550c150e33e3e8cf815e1ecff244d82293832 | refs/heads/master | 2023-08-24T12:44:40.277500 | 2023-08-17T08:54:31 | 2023-08-17T08:54:31 | 132,621,915 | 8 | 16 | Apache-2.0 | 2023-08-24T12:27:03 | 2018-05-08T14:35:12 | Python | UTF-8 | Python | false | false | 7,514 | py | from cloudify_rest_client import utils
from cloudify_rest_client.exceptions import CloudifyClientError
from cloudify_rest_client.responses import ListResponse
from cloudify_rest_client.constants import VisibilityState
class SecretsProvider(dict):
def __init__(self, secrets_provider):
super(SecretsProvider... | [
"noreply@github.com"
] | cloudify-cosmo.noreply@github.com |
cdaf6bd4fc62d50f7c7103286f9a6af047a77fe0 | 94f180b4b0b0a699d6948fd5e1216d16d6735edc | /source-code/Merge Two Sorted Lists 21.py | 7bc9f33405549b55d126862773a77e8f42e71945 | [
"MIT"
] | permissive | ttungl/Coding-Interview-Challenge | 7093b7f8da0c03abaf2f61340384cdc15c7a31e7 | d80c3e15468d50b42ee53fcc73e9326c6c816495 | refs/heads/master | 2021-09-15T05:25:27.192040 | 2018-05-26T19:02:33 | 2018-05-26T19:02:33 | 115,586,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | # 21. Merge Two Sorted Lists
# ttungl@gmail.com
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeTwoLists(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
... | [
"noreply@github.com"
] | ttungl.noreply@github.com |
1122171b1141da612612c1233d7230854be54a57 | a0cbae33d175fdf0299eddc775a1b4b84c0addcf | /orquesta/tests/unit/conducting/test_workflow_conductor_data_flow.py | f073caa0a15c3edb6d2672b3bf00e7ef7bde7f5e | [
"Apache-2.0"
] | permissive | batk0/orquesta | 240ff95c76c610c52518ee7d2e3eee11b6594a73 | f03f3f2f3820bf111a9277f4f6c5d6c83a89d004 | refs/heads/master | 2020-04-17T10:48:48.016607 | 2019-01-19T15:40:05 | 2019-01-19T15:40:05 | 166,514,957 | 0 | 0 | Apache-2.0 | 2019-01-19T06:37:39 | 2019-01-19T06:37:39 | null | UTF-8 | Python | false | false | 3,444 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
e6b7c1a40799bebf93bc4a840d1e0b5553e99389 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02790/s225904166.py | d4cf36780aae06dd18a71542b391e534afe9e220 | [] | 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 | 223 | py | def main():
a,b= list(map(int,input().split()))
a_str=""
b_str=""
for i in range(0,b):
a_str+=str(a)
for i in range(0,a):
b_str+=str(b)
if a_str<b_str:
print(a_str)
else:
print(b_str)
main() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2fa80d5fd7a687e6bd0d298e2485c2faaabf13af | a1aec5bcbbc0c25bf4137f02f2c2443e4d5e7a66 | /Deep_Learning/Deep_neural_networks/keras_introduction/xor_using_keras.py | fde45b2d6229149a566fe4012daf7ed7154ac686 | [
"MIT"
] | permissive | coolsgupta/machine_learning_nanodegree | 3c9957520835abac82d577721e3bf7d34e27817d | 7858e72694a5c5c0266b4e4b81b39a8664dcebd2 | refs/heads/master | 2021-01-09T06:51:29.696097 | 2018-03-14T21:57:46 | 2018-03-14T21:57:46 | 81,132,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | import numpy as np
from keras.utils import np_utils
import tensorflow as tf
tf.python.control_flow_ops = tf
# Set random seed
np.random.seed(42)
# Our data
X = np.array([[0,0],[0,1],[1,0],[1,1]]).astype('float32')
y = np.array([[0],[1],[1],[0]]).astype('float32')
# Initial Setup for Keras
from keras.models import Se... | [
"cool.sgupta@gmail.com"
] | cool.sgupta@gmail.com |
0e5500f8951c9dab342d1b68aec9b62325bbdab4 | 78f1cc341cd6313d02b34d910eec4e9b2745506a | /p02_personal_summary/p13_lee_yung_seong/p05_week/p02_thursday/C8.8.py | 9c53b93a9498eb9a811f435a8b84af706790db0c | [] | no_license | python-cookbook/PythonStudy | a4855621d52eae77537bffb01aae7834a0656392 | cdca17e9734479c760bef188dcb0e183edf8564a | refs/heads/master | 2021-01-20T17:23:35.823875 | 2017-07-30T10:56:13 | 2017-07-30T10:56:13 | 90,873,920 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,472 | py | #서브클래스에서 프로퍼티 확장
#문제
#서브클래스에서 부모 클래스에 정의한 프로퍼티의 기능을 확장하고 싶다.
#해결
#프로퍼티를 정의하는 다음 코드를 보자
class Person:
def __init__(self,name):
self.name = name
@property
def name(self):
return self._name
@name.setter
def name(self,value):
if not isinstance(value,str):
raise TypeEr... | [
"acegauss@naver.com"
] | acegauss@naver.com |
4206c13a82f0be8d48910c19896079a18ddb0e66 | b70582d23299ddee49102cfa1c4d103a19bfe4ec | /api/namex/services/name_request/auto_analyse/mixins/get_synonyms_lists.py | 2eec00875edae9ee5bbb7ceb03db403723829285 | [
"Apache-2.0"
] | permissive | thorwolpert/namex | 2b26119a6178944d60e3ed8715bfea48e557f13f | 773c9ced6b5688ba6612f87712e611e55c149b85 | refs/heads/main | 2022-10-06T06:30:11.468388 | 2022-09-21T21:35:44 | 2022-09-21T21:35:44 | 142,053,557 | 0 | 0 | Apache-2.0 | 2018-07-23T18:30:10 | 2018-07-23T18:30:09 | null | UTF-8 | Python | false | false | 460 | py | class GetSynonymsListsMixin(object):
_prefixes = []
_synonyms = []
_substitutions = []
_stop_words = []
_number_words = []
def get_prefixes(self):
return self._prefixes
def get_synonyms(self):
return self._synonyms
def get_substitutions(self):
return self._subs... | [
"noreply@github.com"
] | thorwolpert.noreply@github.com |
a4ac510fbb98d15d194143d284c0c32e1a20e3c2 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1552724/snippet.py | e932ab267122e34b289b25470f1c692672c9b36b | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,652 | py | #! /usr/bin/env python
class Pipeline(object):
def __init__(self):
self.source = None
def __iter__(self):
return self.generator()
def generator(self):
while True:
value = self.source.next()
if self.filter(value):
yield self.map(value... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
aae867c7403280a9c372157d406fb6c25c20dc2d | 35b6013c1943f37d1428afd2663c8aba0a02628d | /dialogflow-cx/detect_intent_disabled_webhook_test.py | 64422d3b5c99cd8df17b6f056a3d60ca332285bc | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,287 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
cf8068d5bada03d7a07c2bde6a6452821e586845 | bebba3fb1dfc13a2220f06997c4bc8da42ef8e87 | /smashlib/project_manager/util.py | 7ebf25d7c73cdb94638346da0833e306b8e5c19e | [
"MIT"
] | permissive | mattvonrocketstein/smash | b48b93c3419637f615c7ac3386b04ae756e1fadc | 98acdc27ab72ca80d9a7f63a54c0d52f126a8009 | refs/heads/master | 2021-01-18T23:23:59.340206 | 2016-07-14T01:28:17 | 2016-07-14T01:28:17 | 2,813,958 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | """ smashlib.project_manager.util
"""
def clean_project_name(name):
return name.replace('-', '_').replace('.', '_')
class UnknownProjectError(Exception):
pass
| [
"matthewvonrocketstein@gmail-dot-com"
] | matthewvonrocketstein@gmail-dot-com |
932db771c365a123320e75b32fab8b7f3b2b8a93 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03208/s470753818.py | e79a34f5821f20d70920a3812fa2fecd4853cc1e | [] | 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 | 672 | py | #!/usr/bin/env python3
# encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
from decimal import Decimal # 10進数で考慮できる
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI()... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a60d6b56974168c4f4a154cccb93d237dc20bc20 | 964b063c2461aad267ddd991fefaf7ab53b1ca94 | /8-kyu/fix-your-code-before-the-garden-dies!-/python/solution.py | eaaa87f975333df67daee7b8cf548821b1497fd7 | [] | no_license | lucasbflopes/codewars-solutions | 26c4e2cd1be19db50cc8c1d9fc117c51c82a2259 | 72ef2c02dde7bd0d5a691e04e3b2a383e892f84b | refs/heads/master | 2022-03-14T01:26:41.816498 | 2019-11-23T17:17:19 | 2019-11-23T17:17:19 | 114,834,447 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def rain_amount(mm):
if (mm < 40):
return "You need to give your plant %smm of water" % (40 - mm)
else:
return "Your plant has had more than enough water for today!" | [
"LucasBraganca@Lucas-MacBook-Pro.local"
] | LucasBraganca@Lucas-MacBook-Pro.local |
2d82591c9e0b9e5ba7af11ab953411e90932b5e7 | 3597ecf8a014dbd6f7d998ab59919a94aff8011d | /admin-web/src/www/application/modules/gene/comment/actions.py | 10f68c699af777de912c129d58a49877c6ec2d41 | [] | no_license | duytran92-cse/nas-genomebrowser | f42b8ccbb7c5245bde4e52a0feed393f4b5f6bf1 | d0240ad5edc9cfa8e7f89db52090d7d733d2bb8a | refs/heads/master | 2022-10-24T05:26:01.760241 | 2020-06-14T19:01:35 | 2020-06-14T19:01:35 | 272,264,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application import constants
from application.modules.gene import components as gene_components
from applica... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
b8bc2a10910908673c0a32329fd1ee7a7e567402 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/hamming/eeb774ba6cbf4c2d959a8089b6d72565.py | ac6d94db78bbdcd35fc99077980344ef0cd62de4 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 256 | py | def hamming(seqA, seqB):
n = min(len(seqA), len(seqB)) # minimum length of the two sequences
hdist = abs(len(seqA) - len(seqB)) # difference in length => starting distance
for i in range(n):
if seqA[i] != seqB[i]:
hdist += 1
return hdist
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
c9937507e6d998bfcd2dadd1a6859e50ad3f11b3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s383612077.py | 858ebaa31eeaa9657ee1bc707c3b5ea1045cafa1 | [] | 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 | 457 | py | N = int(input())
ans = 0
for i in range(1, N+1):
a = list(map(int, str(i)))
x = a[0]
y = a[-1]
if x == y:
ans += 1
if y != 0:
for j in (5, 4, 3, 2, 1):
z = (y+1)*(10**j)
if z <= N:
ans += 10**(j-1)
elif y*(10**j) + x <= N and N < z... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
50e457ce76e4541286614ecc46dad35fdf8f3b4a | eb621c8c9cc04a9911cb5ca87867e16558f5932c | /astronum_2018/plots/sdc_plot.py | 02ff89f2e4767ef0b9c6eb7b91bcabc02fd8125d | [] | no_license | forest80/papers | e3b6598489321a9ac41580a8f7c49e8b2c9f2f49 | 313dbeab9f91fc33fffee66baa098e1209a6239f | refs/heads/master | 2020-04-13T06:51:20.112861 | 2018-12-19T21:54:54 | 2018-12-19T21:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | import numpy as np
import matplotlib.pyplot as plt
# read the Strang data into a numpy array
strang = np.loadtxt("strang_diag.out")
# now manually read it looking for the times that indicate when the Strang halves began
strang_starts = []
strang_second = []
with open("strang_diag.out") as f:
for line in f:
... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
184630603973ea592024038f3b1afffe88615783 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_classification/AlexNet_for_TensorFlow/99-origin/utils/create_session.py | 566fc5ed2c6abe7cbc304da20092deb7b4c24817 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 1,284 | py | import tensorflow as tf
import os,sys
# for MultiGPU
import horovod.tensorflow as hvd
class CreateSession():
def __init__(self, config):
self.config = config
self.estimator_config = tf.ConfigProto(allow_soft_placement=False)
self.estimator_config.gpu_options.allow_growth = True
... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
13496a70bef2012cace6c00cad73736d13d0ad5d | e18f3f4e7f68ed100e577f16951e0c25714196bd | /cetweb/company/migrations/0003_auto__del_field_job_requests.py | 86065a78cc84c3cb8e19fbc3dc19b88ea0cb2003 | [] | no_license | sanchitbareja/cetweb | 8a24b9f9b59f8cb7bb84babdcd1d6fbc980e1fa0 | bf860c03fb19c142e258bb6771da23703d06e865 | refs/heads/master | 2020-12-24T14:45:20.028586 | 2013-04-30T22:59:48 | 2013-04-30T22:59:48 | 7,984,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,548 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Job.requests'
db.delete_column('company_job', 'requests_id')
# Adding M2M table f... | [
"hbradlow@berkeley.edu"
] | hbradlow@berkeley.edu |
7001a32cbcdf83708eb22f17fcbcc1bf5b8c9651 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /swagger_client/models/i_ospfv3_neighbor_cost.py | d5fd8a548e8c04ae306362aa54b256ab254c2431 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
3113701762a206851351ca3cfeed07eef4b86bf8 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/tools/convert_datasets/pascal_voc.py | 89dd6e6c0250fc2b651b473d4587a76c153116cd | [
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"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 | 5,197 | py | # Copyright 2021 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://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
5c44d813e3bb0d21b708bffd74dba33c676eaaeb | 1af44bdcbc3c15d3f6e436a7924dfd45f504ab3a | /05_Intergration/lev-distance.py | b12259ca1ead0504dd4840d0a5e5e0d73ae2a672 | [] | no_license | wql7654/bigdata_exam | f57c8b475690cbc5978009dbf8008bedff602e2a | c07ee711bb84407428ba31165185b9607b6825e8 | refs/heads/master | 2023-04-07T00:50:59.563714 | 2021-05-25T02:46:43 | 2021-05-25T02:46:43 | 180,915,985 | 0 | 0 | null | 2023-03-25T01:08:09 | 2019-04-12T02:36:08 | Jupyter Notebook | UTF-8 | Python | false | false | 1,694 | py | # 레벤슈타인 거리 구하기
def calc_distance(a, b):
''' 레벤슈타인 거리 계산하기 '''
if a == b: return 0
a_len = len(a)
b_len = len(b)
if a == "": return b_len
if b == "": return a_len
# 2차원 표 (a_len+1, b_len+1) 준비하기 --- (※1)
matrix = [[] for i in range(a_len+1)]
for i in range(a_len+1): # 0으로 초기... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
49a61789d143aeb1bc8dc6260a4fa168423b124b | ced6377b7cf6abc80184efe5e866faef96042c51 | /migrations/versions/cbdc96e4117d_initial_migration.py | 2ba20e170729ac545fc1b33d7c42c5f0447f0a05 | [] | no_license | anatulea/socialApp | d90397bd4b8048be3346acd3e9e333423503e7fe | c07f12e545d66dab4aef4ea60076d0f071b15f33 | refs/heads/master | 2023-02-15T13:05:01.871058 | 2021-01-06T01:21:02 | 2021-01-06T01:21:02 | 327,164,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | """initial migration
Revision ID: cbdc96e4117d
Revises:
Create Date: 2021-01-04 22:36:04.453954
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'cbdc96e4117d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"anatulea14@gmail.com"
] | anatulea14@gmail.com |
0d9fe18a673e5563a26ab68473543f4d2576f534 | 54417b54c6e025a5d9bd89ae119c9134ccca4510 | /test/test_connectomics/views/test_maps.py | 51f84e3801336dd8da0d93724ae705083055be4b | [] | no_license | SheetsKG/py-connectome-analysis | 15481d579c089010b031d57141486114a2a153b2 | 169274d562b2981bc6f04032797c87ca5a66bbb0 | refs/heads/master | 2021-01-22T15:42:33.947279 | 2014-09-16T21:06:25 | 2014-09-16T21:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | '''
Created on Jun 19, 2013
@author: u0490822
'''
import unittest
import connectome_analysis.views.mappings as mappings
class LabelTest(unittest.TestCase):
InputLabelList = [' GAC Aii ',
'Rod BC ',
' Rod BC',
'CBa1w[G-, <> Aii]',
... | [
"james.r.andreson@utah.edu"
] | james.r.andreson@utah.edu |
ba1a47b7dc83b2ed8f27c4f4d03414f92f39c31d | d873d529a24a30e2a9fc3e5a15ef6fe595c1423e | /blockchain-env/Lib/site-packages/aiohttp/web_log.py | 4cfa57929a975a45ab9bf575b7c03b823a233393 | [
"MIT"
] | permissive | AdityaStark7/blockchain_backend | 2731d733a0029614565b484ec5820d04f615bfe7 | a019dda3bd4160ae962ced5bd95d060ad33f7f07 | refs/heads/main | 2023-08-19T12:26:38.211892 | 2021-10-15T05:31:18 | 2021-10-15T05:31:18 | 385,313,460 | 8 | 1 | MIT | 2021-10-11T17:28:22 | 2021-07-12T16:31:53 | Python | UTF-8 | Python | false | false | 7,498 | py | import datetime
import functools
import logging
import os
import re
from collections import namedtuple
from typing import Any, Callable, Dict, Iterable, List, Tuple # noqa
from .abc import AbstractAccessLogger
from .web_request import BaseRequest
from .web_response import StreamResponse
KeyMethod = namedtuple("KeyMe... | [
"ak511046@gmail.com"
] | ak511046@gmail.com |
68f23e1eea010ef5f7a7d68d0712852f4cdaf53d | 9dcb8ebf1f120ba5b762127fee93caa4f5c63734 | /pagseguro/tests/test_api.py | 7c808e85f412871ac64f84227b0e5e953494ba20 | [] | no_license | luxu/work-at-codevance | 8df233859d0e7372948b803b066db83fb499d4ec | bef239d55d75a4135a3df4cc1e96e6a315bdb98f | refs/heads/master | 2023-08-23T15:06:19.840784 | 2021-10-29T17:11:42 | 2021-10-29T17:11:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import pytest
from requests import get
from django.urls import reverse
from pagseguro.settings import BASE_URL
@pytest.fixture
def url_api_request_advance():
url_view = reverse('api_request_advance', kwargs={'payment_id': '6'})
url = ''.join((BASE_URL, url_view))
return url
@pytest.fixture
def url_api... | [
"zicadopv@gmail.com"
] | zicadopv@gmail.com |
b527540b4aa6cb8e8a77b351f5afe45398bbeaaf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/401.py | f43ff76aa8ffa46c02d19bf2715b6dd5cb8be4a2 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
import sys
import re
def findmin(h, w, map, H, W):
while 1:
tmp = map[h][w]
north = 10000
west = 10000
east = 10000
south = 10000
if (h > 0):
north = map[h-1][w]
if (w > 0):
west = map[h][w-1]
if (w < W-1):
east = map[h][w+1]
if (h < H-1):
south ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ecdfb5869b7ce4eda595d7c50cf3370dd5b12124 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_optimists.py | 9e56a3c953749eef49ce1184edfe233a2e829f37 | [
"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 | 230 | py |
#calss header
class _OPTIMISTS():
def __init__(self,):
self.name = "OPTIMISTS"
self.definitions = optimist
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['optimist']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf3c2a1b252e863b381d0777b2510cb1e66c9fde | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /oxf7b7vroXvWBJ9Nq_7.py | 4a2506b2a7c4a1fbeae88772467e879982e5a268 | [] | 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 | 964 | py | """
We all love a little bargain.
Your function will get a price, and a load of discounts. Your job is to write
the function so that it calculates the **maximum possible** discount.
* The price is a Number.
* The load of discounts is a string like: `15%, 8, 50%`.
* So, percentages, with `%`, and amounts, wit... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
01311b1f44dc33d86ce8c2d58c191eb276f9cf42 | 817557cfa96a78417ff27e3b3e8f8142c2683cfb | /myapp/views.py | 877b13117a53218c70a84403560d25745cd18d0b | [] | no_license | iamsureshtumu/forms-updated-p7-updated | 530c12a14bc33403ada9aef84c511d3a9836bb2f | 7ffb93067ff27339acce165f04958839dcc2f462 | refs/heads/master | 2020-08-19T17:52:39.013156 | 2019-10-18T03:59:54 | 2019-10-18T03:59:54 | 215,939,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from django.shortcuts import render
from django.http import HttpResponse
from myapp.models import *
# Create your views here.
def page1(request):
return HttpResponse("<h1>welcome to page 1</h1>")
def page2(request):
return render(request,'page2.html',context={'data':"data is passed"})
def topic(request):
... | [
"akshayvk64@gmail.com"
] | akshayvk64@gmail.com |
2570ed0868aa95d55c5fa8d6bcf0679ba0ee7f8f | 492f793d9933aa5764519f6637da840aea0fbdab | /apps/srtp/migrations/0007_auto_20180615_1021.py | 8952c5327f5db4ee1fddaf0301360f7b75f102e1 | [] | no_license | gradenova/d | ca2c8489cea5acc41857fa62112c13fec8451b68 | bb52400b5869e5ae74ea292f96e57f9ede507976 | refs/heads/master | 2021-06-21T15:16:17.512718 | 2019-09-29T08:51:40 | 2019-09-29T08:51:40 | 222,163,595 | 0 | 0 | null | 2021-06-10T22:16:40 | 2019-11-16T21:49:37 | HTML | UTF-8 | Python | false | false | 383 | py | # Generated by Django 2.0.5 on 2018-06-15 10:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('srtp', '0006_projectmanageissue_attribute'),
]
operations = [
migrations.RenameField(
model_name='projectmanageissue',
old_n... | [
"956378834@qq.com"
] | 956378834@qq.com |
baeae7237f4f25aba2d5cf427a86f5a04805419e | 8b783c4891ff9dbe4bb2dacc2146f2d251dd0df6 | /learning_log/settings.py | d90c5b055ae7ecb9a7727e37feb9564f5065cd7a | [] | no_license | tngo0508/learning-log | a6e1e0b9dd2b588c84887f9d7874beac9d792ab8 | 65d8673c5fdc995fd4810f7a7fca00995af2650b | refs/heads/master | 2020-03-26T19:30:23.037554 | 2018-08-21T07:36:16 | 2018-08-21T07:36:16 | 145,268,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | """
Django settings for learning_log project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
imp... | [
"tngo0508@gmail.com"
] | tngo0508@gmail.com |
705c48aa811a245897eebdf59df9c12004dbad27 | a06586c101a31bf6c9a7dc307cf664120ac092fd | /Trakttv.bundle/Contents/Code/data/__init__.py | 9940c7583ef194cd704315f79f3a5ddc792b31f1 | [] | no_license | HaKDMoDz/Plex-Trakt-Scrobbler | 22dd1d8275698761cb20a402bce4c5bef6e364f9 | 6d46cdd1bbb99a243b8628d6c3996d66bb427823 | refs/heads/master | 2021-01-22T00:10:18.699894 | 2015-05-25T23:52:45 | 2015-05-25T23:52:45 | 37,312,507 | 2 | 0 | null | 2015-06-12T09:00:54 | 2015-06-12T09:00:53 | null | UTF-8 | Python | false | false | 186 | py | import sys
# submodules for Plex plugins "hack"
import sync_status
sys.modules['data.sync_status'] = sync_status
import watch_session
sys.modules['data.watch_session'] = watch_session
| [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
b58cd6ea023d6b4d2903dc86bb9c6749a5704330 | 49744c351947b5c328ea481b2f5d2297e2531388 | /tests/test_config_dict.py | 34e9c3761acb45d022ac8f5bd9548a741fc599d2 | [
"MIT"
] | permissive | kudkudak/sacred | 8c87ac58d697563515336e332fd58fcbf19b3bbd | 6d6d15bdb14906021e66da2df0dc84c2503df763 | refs/heads/master | 2021-01-18T07:59:53.865537 | 2015-06-09T18:05:54 | 2015-06-09T18:05:54 | 32,754,410 | 0 | 0 | null | 2015-03-23T19:36:17 | 2015-03-23T19:36:16 | null | UTF-8 | Python | false | false | 3,496 | py | #!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
import pytest
import sacred.optional as opt
from sacred.config import ConfigDict
from sacred.config.custom_containers import DogmaticDict, DogmaticList
@pytest.fixture
def conf_dict():
cfg = ConfigDict({
... | [
"qwlouse@gmail.com"
] | qwlouse@gmail.com |
dab459975f0fc7f1d4a32d64a3e7fb8f0943f471 | 3a7d20020cac861524f12e138050e8030fe33e16 | /Stats/RapportsUsers/Paliers.py | 1ac606469bb29fb56014e61b6a13914d86aed402 | [] | no_license | OlborZ2/OlborTrack-Bot | 8f4a256bd14971a0b55f408fc8af5c1d48d8fb41 | 4b312d802176d56022509f9e8ca5603d8ff60941 | refs/heads/main | 2023-07-19T02:47:26.683781 | 2021-08-19T09:46:00 | 2021-08-19T09:46:00 | 383,921,269 | 0 | 0 | null | 2021-07-07T20:48:45 | 2021-07-07T20:48:45 | null | UTF-8 | Python | false | false | 2,655 | py | from Core.Fonctions.TempsVoice import tempsVoice
tableauMois={"01":"janvier","02":"février","03":"mars","04":"avril","05":"mai","06":"juin","07":"juillet","08":"aout","09":"septembre","10":"octobre","11":"novembre","12":"décembre","TO":"TOTAL","1":"janvier","2":"février","3":"mars","4":"avril","5":"mai","6":"juin","7"... | [
"lucas.triozon@orange.fr"
] | lucas.triozon@orange.fr |
3db5f46667774f1b6908b9ec61c225f6ec6f92ff | aacf039e6575b567f4d4433f2d5b0778da673e11 | /knowledge/models.py | a56529e1b2cb07219d536c59b08c072ebf4606c9 | [] | no_license | bluedazzle/RapoSite | 634137ca43d3f80c55ffc0d8b20f406dc3d67a25 | c1c9894a9efc16d7957826c6142d9426db8203da | refs/heads/master | 2016-09-10T10:44:48.255104 | 2014-11-17T14:25:59 | 2014-11-17T14:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from django.db import models
from rpsblog.models import *
# Create your models here.
class Requires(models.Model):
title = models.CharField(max_length=20)
content = models.CharField(max_length=20)
def __str__(self):
return self.title
class KnowLib(models.Model):
question = models.CharField(max_length=20)
subc... | [
"rapospectre@0163.com"
] | rapospectre@0163.com |
e45442dfe4d3b6c499bd12aa1074dc4810df494e | a15b462a00abc7b551ad52318db15df8ae83827e | /Maracutaia/env/Scripts/django-admin.py | 43e4ba5ddfa43f7dad749c380d37d5b4fd10680e | [] | no_license | redcliver/Maracutaia | 3a75b58d9ec0abc9cdc3cf39151239c81b1bc07f | 02190cfa48b44835f922cc2e18e64f54c3e01ad2 | refs/heads/master | 2023-01-12T01:54:27.452650 | 2017-09-28T19:08:47 | 2017-09-28T19:08:47 | 96,473,386 | 0 | 1 | null | 2022-12-21T01:38:14 | 2017-07-06T21:26:55 | Python | UTF-8 | Python | false | false | 191 | py | #!C:\Users\IGOR\Source\Repos\Maracutaia\Maracutaia\Maracutaia\env\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
3b21d21d1c35cfbfd1cabc05c8de3f9125688a56 | 7fae23d734356d2016f13f231673ee9ea1b6efd5 | /catkin_ws/src/pkg_t2_examles/scripts/node_eg4_go_to_pose.py | cd24fb3cbc8678f330f507c796cb09588269ca8c | [] | no_license | Tidu09/Eyantra | 57c4fd01a39305ff01758ed021643d894e61e60f | 2bca1cdce1742e79f1550b832cda086dc22e946f | refs/heads/main | 2023-01-12T07:57:54.356909 | 2020-11-22T05:41:40 | 2020-11-22T05:41:40 | 306,226,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,228 | py | #! /usr/bin/env python
import rospy
import sys
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
import math
class Ur5Moveit:
# Constructor
def __init__(self):
rospy.init_node('node_eg3_set_joint_angles', anonymous=True)
self._planning_gro... | [
"uditsharma.2000@gmail.com"
] | uditsharma.2000@gmail.com |
dad41412b9fdd5cccda9e2fb93dc27f15733a097 | 505dc9404c89e56aea70f2db9fc1b3fb311fc5d9 | /usr/lib/enigma2/python/Components/Renderer/speedypure2flipclock_metall.py | 972c77ada41606b83101a167823e44bd40d5c6b7 | [] | no_license | e2plugins/4ATV_speedy_blue | ae8181ed4017beb4b48e58fe7cbbcbe2a1696057 | c84da50a0d872a2e74812214eed5532ed0893534 | refs/heads/master | 2022-11-14T17:09:41.134795 | 2020-07-12T06:24:24 | 2020-07-12T06:24:24 | 277,350,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | # FlipClock
# Copyright (c) .:TBX:. 2016
# Mod by Maggy
# Th4ATV_speedy_black program 4ATV_speedy_black free software: you can red4ATV_speedy_blacktribute it and/or modify
# it under the terms of the GNU General Public License as publ4ATV_speedy_blackhed by
# the Free Software Foundation, either version 3 of the Licens... | [
"captain.onboard@web.de"
] | captain.onboard@web.de |
cc8176cf736bc535d1cca489e06f66215aa3dff9 | 68f167d02467a4a20fbd7586a6fa32aca56e0714 | /calc_5_class_单向链表.py | 39c937e93959c923526832209a9c33cf04bc82a7 | [
"MIT"
] | permissive | qq453388937/calc_mmd | 8a8630dbc9010dfafe164c05d2ca7a69e2c4f3af | 3c61dccbcabe2aafbf46c35fdd19fd8e6d717221 | refs/heads/master | 2020-03-28T13:53:28.798742 | 2018-11-09T09:18:54 | 2018-11-09T09:18:54 | 148,439,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,662 | py | # -*- coding:utf-8 -*-
class BaseNode(object):
# 结点基本属性
def __init__(self, item):
self.item = item # 存放数据元素
self.next = None # 下一个结点地址(结点对象)
class SingleLinkList(object):
""" 单向链表 """
# 链表基本属性,自动当前链表获取头结点信息
def __init__(self, node=None):
""" 链表头结点__haed可能为空 """
... | [
"453388937@qq.com"
] | 453388937@qq.com |
2abfe84e50f51313e9342daec8d775d7c9df00d4 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/Basic_Class/문제풀이코드/08_DFS&BFS/타겟넘버_wooseong.py | fb181fdecbe9e0b5014c46087357d500438cd1ba | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,075 | py | # 스택 풀이 - dfs인가?
def solution(numbers, target):
# 수식을 시작하기 위한 초깃값 0
# G에는 numbers에서 하나 씩 빼서 만든 중간 수식들의 결괏값
G = [0]
# numbers에서 하나 씩 빼서
for n in numbers:
# 걔를 G의 모든 숫자와 더하거나 빼서 수식을 늘려감
G = [g + n for g in G] + [g - n for g in G]
# 그 중 target을 셈
answer = G.count(targe... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
9ad8731a78b6a5ca906d1fb8216910fccf184ef5 | 281a8f6446f57b90441b62f101f5a34cd33ff256 | /funNLearn/src/main/java/leetcode/algorithms/P001_P100/P010_RegularExpressionMatching.py | fd307c385337d84b85fb51cf34ce52c853659254 | [] | no_license | poorvavm/practice-fun | df55e662735dba43f9cc2be408898f38d616c33c | beba0f3766307b458f177fa7de63a61a25f2e611 | refs/heads/master | 2020-05-04T13:31:30.571191 | 2019-04-01T22:13:18 | 2019-04-01T22:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | """
Tag: string, regex, recursive
Given an input string (s) and a pattern (p), implement regular expression matching
with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not parti... | [
"vishalm@vmware.com"
] | vishalm@vmware.com |
71b8f4c91a91fb769b630f194047d08dc46b148f | dd6e870a400353c123529999555517c84c864474 | /migrations/versions/1135a454bb84_.py | d0770c4f4c4cf961f89c85406bc835d0c694b275 | [] | no_license | fenriz07/flask-hippooks | 7bfea8e397603d74426725c31cf135758cc5e0d2 | a7e88fce2d588bca49d63a9800c8344f117a4469 | refs/heads/master | 2020-04-30T20:09:08.550402 | 2019-03-22T03:02:30 | 2019-03-22T03:02:30 | 177,058,010 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | """empty message
Revision ID: 1135a454bb84
Revises: 234b2409a954
Create Date: 2016-06-28 14:40:39.378056
"""
# revision identifiers, used by Alembic.
revision = '1135a454bb84'
down_revision = '234b2409a954'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
### ... | [
"servio.za@gmail.com"
] | servio.za@gmail.com |
66ba3785ae8958a2c91a9832d2045a7ecc0df0d8 | 7f49743af148b0e27ced3db17ee0d0127864bc6a | /app/mail/migrations/0002_auto_20180709_1221.py | 414aec0d1c2dbce7b34de8cb96ca57c125214226 | [] | no_license | seokjaehong/ticket | b08bd05e9f0459db7ce08bcf8f8feebd868f6a93 | f27437c83ca98b990dfbc4aa28ead85dae8f5425 | refs/heads/master | 2021-04-15T05:14:12.772829 | 2018-07-21T02:26:36 | 2018-07-21T02:26:36 | 126,504,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # Generated by Django 2.0.3 on 2018-07-09 03:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mail', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='receiver',
old_name='ticket',
new_n... | [
"hsj2334@gmail.com"
] | hsj2334@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.