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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b4e33e92c9ae5c3d39692435a98f799ea4c7cd9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03733/s769945008.py | 6b0d84553580197dcec9f0813ba6500ba2eaf682 | [] | 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 | 310 | py | import sys
input = sys.stdin.readline
def main():
N, T = map(int, input().split())
t = list(map(int, input().split()))
ans = T * N
for i in range(N - 1):
diff = t[i + 1] - t[i]
if diff < T:
ans -= T - diff
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
107bfdfe9d53d39bb9018b86c818d6f9d0cfe11d | 325ad4c64a3353a41e505737430ba9e9c1005014 | /src/fava/core/accounts.py | 44d32ac792f97022409bef80f9c72e70b5bba94d | [
"MIT"
] | permissive | Linusp/fava | 8a83e8cf57c948a2b324e3d08d7d62f0566d4cdd | 790ff2fc7d46470ed9a3b9c7ab5e3a7b7d960459 | refs/heads/main | 2023-04-15T19:06:59.472054 | 2023-04-01T15:40:48 | 2023-04-01T15:40:48 | 345,133,428 | 0 | 0 | MIT | 2021-03-06T15:57:21 | 2021-03-06T15:57:20 | null | UTF-8 | Python | false | false | 5,440 | py | """Account close date and metadata."""
from __future__ import annotations
import datetime
from dataclasses import dataclass
from dataclasses import field
from typing import Dict
from beancount.core.account import TYPE as ACCOUNT_TYPE
from beancount.core.compare import hash_entry
from beancount.core.data import Balanc... | [
"mail@jakobschnitzer.de"
] | mail@jakobschnitzer.de |
bd8049a039c6d0f7f361f1e87b327a78b2d933fb | b75ee1f07fcc50142da444e8ae9ba195bf49977a | /codeowl/search.py | 4c7342035518afb07f0f7ebac759a97fa4dda76d | [
"Apache-2.0"
] | permissive | FlorianLudwig/code-owl | 369bdb57a66c0f06e07853326be685c177e2802a | be6518c89fb49ae600ee004504f9485f328e1090 | refs/heads/master | 2016-08-04T02:26:07.445016 | 2014-05-25T19:19:13 | 2014-05-25T19:19:13 | 18,918,361 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | import copy
import os
from . import score
import codeowl.code
class Query(list):
pass
def generate_query(query_string):
tokens = codeowl.code.parse(query_string)
tokens = [token for token in tokens if not token.search_skip]
query = Query(tokens)
query.score_mali = 0
return query
def token... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
549f02a158c8f7f7858e7fadd36dfcacf8f1720b | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L82/82-84_wat_20Abox/set_5.py | 17482864673ac951fe758c08361e8784d91cc23b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L82/wat_20Abox/ti_one-step/82_84/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lamb... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
8a94851769591e4b462979b564713dc3327dff77 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/services/carrier_constant_service/transports/grpc.py | ef90f6ac67c460a0b02af118db64fa353f3aa2a4 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,172 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
f5fc908d60c5cfd9ea98ea4726b37602246748cf | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170814160712.py | 759f124fce3780db18685ef29e69626cc825a1c3 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,587 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
b5934bff52e8e675da73cd63df43d53cef9805f2 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/fitzgibbon.py | 9fe142f2ba605af28cd63c91dc1cb413e12749a2 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 44 | py | ii = [('ClarGE2.py', 12), ('DaltJMA.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
7f26da3a20c57f0e790d52199a3408bf6015437b | 4c1fea9e0f359b6c5ad33db64c6118f949ec254e | /pyroomacoustics/parameters.py | 27eae9dd2486de904c51044170425f605140ddc1 | [
"MIT"
] | permissive | vipchengrui/pyroomacoustics | 59bf42649787a1e2acb187050d524141af34b27c | 45b45febdf93340a55a719942f2daa9efbef9960 | refs/heads/master | 2020-12-01T08:48:03.395356 | 2019-12-10T08:58:18 | 2019-12-10T08:58:18 | 230,594,995 | 1 | 0 | MIT | 2019-12-28T10:31:56 | 2019-12-28T10:31:55 | null | UTF-8 | Python | false | false | 1,901 | py | # @version: 1.0 date: 09/07/2015 by Robin Scheibler
# @author: robin.scheibler@epfl.ch, ivan.dokmanic@epfl.ch, sidney.barthe@epfl.ch
# @copyright: EPFL-IC-LCAV 2015
'''
This file defines the main physical constants of the system
'''
# tolerance for computations
eps = 1e-10
# We implement the constants as a dictionn... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
d471b603fd6219e6ead621714e9324d5516486a3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/251/64527/submittedfiles/testes.py | 3feaf05985f19c0f1139cb33d4cea8996b379a3c | [] | 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 | 722 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def listaDigitos(n):
d=[]
while n>0:
m=n%10
d.append(m)
n=n//10
d.reverse()
return(d)
def somaQuadrados(d):
soma=0
for i in range(0,len(d),1):
soma=soma+(d[i]**2)
return(soma)
def feliz(n):
inicial=n
fe... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
12b7c8751ab24c72909bae8e49624df6b22e9c01 | 0fa03797c72ea761206a9b9cb92e1303d9d7e1b1 | /Lesson 1 - Essentials/Chap05 - operations/boolean-working.py | 2f1ddb8e35a684b300ddb9c140c0b11704e0a47d | [] | no_license | denemorhun/Python-Reference-Guide | c2de64949a6cb315318b7b541460c51379705680 | 450c25435169311f068d9457fbc2897661d1d129 | refs/heads/main | 2023-05-08T21:49:46.217280 | 2021-03-27T12:03:17 | 2021-03-27T12:03:17 | 319,233,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python3
# Copyright 2009-2017 BHG http://bw.org/
a = True
b = False
x = ( 'bear', 'bunny', 'tree', 'sky', 'rain' )
y = 'bear'
if a and b:
print('expression is true')
else:
print('expression is false')
print ("feed the bear" if b else "don't feed bear")
if 'whale' not in x:
print("There ar... | [
"denemorhun@gmail.com"
] | denemorhun@gmail.com |
6f45e400bb39f0d48206588e6ae5cba2eac6d878 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/etotheipi/c.py | d3d0b9335209254b7ceb8da367ac6c792805ab3b | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | import itertools
# precompute some primes
primes = [2, 3]
numPrime = 2
for n in xrange(5, 10 ** 6):
if n % 10000 == 0: print n
for i in xrange(numPrime):
if n % primes[i] == 0:
break
if n < primes[i] ** 2:
break
if n % primes[i] == 0:
continue
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
7d9901b72f9aa589600f47acedc063c0bf0e2841 | 21a1ee76bbcaccf2155885d9b183009f15665057 | /lib/exabgp/application/cli.py | d9ba33ae1efe52fafa6ce9815c67ddac297f8cb5 | [] | no_license | Akheon23/exabgp | ebaabde663e0c564b83dd2ea837312dae8234a1b | 82348efd7faccdd0db027df3f1f7574f09f329df | refs/heads/master | 2021-01-17T05:20:12.328012 | 2015-05-21T12:20:40 | 2015-05-21T12:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | #!/usr/bin/env python
# encoding: utf-8
"""
cli.py
Created by Thomas Mangin on 2014-12-22.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""
import sys
from exabgp.dep.cmd2 import cmd
from exabgp.version import version
class Completed (cmd.Cmd):
# use_rawinput = False
# prompt = ''
# doc_header = ... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
46488abc7063d86e4c425d68aba3da2da3a55acc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2572/60716/251969.py | 20cd79bb0e897d3938298518c16ef8e0f7e9dba4 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | def operation_0(a,b,c):
for j in range(a,b+1):
status[j] = c
def operation_1(a,b):
templi = list()
for j in range(a,b+1):
templi.append(status[j])
temp = set(templi)
return len(temp)
n,t,m = map(int,input().split())
status = list()
answer = list()
operations = list()
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
d0c12e440b78eab36880f04d252e9084ffb8139f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-2793.py | ab821f38fb237735ced37b67950a8b5e2304a49e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,147 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
65bf750c46c8e0bbe1e0f04adbbdd302e821d1a6 | 7979e41a7c963255fcbfbbfa43ca6d8ddfaa12f6 | /CMPS183/google-cloud-sdk/lib/surface/compute/instance_groups/managed/update_instances.py | ea6cb0675905d8559e77260201b104b44ede1b85 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | swchoi1994/UCSC | eed2238204f9a30b6366df4c110b4e291a629af1 | 7aec4d09a142e85d4bd9c1c6472a0e1334bd1479 | refs/heads/master | 2021-01-19T22:22:15.740455 | 2019-07-20T08:51:02 | 2019-07-20T08:51:02 | 88,804,038 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,136 | py | # Copyright 2016 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 ag... | [
"swchoi1994@SWCMBP.local"
] | swchoi1994@SWCMBP.local |
8b305145f1f8fac6152dfbcb76194780d4a2f4d4 | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs44/enroll/forms.py | 9723300889ca9bd1a908b5fbebafee0e4833352c | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.core import validators
from django import forms
class StudentRegistration(forms.Form):
name = forms.CharField()
email = forms.EmailField()
password = forms.CharField(widget=forms.PasswordInput)
rpassword = forms.CharField(label='Password(again)', widget=forms.PasswordInput)
def clean(self):
... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
b333ae9330a3f75aac01dbd5d090d9df9f977761 | 41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75 | /reglog/migrations/0013_auto_20201228_1133.py | 54c21dd73e77c2641e8e37b4021bcbb5fdcc2cdb | [] | no_license | joypaulgmail/Dookan | 4df83f37b7bcaff9052d5a09854d0bb344b9f05a | 7febf471dd71cc6ce7ffabce134e1e37a11309f7 | refs/heads/main | 2023-03-02T04:10:19.611371 | 2021-02-09T11:45:32 | 2021-02-09T11:45:32 | 336,476,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Generated by Django 3.1 on 2020-12-28 06:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reglog', '0012_product_book'),
]
operations = [
migrations.RenameField(
model_name='product',
old_name='book',
new... | [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
29d744e1a5e2cdd0bec25f5aec42161b5545172f | 886e43d26c08a9eb837f58d1ba1e9185815eced0 | /demos/setup_test.py | 2eb3380d094d17baebf9bc4e16c34f83eefe1b84 | [] | no_license | amaork/PyAppFramework | ca48c08d1d72430538a9b497e0641e7077a7c560 | c75ef175cb7f2a3fc6a3b7709ea07f86c5a7ba1e | refs/heads/master | 2023-09-01T13:39:38.667126 | 2023-08-30T09:49:47 | 2023-08-30T09:49:47 | 46,108,011 | 14 | 2 | null | 2018-06-11T07:21:34 | 2015-11-13T07:55:20 | Python | UTF-8 | Python | false | false | 332 | py | # -*- coding: utf-8 -*-
from ..misc.setup import get_git_commit_count, get_git_release_hash, get_git_release_date
if __name__ == "__main__":
print("Commit count:{0:d}".format(get_git_commit_count()))
print("Release hash:{0:s}".format(get_git_release_hash()))
print("Release data:{0:s}".format(get_git_relea... | [
"amaork@gmail.com"
] | amaork@gmail.com |
c16ad00c9701e0cd53eee99c2d7c654023106bb1 | 85973bb901b69bf6fba310d18602bfb86d654b20 | /zjh/gen_hotpatch_zjh.py | ac9e7a644a2cd9b53aafc7b04a2b4edd4124d42a | [] | no_license | nneesshh/minguo-client | 35d1bb530f2099e4674919dc47a1c47c28f861d3 | d9e79b22388b98834c45a8a856a3d5ea85dd6ece | refs/heads/master | 2021-06-30T15:36:44.432882 | 2021-02-01T08:48:04 | 2021-02-01T08:48:04 | 184,216,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | #!/usr/bin/env python
#coding:utf-8
import os
import json
import hashlib
import subprocess
assetsDir = {
"searchDir" : ["src/app/game/zjh", "res/game/public", "res/game/zjh"],
"ignoreDir" : ["cocos", "obj", "patch"]
}
versionConfigFile = "res/patch/zjh_version_info.json" #版本信息的配置文件路径
versionManifestPath =... | [
"unknown@example.com"
] | unknown@example.com |
132839649d135d71d0e909462cf9fb4be6bd112b | e09c01a6eb6fb87d1398f7c8502ecbfa19f28850 | /docker/xpanse-ml-ev2/verify.py | fc9700b3bf0f09a7637fa93d7c54d103fe798d87 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"JSON",
"BSD-3-Clause",
"Artistic-2.0",
"LicenseRef-scancode-secret-labs-2011",
"LGPL-2.0-or-later",
"ISC",
"Artistic-1.0-Perl",
"Apache-2.0",
"Python-2.0",
"Unlicense"
] | permissive | demisto/dockerfiles | a8f4bb2c291d694a1ea9bf73800a7cb05508f0ff | 6fb9b8cd786985fa7504f7e44575b7b573dd963f | refs/heads/master | 2023-08-22T07:57:50.346861 | 2023-08-20T12:48:10 | 2023-08-20T12:48:10 | 161,347,705 | 57 | 141 | MIT | 2023-09-14T15:03:44 | 2018-12-11T14:39:27 | Brainfuck | UTF-8 | Python | false | false | 82 | py | import numpy
import pandas
import sklearn
import google.cloud.storage
import dill
| [
"noreply@github.com"
] | demisto.noreply@github.com |
8dd5d8f19fa5072e9120188d4f166ce23711b167 | 1f1ba16082e752c55271d4eac7a4b574ecacb94b | /rule-lists-python-package/rulelist/rulelistmodel/gaussianmodel/mdl_gaussian.py | 00417a145285071c215ba60df5d2ccfe60eb4aca | [
"MIT"
] | permissive | HMProenca/robust-rules-for-prediction-and-description | 2a7bab373d16f028709ce8deea4ebc6838b838ff | 236086566f853050a909fb4995c97909174cf074 | refs/heads/main | 2023-04-10T10:19:10.408602 | 2021-08-30T15:25:43 | 2021-08-30T15:25:43 | 401,391,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 15 18:09:04 2020
@author: gathu
"""
import math
from math import pi, log2
from numpy import inf
from rulelist.mdl.mdl_base_codes import log2_gamma_half
from rulelist.rulelistmodel.gaussianmodel.gaussianstatistic import GaussianFixedStatistic
def gaussian_bayesian_enco... | [
"hugo.manuel.proenca@gmail.com"
] | hugo.manuel.proenca@gmail.com |
9522fa97499190ed7a1c7d7eac77f38c11cdf9ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02842/s106976287.py | f68eb41598fe68ec1ba6284e9c8a78c45cc4ca09 | [] | 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 | 503 | py | import sys
from collections import deque
import numpy as np
import math
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().spl... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bd0ac028550beb26277b0cc228dd206b1c7df296 | 3dfb2112a06f0acdb360c2764ef4c9d51d95fdfe | /a.py | 12fb237df0b322a5aae646d0c1a3dcb41fa6d973 | [] | no_license | sambapython/batch62 | 809f6497295b5cae284d0080dc5f7636b96ea0b0 | f2f57b99e68287875448f5988280c89813b5a128 | refs/heads/master | 2020-05-30T11:25:10.953430 | 2019-07-31T03:30:00 | 2019-07-31T03:30:00 | 189,700,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import pdb;pdb.set_trace()
x=1000
def fun1():
print(x)
x=2000
print(x)
fun1() | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
cfcd23b00235f894bb4ae4381726a46b24aaeefc | a70c29d384933040d318a1baf952965621b68490 | /serving/flask/tf/tf_request.py | 474ed0d17f0bcd56f2b284a0670d3904895d2493 | [
"MIT"
] | permissive | romadm/LibRecommender | f4980dcd117997284f96f7b042cf3fbbc8c0f99e | 46bb892453e88d8411e671bd72e7a8c6e8ef1575 | refs/heads/master | 2023-08-27T11:51:21.842980 | 2021-11-07T01:42:35 | 2021-11-07T01:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | import argparse
import json
import requests
from serving.flask import colorize
def str2bool(v):
if isinstance(v, bool):
return v
elif v.lower() in ("yes", "true", "y", "1"):
return True
elif v.lower() in ("no", "false", "n", "0"):
return False
else:
raise argparse.Argum... | [
"wdmjjxg@163.com"
] | wdmjjxg@163.com |
bc19d8a3891a523ef3bdb6d9b253b313aedfeebb | a543a24f1b5aebf500c2200cd1d139435948500d | /Book/Ant/1-1/main.py | d7a1e9bc8e75faad0420ddae20bcf50962166c7a | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n = int(input())
m = int(input())
k = list(map(int, input().split()))
answer = 'No'
for i1 in range(n):
for i2 in range(n):
for i3 in range(n):
for i4 in range(n):
if k[i1] + k[i2] + k[i3] + k[i4] == m:
answer = 'Yes'
print(answer) | [
"satory074@gmail.com"
] | satory074@gmail.com |
7a47391ef75e0091b09a665cea3a1fa44799edd1 | 435a7f571e6379e79010a7bbe2f9680a30b43ed8 | /src/blog/urls.py | aab2dc457187be27ddc92670e6b4200c5b054c62 | [] | no_license | Thuglifescientist2018/eastline_django2020 | 3b1c4bc6800fbdd9206dbdd076e1daf6d4228315 | e61882d91189ca8e0bfea42a715eeb2e87253dd2 | refs/heads/master | 2021-10-12T06:31:35.891679 | 2020-03-20T07:45:15 | 2020-03-20T07:45:15 | 248,694,105 | 0 | 0 | null | 2021-09-22T18:51:40 | 2020-03-20T07:31:34 | Python | UTF-8 | Python | false | false | 355 | py | from django.urls import path
from .views import blog_home, blog_list, blog_create, blog_render, blog_update, blog_delete
urlpatterns = [
path("", blog_home),
path("list", blog_list),
path("create", blog_create),
path("<str:slug>", blog_render),
path("<str:slug>/update", blog_update),
path("<str... | [
"="
] | = |
8f21050531f4ad8e6d54d613afbbd6bf2eb37d5a | 0a14b78c83ca1d9f7465aed9b978101710750e4f | /task-urgency/sum-delta-task-urgency.py | f850e9fb1f72409a5a3a9b2cd73effe88d90bb92 | [] | no_license | writefaruq/EpuckExptAnalysisScripts | 8cdd5b8d8c584ed6265b792b81f490af27a69f14 | f6e45b4f181dfca629598a17decb94595877a577 | refs/heads/master | 2020-05-31T17:17:15.872463 | 2010-05-18T17:23:11 | 2010-05-18T17:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | #!/usr/bin/env python
import time
import sys
import os
import fnmatch
import fileinput
#INTERVAL = 50
HEADER_LINE = 2
STEP_TIME = 5
def sum_urgency(infile, outfile):
time_start = 0
time_end = 0
cum_urgency = 0
iter = 1
f = open(outfile, 'w')
try:
for line in fileinput.input(infile... | [
"Mdomarfaruque.Sarker@newport.ac.uk"
] | Mdomarfaruque.Sarker@newport.ac.uk |
98380d3a6d4939e4903d24f4fc870f580c7dfe0f | 73c45163acf0b50f0a59cee471a36ff9576afee2 | /venv/Scripts/easy_install-script.py | 59c7ed1c25b7ecc8582f7d6e8d6320976eb702cb | [] | no_license | erfaenda/FlaskP | 7b8ec1413daba5a8f1c38eff2aec1767a6214365 | d56a47861a9e4b78d3af4ec58055eaddc046dcd1 | refs/heads/master | 2020-07-08T04:22:51.671076 | 2019-08-23T08:00:36 | 2019-08-23T08:00:36 | 203,563,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!C:\Users\a.silantev\PycharmProjects\FlaskP\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"regalko7@gmail.com"
] | regalko7@gmail.com |
897053339598d7c7ac10cf386fc1e4bd52a9034e | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4052/884004052.py | 98b4f26cc0fbf94d2be466c0ceaf4eca65740322 | [] | 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 | 620 | py | from bots.botsconfig import *
from records004052 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MF',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BMP', MIN: 1, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 5},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
cf7190285977a6d072f2878e18cecc2e23781a05 | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/1551py/a.py | 4b2f1e5ea15cf88fcabae6827199ab542dd4806e | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | n, k = map(int, input().split())
a = [list(map(int, input().split(','))),[]]
for i in range(k):
a[(i+1)%2].clear()
for j in range(n-i-1): a[(i+1)%2].append(a[i%2][j+1]-a[i%2][j])
print(*a[k%2], sep=',')
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
d29b7c4af830c3ce4cb21e03942d300b879e409b | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /seventh_module/爬虫/5.scrapy/project_09_redisPro/project_09_redisPro/settings.py | 8c62d6c1d7ab98319ede7d009306beeb0efb76dc | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 3,680 | py | # -*- coding: utf-8 -*-
# Scrapy settings for project_09_redisPro project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/... | [
"11066986@qq.com"
] | 11066986@qq.com |
a562123f6939c3763fb4d84f3946b4f8aeda00f0 | d84876ff3d2a61cb28eff13b1af173a091aff917 | /stock_prediction.py | c65790b23d6c0966f517bdabeaf14767239de1c7 | [] | no_license | webclinic017/Stock-Prediction-with-Regression-Models-In-Python | d5f64e066edbe987d775017680d2bcdecea52722 | 61be482ffa36869f43588cb2f7c005914dedda76 | refs/heads/master | 2022-02-18T19:05:57.839353 | 2019-09-07T15:50:29 | 2019-09-07T15:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,444 | py | # -*- coding: utf-8 -*-
"""Stock Prediction.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1n27WLQOmxqT8_Wyd3Nm1xONyeaCTxo6w
##Importing Libraries
"""
# Commented out IPython magic to ensure Python compatibility.
import numpy as np
import panda... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
b13966f310e0c8104c5131929d3d6b912977503f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1638.py | 32faf53928bb6afe2590a89bf55f06931f8625b1 | [] | 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 | 3,349 | py | # -*- coding: utf-8 -*-
"""
Solves the 'Cookie Clicker Alpha' Problem Google Code Jam Qualifications 2014
https://code.google.com/codejam/contest/2974486/dashboard#s=p1
Created on Fri Apr 12 1:58:51 2014
@author: Luca
"""
import numpy as np
import sys
def get_childern(node,C,F,X):
if (node(1)+C)>X... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a238b652ff6bdc3c552b4f99c87bc8bddb5b42a7 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /1423/1423.maximum-points-you-can-obtain-from-cards.785265974.Accepted.leetcode.python3.py | 18ad403e19400e3a95826bb18aff46c4284a3bdc | [] | 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 | 419 | py | class Solution(object):
def maxScore(self, cardPoints, k):
left = 0
right = len(cardPoints) - k
ksum = sum(cardPoints[len(cardPoints) - k:])
result = max(float('-inf'), ksum)
while right < len(cardPoints):
ksum = ksum - cardPoints[right] + cardPoints[left]
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
423f8464015490054986bbe3c694ad19db6cca2c | a63b49c45f09e0b0abd20ed6ca81b8e30e17f755 | /a2c_ppo_acktr/storage.py | 147fc1989991982ce00a21c1d57b4fdfaacb63cd | [] | no_license | xxchenxx/MixtureOptimizer | d08b2395208e3efec2dbe730b4f194d509aea106 | 1c6f8d0848aeb71d49ea129001f3f170612cd4cf | refs/heads/master | 2022-12-04T05:24:01.974432 | 2020-08-22T15:40:34 | 2020-08-22T15:40:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,569 | py | import torch
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
from pdb import set_trace as bp
def _flatten_helper(T, N, _tensor):
return _tensor.view(T * N, *_tensor.size()[2:])
class RolloutStorage(object):
def __init__(self, num_steps, obs_shape, action_shape=1, hidden_size=1, num_re... | [
"hfercxx@hotmail.com"
] | hfercxx@hotmail.com |
f974791af539b1ba0f63ab6f9457a2bafd3f0b78 | 58509347cca790fce26884f027425170c5891a17 | /bin/train_convert.py | c972a100902ea60af68848b0c99c8381455c69c5 | [] | no_license | Hiroshiba/signico_real_to_anime | e22d07ca6531b75b3987ecc309e02bcd405f6f61 | 0a68b132fc77e24539d7ddc65b3078fd0c7f3858 | refs/heads/master | 2021-01-19T23:25:37.149611 | 2018-03-21T17:24:32 | 2018-03-21T17:32:45 | 88,979,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | import argparse
import chainer
import glob
import os
import sys
ROOT_PATH = os.path.join(os.path.dirname(__file__), "..")
sys.path.append(ROOT_PATH)
from deep_image_converter.config import Config
from deep_image_converter import dataset
from deep_image_converter.loss import ConvertModelLossMaker, FacebookConvertModel... | [
"kazuyuki_hiroshiba@dwango.co.jp"
] | kazuyuki_hiroshiba@dwango.co.jp |
0c5a649f0b60d66c181ab5f9abc7269f1142b11b | e2c369fc706a6058fe0126e088e8cc4ce48d2654 | /src/song/migrations/0011_auto_20190417_2320.py | f7b5aa3bf527350e940aa8e1023e259037afbc15 | [] | no_license | kishanpython/SongHub | 9ea1381d4add0c8fa036710f79fd9964c991eba7 | f86997d2070533ff7649ce3df89eaed66cbda609 | refs/heads/master | 2020-07-14T18:04:25.036424 | 2019-08-30T13:11:35 | 2019-08-30T13:11:35 | 205,368,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.0 on 2019-04-17 23:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('song', '0010_song_file'),
]
operations = [
migrations.AlterField(
model_name='song',
name='file',
field=mo... | [
"kishanyadav3223@gmail.com"
] | kishanyadav3223@gmail.com |
f83235d5cdc9fd38002e926ce485385bb59a0828 | 073c929cab2d92e9859010be654eb1ba69b397b1 | /src/participants/migrations/0004_alter_participant_polls.py | 62b1dd8d33b7130bc663cc9a08e88ff7a171fdf3 | [] | no_license | iamgaddiel/voting_system | 6e5abe9b6d9da29abc6a94e12157cb308bf2b717 | b41ec2a98ed678bedd3b9bdd9d6c8a5c679fcabf | refs/heads/main | 2023-06-22T17:29:57.371562 | 2021-07-22T06:57:47 | 2021-07-22T06:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # Generated by Django 3.2.3 on 2021-05-31 04:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
('participants', '0003_participant_polls'),
]
operations = [
migrations.Al... | [
"gaddiel@localhost.localdomain"
] | gaddiel@localhost.localdomain |
3d5663348481fa5c81589dec72506479170bbcd6 | 155cbccc3ef3b8cba80629f2a26d7e76968a639c | /thelma/tools/libcreation/iso.py | a0f6b0645613c8417b0b32a11df2acb19cee32a7 | [
"MIT"
] | permissive | papagr/TheLMA | 1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78 | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | refs/heads/master | 2022-12-24T20:05:28.229303 | 2020-09-26T13:57:48 | 2020-09-26T13:57:48 | 279,159,864 | 1 | 0 | MIT | 2020-07-12T22:40:36 | 2020-07-12T22:40:35 | null | UTF-8 | Python | false | false | 19,016 | py | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
The classes in this module serve the creation of an ISO for a library creation
process.
:Note: The ISOs are already created externally, because they need a ... | [
"fogathmann@gmail.com"
] | fogathmann@gmail.com |
e8827406a39cd8d8060823f9cd8294afa08fa317 | e104d3b44decf46aeb624134f116bbd1dfa88b6a | /flaskEnv/bin/easy_install | 1e287e12ee54498c20b824933397c15d0b5ca20f | [] | no_license | februarypython/instructor_minh | 2ac3d4fb357bfc47fb25cd9289cca0b8c2007917 | 73fc6cac1d98add52f23cdfac1bf9baa39fa977d | refs/heads/master | 2021-05-02T07:32:12.774563 | 2018-03-02T03:02:52 | 2018-03-02T03:02:52 | 120,831,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/homefolder/Desktop/1februarypython/flaskEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nguyenhminhp@gmail.com"
] | nguyenhminhp@gmail.com | |
3e6076a9b6fe7e899b8fb311140de2d1133e6bed | 9079354291951a1782ec43efaead5876895eece8 | /legacy_scripts/setup.py | 66b535476ffc0715c1d1c734eccd7a5d32a16277 | [] | no_license | luungoc2005/nlp-test | c9a2e0174546221b0e6d2501d9c4dfeca5c6efd0 | ed43a4b1bbcd23c3fc39e92d790864c73a5999f3 | refs/heads/master | 2022-12-08T14:17:07.271865 | 2019-05-26T16:23:20 | 2019-05-26T16:23:20 | 125,201,975 | 0 | 0 | null | 2022-12-07T23:37:52 | 2018-03-14T11:24:54 | Jupyter Notebook | UTF-8 | Python | false | false | 355 | py | from distutils.core import setup
from Cython.Build import cythonize
# from distutils.extension import Extension
import numpy
setup(
name="Botbot-NLP",
ext_modules=cythonize([
# "common/_cutils/*.pyx",
"text_classification/fast_text/_cutils/*.pyx"
]
, include_path=[
nump... | [
"luungoc2005@gmail.com"
] | luungoc2005@gmail.com |
804c4b6e7cbf6961dbb3e5415cedb8a68caa6800 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_190/ch117_2020_03_31_05_22_20_071855.py | 23d4ed7a059bf6e7ba27702c678158f5b49358c9 | [] | 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 | 137 | py | import math
def snell_descartes(n1, n2, o1):
x=((math.sin(o1*(math,pi/180)))*n1)/n2
o2=math.sin(x*(math.pi/180))
return (o2) | [
"you@example.com"
] | you@example.com |
00829ea419f370c994ad692776728474d096aa13 | 3d6083f1821950afc06c432066dc763d3eb5db44 | /guide/basic/bert_embedder.py | 3465da95b238f7028c9271d0bc00953b1d1c82c5 | [] | no_license | flyfatty/self-allennlp | f4b3e3f3c36422c0950b0479a22546792c4852cb | 4741b2e47037dba1e20053f6877a7bbafedd8047 | refs/heads/master | 2023-08-24T03:10:13.994216 | 2021-10-04T08:13:07 | 2021-10-04T08:13:07 | 339,996,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,384 | py | # @Time : 2020/12/24 1:02
# @Author : LiuBin
# @File : bert_embedder.py
# @Description :
# @Software: PyCharm
import torch
from allennlp.data import Token, Vocabulary
from allennlp.data.fields import ListField, TextField
from allennlp.data.token_indexers import (
SingleIdTokenIndexer,
TokenCharactersIndexer,
... | [
"28278672@qq.com"
] | 28278672@qq.com |
248789733a3133a24466895b30e8c35a526f519c | 98dbb9cd9523809b4ee0e6b92334fa6a2a6af2a3 | /bingads/v13/bulk/entities/labels/__init__.py | 053dc1f5f1bb6077ac63645d3921adb4bad7e414 | [
"MIT"
] | permissive | BingAds/BingAds-Python-SDK | a2f9b0c099b574a4495d0052218f263af55cdb32 | 373a586402bf24af7137b7c49321dbc70c859fce | refs/heads/main | 2023-07-27T15:31:41.354708 | 2023-07-10T03:21:03 | 2023-07-10T03:21:03 | 31,927,550 | 105 | 182 | NOASSERTION | 2023-09-04T06:51:20 | 2015-03-09T23:09:01 | Python | UTF-8 | Python | false | false | 140 | py | __author__ = 'Bing Ads SDK Team'
__email__ = 'bing_ads_sdk@microsoft.com'
from .bulk_label import *
from .bulk_label_associations import *
| [
"qitia@microsoft.com"
] | qitia@microsoft.com |
c244275eaf4960476910ef1e16ce1ae889076b4a | 377fc6e13101a2a45826cd118110c790f396a805 | /abc024-b.py | 1a6b9cb638e6c8a270a7d98c1cb76f25a8b319d8 | [] | no_license | number09/atcoder | 4076e7223f424b9923754e73992d6442e0bb0de7 | f521ca1205b254d99744abaf6a7a5bfe69845fe0 | refs/heads/master | 2021-06-04T23:16:39.021645 | 2021-01-19T08:30:39 | 2021-01-19T08:30:39 | 132,128,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | n, t = map(int, input().split())
li_a = list()
for i in range(n):
li_a.append(int(input()))
last_open = (0, 0)
t_seconds = 0
for a in li_a:
if last_open[0] <= a <= last_open[1]:
t_seconds += a + t - last_open[1]
last_open = (last_open[0], t + a)
else:
t_seconds += t
last_o... | [
"cielo.abierto09@gmail.com"
] | cielo.abierto09@gmail.com |
c6ab140ab8f2cb9654ad0aaf732e6dacf963ac3b | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /odx_custom_support_ticket/model/ticket_category_path.py | 08a84d39d96b2b82526614eb7ffc12378baf3f80 | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from odoo import models, fields, api
class TicketCategoryPath(models.Model):
_name = 'ticket.category.path'
_rec_name = 'category_id'
category_id = fields.Many2one('website.support.ticket.categories', string="Category",required=1)
user_state_ids = fields.One2many('user.state','ticket_category_path_id... | [
"ash@odoxsofthub.com"
] | ash@odoxsofthub.com |
5143c0b105c551354de46512e908b7649fd053b1 | e926966c5aa8061dc4b4780b20817c6504dd488b | /telegram_bots/urls.py | 319cc375fcc2932ce965c6bd1a6cb8805aa94094 | [
"MIT"
] | permissive | vladimirmyshkovski/django-telegram-bots | da954c4b7754a368e14422153b4e67dd53bff8d1 | f58ee16d61cd1b14cdf5c39649f63a851c1419e4 | refs/heads/master | 2023-01-06T22:42:11.263909 | 2018-07-19T10:34:10 | 2018-07-19T10:34:10 | 126,815,491 | 0 | 1 | MIT | 2022-12-26T20:36:22 | 2018-03-26T10:58:51 | Python | UTF-8 | Python | false | false | 1,048 | py | from django.conf.urls import url
from . import views
app_name = 'telegram_bots'
urlpatterns = [
url(
regex=r'^$',
view=views.BotListView.as_view(),
name='telegram_bots_list',
),
url(
regex=r'^(?P<pk>\d+)/$',
view=views.BotDetailView.as_view(),
name='telegram_... | [
"narnikgamarnikus@gmail.com"
] | narnikgamarnikus@gmail.com |
6feeb0f707a3274b17b3649ae22036391ea865d2 | 3b98ee18977177e10b57e6162a03204e3774d3b8 | /Kirk_Byers_Nornir_Automation/env/bin/easy_install-3.8 | 63a27dd8af722fbcbb7465e62cfa5d8dca99603b | [] | no_license | mattmiller87/practice | 0a3d1cae1283abb683dfab0af86e6c569a6104e1 | 9655a8020038e0f6dfe8df842867debac0fcb1e3 | refs/heads/master | 2022-06-23T23:47:50.350379 | 2022-06-14T13:30:51 | 2022-06-14T13:38:56 | 51,970,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | 8 | #!/Users/matt.miller/Documents/git/practice/Kirk_Byers_Nornir_Automation/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mattmiller87@gmail.com"
] | mattmiller87@gmail.com |
bfbb23a786b14a777616004e0854edb298e9cb69 | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep260/rev01/t.py | 9d90dfa8c1cc3697f35e2f8011be9b7038e13761 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | import pytest
def test_pass():
assert 1 == 1
def test_failed():
assert 1 == 2
@pytest.fixture
def fixture():
assert False
def test_errored(fixture):
assert 1 == 1
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
c6db3d71ad904a4bddf6dd521ffae6b04bdd25a0 | 76de4fc4f00a04c8c9acc1e9e4a5fae12cf0c08a | /trunk/pyformex/__init__.py | 002e4e687bd184efd65023a3a3b764564156c3e2 | [] | no_license | BackupTheBerlios/pyformex-svn | ec2361b1b9967918be65e892217a691a6f8b145d | f5404809095711334bbb938d9d119a69ad8fc260 | refs/heads/master | 2020-12-24T13:20:47.422165 | 2011-11-15T11:52:23 | 2011-11-15T11:52:23 | 40,749,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,022 | py | # $Id$
##
## This file is part of pyFormex 0.8.5 Sun Nov 6 17:27:05 CET 2011
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: https://savannah.nongnu.org/projects/pyformex/
... | [
"bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35"
] | bverheg@8d6f1305-3bde-0310-9e88-884b4813ce35 |
1d4a64996631967cbfe32ff2234b6028d67116af | 3235cf9cbebcb6c12510b1ab5cbd6c1051ef6378 | /CnnModelTrainKaggleCatDog0614/CnnModelTrainKaggleCatDog_DateAugmentation_Pred.py | b150edd104d87d0ee33bb751c30b292b61db5d96 | [] | no_license | dorahero/pyAI | 8ba99fe2726264044e166562359868425d6e79ea | c185875ca19f0cca5ec0812eff373e25d0fbd0f1 | refs/heads/master | 2022-11-27T14:56:07.942104 | 2020-08-08T02:21:48 | 2020-08-08T02:21:48 | 285,956,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # --coding:utf-8--
from keras.preprocessing.image import ImageDataGenerator
from keras.preprocessing import image
from keras.models import load_model
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
train_dir = 'kagglecatdog/train'
test_dir = 'kagglecatdog/test'
validation_dir = 'kagglecatdog/... | [
"dorahero2727@gmail.com"
] | dorahero2727@gmail.com |
60700e344adae4ad57f3104b47a86131d1f88b54 | b50ff9063f2cb42c04990b782970debcfe9982b9 | /methods/db_operation.py | 014704c04aa4048ff045f1ae2327a1fe93960ca9 | [] | no_license | carrie0307/website | 95464931ade6a3b4ad51b48b2f0c306c8b7ed0b7 | f2ffd3e8ec1854bbb6d35ddbf9b6a1a8cc238ec8 | refs/heads/master | 2021-01-23T14:14:58.323470 | 2017-10-10T02:33:17 | 2017-10-10T02:33:17 | 102,679,929 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,914 | py | # coding=utf-8
from __future__ import division
from pymongo import *
import operator
import datetime
import time
import json
from bson import ObjectId
import pandas as pd
import numpy as np
from pandas import Series,DataFrame
from ip_netSector import ip_category
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
'... | [
"cst_study@163.com"
] | cst_study@163.com |
1cd7ea419f68dfffbd358789871d2d9fd90a5a26 | 8690ff3a6a1ca748aebb381bd50fdb317babbaf8 | /utils/ops.py | b5f81000648ecedae427cf12334d3a082dd1fddf | [] | no_license | thoppe/postern_perception | 8457bd1f89fb198191c4152d3354036ad4369d20 | b2b8dda375d1a0430c2cadcd5994e1fbd7a23676 | refs/heads/master | 2023-04-07T17:48:52.816426 | 2020-01-29T16:22:04 | 2020-01-29T16:22:04 | 216,728,164 | 0 | 0 | null | 2023-03-25T18:13:20 | 2019-10-22T05:12:42 | Python | UTF-8 | Python | false | false | 6,822 | py | # This script contains all neural network layers and functions that are used
# the project.
from __future__ import division
import tensorflow as tf
import numpy as np
weight_init = tf.contrib.layers.xavier_initializer()
def instance_norm(x, scope='instance_norm'):
""" Wrapper of instance normalization.
P... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
14beee1cd62cee9c3bcca0ff8f61070ca48fe92c | 2c38c2ea0328b75ba96a36346f71bd8ddeda3d35 | /qa/refund_moderated.py | 7da12b38452dec5e77e74dc0f3a6dc5678e95d7f | [
"MIT"
] | permissive | TheButterZone/openbazaar-go | c6b76e6b7d4cb608f09c6f4dd5d62b97d5b1758d | afa185e7a929eb4ee659c53859a73b1dd53b3ae0 | refs/heads/master | 2021-06-27T06:24:54.645852 | 2017-09-09T03:21:30 | 2017-09-09T03:21:30 | 102,985,074 | 1 | 1 | null | 2017-09-09T21:08:08 | 2017-09-09T21:08:08 | null | UTF-8 | Python | false | false | 9,977 | py | import requests
import json
import time
from collections import OrderedDict
from test_framework.test_framework import OpenBazaarTestFramework, TestFailure
class RefundModeratedTest(OpenBazaarTestFramework):
def __init__(self):
super().__init__()
self.num_nodes = 3
def run_test(self):
... | [
"chris@ob1.io"
] | chris@ob1.io |
405bb3a76056bb80e4f596598b54d0359b63747a | 88ea7bf2bbc8ffba551e881df553ae5ceac70dd6 | /deblock/codes/models/models_sub/SR_vmaf_model.py | 4973c423cb7381c7b17760b39c19de290d15a8d1 | [
"Apache-2.0"
] | permissive | zhouhuanxiang/repo-zhx | 2d1135bb2f925e051e1b0bcfc2ed53fb34ea51c5 | 76b577eea13130c60bf7bff8c486f51766128661 | refs/heads/main | 2023-06-10T02:56:17.978649 | 2021-06-29T02:35:57 | 2021-06-29T02:35:57 | 381,213,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,768 | py | import logging
from collections import OrderedDict
import os
import re
import torch
import torch.nn as nn
from torch.nn.parallel import DataParallel, DistributedDataParallel
import models.networks as networks
import models.lr_scheduler as lr_scheduler
from .base_model import BaseModel
from models.loss import Charbonni... | [
"zhouhx.cn@gmail.com"
] | zhouhx.cn@gmail.com |
e69edb98dd34169b7e5de559b90da43214d3dfd4 | 69f5b6defd7d2dc1664799bcaa5fad3fb1af4c7f | /script/2010_paper/prepare_data.py | c29e789e9a56f3fbc1dc50eb6eddb698ed957348 | [] | no_license | leelabcnbc/unsup-pytorch | c48ff0232b4baf5d50b406d696a4f460e8521b90 | 35e8aa2ef687c2b32a5838e57ea07babe0c1abbb | refs/heads/master | 2020-03-18T18:22:33.342249 | 2018-09-07T17:38:17 | 2018-09-07T17:38:17 | 135,088,622 | 2 | 0 | null | 2018-06-20T02:12:55 | 2018-05-27T23:22:57 | Python | UTF-8 | Python | false | false | 2,493 | py | """this file prepares the data for the 2010 NIPS paper
of conv PSD
Koray Kavukcuoglu, Pierre Sermanet, Y-Lan Boureau, Karol Gregor, Michaël Mathieu, Yann LeCun:
Learning Convolutional Feature Hierarchies for Visual Recognition. NIPS 2010: 1090-1098
I will prepare 1000000 25x25 patches, which should be sufficient.
"""... | [
"zym1010@gmail.com"
] | zym1010@gmail.com |
0e64bc4b8ddf9d83ec635386f2315eb33db3939d | 85c426913d63773c4802a4a3c354df909030654b | /python/PF/ABCBank_CreditCard_System_List/iCard/Read_Write_Reward_Scheme.py | d35d948984cc96537c38eeaaff32b5488d9658f5 | [] | no_license | SensehacK/playgrounds | 17bf2a3133db6c0cafe185c4cc2c7b59862980aa | 3decd550cdb6034db8b497051acaaec8221073aa | refs/heads/master | 2023-05-11T20:05:31.680168 | 2023-04-30T00:01:58 | 2023-04-30T00:01:58 | 159,632,542 | 1 | 0 | null | 2023-03-05T11:34:34 | 2018-11-29T08:27:53 | Python | UTF-8 | Python | false | false | 1,561 | py | import csv
'''This function fetches the details of all reward schemes from SchemeDetails CSV file
in 3 lists and returns them as tuple of lists.
Input: Path of CSV file.
Output: A tuple of lists i.e. card type list, min transaction amount list and associated reward points list.
'''
def get_rew... | [
"kautilyasave@gmail.com"
] | kautilyasave@gmail.com |
807997fdb4c00db45d521df97a537eeef8ba9932 | 246e9200a834261eebcf1aaa54da5080981a24ea | /hackerrank/algorithms/warmups/time-conversion.py | f99051f21c296ca29067abeae81b12d14b231abc | [] | no_license | kalsotra2001/practice | db435514b7b57ce549b96a8baf64fad8f579da18 | bbc8a458718ad875ce5b7caa0e56afe94ae6fa68 | refs/heads/master | 2021-12-15T20:48:21.186658 | 2017-09-07T23:01:56 | 2017-09-07T23:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | s = raw_input()
time = s[:-2]
if s[-2:] == "AM":
if s[:2] == "12":
time = "00" + time[2:]
else:
if s[:2] != "12":
time = str(int(time[:2]) + 12) + time[2:]
print time | [
"jacquelineluo95@gmail.com"
] | jacquelineluo95@gmail.com |
fb23db33b5e66fcfe17c61e18a6d04be312b9c1f | 063ab6c256b5c60406c7d4ee6820dbbf8192efa9 | /ros_ws/build/learning_ros_external_pkgs_noetic/baxter_simulator/baxter_sim_examples/catkin_generated/pkg.develspace.context.pc.py | 7b7827d082d8236e15fb3543a5214218394f47d0 | [] | no_license | Iris-ye233/final-project_revised | d34aa55f6bba2f5b73b4f3a255f5041bdf7c71fc | 8ab78592b3fe79c8fa359cc877a52192784d2152 | refs/heads/master | 2023-05-13T18:11:04.802393 | 2021-06-03T16:27:01 | 2021-06-03T16:27:01 | 371,312,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;rospack;baxter_core_msgs;baxter_gazebo;baxter_interface;baxter_tools;baxter_tools;gazebo_ros;gazebo_msgs".replace(';', ' ')
PKG_CONFIG_L... | [
"1155150731@link.cuhk.edu.hk"
] | 1155150731@link.cuhk.edu.hk |
33e9f7059135f1c5a0be98fa9d79e928bea92868 | f8df1bff1dccbc1b4cf67cb7765ce75b17777aa3 | /app/glapp/shane/openglpanel.py | 0d6b28812f848688b60359540cd5ecc798c316ea | [] | no_license | juancq/py-interactive-genetic-algorithm | d74048338da283acd9545aab00f435b5c500d669 | d1b388e001232040e966fd3077722ed2560d1d9e | refs/heads/master | 2021-01-10T20:57:58.446987 | 2017-05-26T07:42:10 | 2017-05-26T07:42:10 | 4,923 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | import wx
from gui import feedbackpanel
class OpenGLPanel(feedbackpanel.FeedbackPanel):
def __init__(self, parent, id, data = None, tick = 100, size = (250, 250)):
feedbackpanel.FeedbackPanel.__init__(self, parent, id, size = size)
import openglcanvas
canvas = openglcanvas.IGAGLCanvas(self... | [
"juan@dragonite.(none)"
] | juan@dragonite.(none) |
aaa10d917c12333b2b0b5f49def8cf9e4fdbdc10 | 81fe7f2faea91785ee13cb0297ef9228d832be93 | /AdventOfCode/21/day15.py | ea974830ec31ba50613e0a88d6ea0b7888d7b660 | [] | no_license | blegloannec/CodeProblems | 92349c36e1a35cfc1c48206943d9c2686ea526f8 | 77fd0fa1f1a519d4d55265b9a7abf12f1bd7d19e | refs/heads/master | 2022-05-16T20:20:40.578760 | 2021-12-30T11:10:25 | 2022-04-22T08:11:07 | 54,330,243 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | #!/usr/bin/env python3
import sys
from heapq import *
INF = 1<<30
def dijkstra(Map, i0,j0, i1,j1):
S = len(Map)
Dist = [[INF]*S for _ in range(S)]
Dist[i0][j0] = 0
Q = [(0,i0,j0)]
while Q:
d,i,j = heappop(Q)
if i==i1 and j==j1:
break
if d>Dist[i][j]:
... | [
"blg@gmx.com"
] | blg@gmx.com |
7dc59258a5b3fc8644e0f31266ec92fa17934dde | 7f5a9a470f9a89108fca0280018b0563e9a0207a | /wykres_masy_calkowitej_od_czasu_box.py | 74ce9195d6999085a995c02868eb15e0ec158cff | [] | no_license | b-doroszuk/wykresy_kruszarki | dffa18b1b4856c7a29dfd4039960676cd5c40be0 | e68d22f034bd1c866393c0b0edacdebace393dd3 | refs/heads/main | 2023-06-02T04:39:07.238948 | 2021-06-19T21:00:37 | 2021-06-19T21:00:37 | 378,262,957 | 0 | 0 | null | 2021-06-18T20:55:05 | 2021-06-18T20:55:04 | null | UTF-8 | Python | false | false | 6,882 | py | from edempy import Deck
import numpy as np
from edempy import BoxBin, CylinderBin
import matplotlib.pyplot as plt
import matplotlib; matplotlib.use("TkAgg")
from time import strftime
def get_mass_time_box(time_step: int, deck, L_boxbin, R_boxbin):
# zamienia krok czasowy na jednostke czasu
czas = deck.timest... | [
"you@example.com"
] | you@example.com |
cdd00f1aee1b6099e9869021c75ba1cf9dc318d7 | e6913abba3f5cfd396e62c7e514674dbcb3631bb | /vidfeat/_vertical_boxed.py | 135b8fb34c9ab722a5e7dcc6f9a0b18a65ef495b | [] | no_license | bwhite/vidfeat | f98b8511ad13347037c60d7026725a6149851a81 | c9e7c6a02b41951fc93f0cefe0c78b24f5731f59 | refs/heads/master | 2016-09-06T03:00:58.791493 | 2012-06-19T21:54:01 | 2012-06-19T21:54:01 | 1,878,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import vidfeat
import imfeat
import sklearn.svm
class VerticalBoxedFrameFeature(vidfeat.ClassifierFrameFeature):
feature = imfeat.BlackBars()
def __init__(self, *args, **kw):
classifier = sklearn.svm.LinearSVC(class_weight='auto')
self.svm_parameters = [{'C': [10 ** x for x in range(0, 12, 3)... | [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
8ced806cfdc062b9eed27d8c280a64109ff72856 | b87f66b13293782321e20c39aebc05defd8d4b48 | /mpi/mpi_merge.py | edf623650edaf9d1fc58f8f3c85293cfea3b2539 | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | #!/usr/bin/env python
"""
Merge several HDF5 or ASCII files.
Merge all files that have a common (given) pattern in the name.
The patterns may be numbers and/or characters. Example: 'YYYYMMDD',
where YYYY is year, MM is month and DD is day.
"""
# Fernando <fpaolo@ucsd.edu>
# November 2, 2012
import os
import sys
im... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
1d983087ace0527d39672656d8b1e6c4526ebcfd | 7838473d3688eb89b598198440c6769ef56701a6 | /pyvsphere/vmware_vswitch_facts.py | ee53f751dd107d27cc9efcaf6e8591706b9b6a56 | [] | no_license | Maliaotw/pyvsphere | 58029c4b1fad0667d87f9a36434f67209f9180ee | 7069cf566dae8d35c2770050ccb71342ed5d3d8e | refs/heads/main | 2023-03-03T14:05:19.526387 | 2021-02-09T16:34:07 | 2021-02-09T16:34:07 | 317,414,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {
'metadata... | [
"MaliaoTW@gmail.com"
] | MaliaoTW@gmail.com |
15717a292bdc89415c16f5ff81de7542e336cd37 | 3b1a13edca51449f015086acad1e5a51ae89cba5 | /lang/py/pylib/10/threading/threading_rlock.py | c9a98dd6693b1555f9e9282f076052e573461c52 | [
"MIT"
] | permissive | ch1huizong/study | 9000042d3ad13b06426b03423ee335aee15fd061 | d3b7c43fc03484839f8bbc7d0d056df1b1eba9cd | refs/heads/master | 2023-09-04T12:45:48.125715 | 2023-08-17T02:49:40 | 2023-08-17T02:49:40 | 162,539,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python
# encoding: UTF-8
import threading
lock=threading.RLock()
print'First try:',lock.acquire()
print'Second try:',lock.acquire(0)
| [
"root@k.k.lab"
] | root@k.k.lab |
8d4a44a59ad433fc8694c581fb47349a62aad711 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o-s.py | d55c95b9d3da7707d87e35a413deb81b87e0e6ff | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
b4bb3b9601d9f2d0665fe916401fbf091bea4e6e | e41fc34b9d3d5aa94e5c6b843ee35fc1280ed6b5 | /app/settings/config_control.py | f59173df4c2a68fbdf9dd2416dc8f00ea26d6ec6 | [] | no_license | cleverbotdev/my_university_group_site | b69b03185ddbb6fca763f1394851e031cb3e304e | b4d4079dc2f942634f63b96e799050f6191d5aad | refs/heads/master | 2023-07-20T06:48:33.340436 | 2021-03-04T10:14:21 | 2021-03-04T10:14:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | # -*- coding: utf-8 -*-
if __name__ == '__main__':
from os import chdir
from app.settings.config import HOME_DIR, SETTINGS_FILE, EXAMPLE_SETTINGS_FILE
chdir(HOME_DIR)
def create_new_settings(config_path, example_settings_filename):
from configparser import ConfigParser
example_cfg = ConfigPars... | [
"rkbcu@mail.ru"
] | rkbcu@mail.ru |
e90effd3bbfd10d2539c58e07eaaef4ea30eb3a1 | 0b63f38c7fb468e478e5be82c685de1b7ddb87e5 | /meiduo/meiduo_mall/scripts/generate_detail_html.py | c1e6f9a5b13f24b3617489fe30fddf118e1edd65 | [
"MIT"
] | permissive | Highsir/Simplestore | fcf5ef81a754604c0953a3c1433a7bc09290c121 | 5fc4d9930b0cd1e115f8c6ebf51cd9e28922d263 | refs/heads/master | 2020-09-01T07:55:45.362457 | 2019-11-01T04:55:48 | 2019-11-01T04:55:48 | 218,913,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | # 1. 添加导包路径 (把 scripts 的上一级目录添加到导包路径sys.path)
import sys
sys.path.insert(0, '../')
# 2. 设置配置文件,初始化django环境
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "meiduo_mall.settings.dev")
django.setup()
# 3. 导包
from celery_tasks.html.tasks import generate_static_sku_detail_html
from goods.models im... | [
"highsir421@163.com"
] | highsir421@163.com |
1a73b6acb4d8371dc29e5f10e62860f6bc22386f | f1fcd165cd8444310ce5d201e481e3982dc28110 | /easy/1901/190108/jang.py | 25720a11955857329f172ec792f4b8f996ea5564 | [] | no_license | JoosJuliet/algoStudy | 310a71a0fcc8f3c23281544cf3458ed999040176 | 3fc1e850f9d8b9f290f41fddd59ff403fbfffa05 | refs/heads/master | 2020-04-20T19:26:25.485875 | 2019-03-27T22:37:27 | 2019-03-27T22:37:27 | 169,049,593 | 1 | 0 | null | 2019-02-04T08:43:07 | 2019-02-04T08:43:07 | null | UTF-8 | Python | false | false | 130 | py | from collections import Counter
input()
ans = 0
for c in Counter(map(int, input().split())).values():
ans += c//2
print(ans)
| [
"wkdtjsgur100@naver.com"
] | wkdtjsgur100@naver.com |
79b02fcb1541ce6c7a051b6738976296de7faaa3 | 2e6f4690a2a9448a1eb027c14a637ab449b94c4f | /qa/rpc-tests/decodescript.py | e5231a5f2da09223aee163856e576be6eea63976 | [
"MIT"
] | permissive | mirzaei-ce/core-mashhadbit | 11d60f09f80c8056f5e063eb65783f8699f5ede8 | 1d9d45336cbbda7ffd700d3f1c3dd9e8b4ce2745 | refs/heads/master | 2021-07-18T11:43:26.440889 | 2017-10-26T14:31:07 | 2017-10-26T14:31:07 | 108,422,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,653 | py | #!/usr/bin/env python2
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import MashhadbitTestFramework
from test_framework.util import *
from test_... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
3567b6b9dbb5ba835c394efc4a0acaf1d521e739 | f60434c0a27f0f5ada2aa5607c94947890de5692 | /codezilla/sherlock.py | 4b6219a06e227af9a424e2f6c7b32393e09c7c36 | [
"MIT"
] | permissive | AnuragAnalog/codechef | 16aa7711e6471f6249874066105f50aee90436c3 | 348dd1d8daac356f0390ce124a263f6157495b1c | refs/heads/master | 2022-06-27T15:11:36.811069 | 2020-05-11T03:20:19 | 2020-05-11T03:20:19 | 262,927,296 | 1 | 0 | null | 2020-05-11T03:18:50 | 2020-05-11T03:16:15 | null | UTF-8 | Python | false | false | 372 | py | n = int(input())
inst = list(input())
string = ""
for i in inst:
if i == "1":
string = string + "a"
elif i == "2":
string = string + "bb"
elif i == "3":
string = string + "ab"
elif i == "4":
string = string.replace("a", "$")
string = string.replace("b", "a")
... | [
"anurag.peddi1998@gmail.com"
] | anurag.peddi1998@gmail.com |
1b17c93b5d60e121444377dcc3f277dd0f2fce03 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /run/runcase_ipo.py | 22f8fbc94a9b59c8509cbbaec8ddff44282914d9 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import os
import time
import unittest
sys.path.append('/home/yhl2/workspace/xtp_test/Autocase_Result')
sys.path.append('/home/yhl2/workspace/xtp_test/utils')
import CaseServiceIpo
# 深圳现价case批量执行
def runCases( path, filename,sheet_name):
'''
:param cases: ... | [
"418033945@qq.com"
] | 418033945@qq.com |
bf43527a3d5127746b93a44909d325e5c4ebbe32 | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /Lombardia/AlfaVarese/3-FoundReportList.py | ef7ade81f4816ecdf095f5b44ed170800b914cf7 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | ##
from selenium import webdriver
import time
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import logging,pandas as pd
import acqua.aqueduct as aq
gestore = "AlfaVarese"
aq.setEnv('Lombardia//'+gestore)
url = "https://www.alfasii.it/la-societa/... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
74832a0ea32690e56228433ad4eb435b3f2d0185 | 8246e9fbdecdb37651e0d09497fd9428e434f33c | /FilmLocationFromGuidedWithSerial/admin.py | d179c1eeaa68276fef03e2c251f12fffe2bac988 | [] | no_license | rajeev1234/Landing-Page | 479995026ab01fc504a1e9502e7763dc04266009 | 4bfd22a6a1776907ba78b3dc9037064c820b049e | refs/heads/master | 2020-03-08T13:37:20.253252 | 2018-04-05T06:33:26 | 2018-04-05T06:33:26 | 128,162,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django.contrib import admin
# Register your models in admin panels here.
from . import models
# declaring comments stack
class CommentInline(admin.TabularInline):
model = models.Comment
# attaching commment stack to FilmLocationFromGuidedWithSerial
class FilmLocationFromGuidedWithSerialAdmin(admin.Mode... | [
"ccrcian.rajeev1@gmail.com"
] | ccrcian.rajeev1@gmail.com |
deafa9e8cc390faf8bca1d5e09ef640b1b3e5605 | 3a0732e6e64e2ffedd85de2d2844b26a974aae67 | /utils/functions.py | 9c121577923989b8e1c051db0e83a39bae3471e0 | [
"MIT"
] | permissive | helloharmeet/A-Simple-Note-Taking-Web-App | 8e8163597545a27dbd2f41b938d4a9e2a6db55c8 | 0f952bc0bcd752ba3e5faedb8f86345043fec970 | refs/heads/master | 2021-07-04T14:55:57.323768 | 2017-09-28T00:53:25 | 2017-09-28T00:53:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,626 | py | import os
import hashlib
def get_database_connection():
'''
Creates a connection between selected database
'''
import sqlite3
sqlite_file = 'notes.db'
file_exists = os.path.isfile(sqlite_file)
conn = sqlite3.connect(sqlite_file)
if not file_exists:
create_sqlite_tables(conn... | [
"omkarpathak27@gmail.com"
] | omkarpathak27@gmail.com |
be7339bac0388480a26e2b7a029ad4492e92b529 | 90b2ad813c96d630cd254475b0ad3a7a735011e5 | /codigo/MeteoSalon/MQTT_test.py | 8c23d94dc8cb58f56bd2ec98d7aef2b8a31a2d6f | [] | no_license | vtt-info/micropythonTutorial | dbcd4c13af442446c9816e4fdcd82b8eaaf6a27a | 67a58fb56bef4ef55c89cf76fc3ccde842b62ce6 | refs/heads/master | 2020-11-27T21:44:22.044221 | 2019-12-22T16:25:44 | 2019-12-22T16:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | # MQTT test
# basado en https://randomnerdtutorials.com/micropython-mqtt-esp32-esp8266/
from umqttsimple import MQTTClient
import ubinascii
import machine
import Wemos # Facilita el identificar los pines
import MeteoSalon # Relacionado con los dispositivos conectados
import NeoPixelTHO # Relacioniado con el... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
7c54c7b31d8d70ba4d82aa27a48606da121ed2d6 | 9c63f6d39a6085674ab42d1488476d0299f39ec9 | /Python/LC_Unique_Email_Addresses.py | 8d175c6c63fe339b19edb98152a443a9c2a31f7a | [] | no_license | vijayjag-repo/LeetCode | 2237e3117e7e902f5ac5c02bfb5fbe45af7242d4 | 0a5f47e272f6ba31e3f0ff4d78bf6e3f4063c789 | refs/heads/master | 2022-11-14T17:46:10.847858 | 2022-11-08T10:28:30 | 2022-11-08T10:28:30 | 163,639,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | class Solution(object):
def numUniqueEmails(self, emails):
"""
:type emails: List[str]
:rtype: int
Approach:
Split into local and domain.
Process accordingly
"""
new = set()
for email in emails:
local,domain = emai... | [
"noreply@github.com"
] | vijayjag-repo.noreply@github.com |
275bc0dc169eb8d80100c4b3485b2de5f9c9a001 | 822d3cd484b54f0531fc205520c765a8321c0613 | /pyFile/9面向对象进阶/5.描述器/随堂笔记/12.反向操作符.py | 9d8711a8583579d14da0a7ab9391630953089a88 | [] | no_license | mghxy123/learnPython | 31d1cc18deeed5a89864ca0333fe488e0dbf08b4 | 00740e87d55a4dffd78773deaff8689485df31e8 | refs/heads/master | 2021-07-21T14:31:02.421788 | 2020-06-27T11:28:01 | 2020-06-27T11:28:01 | 187,751,182 | 0 | 0 | null | 2020-06-07T05:14:05 | 2019-05-21T02:58:35 | Python | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File : 12.反向操作符.py
# Author: HuXianyong
# Date : 2019/5/27 17:58
# print(type(NotImplemented)) #未实现的单值
# print(type(None))#未实现的单值
# print(type(NotImplementedError)) #异常类
class A:
def __init__(self,x):
self.x = x
def __repr__(self):
return "<A ... | [
"mghxy123@163.com"
] | mghxy123@163.com |
0893fddba045a950026684cfcf99ea17a23ccda4 | 2c3e0c3ef202375d998c9123934af09315d33fee | /LeetCode/Greedy Algorithms/jump_game.py | b08f9a1ecc1c6bde18a1346953fcd57c11047c44 | [] | no_license | Kalesh-Singh/Interviews2019 | e74f0ec22b1cb5fe178a38efc9c0ceea929e32f0 | e8fadb9636659a28f657fb43ee804761a215c37e | refs/heads/master | 2020-05-23T12:56:05.896620 | 2019-08-25T15:23:10 | 2019-08-25T15:23:10 | 186,767,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | class Solution:
def canJump(self, nums: 'List[int]') -> bool:
# Solution 1 - Dynamic Programming Bottom Up Approach
# n = len(nums)
# # Try determine whether we can reach the last index
# # starting from the right.
# results = [False] * n
# # We know we can get to ... | [
"kaleshsingh96@gmail.com"
] | kaleshsingh96@gmail.com |
5fc218c45331323e07ff14adde4a58c7ebcb9b5f | 15945660e0e9624693f11d7ec6460fb41d2f1ef9 | /tfx/utils/import_utils.py | 476d32d7366a4df7ac64158d12abebb7380674ae | [
"Apache-2.0"
] | permissive | HassanDayoub/tfx | f4a32cd6e25493d152a6f91b2cc26db94154d0a6 | dc9221abbb8dad991d1ae22fb91876da1290efae | refs/heads/master | 2020-05-30T18:44:31.410424 | 2019-05-31T22:06:53 | 2019-05-31T22:07:25 | 189,904,199 | 2 | 0 | Apache-2.0 | 2019-06-02T23:09:17 | 2019-06-02T23:09:17 | null | UTF-8 | Python | false | false | 1,171 | py | # 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 required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
10787697aa144a80df495845d4c964f0663d2b6d | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/compiler/tests/scatter_nd_op_test.py | 46c679b61fdd6dd03be8c0b8644cab352b9cf0a6 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,132 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
c065a92fe428a5c1db1d2ed606c8bfba5a1d6d3b | 0c1d3807940f223c913aeadac31b85dc576b1dca | /app.py | b1656d84cd9a00fbce5cfecc0fdd87693551c67c | [] | no_license | wegamekinglc/QA | 4b2073e4f93d96c09c771d868914cef3367ab55f | c818442b06f5701feb6b38dcf6f20853d8ec6556 | refs/heads/master | 2020-06-11T00:41:02.003796 | 2019-06-26T04:46:36 | 2019-06-26T04:46:36 | 193,806,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | from typing import Tuple
import requests
from flask import (
Flask, render_template, request, redirect
)
import pandas as pd
app = Flask(__name__)
pd.set_option('display.max_colwidth', -1)
def chunkstring(string, length):
return (string[0+i:length+i] for i in range(0, len(string), length))
def handle_resp... | [
"scrappedprince.li@gmail.com"
] | scrappedprince.li@gmail.com |
37ef390c7e9d53f0d6bc90b5bb19dee5ee3d0338 | 28deae4b6f2ef4c83116d8a7e08061b2ac47bb71 | /Spider/ImgSpider/utils/exceptions.py | d2c585c0275117650b4ba792d89e1926e23d29ec | [
"MIT",
"Apache-2.0"
] | permissive | Danceiny/HackGirlfriend | 9cc796c733be7055799efb1c51f1e5ecb3d12d81 | d64f43c5cfb48d30ed812e34fb19bc7b90ba01f8 | refs/heads/master | 2023-01-04T16:09:55.205094 | 2017-07-22T16:48:59 | 2017-07-22T16:48:59 | 93,874,976 | 2 | 1 | Apache-2.0 | 2022-12-26T20:14:57 | 2017-06-09T15:57:34 | HTML | UTF-8 | Python | false | false | 1,267 | py | # coding=utf-8
class UnknownPythonVersion(Exception):
msg = 'Unknown Python version found, please check your Python installation.'
class UnsupportedPythonVersion(Exception):
msg = 'So far ImageSpider only support Python 2.'
class GetBaseLinkFailed(Exception):
msg = 'Getting base link failed.'
class ... | [
"danceiny@gmail.com"
] | danceiny@gmail.com |
628f197dcdce92355c268cf6f67500a76d8f9ba6 | 0431fb263e38422585edca273fb47ef92fd22243 | /dataloaders/data_poke.py | ed7e09e5dcdf2e7f5b203cc60babc9ab1a115781 | [] | no_license | RRoundTable/EEN-with-Keras | a6c3352eafc05fcb7ed41463d637a684de9a0b27 | ae71903afa05135f5eb6e2797854969f5a082958 | refs/heads/master | 2020-04-28T03:17:25.762629 | 2019-04-27T12:19:13 | 2019-04-27T12:19:13 | 174,930,756 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,653 | py | import os, random, glob, pdb, math
import pickle as pickle
from sklearn.externals import joblib
import numpy
from scipy import misc
# import torch
# import torchvision
import utils
from tensorflow.python.keras.layers import Input
class ImageLoader(object):
def _load_set(self, split):
print('loading {} se... | [
"ryu071511@gmail.com"
] | ryu071511@gmail.com |
f0638fd2d66ede9da7dbfba2d846f8e41920760a | 8bd1ae9c1681ee8c1214a4e9cda29a503676c36d | /v1/tnc2.py | 926883fffab2cabc992b1efab7396b853be0ba9b | [] | no_license | zleffke/balloon | c15ef7e5614018022ca1f19ed2e4c82009352165 | 2943d303692b299e6d0866299d83a94d0839bf5b | refs/heads/master | 2021-07-06T02:28:17.304024 | 2021-05-22T20:25:18 | 2021-05-22T20:25:18 | 57,078,951 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | #!/usr/bin/env python
##################################################
# GPS Interface
# Author: Zach Leffke
# Description: Initial GPS testing
##################################################
from optparse import OptionParser
import threading
from datetime import datetime as date
import os
import serial
import ma... | [
"zleffke@vt.edu"
] | zleffke@vt.edu |
2c1f0bb8452e88d0139f57a8d392d8d03d95841c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /G2QnBrxvpq9FacFuo_9.py | 409f1278f18bac3fdd0fd7919b0002ac306a61bc | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py |
def possible_path(lst):
if lst[0]=='H':return all([lst[i]=='H' for i in range(0,len(lst),2)])
return all([lst[i]=='H' for i in range(1,len(lst),2)])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0573e8f5815111aa5ad910bbc7b918fd7bed2a85 | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/kubernetes/client/models/v1_node_system_info.py | 5e7fd492a500cec487b8f996d06402ff4cbccda8 | [] | no_license | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,335 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: release-1.15
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class V1Nod... | [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
901a12d85d7a567cb6b96e5c26267c541a2bee5a | 75af3c931671a55ea0058cea6e83e90dc1aed6d1 | /profil3r/app/core/services/_porn.py | 2ab894337d20e37f5825d30f488926628e176fca | [
"MIT"
] | permissive | derinkebapiskender/Profil3r | e711a381d84b27744d5289a87c99b4b8e77b8866 | d45fea1efab0487bfac49e422ebc46cb26b29582 | refs/heads/main | 2023-07-01T00:19:24.113439 | 2021-07-26T23:08:59 | 2021-07-26T23:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | from profil3r.app.modules.porn.pornhub import Pornhub
from profil3r.app.modules.porn.redtube import Redtube
from profil3r.app.modules.porn.xvideos import Xvideos
# Pornhub
def pornhub(self):
self.result["pornhub"] = Pornhub(self.config, self.permutations_list).search()
# print results
self.print_results("p... | [
"r0g3r5@protonmail.com"
] | r0g3r5@protonmail.com |
9800f6c861feb1d3a793b713f5649f8631284b22 | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /appraisal/migrations/0034_appraisal_performance_classification.py | 4206da7d9f420b1fcc58d45701b6a13bd21cbc9c | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-08-13 21:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('appraisal', '0033_auto_20180813_1332'),
]
operations = [
migrations.AddField(... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
6840e0f3781e3462bc040ce3644bd3b74bc2f88e | ba20d56f38844fc4a0c8956d9f2319b8202ef9cc | /app/googlelogin/admin.py | 1e6bdefef3a2e9ad77b8c5a0512375de6737f6ac | [] | no_license | parkhongbeen/test-social-login | 3200568afbab6437d466f8246df4376798a85fdf | 7810ea69a416b713539a2cff17c63f87f93ec0d3 | refs/heads/master | 2022-11-17T12:10:17.343631 | 2020-07-14T08:12:19 | 2020-07-14T08:12:19 | 279,483,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from googlelogin.models import Blog
admin.site.register(Blog)
| [
"pack122@naver.com"
] | pack122@naver.com |
1b8a8570b27806bdeec6392585f3026f4913f1fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_strongholds.py | 55c41458d6f0e15de2928d80a317f4df66fb17c1 | [
"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 | 238 | py |
#calss header
class _STRONGHOLDS():
def __init__(self,):
self.name = "STRONGHOLDS"
self.definitions = stronghold
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['stronghold']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3c838498f6089798a32bacec1df55395f584f265 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03695/s950925933.py | e48c5ff64081e4d044a733a6017beb03e5e51894 | [] | 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 | 452 | py | n = int(input())
A = list(map(int, input().split()))
color = []
other = 0
for a in A:
if a < 400: color.append(1)
elif a < 800: color.append(2)
elif a < 1200: color.append(3)
elif a < 1600: color.append(4)
elif a < 2000: color.append(5)
elif a < 2400: color.append(6)
elif a < 2800: color.app... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
37b31d7c83517db42c782f28736d5e2d0a9d7128 | ed296ff86f13b1d9e41fbf6aace441090850ef57 | /chapter_03_data_modeling/account_example/account_example/example/migrations/0003_internalaccount_account_number.py | 53c0a79cd57dc61299f17ccdb16473cda975e38f | [
"MIT"
] | permissive | cnb0/Python-Architecture-Patterns | 2a6113605f95a4c99369ee0febe2812c792a7acf | 2194746ea334c9dd84b5547a6d59ebfa95ced394 | refs/heads/main | 2023-08-12T02:31:17.187913 | 2021-10-12T19:16:14 | 2021-10-12T19:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Generated by Django 3.2 on 2021-04-18 12:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('example', '0002_internalaccount_initial_amount'),
]
operations = [
migrations.AddField(
model_name='internalaccount',
... | [
"jaime.buelta@gmail.com"
] | jaime.buelta@gmail.com |
f134a84e1d0e478b6e38dfe4818b42ecbd892513 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/pipelines_20200627225504.py | 431121b82bb35a87337da0908ef3299621934ef2 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class MaoyanspidersPipeline(object):
def process_item(self, item, spider):
films_name = item['films_name']
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
1097ae22a7073a902f0a5afb758647bb025d8aa7 | 052a89753a7917b7fa0ccdf5718d5250a1379d2c | /bin/painter.py | 007ccd5118b932b88dfafb856861b084ae5a60d4 | [] | no_license | bopopescu/aws.example.com | 25e2efda3bd9ae2a257c34904ccb53043fe20b55 | 97254868688c3c3a991843fcacc973c93b366700 | refs/heads/master | 2022-11-22T07:06:30.386034 | 2016-10-25T15:22:14 | 2016-10-25T15:22:14 | 282,553,417 | 0 | 0 | null | 2020-07-26T01:22:26 | 2020-07-26T01:22:25 | null | UTF-8 | Python | false | false | 2,169 | py | #!/Users/deanarmada/Desktop/projects/python-projects/aws.example.com/bin/python
#
# The Python Imaging Library
# $Id$
#
# this demo script illustrates pasting into an already displayed
# photoimage. note that the current version of Tk updates the whole
# image every time we paste, so to get decent performance, we spli... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
a1f9582d5a8046a5d7bcfe68ba761242d32ba88c | 0d9c964fd7644395a3f0763f484e485fcc67f762 | /new/src/13 12 2019/mini task 1.py | cb9ac4aff30b02ac6ad9a8d03e0769d6bfa3bfd4 | [
"Apache-2.0"
] | permissive | VladBaryliuk/my_start_tasks | eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e | bf387543e6fa3ee303cbef04d2af48d558011ed9 | refs/heads/main | 2023-04-14T14:00:08.415787 | 2021-04-24T13:47:38 | 2021-04-24T13:47:38 | 354,538,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | a = str (input())
b = int (input())
for i in range(1,b+1) :
print(a)
| [
"vladmain9@gmail.com"
] | vladmain9@gmail.com |
ce8f7a72520ec6d106c411bd7698922722e9cd8f | 20cf9a80fd651b5adb7242bf17da2c323785f776 | /01_Python/00_python_fund/filter_type.py | 5d5aa673f2d382415462308c99d0696e18c93a76 | [] | no_license | ethanlow23/codingDojoCoursework | 4f2ea0490437fe61a927f665c6b6b23435f095cf | 1a8fcad44377727d43517d34bd1f425fc5d6abab | refs/heads/master | 2020-04-28T18:58:53.696656 | 2019-03-13T20:56:44 | 2019-03-13T20:56:44 | 175,496,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py |
sI = 45
mI = 100
bI = 455
eI = 0
spI = -23
sS = "Rubber baby buggy bumpers"
mS = "Experience is simply the name we give our mistakes"
bS = "Tell me and I forget. Teach me and I remember. Involve me and I learn."
eS = ""
aL = [1,7,4,21]
mL = [3,5,7,34,3,2,113,65,8,89]
lL = [4,34,22,68,9,13,3,5,7,9,2,12,45,923]
eL = []
... | [
"ethanlow223@yahoo.com"
] | ethanlow223@yahoo.com |
dfbf2bb00e0b704fed20409a0534dfac4dcf35a2 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/plotly/graph_objs/box/marker/__init__.py | 79b6f6b71d76d620d552542f9dba26d6c09b5849 | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 10,805 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Line(_BaseTraceHierarchyType):
# color
# -----
@property
def color(self):
"""
Sets themarker.linecolor. It accepts either a specific color or
an array of numbers that ... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
3aab6d9e3ab7cac0507d1de4eeb54cfa9f9bdc8e | d8346eaf1c910ff02c7b243692a2766b8b089f06 | /for-post/python-string/s2-methods/split.py | 33b6036796fcee2b77b0370fa84b79457b731e68 | [] | no_license | dustinpfister/examples-python | 55304c99ba3af82cd8784ee98745546632155c68 | a9910ee05d4df524f951f61b6d9778531a58ccbf | refs/heads/master | 2023-03-06T21:10:18.888654 | 2021-02-26T20:32:52 | 2021-02-26T20:32:52 | 318,595,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | str = '0,1,2,3,4,5'
l = str.split(',')
print(type(l).__name__) # list
print(l[3]) # 3
str = '012345'
# I can not give and empty string as a sep
# doing so will result in an error
try:
l = str.split('')
except ValueError:
print('ValueError')
# however there are a number of other ways to
# get that kind of lis... | [
"dustin.pfister@gmail.com"
] | dustin.pfister@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.